*{box-sizing:border-box} :root{--navy:#172957;--ink:#1b253b;--muted:#778091;--blue:#3857ed;--teal:#129e8e;--yellow:#f3b836;--line:#e0e4eb}body{margin:0;background:#f3f6fb;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.45}button,a,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}header{height:65px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 8px 24px #23395e05}.header-inner{max-width:1100px;height:100%;margin:auto;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:11px;letter-spacing:1px;color:var(--navy)}.brand strong{font-size:16px}.logo{display:grid;place-items:center;background:var(--navy);color:white;width:40px;height:40px;border-radius:13px 13px 13px 4px;box-shadow:0 8px 16px #17295722}.logo svg{width:23px}.header-actions{display:flex;align-items:center;gap:7px}.header-actions>button{height:40px;border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center}.header-actions .database{width:40px;color:#187e71;background:#effaf7;border-color:#c7e5dc}.database svg{width:20px}.header-actions .account{padding:0 13px;font-size:14px;font-weight:700;background:#f3f6fb;gap:10px;white-space:nowrap}.account svg{width:16px;color:#adb4c0}.notification{position:relative;width:40px}.notification b{position:absolute;right:-3px;top:-4px;background:#f26961;color:white;border-radius:50%;font-size:12px;width:17px;height:17px}.notification svg{width:22px}main{max-width:1100px;margin:auto;padding:19px 15px 100px}.eyebrow{color:var(--blue);font-size:13px;font-weight:800;letter-spacing:1.5px;margin:0 0 4px}h1{font-size:30px;line-height:1.2;font-weight:400;letter-spacing:-1.2px;margin:7px 0 8px}.intro{font-size:16px;color:var(--muted);margin:0 0 22px;max-width:90%}.heading{position:relative}.heading .action{position:absolute;right:0;bottom:0}.action{height:44px;width:44px;background:white;border:1px solid var(--line);border-radius:14px}.hero{background:var(--navy);color:white;border-radius:22px;padding:25px 23px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:190px;height:190px;border:35px solid #ffffff09;border-radius:50%;right:-87px;bottom:-85px;pointer-events:none}.greeting{padding-left:48px}.hero .eyebrow{color:#b7c1d8;font-size:13px;margin-bottom:10px}.hero h1{font-size:28px;letter-spacing:-1px;margin:0 0 10px}.hero p{color:#bec7db;margin:0;font-size:15px}.next{position:relative;text-align:left;width:100%;margin-top:23px;border-radius:18px;border:1px solid #ffffff28;background:#ffffff1a;padding:18px;color:white}.next .label{font-size:14px;font-weight:700;color:#bec7db}.next svg{width:17px;height:17px;margin-right:6px}.next h2{font-size:20px;margin:8px 0 2px}.next p{font-size:14px}.quiz-card{display:block;text-align:left;width:100%;background:var(--yellow);border-radius:22px;margin-top:18px;padding:23px;color:#392c08}.quiz-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.pill{display:inline-block;font-size:12px;font-weight:700;letter-spacing:1px;border:1px solid #9c741b44;padding:5px 9px;border-radius:8px}.quiz-card .subtitle{font-size:14px;font-weight:700;opacity:.72;margin:0 0 5px}.quiz-card h2{font-weight:400;font-size:22px;margin:4px 0 10px;letter-spacing:-.5px}.between{display:flex;align-items:center;justify-content:space-between;gap:8px}.quiz-card .between{font-size:13px;font-weight:700}.bar{height:7px;border-radius:10px;overflow:hidden;background:#d5dcfb;margin-top:26px}.bar i{display:block;height:100%;background:var(--blue)}.quiz-card .bar{background:#d5a02b;margin-top:19px}.quiz-card .bar i{background:#372d08}.grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.stats{margin-top:13px}.card{background:white;border:1px solid var(--line);border-radius:19px;padding:18px}.stat{padding:14px;text-align:left;box-shadow:0 8px 20px #23395e04}.icon-box{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:#ebefff;color:var(--blue);font-weight:800}.icon-box.teal{background:#e4f7f3;color:var(--teal)}.icon-box.coral{background:#ffedea;color:#f26a61}.icon-box.gold{background:#fff7dc;color:#a27710}.icon-box.gray{background:#eef1f6;color:#687387}.stat .icon-box{width:39px;height:39px;border-radius:13px;margin-bottom:9px}.stat .icon-box svg{width:22px}.stat label{font-size:13px;font-weight:700;color:var(--muted)}.stat strong{display:block;font-size:20px;line-height:1.2}.stat p{color:#9199a6;font-size:15px;margin:2px 0}.subject{text-align:left;border-top:4px solid var(--blue);padding:18px;min-width:0}.subject.teal{border-top-color:var(--teal)}.subject.coral{border-top-color:#f26960}.subject.gold{border-top-color:var(--yellow)}.subject .tag{display:inline-block;color:var(--muted);background:#f2f4f7;border-radius:20px;font-size:12px;font-weight:600;margin-top:11px;padding:1px 9px}.subject h2{font-size:18px;font-weight:400;margin:18px 0 3px}.subject p{font-size:13px;color:var(--muted);margin:0}.subject .between{margin-top:22px;font-size:13px;color:var(--muted)}.subject .between strong{color:var(--ink)}.subject .bar{margin-top:28px;margin-bottom:6px;height:6px}.tool{min-height:125px;padding:21px 16px;text-align:left}.tool strong{display:block;margin-top:10px;font-size:14px}.panel{margin-top:21px;padding:24px}.panel h2{font-size:18px;margin:0 0 19px;letter-spacing:-.6px}.row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid #eef0f3}.row:last-child{border-bottom:0}.row .icon-box{flex-shrink:0;width:46px;height:46px}.row .copy{flex:1;min-width:0}.row strong{display:block;font-size:15px}.row small{display:block;color:#9199a6;font-size:13px;margin-top:3px}.row>svg{width:16px;flex-shrink:0}.ongoing{width:100%;text-align:left;background:#108f7f;border-radius:22px;color:white;padding:47px 23px 26px;position:relative;min-height:176px}.ongoing .pill{border:0;border-radius:20px;background:#ffffff2b;padding:3px 10px}.ongoing h2{font-size:22px;font-weight:400;margin:18px 0 6px;letter-spacing:-.5px}.ongoing p{color:#b5dfd9;margin:0;font-size:15px}.ring{position:absolute;right:23px;bottom:26px;width:78px;height:78px;border-radius:50%;background:conic-gradient(white 0 60%,#ffffff25 60% 100%);display:grid;place-items:center;transform:rotate(-45deg)}.ring>div{background:#108f7f;border-radius:50%;width:64px;height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(45deg)}.ring strong{font-size:20px}.ring small{font-size:12px;color:#b5dfd9}.ongoing h2,.ongoing p{max-width:78%}.results{background:var(--navy);border-radius:21px;overflow:hidden;color:white}.result-top{display:grid;grid-template-columns:1fr 1fr}.result-top>div{padding:19px 18px}.result-top>div+div{border-left:1px solid #ffffff1c}.results label{font-size:13px;color:#aeb9d2;font-weight:700}.score{font-size:42px;font-weight:700;margin:5px 0;letter-spacing:-2px}.score small{font-size:16px;letter-spacing:0}.improvement{display:inline-block;background:#e1f7f1;color:#17786e;border-radius:20px;font-size:12px;font-weight:700;padding:2px 9px}.result-top p{font-size:13px;line-height:1.6;color:#aeb9d2;margin:4px 0 0}.teacher-note{border-top:1px solid #ffffff1c;padding:18px}.teacher-note p{font-size:14px;margin:11px 0}.teacher-note small{font-size:13px;color:#aeb9d2}.grade{border:1px solid var(--line);border-radius:20px;padding:0 9px;margin-left:16px;font-size:14px}.search{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:15px}nav{position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(16px);box-shadow:0 -8px 28px #20365712;border-top:1px solid #dce2eb;border-radius:21px 21px 0 0;height:76px;display:flex;padding:6px 8px;z-index:10;padding-bottom:max(7px,env(safe-area-inset-bottom))}nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#858e9e;font-weight:700;font-size:12px;gap:4px;border-radius:14px}nav a svg{width:23px;height:23px}nav a.active{color:var(--blue);background:#ecefff}dialog{border:1px solid var(--line);border-radius:22px;padding:26px;width:min(92%,500px);color:var(--ink);box-shadow:0 20px 80px #17295733}dialog::backdrop{background:#17295766;backdrop-filter:blur(3px)}dialog h2{padding-right:25px;margin-top:0;font-size:23px}.close{position:absolute;right:15px;top:10px;font-size:30px;color:var(--muted)}.notice{padding:15px 0;border-bottom:1px solid var(--line)}.primary{background:var(--blue);color:white;border-radius:12px;padding:12px 20px;margin-top:16px;width:100%;font-weight:700}.answer{display:block;padding:13px;border:1px solid var(--line);border-radius:12px;width:100%;margin:9px 0;text-align:left}.answer.selected{border-color:var(--blue);background:#ecefff}.muted{color:var(--muted)}button:focus-visible,a:focus-visible{outline:3px solid #7288ff;outline-offset:3px}@media(min-width:700px){main{padding:32px 28px 115px}.header-inner{padding:12px 28px}header{height:78px}.brand strong{font-size:20px}.home-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.home-layout .quiz-card{margin:0}.hero{min-height:280px}.stats{margin-top:22px}.stat{padding:23px}.subjects{grid-template-columns:repeat(4,1fr)}.tools{grid-template-columns:repeat(4,1fr)}.tool{min-height:160px}.tool strong{font-size:17px}.subject h2{font-size:20px}nav{left:50%;transform:translateX(-50%);max-width:700px;width:100%;height:80px}h1{font-size:36px}.intro{font-size:18px}.ongoing{min-height:210px}.ongoing h2{font-size:28px}.ring{right:40px;width:110px;height:110px}.ring>div{width:94px;height:94px}.results{max-width:850px}.panel{max-width:100%}.result-top>div{padding:25px}.teacher-note{padding:25px}.row{padding:17px 0}}@media(max-width:365px){.brand{gap:6px}.brand strong{font-size:14px}.header-inner{padding:10px}.header-actions .account{padding:0 8px;font-size:12px}.database{display:none!important}.greeting{padding-left:15px}.subject{padding:14px}.subject h2{font-size:16px}.ongoing h2{max-width:70%;font-size:19px}}
select.account{height:40px;border:1px solid var(--line);border-radius:13px;background:#f3f6fb;padding:0 9px;font:inherit;font-size:14px;font-weight:700;color:var(--ink);max-width:115px}.demo-label{font-size:13px;color:#60718f;margin:0 0 14px}.role-hero{min-height:0}.role-hero h1{margin-top:10px}.role-hero .next{margin-top:20px}.row select,.mark{font:inherit;font-size:14px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f7f9fd;color:var(--ink);max-width:118px}.mark{width:76px}.task input{width:22px;height:22px;accent-color:var(--blue);flex-shrink:0}.task:has(input:checked) strong{text-decoration:line-through;color:var(--muted)}.panel>.grid .tool{min-height:115px;padding:14px}.panel>h2:not(:first-child){margin-top:20px}button:disabled{opacity:.5;cursor:default}
/* Refined typography, touch targets and restrained motion across all roles. */
:root{--muted:#667286;--line:#e1e7ef}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1.0625rem;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}header{height:auto;min-height:72px;background:#ffffffed;backdrop-filter:blur(18px)}.header-inner{min-height:72px;gap:8px}.brand{gap:9px}.brand strong{font-size:1.0625rem;letter-spacing:.7px}.logo{width:42px;height:42px;flex-shrink:0}.header-actions{gap:6px}.header-actions>button{min-height:44px}.header-actions .database,.notification{width:44px}select.account{height:44px;font-size:1rem;max-width:116px;padding:0 8px}.header-actions .notification b{width:18px;height:18px;line-height:18px}main{padding-top:24px;padding-bottom:calc(112px + env(safe-area-inset-bottom));max-width:1200px}.header-inner{max-width:1200px}h1{font-size:2.125rem;line-height:1.18;letter-spacing:-1px;font-weight:500;margin:8px 0 12px}.eyebrow{font-size:.875rem;line-height:1.5;letter-spacing:1.35px}.intro{font-size:1.0625rem;line-height:1.6;margin-bottom:25px}.heading:has(.action) .intro{max-width:none;padding-right:56px}.action{height:48px;width:48px}.grid{gap:14px}.card{border-radius:22px;box-shadow:0 4px 18px #17295704}.tool{min-height:143px;padding:21px 18px}.tool strong{font-size:1.0625rem;line-height:1.4;margin-top:14px}.icon-box{width:50px;height:50px;border-radius:16px}.hero,.quiz-card,.ongoing{border-radius:24px}.greeting{padding-left:0}.hero h1{font-size:1.9375rem;line-height:1.25}.hero p,.next p{font-size:1rem}.hero .eyebrow{font-size:.875rem}.next{padding:19px;border-radius:19px}.next .label{font-size:.9375rem}.next h2{font-size:1.375rem;line-height:1.35}.quiz-card h2{font-size:1.5rem;line-height:1.35}.quiz-card .subtitle,.quiz-card .between{font-size:.9375rem}.pill{font-size:.8125rem}.stat{padding:18px}.stat label{font-size:.9375rem;line-height:1.45;display:block}.stat strong{font-size:1.5rem;line-height:1.4}.stat p{font-size:1rem;color:var(--muted)}.subject{padding:18px;display:flex;flex-direction:column;align-items:flex-start}.subject h2{font-size:1.1875rem;line-height:1.4;overflow-wrap:anywhere;margin-top:19px}.subject p{font-size:.9375rem}.subject .tag{font-size:.875rem;line-height:1.5;padding:3px 8px;text-align:left}.subject .between{font-size:.9375rem;width:100%;flex-wrap:wrap;margin-top:23px}.subject .bar{width:100%;margin-top:22px}.panel{padding:22px}.panel h2{font-size:1.25rem;line-height:1.4;letter-spacing:-.4px}.row{gap:12px;padding:16px 0}.row strong{font-size:1rem;line-height:1.45;overflow-wrap:anywhere}.row small{font-size:.9375rem;line-height:1.5;color:var(--muted)}.row .copy{overflow-wrap:anywhere}.row select,.mark{font-size:1rem;min-height:46px;flex-shrink:0}.grade{margin-left:2px;font-size:.9375rem;padding:2px 8px;white-space:nowrap}.ongoing{padding:27px 22px;display:grid;grid-template-columns:minmax(0,1fr) 82px;column-gap:15px;align-items:center}.ongoing .pill{grid-column:1;justify-self:start}.ongoing h2{grid-column:1;font-size:1.375rem;line-height:1.4;max-width:none}.ongoing p{grid-column:1;font-size:1rem;max-width:none}.ring{position:static;grid-column:2;grid-row:1/4;width:82px;height:82px}.ring>div{width:68px;height:68px}.ring small{font-size:.8125rem}.results label,.result-top p,.teacher-note small{font-size:.9375rem}.teacher-note p{font-size:1.0625rem;line-height:1.65}.improvement{font-size:.875rem;padding:4px 9px}.result-top>div{padding:20px 16px}.score{font-size:2.75rem;line-height:1.3}.demo-label{font-size:.875rem}.primary,.answer{min-height:48px;font-size:1rem;border-radius:14px}.primary{box-shadow:0 5px 12px #3857ed20}dialog{max-height:85dvh;overflow:auto;overscroll-behavior:contain;border-radius:24px;line-height:1.65}dialog h2{font-size:1.5rem;line-height:1.35}.close{min-width:44px;min-height:44px}.search{font-size:1rem;min-height:48px}nav{height:auto;min-height:84px;padding:7px 6px calc(8px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}nav a{font-size:.875rem;min-height:64px;min-width:0;gap:5px;border-radius:17px;letter-spacing:-.3px}nav a svg{width:25px;height:25px}nav a.active{background:#eaf0ff;color:#304fe0}button,a,select,input{touch-action:manipulation}button,a,select,.card,input{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}button:active,.tool:active,.subject:active{transform:scale(.988)}select:focus-visible,input:focus-visible{outline:3px solid #7288ff;outline-offset:3px}dialog[open]{animation:dialog-enter .18s ease-out}@keyframes dialog-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(hover:hover){button.card:hover,a.card:hover{border-color:#bccbed;box-shadow:0 8px 24px #1729570a}nav a:hover{background:#f0f3fa}.primary:hover{background:#2b48d6}.row:hover{background:#f7f9fd}}@media(min-width:700px){main{padding:32px 32px 120px}.header-inner{padding:14px 32px}.brand strong{font-size:1.25rem}h1{font-size:2.5rem}.grid{gap:20px}.hero h1{font-size:2.125rem}.tool{min-height:165px}.subject h2{font-size:1.375rem}.panel{padding:28px}.results{max-width:none}.ongoing{grid-template-columns:minmax(0,1fr) 100px}.ring{width:100px;height:100px}.ring>div{width:84px;height:84px}.ongoing h2{font-size:1.75rem}.subjects{grid-template-columns:repeat(2,minmax(0,1fr))}nav{max-width:760px;bottom:12px;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 40px #17295716}}@media(min-width:1000px){.subjects{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:389px){.header-actions .database{display:none}.header-inner{padding-inline:12px}.brand strong{font-size:1rem}.header-actions .account{font-size:.9375rem}.panel{padding:18px}.subject{padding:15px}.grid{gap:11px}nav a{font-size:.8125rem;letter-spacing:-.4px}.row{gap:8px}.row .icon-box{width:40px;height:40px}.row select{max-width:105px}.result-top{grid-template-columns:1fr 1fr}.improvement{font-size:.8125rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:active,.tool:active,.subject:active{transform:none}}
#connection-button{font-size:1rem;font-weight:600;padding:0 12px;white-space:nowrap;color:var(--blue)}.header-actions .database{display:none}.header-actions{flex-wrap:wrap}#membership{display:block;width:100%;font:inherit;padding:12px;margin-top:12px}.notice p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:430px){.header-actions .notification{display:none}.header-inner{gap:6px}#connection-button{padding-inline:9px}}
