:root{--ink:#171128;--muted:#786c82;--purple:#7426e8;--purple2:#9b39ef;--pink:#ef3fae;--green:#00a87d;--red:#eb315c;--gold:#f3a51f;--blue:#3979f6;--paper:#fbf9ff;--line:#eadff3;--white:#fff;--shadow:0 16px 45px rgba(64,30,93,.09);--r:24px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#fff 0,#fbf8ff 48%,#f7f6fb 100%);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.cx-topbar{height:74px;position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:28px;padding:0 max(22px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(117,77,144,.12)}.cx-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:23px;white-space:nowrap}.cx-brand>span:last-child span{color:var(--purple)}.cx-brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,var(--purple),var(--pink));color:white;font-size:12px;box-shadow:0 9px 22px rgba(116,38,232,.24)}.cx-nav{margin-left:auto;display:flex;align-items:center;gap:8px}.cx-nav a{padding:10px 13px;border-radius:12px;color:#554a61;font-weight:600;font-size:14px}.cx-nav a:hover,.cx-nav a.active{background:#f4ebff;color:var(--purple)}.cx-nav .nav-login{color:#fff;background:linear-gradient(135deg,var(--purple),var(--pink));padding-inline:18px}.cx-menu{display:none;margin-left:auto;background:transparent;border:0;font-size:25px}.cx-main{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:30px 0 60px}.cx-footer{display:flex;justify-content:space-between;gap:20px;width:min(1180px,calc(100% - 32px));margin:auto;padding:22px 0 32px;color:#84768d;font-size:13px;border-top:1px solid var(--line)}
.hero{position:relative;overflow:hidden;border-radius:32px;padding:42px;background:linear-gradient(125deg,#6d28df 0%,#9b35ed 52%,#ed41ae 100%);color:#fff;box-shadow:0 22px 70px rgba(123,44,220,.2)}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.1)}.hero:before{width:320px;height:320px;right:-90px;top:-170px}.hero:after{width:180px;height:180px;right:190px;bottom:-135px}.hero>*{position:relative;z-index:1}.eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.15);font-size:12px;font-weight:600;letter-spacing:.2px}.hero h1{font-size:clamp(34px,5vw,59px);max-width:780px;letter-spacing:-2.4px;line-height:1.01;margin:16px 0 14px}.hero p{max-width:700px;margin:0;color:rgba(255,255,255,.88);font-size:17px;line-height:1.65}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:15px;padding:13px 18px;font-weight:600;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.btn:hover{transform:translateY(-1px)}.btn-white{background:#fff;color:var(--purple);box-shadow:0 9px 30px rgba(48,20,87,.14)}.btn-glass{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.26);color:#fff}.btn-primary{background:linear-gradient(135deg,var(--purple),var(--pink));color:#fff;box-shadow:0 10px 25px rgba(122,41,222,.18)}.btn-soft{background:#f2eaff;color:var(--purple)}.btn-green{background:#e7fbf5;color:#008b67}.btn-danger{background:#fff0f3;color:#d8234c}.btn[disabled]{opacity:.48;cursor:not-allowed;transform:none}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:34px 0 15px}.section-head h2{margin:0;font-size:25px;letter-spacing:-.7px}.section-head p{margin:5px 0 0;color:var(--muted)}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:var(--r);padding:22px;box-shadow:var(--shadow)}.card h3{margin:0 0 7px;font-size:18px;letter-spacing:-.35px}.card p{margin:0;color:var(--muted);line-height:1.55}.action-card{display:block;position:relative;min-height:155px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.action-card:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(86,41,118,.13)}.action-card .icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;margin-bottom:20px;font-size:22px;background:#f3eaff}.action-card .go{position:absolute;right:18px;top:18px;color:var(--purple);font-weight:700}.tint-pink{background:linear-gradient(145deg,#fff,#fff1f8)}.tint-purple{background:linear-gradient(145deg,#fff,#f4edff)}.tint-blue{background:linear-gradient(145deg,#fff,#eef6ff)}.tint-green{background:linear-gradient(145deg,#fff,#ecfcf6)}.tint-gold{background:linear-gradient(145deg,#fff,#fff9e9)}
.path-card{min-height:208px;color:#fff;border:0;position:relative;overflow:hidden}.path-card.core{background:linear-gradient(135deg,#6331df,#8b42ee)}.path-card.extended{background:linear-gradient(135deg,#ec3ba3,#b633e8)}.path-card h3{font-size:26px;margin:0 0 9px}.path-card p{color:rgba(255,255,255,.83);max-width:420px}.difficulty{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.difficulty span{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.14);font-size:11px;font-weight:600}.sprint-card{display:grid;grid-template-columns:1.35fr .65fr;gap:25px;align-items:center;background:linear-gradient(120deg,#fff9fc,#fbf1ff 52%,#f2e9ff);border-color:#efc9fa}.sprint-card h2{font-size:30px;margin:0 0 9px}.sprint-burst{min-height:190px;border-radius:24px;display:grid;place-items:center;text-align:center;color:white;background:radial-gradient(circle at 35% 20%,#ff66bf,#b13def 56%,#6c29df);box-shadow:0 18px 40px rgba(174,58,233,.22)}.sprint-burst strong{display:block;font-size:50px;line-height:1}.sprint-burst small{font-weight:600;opacity:.85}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{padding:17px;border:1px solid var(--line);border-radius:18px;background:white}.stat small{color:var(--muted);font-weight:700}.stat strong{display:block;font-size:25px;margin-top:7px}.progress{height:9px;background:#eee8f4;border-radius:99px;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--purple),var(--pink));border-radius:99px}.notice{padding:14px 16px;border-radius:16px;background:#f4ecff;color:#6132a0;font-weight:700}.notice.warn{background:#fff7e5;color:#916010}.notice.error{background:#fff0f3;color:#bf2347}.notice.success{background:#e9fbf5;color:#087b60}.empty{padding:45px 20px;text-align:center;color:var(--muted)}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.page-head h1{font-size:32px;margin:0;letter-spacing:-1px}.page-head p{margin:6px 0 0;color:var(--muted)}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{border:1px solid var(--line);background:#fff;color:#6d5a78;padding:9px 13px;border-radius:999px;font-weight:600;cursor:pointer}.tab.active{background:#efe4ff;color:var(--purple);border-color:#dbc3f4}.filters{display:flex;gap:10px;flex-wrap:wrap}.field{width:100%;padding:13px 14px;border:1px solid #dfd3e9;border-radius:14px;background:#fff;color:var(--ink);outline:none}.field:focus{border-color:#9a6be2;box-shadow:0 0 0 3px rgba(116,38,232,.08)}.filters .field{width:auto;min-width:190px}.list{display:grid;gap:12px}.list-card{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px}.list-card .grow{flex:1;min-width:0}.list-card h3{margin:0 0 4px}.list-card p{margin:0;color:var(--muted);font-size:13px}.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#f1e9ff;color:var(--purple);font-size:11px;font-weight:600}.badge.green{background:#e5faf3;color:#008663}.badge.red{background:#fff0f3;color:#d22c50}.badge.gold{background:#fff6df;color:#a26a00}
.question-shell{max-width:820px;margin:0 auto}.question-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.timer{font-weight:700;color:var(--red);font-size:18px}.question-card{background:#fff;border:1px solid #e3d7ec;border-radius:25px;padding:27px;box-shadow:var(--shadow)}.question-card .qtext{font-size:19px;font-weight:600;line-height:1.65}.question-card img{display:block;max-width:100%;max-height:420px;margin:18px auto;border-radius:15px}.options{display:grid;gap:10px;margin-top:18px}.option{display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1.5px solid #e5dbe9;border-radius:16px;padding:14px;cursor:pointer}.option:hover{border-color:#b996dd;background:#fcf9ff}.option.selected{border-color:var(--purple);background:#f3eaff}.option .letter{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#f1e7ff;color:var(--purple);font-weight:700}.question-actions{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.answer-box{margin-top:16px;padding:16px;border-radius:16px;background:#f5f1f8;display:none}.answer-box.open{display:block}.practice-group{margin-top:25px}.practice-group-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.practice-question{margin-bottom:12px}.practice-question summary{cursor:pointer;font-weight:600;line-height:1.5}.practice-question .answer{margin-top:12px;padding:13px;border-radius:14px;background:#f4ecff}.difficulty-simple{border-left:4px solid var(--green)}.difficulty-medium{border-left:4px solid var(--gold)}.difficulty-hard{border-left:4px solid var(--red)}
.login-page{display:grid;grid-template-columns:1fr .9fr;min-height:calc(100vh - 74px);gap:24px;align-items:center}.login-panel{padding:36px}.login-panel h1{font-size:42px;letter-spacing:-1.6px;margin:10px 0}.login-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}.login-card label{display:block;font-size:13px;font-weight:600;margin:13px 0 6px}.login-card .btn{width:100%;margin-top:15px}.or{display:flex;align-items:center;gap:10px;color:#998b9f;font-size:12px;margin:17px 0}.or:before,.or:after{content:"";height:1px;flex:1;background:var(--line)}.lock-card{text-align:center;padding:44px 25px}.lock-card .lock{font-size:45px}.lock-card h2{margin-bottom:8px}
@media(max-width:900px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}.sprint-card{grid-template-columns:1fr}.login-page{grid-template-columns:1fr}.login-panel{display:none}.cx-menu{display:block}.cx-nav{display:none;position:absolute;top:68px;left:16px;right:16px;padding:12px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.cx-nav.open{display:grid}.cx-nav a{padding:12px}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.cx-main{width:min(100% - 22px,1180px);padding-top:16px}.cx-topbar{padding:0 14px;height:64px}.cx-brand{font-size:20px}.cx-brand-mark{width:35px;height:35px}.hero{padding:28px 23px;border-radius:25px}.hero h1{letter-spacing:-1.5px}.hero p{font-size:15px}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.action-card{min-height:135px}.section-head{align-items:flex-start;flex-direction:column}.page-head{align-items:flex-start;flex-direction:column}.list-card{align-items:flex-start;flex-wrap:wrap}.question-card{padding:20px}.sprint-card{padding:18px}.sprint-burst{min-height:145px}.cx-footer{flex-direction:column}.filters{display:grid;width:100%}.filters .field{width:100%}.login-card{padding:22px}.stats{grid-template-columns:1fr 1fr}}

/* CoreXMath web v1.2 — calm academic palette */
:root{--ink:#0f172a;--muted:#64748b;--purple:#2563eb;--purple2:#0ea5e9;--pink:#0f9f87;--green:#059669;--red:#dc3755;--gold:#e89212;--blue:#2563eb;--paper:#f6f8fc;--line:#dfe7f1;--shadow:0 14px 38px rgba(15,23,42,.07)}
body{background:linear-gradient(180deg,#fff 0,#f7f9fc 52%,#f3f6fa 100%)}
.cx-topbar{padding-left:max(22px,calc((100vw - 1280px)/2));padding-right:max(22px,calc((100vw - 1280px)/2));border-bottom-color:#e5eaf1;box-shadow:0 3px 18px rgba(15,23,42,.025)}
.cx-brand>span:last-child span{color:#2563eb}.cx-brand-mark{background:linear-gradient(145deg,#0f172a,#2563eb);box-shadow:0 8px 18px rgba(37,99,235,.18)}
.cx-nav a{color:#475569}.cx-nav a:hover,.cx-nav a.active{background:#eff6ff;color:#1d4ed8}.cx-nav .nav-login{background:#0f172a;color:#fff;box-shadow:none}
.cx-main,.cx-footer{width:min(1280px,calc(100% - 40px))}.cx-footer{color:#64748b}
.hero{background:linear-gradient(135deg,#fff 0%,#f5f9ff 58%,#eefbf8 100%);color:#0f172a;border:1px solid #dce6f1;box-shadow:0 20px 60px rgba(15,23,42,.075)}
.hero:before{background:radial-gradient(circle,#93c5fd 0,#bfdbfe 48%,rgba(219,234,254,0) 72%);opacity:.55}.hero:after{background:radial-gradient(circle,#6ee7b7 0,#a7f3d0 48%,rgba(209,250,229,0) 72%);opacity:.45}
.hero .eyebrow{background:#eaf2ff;color:#1d4ed8;border:1px solid #dbeafe}.hero h1{color:#0f172a}.hero p{color:#526176}.hero .btn-white{background:#2563eb;color:#fff;box-shadow:0 10px 25px rgba(37,99,235,.2)}.hero .btn-glass{background:#fff;color:#1e40af;border:1px solid #cbdcf4}
.btn-primary{background:#2563eb;color:#fff;box-shadow:0 9px 22px rgba(37,99,235,.17)}.btn-soft{background:#eff6ff;color:#1d4ed8}.btn-green{background:#e8f8f3;color:#047857}
.card{border-color:#dfe7f1}.action-card{background:#fff}.action-card:hover{box-shadow:0 18px 44px rgba(15,23,42,.1)}.action-card .go{color:#2563eb}
.tint-pink,.tint-purple,.tint-blue,.tint-green,.tint-gold{background:#fff}.tint-pink .icon{background:#fff7ed;color:#ea580c}.tint-purple .icon{background:#eff6ff;color:#2563eb}.tint-blue .icon{background:#ecfeff;color:#0891b2}.tint-green .icon{background:#ecfdf5;color:#059669}.tint-gold .icon{background:#fffbeb;color:#d97706}
.path-card{box-shadow:0 18px 40px rgba(15,23,42,.09)}.path-card.core{background:linear-gradient(135deg,#173f9b 0%,#2563eb 58%,#168ed8 100%)}.path-card.extended{background:linear-gradient(135deg,#075f56 0%,#0f9f87 58%,#16a979 100%)}.path-card .btn-glass{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.32);color:#fff}
.sprint-card{background:linear-gradient(125deg,#0b1220,#111c31 64%,#123448);border-color:#24364e;color:#fff;box-shadow:0 20px 50px rgba(15,23,42,.17)}.sprint-card p{color:#c7d2e0}.sprint-card .badge{background:rgba(52,211,153,.12);color:#7ee5bd}.sprint-card .btn-primary{background:#22c55e;color:#052e20;box-shadow:none}.sprint-burst{background:radial-gradient(circle at 28% 20%,#34d399,#0ea5e9 48%,#1d4ed8 100%);box-shadow:0 18px 42px rgba(14,165,233,.2)}
.progress{background:#e7edf4}.progress>span{background:linear-gradient(90deg,#2563eb,#0ea5e9)}.notice{background:#eff6ff;color:#1e40af}.tab{color:#526176}.tab.active{background:#eaf2ff;color:#1d4ed8;border-color:#bfdbfe}.field{border-color:#cfd9e6}.field:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
.badge{background:#eff6ff;color:#1d4ed8}.question-card{border-color:#dce4ee}.option{border-color:#dce4ee}.option:hover{border-color:#93b4e8;background:#f8fbff}.option.selected{border-color:#2563eb;background:#eff6ff}.option .letter{background:#eaf2ff;color:#1d4ed8}.practice-question .answer{background:#eff6ff}
body[data-page="quiz"] .hero{background:linear-gradient(135deg,#0b1830,#173f9b 58%,#1677c8);color:#fff;border-color:#204f9e}.hero p,body[data-page="quiz"] .hero p{color:#526176}body[data-page="quiz"] .hero p{color:#dbeafe}body[data-page="quiz"] .hero .eyebrow{background:rgba(255,255,255,.12);color:#dbeafe;border-color:rgba(255,255,255,.2)}
body[data-page="sprint"] .hero{background:linear-gradient(135deg,#07111f,#10263a 60%,#0d4c50);color:#fff;border-color:#173b4b}body[data-page="sprint"] .hero p{color:#cbd5e1}body[data-page="sprint"] .hero .eyebrow{background:rgba(52,211,153,.12);color:#86efac;border-color:rgba(52,211,153,.2)}
body[data-page="quiz"] .hero h1,body[data-page="sprint"] .hero h1{color:#fff}
body[data-page="assessments"] .hero{background:linear-gradient(135deg,#fff,#f4f9ff 64%,#effcf8);color:#0f172a}
@media(max-width:620px){.cx-main{width:min(100% - 22px,1280px)}.hero{padding:29px 23px}.sprint-card{background:linear-gradient(145deg,#0b1220,#123448)}}

/* v1.3 — educational practice workspace */
.hero h1{font-size:clamp(32px,3.2vw,47px);line-height:1.06;letter-spacing:-1.7px}.hero p{font-size:16px}.section-head h2{font-size:22px}.path-card h3{font-size:23px}.sprint-card h2{font-size:26px}
body[data-page="practice"]{background:#f5f7fa}body[data-page="practice"] .cx-main{max-width:1120px}body[data-page="practice"] .page-head{margin:6px 0 18px}body[data-page="practice"] .page-head h1{font-size:27px;letter-spacing:-.6px}body[data-page="practice"] .page-head p{font-size:14px}
body[data-page="practice"]>.cx-topbar{background:rgba(255,255,255,.97)}body[data-page="practice"] .filters{display:grid;grid-template-columns:1fr 1.35fr 1.15fr auto;gap:10px}body[data-page="practice"] .filters .field{width:100%;min-width:0}body[data-page="practice"] .cx-main>section.card{padding:16px;border-radius:16px;box-shadow:0 7px 25px rgba(15,23,42,.045)}
.practice-filter-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 2px 13px}.practice-filter-intro div{display:grid;gap:3px}.practice-filter-intro span{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#6d28d9}.practice-filter-intro strong{font-size:14px;font-weight:600;color:#172033}.practice-filter-intro small{padding:6px 10px;border-radius:999px;background:#f3e8ff;color:#7e22ce;font-size:11px}.practice-loading{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px 15px;border:1px solid #d8e5f4;border-radius:13px;background:#f8fbff;color:#506176;font-size:13px}.practice-loader{width:17px;height:17px;border:2px solid #d8c7ff;border-top-color:#7c3aed;border-radius:50%;animation:practice-spin .7s linear infinite}@keyframes practice-spin{to{transform:rotate(360deg)}}.practice-card-skeleton{display:grid;gap:15px;max-width:980px;margin:20px auto;padding:28px;border:1px solid #e1e7ef;border-radius:18px;background:#fff}.practice-card-skeleton i{display:block;height:14px;border-radius:8px;background:linear-gradient(90deg,#edf1f6 25%,#f8fafc 45%,#edf1f6 65%);background-size:220% 100%;animation:practice-shimmer 1.2s linear infinite}.practice-card-skeleton i:nth-child(1){width:38%}.practice-card-skeleton i:nth-child(2){width:82%;height:20px}.practice-card-skeleton i:nth-child(3){width:58%}@keyframes practice-shimmer{to{background-position:-220% 0}}
.practice-retry{margin-left:8px;padding:5px 10px;border:1px solid #b9c8dc;border-radius:8px;background:#fff;color:#1d4ed8;font:inherit;font-weight:600;cursor:pointer}.practice-retry:hover{border-color:#7c3aed;color:#6d28d9}
.practice-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0 20px;padding:11px 15px;border:1px solid #d8e3f2;border-radius:13px;background:linear-gradient(90deg,#f5f8ff,#fbf8ff);color:#536278;font-size:13px}.practice-summary span+span{padding-left:18px;border-left:1px solid #d8e0ec}.practice-summary strong{color:#174ea6}.practice-summary b{color:#7c3aed}.practice-ready{display:flex;align-items:center;gap:7px;color:#166534;font-weight:600}.practice-ready i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#dcfce7;font-style:normal}
.practice-workspace{max-width:980px;margin:0 auto}.practice-number-nav{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 14px;scrollbar-width:thin}.practice-number{width:43px;height:43px;flex:0 0 43px;border:1px solid #d4dde8;border-radius:10px;background:#fff;color:#334155;font-size:15px;font-weight:600;cursor:pointer;transition:.15s ease}.practice-number:hover{border-color:#8bb2ef;background:#f7fbff}.practice-number.seen{border-color:#b8cdec}.practice-number.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 0 0 4px #dbeafe}
.practice-exam-card{position:relative;overflow:hidden;background:#fff;border:1px solid #d9e2ee;border-radius:20px;box-shadow:0 16px 40px rgba(30,41,59,.075)}.practice-exam-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#2563eb,#7c3aed,#db2777)}.practice-card-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid #e6ebf1;background:linear-gradient(90deg,#fbfdff,#fdfbff)}.practice-q-number{display:flex;align-items:center;gap:9px}.practice-q-number span{font-size:13px;color:#64748b;font-weight:700}.practice-q-number strong{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf2ff;color:#1d4ed8;font-size:15px}.practice-meta{display:flex;align-items:center;gap:12px;color:#475569;font-size:13px;font-weight:700}.difficulty-label{padding:5px 9px;border-radius:999px}.difficulty-label.simple{background:#ecfdf5;color:#047857}.difficulty-label.medium{background:#fffbeb;color:#a16207}.difficulty-label.hard{background:#fff1f2;color:#be123c}
.practice-question-body{min-height:145px;padding:29px 30px 31px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#111827;font-size:17px;line-height:1.72}.practice-main-text{max-width:850px}.practice-main-text>p:first-child{margin-top:0}.practice-main-text>p:last-child{margin-bottom:0}.math-content p{margin:.55em 0}.math-content table{border-collapse:collapse;margin:18px auto;max-width:100%;font-size:15px}.math-content td,.math-content th{padding:7px 11px;border:1px solid #9aa8b8;text-align:center}.practice-diagram{display:block;max-width:min(100%,620px);max-height:440px;object-fit:contain;margin:24px auto 3px}.practice-subquestion{margin-top:20px;padding:18px 18px 2px;border-top:1px dashed #d9e1ea;background:#fbfcff;border-radius:12px}.practice-subquestion>strong{display:inline-block;margin-right:9px;color:#1d4ed8}
.practice-answer-panel{padding:24px 30px;border-top:1px solid #d6e9df;background:#f4fbf7}.answer-heading{display:flex;align-items:center;gap:11px;margin-bottom:16px}.answer-heading>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d1fae5;color:#047857;font-weight:700}.answer-heading small,.answer-explanation>small{display:block;color:#047857;font-size:10px;font-weight:700;letter-spacing:1.1px}.answer-heading strong{display:block;margin-top:2px;font-size:15px;color:#173e31}.answer-value{color:#102d24;font-size:16px;line-height:1.65}.answer-explanation{margin-top:18px;padding-top:16px;border-top:1px solid #cee5d7;color:#334155}.answer-explanation>small{margin-bottom:7px}
.practice-card-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #e6ebf1;background:#fbfcfe}.practice-card-actions #practicePrev{justify-self:start}.practice-card-actions #practiceNext{justify-self:end}.practice-answer-btn{min-width:135px;border:1px solid #2563eb;background:#fff;color:#1d4ed8}.practice-answer-btn:hover,.practice-answer-btn.open{background:#eff6ff}
@media(max-width:800px){body[data-page="practice"] .filters{grid-template-columns:1fr 1fr}body[data-page="practice"] .filters .btn{width:100%}.practice-summary{gap:8px 14px}.practice-summary span+span{padding-left:0;border-left:0}.practice-question-body{padding:25px 22px;font-size:16px}.practice-card-actions{grid-template-columns:1fr 1fr}.practice-answer-btn{grid-column:1/-1;grid-row:1}.practice-card-actions #practicePrev{grid-column:1;grid-row:2}.practice-card-actions #practiceNext{grid-column:2;grid-row:2}}
@media(max-width:520px){body[data-page="practice"] .filters{grid-template-columns:1fr}.practice-filter-intro{align-items:flex-start}.practice-filter-intro small{display:none}.practice-card-top{padding:15px 17px}.practice-question-body{min-height:125px;padding:22px 18px}.practice-answer-panel{padding:20px 18px}.practice-card-actions{padding:14px}.practice-number{width:40px;height:40px;flex-basis:40px}.hero h1{font-size:31px}}

.landing-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:42px;align-items:center;padding:34px 38px}.landing-hero h1{margin:13px 0 12px;max-width:650px;font-size:clamp(34px,3.4vw,49px);line-height:1.03}.landing-hero .landing-intro>p{max-width:630px;font-size:15px;line-height:1.65}.learning-roadmap{position:relative;z-index:2;padding:23px 24px;background:rgba(255,255,255,.88);border:1px solid #d9e5f1;border-radius:20px;box-shadow:0 13px 36px rgba(15,23,42,.065)}.roadmap-kicker{font-size:10px;font-weight:700;letter-spacing:1.25px;color:#2563eb}.learning-roadmap h2{margin:7px 0 17px;font-size:19px;letter-spacing:-.35px}.learning-roadmap ol{display:grid;gap:0;margin:0;padding:0;list-style:none}.learning-roadmap li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e8edf3}.learning-roadmap li>span{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:9px;background:#eef5ff;color:#1d4ed8;font-size:12px;font-weight:700}.learning-roadmap li strong{display:block;font-size:13px;color:#172033}.learning-roadmap li small{display:block;margin-top:2px;color:#718096;font-size:11px}.landing-hero .hero-actions{margin-top:20px}
@media(max-width:880px){.landing-hero{grid-template-columns:1fr;gap:23px}.learning-roadmap{display:none}}

/* v1.4 — unified CoreXMath layout and navigation drawer */
body{font-weight:400;color:#172033}.cx-brand{font-size:20px;font-weight:700;letter-spacing:-.3px}.cx-brand-mark{width:35px;height:35px;border-radius:10px;font-size:10px}.cx-topbar{height:64px;gap:12px}.cx-menu{display:grid;place-items:center;width:38px;height:38px;margin:0;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:#334155;font-size:18px;cursor:pointer}.top-page-name{margin-left:8px;color:#6b7789;font-size:13px}.top-account{margin-left:auto;padding:9px 14px;border-radius:10px;background:#0f172a;color:#fff;font-size:12px;font-weight:600}
h1,h2,h3,.page-head h1,.hero h1,.path-card h3,.sprint-card h2{font-weight:600}.page-head h1{font-size:26px}.card h3{font-weight:500}.btn{font-weight:600}.badge,.eyebrow,.tab{font-weight:600}.section-head h2{font-weight:600}.action-card .go{font-weight:500}

/* Resource library */
.library-hero{display:flex;align-items:center;gap:22px;padding:27px 30px;margin-bottom:16px;border:1px solid #dce5f0;border-radius:24px;background:linear-gradient(115deg,#fff 0%,#f6f3ff 58%,#fff1fa 100%);box-shadow:0 15px 40px rgba(39,29,73,.07)}
.library-hero-icon{display:grid;place-items:center;flex:0 0 66px;height:66px;border-radius:20px;background:linear-gradient(135deg,#7928e8,#e638ab);color:#fff;font-size:28px;box-shadow:0 10px 24px rgba(121,40,232,.2)}
.library-eyebrow,.library-toolbar-label{display:block;color:#7626db;font-size:10px;font-weight:700;letter-spacing:1.5px}.library-hero h1{margin:6px 0 5px;font-size:27px;font-weight:600;letter-spacing:-.6px}.library-hero p{margin:0;color:var(--muted)}
.resource-switcher{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.resource-switch{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid #dbe3ed;border-radius:16px;background:#fff;color:var(--ink);transition:.18s ease}.resource-switch:hover{transform:translateY(-2px);border-color:#c8b4eb;box-shadow:0 8px 22px rgba(51,39,81,.08)}.resource-switch>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f4effd;color:#7928e8;font-size:18px}.resource-switch strong,.resource-switch small{display:block}.resource-switch strong{font-size:14px;font-weight:600}.resource-switch small{margin-top:2px;color:var(--muted);font-size:11px}.resource-switch.active{border-color:#a778e8;background:#f8f3ff;box-shadow:inset 0 -3px #7928e8}.resource-switch.active>span{color:#fff;background:linear-gradient(135deg,#7928e8,#e638ab)}
.library-browser{padding:22px;border:1px solid #dce4ed;border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(36,45,68,.06)}.library-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #e5eaf1}.library-levels{display:flex;gap:9px;margin-top:8px}.library-levels button{display:flex;align-items:center;gap:10px;min-width:190px;padding:10px 13px;border:1px solid #dbe3ed;border-radius:14px;background:#fff;text-align:left;color:var(--ink);cursor:pointer}.library-levels button>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#edf3ff;color:#215fe8;font-weight:700}.library-levels strong,.library-levels small{display:block}.library-levels strong{font-size:14px;font-weight:600}.library-levels small{margin-top:2px;color:var(--muted);font-size:10px}.library-levels button.active{border-color:#9d70e3;background:#faf7ff;box-shadow:0 5px 15px rgba(121,40,232,.08)}.library-levels button.active>span{background:linear-gradient(135deg,#7928e8,#e638ab);color:#fff}.library-count{display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:#f6f2fb;color:#685776;font-size:12px}.library-count>span{width:8px;height:8px;border-radius:50%;background:#1dbf82}.library-count.error{background:#fff0f3;color:#c4264c}.library-count.error>span{background:#e43c61}.library-content-head{display:flex;justify-content:space-between;align-items:center;padding:22px 2px 14px}.library-content-head h2{margin:0;font-size:20px;font-weight:600}.library-content-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.library-folder-card{display:flex;align-items:center;gap:14px;min-height:124px;padding:18px;border:1px solid #dce4ed;border-radius:18px;background:linear-gradient(145deg,#fff,#fbfcff);color:var(--ink);text-align:left;cursor:pointer;transition:.18s ease}.library-folder-card:hover{transform:translateY(-3px);border-color:#b99ae9;box-shadow:0 12px 25px rgba(58,40,94,.09)}.library-folder-icon{display:grid;place-items:center;align-self:flex-start;flex:0 0 43px;height:43px;border-radius:13px;background:#f2eaff;color:#7928e8;font-size:18px;font-weight:600}.library-folder-card>div{min-width:0;flex:1}.library-folder-card small{color:#8b6fa3;font-size:9px;font-weight:700;letter-spacing:1.1px}.library-folder-card h3{margin:5px 0 4px;font-size:15px;font-weight:600}.library-folder-card p{margin:0;color:var(--muted);font-size:11px}.library-folder-card>b{align-self:flex-end;color:#7626db;font-size:11px;font-weight:600;white-space:nowrap}.library-folder-card>b span{margin-left:3px}.library-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1}.library-back{grid-column:1/-1;width:max-content;margin-bottom:2px;padding:8px 12px;border:0;border-radius:10px;background:#f3eef9;color:#6c27c5;font-weight:600;cursor:pointer}.library-file-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:16px;border:1px solid #dce4ed;border-radius:17px;background:#fff}.library-file-icon{display:grid;place-items:center;width:42px;height:48px;border-radius:10px;background:#fff0f5;color:#de2168;font-size:10px;font-weight:700}.library-file-card h3{margin:0 0 4px;font-size:14px;font-weight:600}.library-file-card p{margin:0;color:var(--muted);font-size:10px}.library-open,.paper-question,.paper-answer{padding:9px 11px;border-radius:10px;font-size:11px;font-weight:600;white-space:nowrap}.library-open{background:#f2eaff;color:#7021d5}.library-paper-card{grid-column:1/-1;display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:16px;padding:17px;border:1px solid #dce4ed;border-radius:18px;background:linear-gradient(90deg,#fff,#fcfaff)}.paper-number{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,#7928e8,#e638ab);color:#fff;font-size:16px;font-weight:600}.paper-copy span{color:#8a6d9f;font-size:9px;font-weight:700;letter-spacing:1px}.paper-copy h3{margin:4px 0;font-size:15px;font-weight:600}.paper-copy p{margin:0;color:var(--muted);font-size:10px}.paper-actions{display:flex;gap:8px}.paper-question{background:#7626db;color:#fff}.paper-answer{border:1px solid #cdb8eb;background:#fff;color:#7021d5}.library-empty{grid-column:1/-1;padding:44px 20px;border:1px dashed #cfd9e5;border-radius:18px;text-align:center;background:#fafbfd}.library-empty>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 10px;border-radius:14px;background:#f2eaff;color:#7626db;font-weight:700}.library-empty h3{margin:0 0 5px;font-size:16px}.library-empty p{margin:0;color:var(--muted);font-size:12px}.library-loading{grid-column:1/-1;display:flex;justify-content:center;gap:7px;padding:50px}.library-loading span{width:9px;height:9px;border-radius:50%;background:#8d45de;animation:libraryPulse .8s infinite alternate}.library-loading span:nth-child(2){animation-delay:.2s}.library-loading span:nth-child(3){animation-delay:.4s}@keyframes libraryPulse{to{opacity:.25;transform:translateY(-5px)}}
@media(max-width:850px){.resource-switcher{grid-template-columns:repeat(2,1fr)}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-toolbar{align-items:flex-start;flex-direction:column}.library-files{grid-template-columns:1fr}}
@media(max-width:560px){.library-hero{padding:20px;align-items:flex-start}.library-hero-icon{flex-basis:48px;height:48px;border-radius:15px;font-size:21px}.library-hero h1{font-size:21px}.resource-switcher{grid-template-columns:1fr 1fr}.resource-switch{padding:10px}.resource-switch>span{width:32px;height:32px}.resource-switch small{display:none}.library-browser{padding:15px}.library-levels{width:100%}.library-levels button{min-width:0;flex:1}.library-levels button small{display:none}.library-grid{grid-template-columns:1fr}.library-folder-card{min-height:108px}.library-paper-card{grid-template-columns:45px 1fr}.paper-number{width:43px;height:43px}.paper-actions{grid-column:1/-1}.paper-actions a{flex:1;text-align:center}.library-file-card{grid-template-columns:auto 1fr}.library-open{grid-column:1/-1;text-align:center}}
.stat small{font-weight:450}.stat strong,.sprint-burst strong{font-weight:600}.timer{font-weight:600}.question-card .qtext{font-weight:450}.option .letter{font-weight:500}.login-panel h1{font-weight:600}.practice-question summary{font-weight:500}.practice-q-number strong,.practice-meta,.practice-number{font-weight:500}
.drawer-backdrop{position:fixed;inset:0;z-index:89;background:rgba(15,23,42,.34);opacity:0;pointer-events:none;transition:opacity .2s ease}.drawer-backdrop.open{opacity:1;pointer-events:auto}.cx-drawer{position:fixed;left:0;top:0;bottom:0;z-index:90;width:min(330px,88vw);display:flex;flex-direction:column;background:#fff;border-right:1px solid #dfe6ef;box-shadow:22px 0 60px rgba(15,23,42,.16);transform:translateX(-103%);transition:transform .22s ease}.cx-drawer.open{transform:translateX(0)}body.drawer-open{overflow:hidden}.drawer-head{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #e7ebf1}.drawer-head button{width:34px;height:34px;border:0;border-radius:9px;background:#f1f5f9;color:#475569;font-size:24px;line-height:1;cursor:pointer}.drawer-user{margin:16px 16px 8px;padding:13px 14px;border-radius:12px;background:#f4f7fb}.drawer-user small{display:block;margin-bottom:3px;color:#738095;font-size:9px;font-weight:700;letter-spacing:1px}.drawer-user strong{font-size:13px;font-weight:600}.drawer-nav{overflow-y:auto;padding:4px 12px 18px}.drawer-nav>small{display:block;padding:14px 9px 6px;color:#8a96a8;font-size:9px;font-weight:700;letter-spacing:1.1px}.drawer-nav a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:9px;color:#344054;font-size:13px;font-weight:500}.drawer-nav a:hover{background:#eff6ff;color:#1d4ed8}.drawer-nav a>span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:#f1f5f9;color:#426079;font-size:12px;font-weight:600}.drawer-nav a:hover>span{background:#dbeafe;color:#1d4ed8}.drawer-foot{margin-top:auto;padding:14px 16px 18px;border-top:1px solid #edf0f4}.drawer-foot .btn{width:100%}.drawer-foot>a:not(.btn){display:block;text-align:center;color:#475569;font-size:13px}
.home-shell{width:min(1180px,calc(100% - 36px));padding:24px 0 38px}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:21px 24px;border:1px solid #dce5ef;border-radius:17px;background:linear-gradient(115deg,#fff,#f3f8ff 66%,#eefbf7);box-shadow:0 9px 28px rgba(15,23,42,.045)}.home-label{color:#1d4ed8;font-size:9px;font-weight:700;letter-spacing:1.1px}.home-welcome h1{margin:6px 0 5px;font-size:26px;font-weight:600;letter-spacing:-.7px}.home-welcome p{margin:0;color:#607086;font-size:13px}.home-entry{display:flex;gap:9px;flex:0 0 auto}.home-entry .btn{padding:11px 15px;font-size:12px}.home-section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:22px 1px 12px}.home-section-title h2{margin:0;font-size:19px;font-weight:600}.home-section-title p{margin:3px 0 0;color:#758196;font-size:12px}.home-section-title>span{color:#7b8799;font-size:11px}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.module-tile{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:82px;padding:13px 14px;border:1px solid #dfe6ee;border-radius:13px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.035);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.module-tile:hover{transform:translateY(-2px);border-color:#b8cce7;box-shadow:0 10px 22px rgba(15,23,42,.07)}.module-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f1f5f9;color:#31506f;font-size:15px;font-weight:600}.module-tile h3{margin:0 0 3px;color:#172033;font-size:14px;font-weight:600}.module-tile p{margin:0;color:#748196;font-size:11px;line-height:1.35}.module-tile>b{color:#8a99ab;font-size:14px;font-weight:500}.module-core{border-left:3px solid #2563eb}.module-core .module-icon{background:#eaf2ff;color:#1d4ed8}.module-extended{border-left:3px solid #0f9f87}.module-extended .module-icon{background:#e9faf5;color:#087d6c}.module-sprint{border-left:3px solid #f59e0b}.module-sprint .module-icon{background:#fff7e5;color:#c67206}.module-teacher{background:#f8fafc}.module-teacher .module-icon{background:#e8eef6;color:#334155}
.dashboard-welcome{margin-top:0}body[data-page="dashboard"] .cx-main{width:min(1180px,calc(100% - 36px));padding:24px 0 38px}body[data-page="dashboard"] .stats{margin-top:12px!important}body[data-page="dashboard"] .stat{padding:12px 15px;border-radius:12px;box-shadow:none}body[data-page="dashboard"] .stat strong{font-size:20px;margin-top:3px}
@media(max-width:850px){.top-page-name{display:none}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-welcome{align-items:flex-start;flex-direction:column}.home-entry{width:100%}.home-entry .btn{flex:1}.home-section-title>span{display:none}}
@media(max-width:540px){.cx-topbar{padding:0 12px}.cx-brand{font-size:18px}.top-account{padding:8px 10px}.home-shell{width:min(100% - 20px,1180px);padding-top:14px}.home-welcome{padding:18px}.home-welcome h1{font-size:22px}.home-entry{display:grid}.module-grid{grid-template-columns:1fr}.module-tile{min-height:74px}.drawer-user{margin-top:12px}}

/* v1.5 — featured learning paths and Math Sprint streak */
.primary-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.primary-path{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 68px;grid-template-rows:1fr auto;gap:10px 18px;min-height:164px;padding:21px 22px 17px;overflow:hidden;border:1px solid;border-radius:17px;box-shadow:0 9px 24px rgba(15,23,42,.055);transition:transform .18s ease,box-shadow .18s ease}.primary-path:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(15,23,42,.09)}.primary-core{background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 60%,#e6f0ff 100%);border-color:#bfd5f7}.primary-extended{background:linear-gradient(135deg,#f8fffc 0%,#edf9f5 60%,#e2f6ef 100%);border-color:#b9dfd2}.path-label{display:inline-block;margin-bottom:7px;font-size:9px;font-weight:700;letter-spacing:1.15px}.primary-core .path-label{color:#1d4ed8}.primary-extended .path-label{color:#087d6c}.primary-path h3{margin:0 0 5px;color:#13213a;font-size:19px;font-weight:600;letter-spacing:-.25px}.primary-path p{margin:0;color:#607087;font-size:12px}.path-emblem{display:grid;place-items:center;width:62px;height:62px;align-self:start;border-radius:18px;font-size:24px;font-weight:600;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}.primary-core .path-emblem{background:linear-gradient(145deg,#dbeafe,#bfdbfe);color:#1d4ed8}.primary-extended .path-emblem{background:linear-gradient(145deg,#d1fae5,#a7f3d0);color:#087d6c}.path-steps{display:flex;align-items:center;gap:6px;margin-top:14px}.path-steps span{padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.8);color:#52637a;font-size:9px;font-weight:600}.path-steps i{color:#8aa0b8;font-size:9px;font-style:normal}.primary-path>b{grid-column:1/-1;padding-top:11px;border-top:1px solid rgba(74,105,145,.16);color:#1d4ed8;font-size:11px;font-weight:600}.primary-extended>b{color:#087d6c}
.streak-feature{display:grid;grid-template-columns:48px minmax(0,1fr) 84px auto;align-items:center;gap:16px;margin-top:12px;padding:14px 18px;border:1px solid #243953;border-radius:16px;background:linear-gradient(110deg,#0c1729 0%,#10233a 62%,#123b43 100%);color:#fff;box-shadow:0 11px 28px rgba(15,23,42,.14);transition:transform .18s ease,box-shadow .18s ease}.streak-feature:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.19)}.streak-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#fbbf24,#f97316);color:#fff;font-size:21px;box-shadow:0 8px 20px rgba(249,115,22,.22)}.streak-copy>span{color:#6ee7b7;font-size:9px;font-weight:700;letter-spacing:1.2px}.streak-copy h3{margin:3px 0;color:#fff;font-size:16px;font-weight:600}.streak-copy p{margin:0;color:#aebdce;font-size:11px}.streak-time{display:grid;place-items:center;padding:7px 11px;border-left:1px solid rgba(255,255,255,.13);border-right:1px solid rgba(255,255,255,.13)}.streak-time strong{font-size:23px;font-weight:600;line-height:1;color:#67e8f9}.streak-time small{margin-top:3px;color:#91a5ba;font-size:8px;font-weight:600;letter-spacing:.8px}.streak-feature>b{padding:9px 12px;border-radius:9px;background:#22c55e;color:#062b1c;font-size:11px;font-weight:600;white-space:nowrap}.compact-title{margin-top:18px}
.secondary-modules .module-tile{min-height:76px}.secondary-modules .module-tile:nth-child(1) .module-icon{background:#fff1f2;color:#be123c}.secondary-modules .module-tile:nth-child(2) .module-icon{background:#f3e8ff;color:#7e22ce}.secondary-modules .module-tile:nth-child(3) .module-icon{background:#fffbeb;color:#b45309}.secondary-modules .module-tile:nth-child(4) .module-icon{background:#ecfeff;color:#0e7490}.secondary-modules .module-tile:nth-child(5) .module-icon{background:#eff6ff;color:#1d4ed8}.secondary-modules .module-tile:nth-child(6) .module-icon{background:#f0fdf4;color:#15803d}.secondary-modules .module-tile:nth-child(7) .module-icon{background:#fff7ed;color:#c2410c}.secondary-modules .module-tile:nth-child(8) .module-icon{background:#ecfdf5;color:#047857}.secondary-modules .module-tile:nth-child(9) .module-icon{background:#f1f5f9;color:#334155}
@media(max-width:760px){.primary-path-grid{grid-template-columns:1fr}.streak-feature{grid-template-columns:44px minmax(0,1fr) auto}.streak-time{display:none}.streak-icon{width:44px;height:44px}.primary-path{min-height:152px}}
@media(max-width:500px){.primary-path{grid-template-columns:minmax(0,1fr) 52px;padding:18px}.path-emblem{width:50px;height:50px;border-radius:14px;font-size:20px}.path-steps{gap:4px}.path-steps span{padding:4px 6px}.streak-feature{grid-template-columns:42px minmax(0,1fr);padding:13px}.streak-feature>b{grid-column:1/-1;text-align:center}.streak-copy h3{font-size:14px}}

/* v1.6 — CoreXMath app colour identity */
:root{--purple:#7c2ae8;--purple2:#a43bea;--pink:#ef3da9;--gold:#ffc83d}
.cx-brand>span:last-child span{color:#7c2ae8}.cx-brand-mark{background:linear-gradient(145deg,#6425d5,#a13bea);box-shadow:0 8px 20px rgba(124,42,232,.22)}.btn-primary{background:linear-gradient(135deg,#7629e6,#ef3da9);box-shadow:0 9px 22px rgba(140,43,220,.2)}.btn-soft{background:#f4ecff;color:#7026d2}.home-label{color:#7c2ae8}.home-welcome{border-color:#e7dcf3;background:linear-gradient(115deg,#fff 0%,#faf6ff 62%,#fff2fa 100%)}.drawer-nav a:hover{background:#f5edff;color:#7128d1}.drawer-nav a:hover>span{background:#eadcff;color:#7128d1}
.primary-core{background:linear-gradient(135deg,#ffdc69 0%,#ffc83d 62%,#ffbd32 100%);border-color:#f3bd30;box-shadow:0 10px 25px rgba(210,148,10,.15)}.primary-core .path-label{color:#704400}.primary-core .path-emblem{background:rgba(255,255,255,.48);color:#6d4000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.56)}.primary-core h3{color:#2f2209}.primary-core p{color:#604a1b}.primary-core .path-steps span{background:rgba(255,255,255,.57);color:#60430a}.primary-core .path-steps i{color:#86641e}.primary-core>b{border-color:rgba(99,68,4,.17);color:#503400}
.primary-extended{background:linear-gradient(135deg,#f43cab 0%,#ce3cdb 52%,#9238ec 100%);border-color:#d43bcf;box-shadow:0 10px 28px rgba(187,49,209,.18)}.primary-extended .path-label{color:#fff}.primary-extended .path-emblem{background:rgba(255,255,255,.18);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}.primary-extended h3{color:#fff}.primary-extended p{color:rgba(255,255,255,.86)}.primary-extended .path-steps span{background:rgba(255,255,255,.17);color:#fff}.primary-extended .path-steps i{color:rgba(255,255,255,.72)}.primary-extended>b{border-color:rgba(255,255,255,.24);color:#fff}
.streak-feature{border-color:#e7baf2;background:linear-gradient(110deg,#fff7fc 0%,#fbedff 57%,#f3e7ff 100%);color:#241631;box-shadow:0 10px 27px rgba(151,51,205,.12)}.streak-feature:hover{box-shadow:0 16px 34px rgba(151,51,205,.18)}.streak-icon{background:linear-gradient(145deg,#f43eb1,#8e32ed);color:#fff;box-shadow:0 8px 20px rgba(180,49,216,.22)}.streak-copy>span{color:#8a2cdd}.streak-copy h3{color:#261832}.streak-copy p{color:#725e7c}.streak-time{border-color:rgba(127,42,195,.15)}.streak-time strong{color:#8b2de0}.streak-time small{color:#8b72a0}.streak-feature>b{background:linear-gradient(135deg,#7c2ae8,#a738e9);color:#fff;box-shadow:0 7px 16px rgba(124,42,232,.2)}

/* v1.7 — premium homepage, sign-in and unified question media */
.primary-core,.primary-extended{min-height:190px;color:#fff;border:0;isolation:isolate;box-shadow:0 18px 38px rgba(15,23,42,.16)}
.primary-core:before,.primary-extended:before{content:"";position:absolute;z-index:-1;width:190px;height:190px;right:-65px;top:-85px;border-radius:50%;background:rgba(255,255,255,.12)}
.primary-core{background:linear-gradient(135deg,#123a9b 0%,#2563eb 56%,#3b82f6 100%)}.primary-extended{background:linear-gradient(135deg,#4c1d95 0%,#6d28d9 53%,#8b5cf6 100%)}
.primary-core .path-label,.primary-extended .path-label{display:block;margin:0 0 10px;color:#fff;font-size:clamp(21px,2.25vw,30px);font-weight:650;letter-spacing:-.6px;line-height:1.05}.primary-core h3,.primary-extended h3{color:#fff;font-size:17px}.primary-core p,.primary-extended p{color:rgba(255,255,255,.8);font-size:12px}.primary-core .path-emblem,.primary-extended .path-emblem{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}.primary-core .path-steps span,.primary-extended .path-steps span{background:rgba(255,255,255,.14);color:#fff}.primary-core .path-steps i,.primary-extended .path-steps i{color:rgba(255,255,255,.6)}.primary-core>b,.primary-extended>b{border-color:rgba(255,255,255,.22);color:#fff;font-size:12px}
.streak-feature{border-color:#312e81;background:linear-gradient(110deg,#101a3a 0%,#312e81 58%,#5b21b6 100%);color:#fff;box-shadow:0 15px 34px rgba(49,46,129,.2)}.streak-feature:hover{box-shadow:0 20px 40px rgba(49,46,129,.27)}.streak-icon{background:linear-gradient(145deg,#7c3aed,#ec4899)}.streak-copy>span{color:#c4b5fd}.streak-copy h3{color:#fff}.streak-copy p{color:#cbd5e1}.streak-time{border-color:rgba(255,255,255,.15)}.streak-time strong{color:#e9d5ff}.streak-time small{color:#c4b5fd}.streak-feature>b{background:#fff;color:#5b21b6;box-shadow:0 8px 18px rgba(15,23,42,.2)}
.runner-figure{margin:18px 0 4px;padding:14px;border:1px solid #e1e7f0;border-radius:18px;background:#f8fafc;text-align:center}.question-card .runner-figure img{max-height:440px;margin:0 auto;border-radius:12px;object-fit:contain}.runner-figure figcaption{margin-top:8px;color:#64748b;font-size:11px}
.student-login-screen{background:radial-gradient(circle at 12% 14%,#dbeafe 0,transparent 30%),radial-gradient(circle at 88% 80%,#ede9fe 0,transparent 33%),#f8fafc}.login-topbar{background:rgba(255,255,255,.82)}.login-premium{grid-template-columns:1.08fr .72fr;gap:54px;max-width:1120px;min-height:calc(100vh - 74px);padding-block:44px}.login-panel{position:relative;overflow:hidden;padding:48px;border-radius:32px;background:linear-gradient(140deg,#0f2f7f 0%,#214fca 52%,#6d28d9 100%);color:#fff;box-shadow:0 28px 70px rgba(30,64,175,.22)}.login-panel:before{content:"";position:absolute;width:280px;height:280px;right:-90px;top:-120px;border-radius:50%;background:rgba(255,255,255,.11)}.login-kicker{position:relative;color:#bfdbfe;font-size:11px;font-weight:700;letter-spacing:1.5px}.login-panel h1{position:relative;margin:18px 0 16px;font-size:clamp(38px,4.4vw,60px);font-weight:600;line-height:1.02;letter-spacing:-2px}.login-panel h1 em{color:#ddd6fe;font-style:normal}.login-panel>p{position:relative;max-width:520px;color:#dbeafe;font-size:16px;line-height:1.65}.login-benefits{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:38px}.login-benefits>div{padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px)}.login-benefits span,.login-benefits strong,.login-benefits small{display:block}.login-benefits span{margin-bottom:12px;font-size:20px}.login-benefits strong{font-size:13px}.login-benefits small{margin-top:5px;color:#cbd5e1;font-size:10px;line-height:1.35}.login-card{padding:34px;border-color:#dce4f0;border-radius:26px;box-shadow:0 22px 55px rgba(15,23,42,.11)}.login-card-mark{display:grid;place-items:center;width:50px;height:50px;margin-bottom:20px;border-radius:15px;background:linear-gradient(145deg,#1d4ed8,#6d28d9);color:#fff;font-size:13px;font-weight:700;box-shadow:0 10px 24px rgba(79,70,229,.22)}.login-card h2{margin:10px 0 4px;font-size:30px;font-weight:600;letter-spacing:-.8px}.login-intro{margin:0 0 22px;color:#64748b}.login-field-wrap{position:relative}.login-field-wrap>span{position:absolute;left:14px;top:50%;z-index:1;transform:translateY(-50%);color:#6d28d9;font-size:9px}.login-field-wrap .field{padding-left:36px;border-color:#d8e0ec;background:#f8fafc}.login-field-wrap .field:focus{border-color:#4f46e5;background:#fff;box-shadow:0 0 0 4px rgba(79,70,229,.1)}.login-card .btn-primary{background:linear-gradient(135deg,#1d4ed8,#6d28d9)}.login-week-note{margin:17px 0 0;color:#7c8798;font-size:11px;text-align:center}
@media(max-width:900px){.login-premium{grid-template-columns:1fr;max-width:560px}.login-premium .login-panel{display:block;padding:30px}.login-panel h1{font-size:36px}.login-benefits{display:none}}@media(max-width:540px){.primary-core .path-label,.primary-extended .path-label{font-size:22px}.primary-path{min-height:176px}.login-premium{padding-top:20px}.login-premium .login-panel{padding:24px;border-radius:22px}.login-panel h1{font-size:31px}.login-card{padding:24px;border-radius:22px}}

/* v1.8 — calm, compact Resource Library */
body[data-page="resources"]{background:#f6f8fc}body[data-page="resources"] .cx-main{width:min(1120px,calc(100% - 32px));padding-top:24px}
.resource-hub-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:28px;padding:24px 26px;border:1px solid #dce5f0;border-radius:20px;background:linear-gradient(125deg,#fff 0%,#f5f8ff 70%,#f4f0ff 100%);box-shadow:0 10px 30px rgba(15,23,42,.055)}.resource-head-copy{min-width:0}.library-eyebrow{color:#4f46e5;font-size:9px;font-weight:700;letter-spacing:1.4px}.resource-hub-head h1{margin:7px 0 4px;color:#14213a;font-size:24px;font-weight:600;letter-spacing:-.55px}.resource-hub-head p{margin:0;color:#66758a;font-size:12px}.resource-switcher{display:flex;gap:6px}.resource-switch{display:flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;border:1px solid transparent;border-radius:11px;color:#556477;background:transparent;font-size:11px;font-weight:500;transition:.15s ease}.resource-switch>span{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#eef2f8;color:#4c5f76;font-size:11px}.resource-switch:hover{background:#fff;border-color:#dce4ef}.resource-switch.active{border-color:#c8d5ff;background:#fff;color:#3146b8;box-shadow:0 5px 14px rgba(49,70,184,.09)}.resource-switch.active>span{background:#e9edff;color:#4f46e5}
.library-browser{margin-top:12px;padding:20px;border:1px solid #dce4ef;border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.05)}.library-toolbar{align-items:center;padding-bottom:17px;border-color:#e8edf3}.library-toolbar-label{color:#7a8799;font-size:9px;font-weight:700;letter-spacing:1.2px}.library-levels{gap:6px;margin-top:7px;padding:4px;border-radius:13px;background:#f1f4f9}.library-levels button{min-width:200px;padding:7px 10px;border:0;border-radius:10px;background:transparent;box-shadow:none}.library-levels button>span{width:31px;height:31px;border-radius:9px;background:#fff;color:#42546d;font-size:12px}.library-levels button strong{font-size:12px;font-weight:600}.library-levels button small{font-size:9px}.library-levels button.active{border:0;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.08)}.library-levels button.active>span{background:linear-gradient(145deg,#1d4ed8,#6d28d9);color:#fff}.library-count{padding:8px 11px;background:#f4f7fb;color:#65758a;font-size:10px}.library-content-head{padding:18px 2px 11px}.library-content-head h2{font-size:18px;font-weight:600;letter-spacing:-.25px}.library-content-head p{font-size:11px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.library-folder-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:82px;padding:13px 15px;border:1px solid #e0e7f0;border-radius:15px;background:#fff;box-shadow:none;overflow:hidden;transition:.15s ease}.library-folder-card:hover{transform:translateY(-2px);border-color:#aebfe0;background:linear-gradient(135deg,#fff,#f7f9ff);box-shadow:0 9px 22px rgba(15,23,42,.065)}.library-folder-icon{display:grid;place-items:center;align-self:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#eef4ff,#f3efff);color:#4054c7;font-size:11px;font-weight:600}.library-folder-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.library-folder-card>div{min-width:0}.library-folder-card small{color:#8794a7;font-size:8px;letter-spacing:1px}.library-folder-card h3{margin:3px 0 2px;color:#172033;font-size:13px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}.library-folder-card p{color:#748196;font-size:10px}.library-folder-card>b{display:inline-flex;align-items:center;gap:5px;align-self:center;padding:7px 9px;border-radius:9px;background:#f3f6fc;color:#536987;font-size:10px;font-weight:600;white-space:nowrap}.library-folder-card>b span{margin:0;font-size:13px;transition:transform .15s ease}.library-folder-card:hover>b{background:#e9efff;color:#3347b8}.library-folder-card:hover>b span{transform:translateX(2px)}.library-files{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.library-back{padding:8px 11px;border-radius:9px;background:#eef2ff;color:#384fc0;font-size:11px}.library-file-card{gap:11px;padding:12px 13px;border-color:#e0e7f0;border-radius:13px}.library-file-icon{width:36px;height:39px;border-radius:9px;background:#eef2ff;color:#4255c5;font-size:9px}.library-file-card h3{font-size:12px;font-weight:600}.library-file-card p{font-size:9px}.library-open,.paper-question,.paper-answer{padding:8px 10px;border-radius:9px;font-size:10px}.library-open{background:#eef2ff;color:#3549bb}
.library-paper-card{grid-column:1/-1;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;padding:13px 14px;border-color:#e0e7f0;border-radius:13px;background:#fff}.paper-number{width:39px;height:39px;border-radius:10px;background:#edf2ff;color:#3f50be;font-size:11px;font-weight:600}.paper-copy span{color:#7e8ca0;font-size:8px;letter-spacing:1px}.paper-copy h3{margin:2px 0;font-size:13px;font-weight:600}.paper-copy p{font-size:9px}.paper-actions{gap:6px}.paper-question{background:#3249ba;color:#fff}.paper-answer{border-color:#cdd6ea;color:#3347ad}.library-empty{padding:36px 18px;border-radius:14px}.library-empty h3{font-size:14px;font-weight:600}.library-empty p{font-size:10px}
@media(max-width:900px){.resource-hub-head{grid-template-columns:1fr;align-items:start}.resource-switcher{width:100%;overflow-x:auto;padding-bottom:2px}.resource-switch{flex:0 0 auto}.library-toolbar{align-items:flex-start;flex-direction:column}.library-count{align-self:flex-end;margin-top:-38px}}
@media(max-width:620px){body[data-page="resources"] .cx-main{width:min(100% - 20px,1120px)}.resource-hub-head{gap:17px;padding:18px;border-radius:17px}.resource-hub-head h1{font-size:21px}.resource-hub-head p{line-height:1.45}.resource-switcher{display:grid;grid-template-columns:repeat(2,1fr);overflow:visible}.resource-switch{justify-content:flex-start;padding:7px}.library-browser{padding:13px;border-radius:17px}.library-course-choice{width:100%}.library-levels{width:100%}.library-levels button{min-width:0;flex:1}.library-levels button strong{font-size:11px}.library-levels button small{display:none}.library-count{align-self:flex-start;margin:8px 0 0}.library-grid,.library-files{grid-template-columns:1fr}.library-folder-card{grid-template-columns:42px minmax(0,1fr) auto;min-height:76px;padding:11px 12px;gap:10px}.library-folder-icon{width:42px;height:42px}.library-folder-card>b{width:32px;height:32px;justify-content:center;padding:0}.library-folder-card>b{font-size:0}.library-folder-card>b span{font-size:14px}.library-paper-card{grid-template-columns:38px minmax(0,1fr)}.paper-actions{grid-column:1/-1}.paper-actions a{flex:1;text-align:center}.library-file-card{grid-template-columns:auto minmax(0,1fr) auto}.library-open{grid-column:auto}}

/* v1.6 — refined dashboard resource cards */
body[data-page="dashboard"] .primary-path-grid{margin-top:18px}
body[data-page="dashboard"] .compact-title{margin:24px 2px 12px}
body[data-page="dashboard"] .compact-title h2{font-size:20px;letter-spacing:-.35px}
body[data-page="dashboard"] .compact-title p{margin-top:4px;color:#7b8798;font-size:11px}
body[data-page="dashboard"] .secondary-modules{gap:13px}
body[data-page="dashboard"] .secondary-modules .module-tile{--tile-accent:#64748b;--tile-soft:#f1f5f9;position:relative;grid-template-columns:54px minmax(0,1fr) 36px;gap:14px;min-height:94px;padding:17px 16px;overflow:hidden;border:1px solid #e1e7f0;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fff 68%,var(--tile-soft) 150%);box-shadow:0 7px 22px rgba(15,23,42,.05);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
body[data-page="dashboard"] .secondary-modules .module-tile:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--tile-accent),transparent 88%);opacity:.9}
body[data-page="dashboard"] .secondary-modules .module-tile:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--tile-accent) 35%,#dce4ee);box-shadow:0 16px 34px rgba(15,23,42,.1)}
body[data-page="dashboard"] .secondary-modules .module-icon{width:54px;height:54px;border-radius:16px;background:var(--tile-soft);color:var(--tile-accent);font-size:19px;font-weight:650;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tile-accent) 12%,transparent);transition:transform .2s ease}
body[data-page="dashboard"] .secondary-modules .module-tile:hover .module-icon{transform:scale(1.06) rotate(-2deg)}
body[data-page="dashboard"] .secondary-modules .module-tile h3{margin:0 0 5px;color:#162033;font-size:15px;font-weight:650;letter-spacing:-.15px}
body[data-page="dashboard"] .secondary-modules .module-tile p{color:#748196;font-size:10.5px;line-height:1.45}
body[data-page="dashboard"] .secondary-modules .module-tile>b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--tile-soft);color:var(--tile-accent);font-size:16px;transition:transform .2s ease,background .2s ease,color .2s ease}
body[data-page="dashboard"] .secondary-modules .module-tile:hover>b{transform:translateX(3px);background:var(--tile-accent);color:#fff}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(1){--tile-accent:#e11d48;--tile-soft:#fff1f2}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(2){--tile-accent:#7c3aed;--tile-soft:#f3e8ff}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(3){--tile-accent:#d97706;--tile-soft:#fff7df}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(4){--tile-accent:#0891b2;--tile-soft:#e9fbff}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(5){--tile-accent:#2563eb;--tile-soft:#edf4ff}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(6){--tile-accent:#16a34a;--tile-soft:#eefcf2}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(7){--tile-accent:#ea580c;--tile-soft:#fff3ea}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(8){--tile-accent:#059669;--tile-soft:#eafbf5}
body[data-page="dashboard"] .secondary-modules .module-tile:nth-child(9){--tile-accent:#475569;--tile-soft:#f1f5f9;background:linear-gradient(135deg,#fff,#f8fafc)}
@media(max-width:850px){body[data-page="dashboard"] .secondary-modules{gap:11px}}
@media(max-width:540px){body[data-page="dashboard"] .primary-path-grid{margin-top:14px}body[data-page="dashboard"] .compact-title{margin-top:20px}body[data-page="dashboard"] .secondary-modules .module-tile{grid-template-columns:48px minmax(0,1fr) 32px;gap:12px;min-height:82px;padding:14px;border-radius:15px}body[data-page="dashboard"] .secondary-modules .module-icon{width:48px;height:48px;border-radius:14px;font-size:17px}body[data-page="dashboard"] .secondary-modules .module-tile>b{width:31px;height:31px;border-radius:10px}}

/* v1.7 — fit the complete dashboard inside desktop viewports */
@media(min-width:901px){
 body[data-page="dashboard"] .cx-main{padding:10px 0 12px}
 body[data-page="dashboard"] .dashboard-welcome{min-height:68px;padding:13px 20px;border-radius:15px}
 body[data-page="dashboard"] .dashboard-welcome .home-label{font-size:8px}
 body[data-page="dashboard"] .dashboard-welcome h1{margin:5px 0 2px;font-size:22px}
 body[data-page="dashboard"] .dashboard-welcome p{font-size:10px}
 body[data-page="dashboard"] .dashboard-welcome .btn{padding:9px 13px;font-size:10px}
 body[data-page="dashboard"] .primary-path-grid{margin-top:10px;gap:10px}
 body[data-page="dashboard"] .primary-path{height:146px;min-height:146px;padding:15px 18px 12px;grid-template-columns:minmax(0,1fr) 54px;gap:6px 14px;border-radius:15px}
 body[data-page="dashboard"] .primary-core .path-label,body[data-page="dashboard"] .primary-extended .path-label{margin-bottom:5px;font-size:22px}
 body[data-page="dashboard"] .primary-path h3{margin-bottom:3px;font-size:14px}
 body[data-page="dashboard"] .primary-path p{font-size:10px}
 body[data-page="dashboard"] .path-emblem{width:50px;height:50px;border-radius:14px;font-size:19px}
 body[data-page="dashboard"] .path-steps{gap:4px;margin-top:8px}
 body[data-page="dashboard"] .path-steps span{padding:3px 6px;font-size:8px}
 body[data-page="dashboard"] .primary-path>b{padding-top:7px;font-size:10px}
 body[data-page="dashboard"] .streak-feature{grid-template-columns:40px minmax(0,1fr) 72px auto;gap:12px;height:66px;margin-top:9px;padding:9px 14px;border-radius:14px}
 body[data-page="dashboard"] .streak-icon{width:40px;height:40px;border-radius:12px;font-size:18px}
 body[data-page="dashboard"] .streak-copy>span{font-size:7px}
 body[data-page="dashboard"] .streak-copy h3{margin:2px 0;font-size:13px}
 body[data-page="dashboard"] .streak-copy p{font-size:9px}
 body[data-page="dashboard"] .streak-time{padding:4px 8px}
 body[data-page="dashboard"] .streak-time strong{font-size:19px}
 body[data-page="dashboard"] .streak-feature>b{padding:7px 10px;font-size:9px}
 body[data-page="dashboard"] .compact-title{margin:11px 2px 7px}
 body[data-page="dashboard"] .compact-title h2{font-size:17px}
 body[data-page="dashboard"] .compact-title p,body[data-page="dashboard"] .compact-title>span{font-size:9px}
 body[data-page="dashboard"] .secondary-modules{gap:8px 10px}
 body[data-page="dashboard"] .secondary-modules .module-tile{grid-template-columns:40px minmax(0,1fr) 28px;gap:10px;min-height:62px;height:62px;padding:9px 11px;border-radius:13px}
 body[data-page="dashboard"] .secondary-modules .module-icon{width:40px;height:40px;border-radius:11px;font-size:14px}
 body[data-page="dashboard"] .secondary-modules .module-tile h3{margin-bottom:2px;font-size:12px}
 body[data-page="dashboard"] .secondary-modules .module-tile p{font-size:8.5px;line-height:1.25}
 body[data-page="dashboard"] .secondary-modules .module-tile>b{width:27px;height:27px;border-radius:8px;font-size:12px}
 body[data-page="dashboard"] .cx-footer{padding:8px 0 10px;font-size:10px}
}

/* v1.8 — CoreXMath infinity logo in topbar and drawer */
.cx-brand-logo{display:block;width:46px;height:34px;flex:0 0 46px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(147,51,234,.18))}
.drawer-head .cx-brand-logo{width:44px;height:32px;flex-basis:44px}
@media(max-width:620px){.cx-brand-logo{width:32px!important;max-width:32px!important;height:24px!important;max-height:24px!important;flex:0 0 32px!important}.drawer-head .cx-brand-logo{width:34px!important;max-width:34px!important;height:25px!important;max-height:25px!important;flex-basis:34px!important}}

/* v1.9 — complete multipart practice questions */
.practice-subquestion{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-top:14px;padding:14px 0;border-top:1px dashed #d7e0ec}.practice-subquestion>strong{display:grid;place-items:center;align-self:start;min-width:36px;height:36px;padding:0 8px;border-radius:10px;background:#eef2ff;color:#3749b8}.practice-subdiagram{grid-column:2;display:block;max-width:min(100%,620px);max-height:420px;margin:10px auto 0;border:1px solid #dfe6ef;border-radius:13px;object-fit:contain}.practice-subanswer{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:12px 0;border-top:1px solid #e2e8f0}.practice-subanswer>strong{color:#4f46e5}.practice-main-text,.practice-subquestion>div{overflow-wrap:anywhere}.practice-main-text table,.practice-subquestion table{max-width:100%;border-collapse:collapse}.practice-main-text td,.practice-main-text th,.practice-subquestion td,.practice-subquestion th{padding:5px 8px;border:1px solid #334155}

/* v1.10 — compact above-the-fold practice workspace */
body[data-page="practice"]>.cx-topbar{height:56px}
body[data-page="practice"] .cx-main{padding:14px 0 34px}
body[data-page="practice"] .page-head{margin:0 0 10px}
body[data-page="practice"] .page-head .badge{padding:4px 7px;font-size:9px}
body[data-page="practice"] .page-head h1{margin-top:3px;font-size:22px;line-height:1.15}
body[data-page="practice"] .page-head p{margin-top:3px;font-size:12px}
body[data-page="practice"] .page-head .tab{padding:7px 11px;font-size:12px}
body[data-page="practice"] .cx-main>section.card{padding:10px 12px;border-radius:14px}
body[data-page="practice"] .practice-filter-intro{margin-bottom:7px}
body[data-page="practice"] .practice-filter-intro div{display:flex;align-items:center;gap:9px}
body[data-page="practice"] .practice-filter-intro strong{font-size:12px}
body[data-page="practice"] .practice-filter-intro small{padding:4px 8px;font-size:9px}
body[data-page="practice"] .filters{gap:7px}
body[data-page="practice"] .filters .field{height:42px;padding:8px 11px;border-radius:11px;font-size:13px}
body[data-page="practice"] .filters .btn{min-height:42px;padding:8px 13px;border-radius:11px;font-size:12px}
body[data-page="practice"] .practice-summary{margin:8px 0 9px;padding:7px 11px;gap:12px;border-radius:11px;font-size:11px}
body[data-page="practice"] .practice-summary span+span{padding-left:12px}
body[data-page="practice"] .practice-number-nav{gap:6px;padding:2px 2px 8px}
body[data-page="practice"] .practice-number{width:35px;height:35px;flex-basis:35px;border-radius:8px;font-size:12px}
body[data-page="practice"] .practice-card-top{padding:12px 18px}
body[data-page="practice"] .practice-q-number strong{width:29px;height:29px;border-radius:9px;font-size:12px}
body[data-page="practice"] .practice-question-body{min-height:240px;padding:20px 24px 22px;overflow-x:auto;font-size:16px;line-height:1.62}
body[data-page="practice"] .practice-diagram,body[data-page="practice"] .practice-subdiagram{display:block;width:auto;height:auto;max-width:100%;object-fit:contain}
body[data-page="practice"] .math-content img{display:block;max-width:100%!important;height:auto!important;object-fit:contain;margin:12px auto}
body[data-page="practice"] .practice-diagram{max-height:380px;margin:14px auto 0}
body[data-page="practice"] .practice-card-actions{padding:11px 18px}
body[data-page="practice"] .practice-answer-panel{padding:18px 24px}
body[data-page="practice"] .question-type-label{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid transparent;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:650;line-height:1}
body[data-page="practice"] .question-type-label svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body[data-page="practice"] .question-type-label.calculator{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
body[data-page="practice"] .question-type-label.non-calculator{border-color:#d7dee8;background:#f8fafc;color:#475569}

@media(max-width:620px){
 body[data-page="practice"]>.cx-topbar{height:52px;padding-inline:10px}
 body[data-page="practice"] .cx-menu{width:34px;height:34px}
 body[data-page="practice"] .cx-brand-mark{width:32px;height:32px}
 body[data-page="practice"] .cx-brand{font-size:17px}
 body[data-page="practice"] .top-account{padding:7px 9px}
 body[data-page="practice"] .cx-main{width:min(100% - 14px,1120px);padding:8px 0 24px}
 body[data-page="practice"] .page-head{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:6px 10px;margin-bottom:8px}
 body[data-page="practice"] .page-head>div:first-child{flex:1 1 210px}
 body[data-page="practice"] .page-head .badge,body[data-page="practice"] .page-head p{display:none}
 body[data-page="practice"] .page-head h1{margin:0;font-size:18px;letter-spacing:-.25px}
 body[data-page="practice"] .page-head .tabs{margin-left:auto;gap:5px}
 body[data-page="practice"] .page-head .tab{padding:6px 10px;font-size:11px}
 body[data-page="practice"] .cx-main>section.card{padding:9px}
 body[data-page="practice"] .practice-filter-intro{display:none}
 body[data-page="practice"] .filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
 body[data-page="practice"] .filters .field{height:39px;padding:7px 9px;font-size:12px}
 body[data-page="practice"] #practiceType{grid-column:1}
 body[data-page="practice"] #loadPractice{grid-column:2;min-height:39px;padding:7px 8px;font-size:11px}
 body[data-page="practice"] .practice-summary{flex-wrap:nowrap;overflow-x:auto;margin:7px 0;padding:6px 8px;white-space:nowrap}
 body[data-page="practice"] .practice-summary span:nth-child(n+3){display:none}
 body[data-page="practice"] .practice-ready i{width:18px;height:18px}
 body[data-page="practice"] .practice-number-nav{padding-bottom:7px}
 body[data-page="practice"] .practice-number{width:33px;height:33px;flex-basis:33px}
 body[data-page="practice"] .practice-card-top{padding:10px 13px}
 body[data-page="practice"] .practice-meta{gap:7px;font-size:11px}
 body[data-page="practice"] .question-type-label{gap:4px;padding:5px 7px;font-size:10px}
 body[data-page="practice"] .question-type-label svg{width:14px;height:14px}
 body[data-page="practice"] .practice-question-body{min-height:190px;padding:16px 14px 18px;font-size:15px;line-height:1.55}
 body[data-page="practice"] .practice-diagram,body[data-page="practice"] .practice-subdiagram{width:auto!important;height:auto!important;max-width:100%!important;max-height:none!important;margin:10px auto 0!important;border-radius:8px}
 body[data-page="practice"] .practice-subdiagram{grid-column:1/-1!important}
 body[data-page="practice"] .math-content img{max-width:100%!important;height:auto!important;margin:9px auto!important}
 body[data-page="practice"] .practice-subquestion{grid-template-columns:31px minmax(0,1fr);gap:7px;padding:11px 0}
 body[data-page="practice"] .practice-subquestion>strong{min-width:31px;height:31px}
 body[data-page="practice"] .practice-answer-panel{padding:15px 14px}
 body[data-page="practice"] .practice-card-actions{padding:9px 11px}
}

@media(max-width:390px){
 body[data-page="practice"] .page-head h1{font-size:17px}
 body[data-page="practice"] .filters .field{font-size:11px}
 body[data-page="practice"] #loadPractice{font-size:10px}
 body[data-page="practice"] .question-type-label span{display:none}
 body[data-page="practice"] .question-type-label{padding:5px}
}


/* v1.11 — polished CoreXMath home; scoped to home and dashboard */
body:is([data-page="dashboard"], :has(.home-shell)){background:radial-gradient(ellipse at 90% 0%,#ede9fb 0,transparent 40%),#f6f7fb;color:#172033;}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-main{width:min(1200px,calc(100% - 48px));padding:22px 0 24px;}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-topbar{height:68px;background:rgba(255,255,255,.95);border-bottom:1px solid #e6e9f1;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome{min-height:84px;padding:16px 0;gap:20px;border:0;border-radius:0;background:transparent;box-shadow:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-label{font-size:11px;color:#6d45bd;letter-spacing:1.4px;font-weight:600;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome h1{font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-.8px;margin:5px 0;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome p{font-size:14px;line-height:1.5;color:#647089;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-entry .btn{font-size:14px;padding:11px 18px;border-radius:12px;box-shadow:0 6px 16px #6d28d91a;}
body:is([data-page="dashboard"], :has(.home-shell)) .home-section-title:not(.compact-title){display:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path-grid{margin-top:12px;gap:18px;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path{height:auto;min-height:194px;padding:24px 26px 18px;grid-template-columns:minmax(0,1fr) 62px;gap:16px;border-radius:22px;border:1px solid #ffffff18;box-shadow:0 12px 30px #24326314;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path:before{display:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-core{background:linear-gradient(115deg,#142f78,#2355ba);}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-extended{background:linear-gradient(115deg,#38206c,#6943b2);}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path .path-label{margin:0 0 8px;font-size:24px;line-height:1.15;font-weight:600;letter-spacing:-.45px;color:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path h3{margin:0 0 5px;font-size:16px;font-weight:500;line-height:1.3;color:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path p{font-size:14px;line-height:1.45;color:#ffffffc9;}
body:is([data-page="dashboard"], :has(.home-shell)) .path-emblem{width:58px;height:58px;border-radius:18px;background:#ffffff0d;color:#fff;font-size:24px;font-weight:500;box-shadow:inset 0 0 0 1px #ffffff26;}
body:is([data-page="dashboard"], :has(.home-shell)) .path-steps{margin-top:12px;gap:7px;}
body:is([data-page="dashboard"], :has(.home-shell)) .path-steps span{padding:4px 9px;font-size:12px;background:#ffffff14;color:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .path-steps i{font-size:12px;color:#ffffff80;}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path>b{padding-top:12px;border-color:#ffffff26;font-size:14px;font-weight:500;color:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature{height:auto;min-height:88px;margin-top:16px;padding:16px 20px;grid-template-columns:48px minmax(0,1fr) 84px auto;gap:16px;border:1px solid #27334f;border-radius:18px;background:linear-gradient(110deg,#141d32,#29334f);box-shadow:0 8px 22px #1c284b12;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-icon{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#8b5cf6,#cf53a5);font-size:22px;box-shadow:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-copy>span{font-size:11px;letter-spacing:1.4px;color:#d9c8ff;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-copy h3{margin:4px 0;font-size:16px;line-height:1.35;font-weight:500;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-copy p{font-size:13px;line-height:1.4;color:#bac5d8;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-time{padding:5px 12px;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-time strong{font-size:26px;color:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-time small{font-size:10px;color:#c3cce0;}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature>b{padding:10px 16px;border-radius:11px;background:#fff;color:#303b58;font-size:14px;font-weight:600;box-shadow:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title{margin:24px 0 12px;}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title h2{font-size:19px;font-weight:600;letter-spacing:-.4px;}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title p{font-size:13px;line-height:1.4;color:#647089;}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title>span{font-size:12px;color:#647089;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules{gap:12px;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile{height:auto;min-height:82px;padding:16px;grid-template-columns:44px minmax(0,1fr) 24px;gap:12px;border:1px solid #e4e7ef;border-radius:16px;background:#fff;box-shadow:0 4px 14px #27365a05;overflow:visible;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile:before{display:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile:hover{transform:translateY(-2px);background:#fff;border-color:#bcb5d7;box-shadow:0 10px 24px #27365a0c;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-icon{width:44px;height:44px;border-radius:13px;font-size:18px;box-shadow:none;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile h3{margin:0 0 4px;font-size:15px;line-height:1.3;font-weight:600;color:#202a41;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile p{margin:0;font-size:12px;line-height:1.4;color:#65718a;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile>b{width:24px;height:24px;background:transparent;color:#7c879f;font-size:16px;}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile:nth-child(9){background:#fff;}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-footer{font-size:12px;padding:16px 0;margin-top:18px;color:#68748c;}
body:is([data-page="dashboard"], :has(.home-shell)) a:focus-visible, body:is([data-page="dashboard"], :has(.home-shell)) button:focus-visible{outline:3px solid #9c7cea;outline-offset:4px;}
@media(min-width:901px) and (max-height:800px){
body:is([data-page="dashboard"], :has(.home-shell)) .cx-main{padding-top:12px}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome{min-height:70px;padding:10px 0}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path{min-height:178px;padding:20px 23px 15px;gap:12px}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature{min-height:78px;padding:12px 18px;margin-top:12px}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title{margin:17px 0 10px}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile{min-height:74px;padding:12px 14px}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-footer{margin-top:12px;padding:12px 0}
}
@media(max-width:900px){
body:is([data-page="dashboard"], :has(.home-shell)) .cx-main{width:calc(100% - 32px);padding:16px 0 24px}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path{padding:22px;min-height:190px}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path .path-label{font-size:22px}
body:is([data-page="dashboard"], :has(.home-shell)) .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body:is([data-page="dashboard"], :has(.home-shell)) .compact-title>span{display:none}
}
@media(max-width:620px){
body:is([data-page="dashboard"], :has(.home-shell)) .cx-topbar{height:60px}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-main{width:calc(100% - 28px)}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome{align-items:flex-start;flex-direction:column;gap:12px;padding:6px 0 12px}
body:is([data-page="dashboard"], :has(.home-shell)) .home-welcome h1{font-size:25px}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path-grid{grid-template-columns:1fr;gap:12px}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path{grid-template-columns:minmax(0,1fr) 48px;min-height:188px;padding:20px;gap:14px}
body:is([data-page="dashboard"], :has(.home-shell)) .path-emblem{width:46px;height:46px;border-radius:14px;font-size:21px}
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path .path-label{font-size:21px}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature{grid-template-columns:42px minmax(0,1fr);padding:16px;gap:12px}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-icon{width:42px;height:42px}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-time{display:none}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature>b{grid-column:1/-1;text-align:center}
body:is([data-page="dashboard"], :has(.home-shell)) .streak-copy h3{font-size:15px}
body:is([data-page="dashboard"], :has(.home-shell)) .module-grid{grid-template-columns:1fr}
body:is([data-page="dashboard"], :has(.home-shell)) .secondary-modules .module-tile{min-height:80px}
body:is([data-page="dashboard"], :has(.home-shell)) .cx-footer{flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce){
body:is([data-page="dashboard"], :has(.home-shell)) .primary-path,body:is([data-page="dashboard"], :has(.home-shell)) .streak-feature,body:is([data-page="dashboard"], :has(.home-shell)) .module-tile,body:is([data-page="dashboard"], :has(.home-shell)) .module-icon,body:is([data-page="dashboard"], :has(.home-shell)) .module-tile>b{transition:none;transform:none}
}

/* v1.12 — one prominent guest login, on desktop and mobile */
body[data-page="dashboard"] .dashboard-welcome:has(.home-entry),
.home-shell > .home-welcome {
 display:none;
}
body[data-page="dashboard"] .cx-main > .primary-path-grid:first-of-type,
.home-shell > .primary-path-grid {
 margin-top:0;
}
.cx-topbar .top-account[href*="login.php"] {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:42px;
 padding:10px 18px;
 border:0;
 border-radius:12px;
 background:linear-gradient(135deg,#7629e6 0%,#ef3da9 100%);
 color:#fff;
 font-size:14px;
 font-weight:600;
 line-height:1.3;
 white-space:nowrap;
 box-shadow:0 6px 18px rgba(124,42,232,.16);
 transition:box-shadow .18s ease;
}
.cx-topbar .top-account[href*="login.php"]:hover {
 color:#fff;
 box-shadow:0 8px 22px rgba(124,42,232,.25);
}
@media(max-width:620px){
 .cx-topbar .top-account[href*="login.php"]{
  min-height:38px;
  padding:9px 12px;
  border-radius:10px;
  font-size:12px;
 }
}

/* v1.13 — subtle practice polish; preserve the existing workspace */
body[data-page="practice"]{
 background:radial-gradient(ellipse at 95% 0%,#eeeafb 0,transparent 38%),#f5f7fb;
}
body[data-page="practice"] .page-head h1{color:#202942;font-weight:600;letter-spacing:-.6px}
body[data-page="practice"] .page-head .badge{background:#eeebfb;color:#6941b2;border:1px solid #e1d9f6}
body[data-page="practice"] .page-head .tabs{gap:6px;padding:4px;border:1px solid #e1e5ee;border-radius:14px;background:#fff;box-shadow:0 3px 12px #27365a05}
body[data-page="practice"] .page-head .tab{border:0;border-radius:10px;color:#606b82;background:transparent}
body[data-page="practice"] .page-head .tab.active{background:#ede8fa;color:#6b3eaf;box-shadow:inset 0 0 0 1px #ded4f2}
body[data-page="practice"] .cx-main>section.card{border:1px solid #e1e5ef;background:linear-gradient(120deg,#fff,#fcfbff);box-shadow:0 6px 22px #28365a07}
body[data-page="practice"] .practice-filter-intro strong{color:#27324c;font-weight:600}
body[data-page="practice"] .practice-filter-intro small{color:#7044ba;background:#f0eafa}
body[data-page="practice"] .filters .field{border:1px solid #dce1ed;background:#fff;color:#26334b;box-shadow:0 2px 5px #28365a03;transition:border-color .15s,box-shadow .15s}
body[data-page="practice"] .filters .field:hover{border-color:#bcb0d7}
body[data-page="practice"] .filters .field:focus-visible{outline:0;border-color:#9270ce;box-shadow:0 0 0 3px #8b5cf61a}
body[data-page="practice"] #loadPractice{box-shadow:0 5px 14px #862de51c;font-weight:600}
body[data-page="practice"] .practice-summary{border-color:#e2ddf1;background:linear-gradient(90deg,#f4f1fc,#f9faff);color:#64708a}
body[data-page="practice"] .practice-number{border-color:#dce2ed;background:#fff;color:#4e5b73;box-shadow:0 2px 5px #28365a04;transition:background .15s,border-color .15s,box-shadow .15s}
body[data-page="practice"] .practice-number:hover{background:#f5f1fc;border-color:#c1aedf;color:#6d3fac}
body[data-page="practice"] .practice-number.active{background:linear-gradient(135deg,#6950cc,#8b42ca);border-color:#7951c8;color:#fff;box-shadow:0 0 0 3px #ede7fa,0 4px 10px #7345ba20}
body[data-page="practice"] .practice-exam-card{border-color:#dde2ef;border-radius:20px;box-shadow:0 12px 34px #2636570b,0 2px 6px #26365704}
body[data-page="practice"] .practice-exam-card:before{height:3px;background:linear-gradient(90deg,#5675cb,#8b50cc 58%,#d359ad)}
body[data-page="practice"] .practice-card-top{background:linear-gradient(110deg,#fafbff,#f8f5fd);border-bottom-color:#e7e5f0}
body[data-page="practice"] .practice-q-number span{color:#68728a;font-weight:600}
body[data-page="practice"] .practice-q-number strong{background:#ece7fa;color:#7041b1;box-shadow:inset 0 0 0 1px #e3d9f6}
body[data-page="practice"] .practice-meta{font-weight:500;color:#59667d}
body[data-page="practice"] .question-type-label.non-calculator{border-color:#dedeea;background:#fff;color:#596178}
body[data-page="practice"] .difficulty-label{box-shadow:inset 0 0 0 1px #00000004}
body[data-page="practice"] .practice-question-body{background:#fff;color:#172239}
body[data-page="practice"] .practice-card-actions{background:linear-gradient(110deg,#fafbff,#fcfaff);border-top-color:#e7e5f0}
body[data-page="practice"] .practice-card-actions .btn{border-radius:12px;transition:box-shadow .15s,background .15s}
body[data-page="practice"] .practice-answer-btn{border-color:#ad95d6;color:#7041b1;background:#fff;box-shadow:0 2px 6px #6f42b107;font-weight:500}
body[data-page="practice"] .practice-answer-btn:hover,
body[data-page="practice"] .practice-answer-btn.open{background:#f2ecfb;border-color:#8b66c3}
body[data-page="practice"] #practiceNext{box-shadow:0 5px 15px #862de51c}
body[data-page="practice"] .practice-card-actions button:disabled{box-shadow:none;cursor:default}
body[data-page="practice"] .practice-answer-panel{background:linear-gradient(110deg,#f2faf6,#f8fcfa);border-top-color:#d9ebe1}
body[data-page="practice"] .practice-number:focus-visible,
body[data-page="practice"] .practice-card-actions .btn:focus-visible,
body[data-page="practice"] #loadPractice:focus-visible{outline:3px solid #b296dd;outline-offset:3px}
@media(max-width:620px){
 body[data-page="practice"] .page-head .tabs{padding:3px;border-radius:12px}
 body[data-page="practice"] .practice-exam-card{border-radius:15px;box-shadow:0 7px 22px #2636570b}
 body[data-page="practice"] .practice-card-actions .btn{border-radius:10px}
}
@media(prefers-reduced-motion:reduce){
 body[data-page="practice"] .practice-number,
 body[data-page="practice"] .filters .field,
 body[data-page="practice"] .practice-card-actions .btn{transition:none}
}

/* v1.14 — refined violet answer panel */
body[data-page="practice"] .practice-answer-panel{
 background:linear-gradient(115deg,#f7f4fd 0%,#fcfbff 70%,#f5f3fc 100%);
 border-top:1px solid #e2d9f1;
 color:#30354b;
}
body[data-page="practice"] .answer-heading>span{
 background:linear-gradient(135deg,#7953c4,#9b62cf);
 color:#fff;
 border:1px solid #ffffff80;
 box-shadow:0 4px 12px #7953c41a;
}
body[data-page="practice"] .answer-heading small,
body[data-page="practice"] .answer-explanation>small{
 color:#7952b0;
 font-weight:600;
 letter-spacing:1.1px;
}
body[data-page="practice"] .answer-heading strong{color:#36284e;font-weight:600}
body[data-page="practice"] .answer-value{color:#252d43}
body[data-page="practice"] .answer-explanation{
 border-top:1px solid #e4dcee;
 color:#424c63;
}
body[data-page="practice"] .practice-subanswer{border-top-color:#e4dcee}
body[data-page="practice"] .practice-subanswer>strong{color:#7952b0}

/* v1.15 — consistent resource pages: papers, notes and worksheets */
body[data-page="resources"] {background:radial-gradient(ellipse at 95% 0%,#eeeafb 0,transparent 38%),#f5f7fb;}
body[data-page="resources"] .resource-hub-head{border-color:#e0ddee;background:linear-gradient(115deg,#fff,#f7f4fd);box-shadow:0 8px 28px #26365708;}
body[data-page="resources"] .library-eyebrow{color:#7952b0;font-size:11px;font-weight:600;}
body[data-page="resources"] .resource-hub-head h1{color:#242c43;font-weight:600;}
body[data-page="resources"] .resource-hub-head p{font-size:14px;line-height:1.5;color:#68748a;}
body[data-page="resources"] .resource-switcher{gap:6px;}
body[data-page="resources"] .resource-switch{font-size:14px;color:#647089;border-radius:12px;}
body[data-page="resources"] .resource-switch>span{background:#efecf7;color:#7952b0;}
body[data-page="resources"] .resource-switch.active{border-color:#ddd3f0;background:#fff;color:#7041b1;box-shadow:0 4px 14px #7953c410;}
body[data-page="resources"] .resource-switch.active>span{background:#ece5fa;color:#7041b1;}
body[data-page="resources"] .library-browser{border-color:#e1e4ee;box-shadow:0 10px 30px #26365708;}
body[data-page="resources"] .library-toolbar{border-color:#ece7f4;}
body[data-page="resources"] .library-toolbar-label{color:#7d7295;font-size:11px;font-weight:600;}
body[data-page="resources"] .library-levels{background:#f2eff8;border:1px solid #ebe5f4;}
body[data-page="resources"] .library-levels button{border-radius:11px;}
body[data-page="resources"] .library-levels button strong{font-size:14px;color:#354059;}
body[data-page="resources"] .library-levels button small{font-size:12px;color:#6d7890;}
body[data-page="resources"] .library-levels button.active{background:#fff;box-shadow:0 3px 12px #553c8210;}
body[data-page="resources"] .library-levels button.active>span{background:linear-gradient(135deg,#6950cc,#9950c9);color:#fff;}
body[data-page="resources"] .library-count{font-size:12px;color:#706086;background:#f5f1fc;}
body[data-page="resources"] .library-content-head h2{font-size:20px;color:#273149;}
body[data-page="resources"] .library-content-head p{font-size:13px;line-height:1.5;color:#6a768d;}
body[data-page="resources"] .library-grid,body[data-page="resources"] .library-files{gap:12px;}
body[data-page="resources"] .library-folder-card{border-color:#e3e3ef;background:linear-gradient(115deg,#fff,#fdfcff);box-shadow:0 3px 10px #26365703;border-radius:16px;}
body[data-page="resources"] .library-folder-card:hover{border-color:#c4b1df;background:#fcfaff;box-shadow:0 8px 22px #7953c40d;}
body[data-page="resources"] .library-folder-icon{background:linear-gradient(135deg,#eee8fa,#f6f2fc);color:#7952b0;box-shadow:inset 0 0 0 1px #e5dcf3;}
body[data-page="resources"] .library-folder-card small{font-size:10px;color:#897c9d;}
body[data-page="resources"] .library-folder-card h3{font-size:15px;color:#30394f;font-weight:600;}
body[data-page="resources"] .library-folder-card p{font-size:12px;line-height:1.4;color:#6d7890;}
body[data-page="resources"] .library-folder-card>b{background:#f3eff9;color:#7952b0;font-size:12px;}
body[data-page="resources"] .library-folder-card:hover>b{background:#ece4f8;color:#7041b1;}
body[data-page="resources"] .library-file-card,body[data-page="resources"] .library-paper-card{border-color:#e3e3ef;background:linear-gradient(115deg,#fff,#fdfcff);border-radius:16px;box-shadow:0 3px 10px #26365703;}
body[data-page="resources"] .library-file-card:hover,body[data-page="resources"] .library-paper-card:hover{border-color:#c4b1df;box-shadow:0 8px 22px #7953c40d;}
body[data-page="resources"] .library-file-icon,body[data-page="resources"] .paper-number{background:#eee8fa;color:#7952b0;box-shadow:inset 0 0 0 1px #e5dcf3;}
body[data-page="resources"] .library-file-card h3,body[data-page="resources"] .paper-copy h3{font-size:15px;line-height:1.4;color:#30394f;font-weight:600;}
body[data-page="resources"] .library-file-card p,body[data-page="resources"] .paper-copy p{font-size:12px;line-height:1.4;color:#6d7890;}
body[data-page="resources"] .paper-copy span{font-size:10px;color:#897c9d;}
body[data-page="resources"] .library-open,body[data-page="resources"] .paper-question,body[data-page="resources"] .paper-answer,body[data-page="resources"] .library-back{border-radius:10px;font-size:13px;}
body[data-page="resources"] .library-open,body[data-page="resources"] .library-back{background:#f1eafa;color:#7952b0;}
body[data-page="resources"] .paper-question{background:linear-gradient(135deg,#6950cc,#9950c9);color:#fff;box-shadow:0 4px 12px #7953c416;}
body[data-page="resources"] .paper-answer{border-color:#c9b8e2;color:#7952b0;background:#fff;}
body[data-page="resources"] .library-empty{border-color:#ded5ee;background:linear-gradient(120deg,#faf8fe,#fdfcff);border-radius:16px;}
body[data-page="resources"] .library-empty h3{font-size:16px;font-weight:500;color:#354059;}
body[data-page="resources"] .library-empty p{font-size:13px;line-height:1.5;color:#748097;}
body[data-page="resources"] .resource-switch:focus-visible,body[data-page="resources"] .library-levels button:focus-visible,body[data-page="resources"] .library-folder-card:focus-visible,body[data-page="resources"] .library-open:focus-visible,body[data-page="resources"] .paper-question:focus-visible,body[data-page="resources"] .paper-answer:focus-visible{outline:3px solid #b296dd;outline-offset:3px;}

@media(max-width:620px){
body[data-page="resources"] .resource-switch{font-size:13px;min-height:40px}
body[data-page="resources"] .library-levels button strong{font-size:12px}
body[data-page="resources"] .library-folder-card{grid-template-columns:42px minmax(0,1fr) 32px}
body[data-page="resources"] .library-folder-card>b{font-size:0}
body[data-page="resources"] .library-folder-card>b span{font-size:14px}
body[data-page="resources"] .library-file-card{grid-template-columns:auto minmax(0,1fr);gap:10px}
body[data-page="resources"] .library-open{grid-column:1/-1;text-align:center}
body[data-page="resources"] .library-count{margin:8px 0 0;align-self:flex-start}
}
@media(prefers-reduced-motion:reduce){
body[data-page="resources"] .library-folder-card,
body[data-page="resources"] .resource-switch,
body[data-page="resources"] .library-folder-card>b span{transition:none;transform:none}
}
