:root{--blue:#102a56;--white:#fff;--thin:rgba(16,42,86,.13);--tint:rgba(16,42,86,.045);--tint2:rgba(16,42,86,.075);--muted:rgba(16,42,86,.62);--shadow:0 13px 42px rgba(16,42,86,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--blue);background:var(--white);font:15.5px/1.55 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button,.topic-card,.quick-topic{-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}a{color:inherit}#main{min-height:calc(100vh - 152px);padding:22px 18px 122px;max-width:800px;width:100%;margin:auto}.shell{min-height:100vh}.app-column{min-width:0}.topbar{height:74px;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid var(--thin);background:var(--white);position:sticky;top:0;z-index:20}.brand{display:flex;gap:11px;align-items:center;font-size:20px;font-weight:850;letter-spacing:-.6px;line-height:1.04;flex:1}.brand small{display:block;letter-spacing:0;font-size:11px;font-weight:600;opacity:.57;margin-top:6px}.brand-symbol{width:38px;height:38px;flex:0 0 auto;background:var(--blue);color:var(--white);border-radius:12px;display:grid;place-items:center;font-size:24px;font-weight:600}.small-icon{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--thin);border-radius:12px;background:var(--white);color:var(--blue);flex-shrink:0}.small-icon svg,.tab svg,.topic-icon svg,.mini-icon svg,.action-icon svg,.category-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-nav{height:76px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:25;background:var(--white);border-top:1px solid var(--thin);padding-bottom:env(safe-area-inset-bottom);height:calc(76px + env(safe-area-inset-bottom))}.tab{border:0;background:transparent;color:var(--muted);display:flex;gap:4px;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:650;min-width:0}.tab svg{width:21px;height:21px}.tab.active{color:var(--blue);font-weight:850}.tab.active .tab-icon{background:var(--tint2);border-radius:11px;padding:4px 15px}.tab-icon{display:flex;justify-content:center;padding:4px 15px}.desktop-sidebar{display:none}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.15;letter-spacing:-1px;margin-bottom:8px;font-weight:850}h2{font-size:19px;letter-spacing:-.4px;font-weight:800;line-height:1.25}h3{font-size:16px;letter-spacing:-.15px}p{line-height:1.57}button{transition:background .15s,transform .15s}button:active{transform:scale(.985)}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;font-weight:850;opacity:.62}.intro{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.intro .description{color:var(--muted);max-width:380px;margin:0;font-size:14px}.hero{background:var(--blue);border-radius:23px;color:var(--white);padding:25px 23px 22px;margin-bottom:22px;position:relative;overflow:hidden}.hero::after{content:"⅔";font-size:138px;position:absolute;right:-6px;top:-35px;opacity:.085;transform:rotate(-15deg);font-weight:800;pointer-events:none}.hero .eyebrow{opacity:.68}.hero h1{font-size:31px;max-width:290px;margin:10px 0 9px}.hero p{font-size:14px;line-height:1.5;opacity:.81;max-width:290px;margin-bottom:22px}.hero-actions{display:flex;align-items:center;gap:12px}.button-light{border:0;border-radius:12px;color:var(--blue);background:var(--white);padding:11px 15px;font-size:13px;font-weight:850}.hero .ghost-counter{font-size:12px;color:var(--white);opacity:.75}.search-wrap{display:flex;align-items:center;gap:11px;border:1.5px solid var(--thin);border-radius:14px;background:var(--white);padding:0 15px;height:49px;margin:0 0 24px}.search-wrap svg{height:19px;width:19px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round}.search-wrap input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--blue);font-size:14px}.search-wrap:focus-within{border-color:var(--blue)}.search-wrap input::placeholder{color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 13px}.section-heading h2{margin:0}.link-action{border:0;background:transparent;font-size:13px;font-weight:750;color:var(--blue);padding:7px 0}.categories{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:27px}.category-card{display:flex;align-items:flex-start;flex-direction:column;min-height:152px;background:var(--tint);border:1px solid var(--thin);border-radius:18px;padding:17px 15px;text-align:left;color:var(--blue)}.category-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--thin);border-radius:11px;background:var(--white);margin-bottom:15px}.category-title{font-weight:800;font-size:14px;line-height:1.27;margin-bottom:7px}.category-subtitle{font-size:11.5px;line-height:1.35;color:var(--muted)}.topic-list{display:flex;flex-direction:column;gap:9px}.topic-card{width:100%;border:1px solid var(--thin);border-radius:16px;background:var(--white);padding:14px;display:flex;align-items:center;gap:13px;text-align:left;color:var(--blue);box-shadow:var(--shadow)}.topic-icon{width:43px;height:43px;flex:0 0 auto;border-radius:12px;background:var(--tint2);display:grid;place-items:center}.topic-main{flex:1;min-width:0}.topic-main strong{font-size:14px;line-height:1.26;display:block;font-weight:790}.topic-main small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35}.chevron{width:16px;height:16px;opacity:.46}.filter-bar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:17px;padding:2px 0 6px}.filter-bar::-webkit-scrollbar{display:none}.chip{border:1px solid var(--thin);background:var(--white);border-radius:99px;color:var(--blue);font-weight:750;font-size:12px;white-space:nowrap;padding:9px 14px}.chip.active{background:var(--blue);color:var(--white);border-color:var(--blue)}.result-meta{font-size:12px;color:var(--muted);margin:0 0 11px}.empty{text-align:center;margin:55px 0;color:var(--muted);padding:20px}.empty svg{width:36px;height:36px;stroke:var(--blue);opacity:.7}.empty h3{color:var(--blue);margin:13px 0 6px}.lesson-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:2px 0 13px}.breadcrumbs{font-size:12px;color:var(--muted);font-weight:650}.save-button{display:flex;align-items:center;gap:6px;background:var(--white);border:1px solid var(--thin);border-radius:11px;padding:7px 11px;color:var(--blue);font-size:12px;font-weight:750}.save-button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}.lesson-title{font-size:27px;line-height:1.19;letter-spacing:-.7px;margin-bottom:9px}.lesson-subtitle{font-size:14px;color:var(--muted);margin-bottom:22px}.lesson-header{border-bottom:1px solid var(--thin);padding-bottom:17px;margin-bottom:20px}.notice{border-left:4px solid var(--blue);background:var(--tint);border-radius:0 14px 14px 0;padding:16px 17px;margin:0 0 20px}.notice .eyebrow{margin-bottom:5px}.notice p{font-weight:650;margin:0;font-size:15px}.explain{font-size:14px;color:var(--blue);margin:15px 0 20px}.formula-box{border:1px solid var(--thin);border-radius:17px;padding:22px 14px;margin:20px 0;background:var(--white);display:flex;align-items:center;justify-content:center;overflow-x:auto}.formula-box .math{font-size:21px;font-weight:650;line-height:2.05;white-space:nowrap}.math{font-variant-numeric:lining-nums tabular-nums;white-space:normal}.fraction{display:inline-flex;vertical-align:middle;flex-direction:column;align-items:center;justify-content:center;line-height:1.18;font-size:.9em;white-space:nowrap;min-width:1.3em;margin:0 .13em}.fraction-top,.fraction-bottom{display:block;text-align:center;width:100%;padding:0 .2em}.fraction-top{border-bottom:1.65px solid currentColor;padding-bottom:.11em}.fraction-bottom{padding-top:.1em}.mixed{display:inline-flex;align-items:center;gap:.15em;vertical-align:middle;white-space:nowrap}.steps-header{margin:24px 0 12px;display:flex;justify-content:space-between;align-items:center}.steps-header h2{margin:0}.steps-counter{font-weight:750;font-size:12px;color:var(--muted)}.step-list{display:flex;flex-direction:column;gap:11px}.step{border:1px solid var(--thin);border-radius:14px;padding:15px 15px 14px;display:flex;gap:12px;align-items:flex-start;background:var(--white)}.step-number{border-radius:9px;color:var(--white);background:var(--blue);font-weight:800;min-width:28px;height:28px;display:grid;place-items:center;font-size:12px;flex-shrink:0}.step h3{font-size:14px;margin:0 0 6px}.step p{font-size:13.5px;line-height:1.68;margin:0}.step .fraction{font-size:1em}.steps-more{margin:12px 0 20px;border:1px solid var(--blue);background:var(--white);color:var(--blue);border-radius:12px;padding:12px 16px;font-weight:800;font-size:13px;width:100%}.steps-more.primary{background:var(--blue);color:var(--white)}.tip{border:1px dashed var(--blue);border-radius:14px;margin:16px 0;padding:15px 16px}.tip strong{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.1px;margin-bottom:7px}.tip p{font-size:13px;margin:0;line-height:1.63}.tip.check{background:var(--tint)}.div-table{width:100%;border-collapse:collapse;margin:15px 0 21px;font-size:12px}.div-table td,.div-table th{border-bottom:1px solid var(--thin);text-align:left;vertical-align:top;padding:10px 8px}.div-table th{font-size:11px;background:var(--tint);font-weight:800}.div-table td:first-child{font-weight:850}.lesson-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.outline-button{border-radius:11px;border:1px solid var(--thin);background:var(--white);color:var(--blue);padding:11px 13px;font-size:12px;font-weight:750}.quiz-card{margin:24px 0;border:1px solid var(--blue);border-radius:18px;padding:19px 16px 16px}.quiz-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted)}.quiz-card h2{margin:9px 0 14px;font-size:17px}.answer-grid{display:grid;gap:8px}.answer{border:1px solid var(--thin);background:var(--white);border-radius:11px;padding:12px 13px;font-weight:700;text-align:left;color:var(--blue)}.answer.selected{border-color:var(--blue);background:var(--tint2)}.quiz-feedback{font-size:12.5px;padding:12px 14px;border-radius:11px;background:var(--tint);margin-top:12px;line-height:1.6}.subsection-heading{font-weight:800;font-size:15px;margin:23px 0 11px}.section-cover{background:var(--blue);color:var(--white);border-radius:18px;padding:22px;margin-bottom:22px}.section-cover h1{font-size:26px}.section-cover p{font-size:14px;margin:0;opacity:.8}.search-results-title{font-size:20px;margin:0 0 16px}.practice-hero{background:var(--tint);border:1px solid var(--thin);border-radius:18px;padding:22px 20px;margin-bottom:23px}.practice-hero h1{font-size:23px;margin-bottom:7px}.practice-hero p{font-size:13px;color:var(--muted);margin-bottom:0}.practice-list{display:flex;flex-direction:column;gap:10px}.practice-row{display:flex;align-items:center;gap:13px;border:1px solid var(--thin);border-radius:14px;padding:15px;background:var(--white);color:var(--blue);text-align:left}.practice-row .num{width:33px;height:33px;background:var(--blue);color:var(--white);border-radius:10px;display:grid;place-items:center;font-weight:850}.practice-row div:nth-child(2){flex:1;font-size:14px;font-weight:750}.practice-row small{display:block;color:var(--muted);font-weight:500;margin-top:3px}.print-footer{font-size:12px;color:var(--muted);margin:25px 0;text-align:center}.desktop-nav{display:flex;flex-direction:column;gap:7px}.side-nav{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--blue);opacity:.68;border-radius:11px;text-align:left;padding:13px 15px;font-weight:750;font-size:14px}.side-nav.active{background:var(--blue);opacity:1;color:var(--white)}.side-nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}.side-note{padding:16px;border:1px solid var(--thin);border-radius:14px;margin-top:auto}.side-note strong{font-size:12px}.side-note p{font-size:12px;color:var(--muted);margin:7px 0 0}.focus-spacer{height:3px}.page-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.plain-title{font-size:26px;letter-spacing:-.9px;margin:0 0 14px}.categories.section-page{margin:0 0 20px}.status-line{padding:10px 12px;border-radius:10px;background:var(--tint);font-size:12px;margin-bottom:12px}
@media(min-width:760px){body{background:rgba(16,42,86,.032)}.shell{display:grid;grid-template-columns:265px minmax(0,1fr);max-width:1440px;margin:auto}.desktop-sidebar{background:var(--white);display:flex;flex-direction:column;gap:30px;position:sticky;top:0;height:100vh;border-right:1px solid var(--thin);padding:30px 18px 22px}.brand-desktop{flex:none;margin:0 0 10px 6px}.topbar{padding:0 35px}.topbar .brand{visibility:hidden}.app-column{background:var(--white);min-height:100vh}#main{max-width:800px;padding:32px 38px 64px;min-height:calc(100vh - 74px)}.mobile-nav{display:none}.hero{padding:32px 30px}.hero h1{font-size:35px}.categories{grid-template-columns:repeat(4,1fr)}.category-card{min-height:170px}.category-title{font-size:14px}.topbar #backBtn[hidden]{display:none}.lesson-title{font-size:34px}.topbar{justify-content:flex-end}}
@media(max-width:375px){.categories{gap:9px}.category-card{padding:13px 12px;min-height:157px}.hero h1{font-size:27px}.topic-main strong{font-size:13px}#main{padding-left:14px;padding-right:14px}.formula-box .math{font-size:18px}}
@media print{body{background:var(--white);font-size:12pt}.topbar,.desktop-sidebar,.mobile-nav,.save-button,.steps-more,.lesson-actions,.quiz-card,.breadcrumbs,.print-footer,.link-action{display:none!important}.shell{display:block}#main{max-width:none;min-height:0;padding:0 12mm}.lesson-title{font-size:22pt}.lesson-header{margin-bottom:10mm}.step-list{display:block}.step{break-inside:avoid;margin-bottom:4mm}.formula-box,.notice,.tip{break-inside:avoid}.tip{border-color:var(--blue)}@page{size:A4;margin:14mm}}
.topic-card>svg{width:17px;height:17px;flex:0 0 17px;opacity:.52;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.steps-more svg,.outline-button svg,.practice-row>svg,.tip strong svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.steps-more svg{margin-left:5px}.outline-button svg{margin-right:4px}.practice-row>svg{flex:none}.tip strong svg{margin-right:2px}.empty>svg{fill:none;stroke:currentColor;stroke-width:1.7}
[hidden]{display:none!important}
