:root{--navy:#102a3c;--ink:#152e40;--muted:#657783;--orange:#f9ac47;--line:#dfe6eb;--bg:#f4f7f9;--green:#177657;--red:#b83f42}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #d47a12;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3.2vw,3.1rem);line-height:1.18;letter-spacing:-1.8px;margin-bottom:20px}h2{font-size:1.45rem;letter-spacing:-.6px}h3{font-size:1.1rem}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--navy);color:#e6eff4;padding:36px 22px;display:flex;flex-direction:column}.brand{text-decoration:none;display:flex;gap:13px;align-items:center;font-size:1.6rem;font-weight:800;letter-spacing:1px;padding:0 8px}.brand-icon{color:var(--orange);font-size:45px;line-height:1}.brand-light{font-weight:400}.brand small{display:block;font:10px/1.5 'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:1.9px;color:#a2b4c2}.nav-label{font-size:11px;letter-spacing:1.3px;color:#94adbd;margin:55px 12px 18px}.nav-item{color:#b4c5d1;background:none;border:0;width:100%;padding:14px 13px;margin:4px 0;display:flex;gap:12px;align-items:center;text-align:left;border-radius:8px;font-size:14px}.nav-item>span:first-child{font-size:21px;width:23px}.nav-item.active{background:#234153;color:#fff}.nav-item.active>span:first-child{color:var(--orange)}.nav-badge{margin-left:auto;background:#375466;border-radius:4px;min-width:22px;text-align:center;font-size:12px}.sidebar-bottom{margin-top:auto;padding:25px 10px 0}.tiny-tag{font-size:10px;letter-spacing:1.2px;color:#aac0cc}.sidebar-bottom p{margin:16px 0 7px;font-size:18px}.sidebar-bottom small{font-size:13px;color:#a8bdcb;line-height:1.8}.sidebar-foot{margin-top:30px;padding-top:20px;border-top:1px solid #365060;font-size:10px;letter-spacing:1.1px;display:flex;justify-content:space-between;color:#a7bdc9}.sidebar-foot span{color:#7693a5}.workspace{margin-left:244px}.topbar{height:86px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 48px;background:#fff;font-size:14px}.topbar-note{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:11px;letter-spacing:1.3px}.avatar{display:grid;place-items:center;background:#edf1f4;border:1px solid var(--line);border-radius:50%;height:34px;width:34px;color:var(--ink);font-size:13px}main{max-width:1340px;padding:38px 48px 30px;margin:auto;outline:none}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.8px;color:#718593}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading h2{margin:6px 0 0;font-size:1.8rem}.model-switch{display:flex;gap:5px;background:#e6edf1;border-radius:8px;padding:5px}.model-switch button{border:0;background:none;color:var(--muted);padding:8px 18px;font-weight:700;font-size:14px;border-radius:5px}.model-switch button.active{background:#fff;color:var(--navy);box-shadow:0 1px 4px #152e4010}.hero{display:grid;grid-template-columns:1.1fr .9fr;background:var(--navy);color:#fff;border-radius:14px;min-height:300px;overflow:hidden;position:relative}.hero-copy{padding:38px;z-index:1}.hero .eyebrow{color:#b8ccd8}.hero h1{margin-top:18px}.hero p{color:#bed0dc;font-size:14px;max-width:390px;margin-bottom:0}.hero .accent{color:var(--orange)}.aircraft{background:radial-gradient(ellipse at center,#2a4d62 0,transparent 70%);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.aircraft::before{content:'';position:absolute;inset:0;background-image:linear-gradient(#b3d0e10a 1px,transparent 1px),linear-gradient(90deg,#b3d0e10a 1px,transparent 1px);background-size:32px 32px;transform:rotate(-12deg) scale(1.3)}.aircraft svg{width:112%;min-width:310px;position:relative;transform:rotate(-9deg)}.aircraft-label{position:absolute;bottom:24px;right:28px;font-size:10px;letter-spacing:2px;color:#a7c0d0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 32px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 23px;display:flex;align-items:center;gap:18px}.stat-icon{border-radius:9px;background:#edf3f7;height:43px;width:43px;display:grid;place-items:center;color:#497187;font-size:24px}.stat strong{font:800 26px Manrope,system-ui,sans-serif;display:block;letter-spacing:-1px}.stat small{font-size:12px;color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 15px;gap:12px}.section-heading h2{margin:0}.section-heading small,.muted{color:var(--muted);font-size:14px}.topics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.topic{background:#fff;border:1px solid var(--line);border-radius:10px;text-align:left;padding:20px 16px;color:var(--ink);min-height:146px;position:relative}.topic.active{border:1.5px solid #43697f;background:#f0f6fa}.topic-symbol{font-size:25px;color:#52788c;display:block;margin-bottom:18px}.topic strong{display:block;font-size:14px}.topic small{font-size:12px;color:var(--muted)}.topic-check{position:absolute;right:12px;top:12px;height:15px;width:15px;border-radius:50%;border:1px solid #b9c7d0}.topic.active .topic-check{background:var(--navy);border:4px solid #c4d6e1}.setup{background:#fff;border:1px solid var(--line);border-radius:12px;margin-top:24px;padding:25px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.mode-options{display:flex;gap:7px;margin:12px 0}.mode-options button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:9px 17px;font-size:14px;color:var(--muted)}.mode-options button.active{color:var(--ink);border-color:#627f90;background:#f0f5f8}.config-bottom{display:flex;gap:15px;align-items:center;font-size:13px;color:var(--muted)}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23152e40' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;border:1px solid var(--line);border-radius:6px;padding:9px 32px 9px 12px;color:var(--ink);font-size:14px}.primary{border:0;background:var(--orange);color:#26313b;border-radius:7px;padding:14px 25px;font-weight:700;font-size:14px}.secondary{border:1px solid #c4d0d8;background:white;color:var(--ink);border-radius:7px;padding:11px 18px;font-weight:600;font-size:14px}.text-button{background:none;border:0;padding:5px 0;color:#3b657d;text-decoration:underline;text-underline-offset:4px;font-size:14px}.setup-note{font-size:12px;color:var(--muted);margin:9px 0 0;text-align:center}.source-strip{margin:23px 0;display:flex;gap:12px;align-items:flex-start;color:var(--muted);font-size:13px}.source-strip strong{color:var(--ink);font-weight:500}footer{padding:20px 48px 28px;max-width:1340px;margin:auto;color:#7a8b97;font-size:11px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px}footer span{letter-spacing:1.1px;white-space:nowrap}.notice{padding:12px 16px;background:#fff3df;border:1px solid #f1dab1;border-radius:6px;color:#805722;font-size:14px;margin-bottom:22px}.quiz-wrap{max-width:850px;margin:auto}.quiz-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.progress{height:5px;background:#dee7ed;border-radius:9px;margin:18px 0 30px}.progress span{display:block;background:#4f7e93;height:100%;border-radius:9px}.question-card{background:white;padding:34px;border:1px solid var(--line);border-radius:14px}.question-card h1{font-size:1.8rem;letter-spacing:-.7px;margin-top:18px}.chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chip{border:1px solid #d7e1e7;border-radius:5px;background:#f4f8fa;padding:4px 9px;font-size:12px;color:#4e6c80}.answer{width:100%;display:flex;align-items:center;gap:15px;background:white;border:1px solid #d7e1e7;border-radius:8px;text-align:left;margin:11px 0;padding:15px 18px;min-height:60px;color:var(--ink)}.answer-letter{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border:1px solid #dbe4e9;border-radius:5px;font-size:12px;color:var(--muted)}.answer:hover:enabled{border-color:#7897aa;background:#f7fafc}.answer.selected{border-color:#537e97;background:#eef5fa}.answer.correct{border-color:#4f9f83;background:#eef8f3}.answer.wrong{border-color:#d89194;background:#fff2f2}.answer:disabled{opacity:1}.feedback{border-radius:8px;padding:20px;background:#eff7f3;border-left:3px solid var(--green);margin-top:25px;font-size:15px}.feedback.bad{border-color:var(--red);background:#fff4f2}.feedback h3{margin-bottom:7px}.feedback p{margin-bottom:12px}.quiz-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:25px}.timer{font-variant-numeric:tabular-nums;font-size:14px}.results-score{font:800 70px Manrope,system-ui,sans-serif;color:var(--navy);letter-spacing:-4px}.results-score small{font-size:20px;color:var(--muted);letter-spacing:0}.result-item{background:white;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:8px;padding:23px;margin-top:14px}.result-item.wrong{border-left-color:var(--red)}.result-item p{margin:9px 0;font-size:14px}.result-item h3{margin:10px 0;font-size:16px}.library-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:20px}input[type=search]{flex:1;min-width:200px;background:white;border:1px solid #cbd8e0;border-radius:7px;padding:12px 16px;color:var(--ink)}.page-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.page-card{border:1px solid var(--line);background:white;border-radius:10px;overflow:hidden}.page-card img{width:100%;height:190px;object-fit:cover;object-position:50% 25%;border-bottom:1px solid var(--line)}.page-card-body{padding:18px}.page-card h3{margin:10px 0 6px;font-size:16px}.page-card p{font-size:12px;color:var(--muted);margin-bottom:13px}.empty{padding:60px 25px;text-align:center;border:1px dashed #bacbd7;border-radius:12px;background:#fff}.empty h2{margin-bottom:8px}.local-warning{background:#fff0da;padding:15px;margin-bottom:20px}.history{margin:25px 0}.history-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}dialog{border:0;border-radius:14px;width:min(1200px,95vw);max-height:92vh;padding:26px;color:var(--ink);box-shadow:0 20px 100px #051b3b55}dialog::backdrop{background:#061723b3}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-top h2{margin:7px 0 20px}.icon-button{border:1px solid var(--line);border-radius:50%;background:white;width:36px;height:36px;flex-shrink:0}.source-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}.source-layout img{width:100%;height:auto}.source-layout h3{margin-top:0}.source-layout a{font-size:14px}.source-layout pre{white-space:pre-wrap;font:14px/1.7 monospace;background:#f3f6f8;padding:20px;overflow-wrap:anywhere}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:12px 20px;border-radius:8px;display:none;z-index:10}#toast.show{display:block}.count-label{margin:14px 0 22px;color:var(--muted);font-size:14px}
@media(min-width:1500px){.hero{min-height:320px}.hero-copy{padding:42px}}@media(max-width:1150px){.sidebar{width:210px;padding:30px 16px}.workspace{margin-left:210px}main{padding:30px}.topbar{padding:0 30px}.hero-copy{padding:30px}.topics{grid-template-columns:repeat(3,1fr)}.topic{min-height:120px}.stat{padding:17px 14px;gap:10px}.stat-icon{width:34px;height:34px}.page-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:16px 20px;display:block}.brand{font-size:22px;padding:0}.brand small{font-size:9px}.brand-icon{font-size:32px}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin-top:14px;gap:6px}.nav-item{font-size:12px;justify-content:center;padding:9px 5px;gap:6px;margin:0}.nav-item>span:first-child{display:none}.nav-badge{margin-left:0;min-width:18px}.workspace{margin-left:0}.topbar{height:58px;padding:0 20px}.topbar-note{font-size:9px;gap:10px}.avatar{width:27px;height:27px}main{padding:25px 20px}.page-heading{gap:12px}.page-heading h2{font-size:23px}.model-switch button{padding:8px 12px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:28px}.hero h1{font-size:32px;letter-spacing:-1px}.hero p{max-width:100%}.aircraft{height:140px;margin-top:-8px}.aircraft svg{width:85%;min-width:0;max-width:360px}.aircraft-label{bottom:14px;font-size:8px}.stats{gap:8px;margin:15px 0 26px}.stat{padding:15px 8px;display:block;text-align:center}.stat-icon{display:none}.stat strong{font-size:23px}.stat small{font-size:10px}.section-heading{align-items:start}.section-heading h2{font-size:20px}.section-heading small{font-size:12px;max-width:105px;text-align:right}.topics{grid-template-columns:repeat(2,1fr);gap:9px}.topic{padding:16px;min-height:115px}.topic-symbol{margin-bottom:10px}.setup{grid-template-columns:1fr;padding:20px;gap:14px}.setup>div:last-child .primary{width:100%}.config-bottom{gap:10px;font-size:12px}.mode-options button{padding:9px 12px}.question-card{padding:23px 18px}.question-card h1{font-size:23px;line-height:1.4}.quiz-top{font-size:12px}.quiz-actions{flex-wrap:wrap}.page-grid{grid-template-columns:1fr 1fr;gap:10px}.page-card img{height:130px}.page-card-body{padding:12px}.page-card h3{font-size:14px}.source-layout{grid-template-columns:1fr}dialog{padding:18px}footer{padding:20px;font-size:10px}footer span{display:none}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,border-color .15s}.hero-copy{animation:reveal .4s ease-out}@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.offline-panel{max-width:1244px;margin:24px 48px 0;padding:18px 22px;background:#eaf2f6;border:1px solid #c9dce7;border-radius:10px;display:flex;gap:20px;align-items:start}.offline-panel strong{font-size:15px;margin-right:12px}.offline-panel p{font-size:14px;margin:8px 0;color:#486377}.offline-panel summary{font-size:14px;color:#315870;cursor:pointer}.offline-panel button{flex-shrink:0}.offline-panel details{max-width:760px}.offline-panel[hidden]{display:none}@media(max-width:1150px){.offline-panel{margin:20px 30px 0}}@media(max-width:760px){.offline-panel{margin:18px 20px 0;padding:18px;display:block}.offline-panel button{margin-top:14px;width:100%}}
