:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172643;background:#f5f7fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #94baff;outline-offset:2px}a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100dvh}.sidebar{background:#0c1d3c;color:#e4edff;padding:28px 15px 18px;display:flex;flex-direction:column;gap:25px;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:11px;padding:4px 12px}.brand-logo{width:42px;height:42px;display:grid;place-items:center;background:#224782;border:1px solid #3b5f9a;border-radius:13px;color:#9dcbff}.brand-copy strong{display:block;font-size:18px;letter-spacing:-.5px}.brand-copy small{font-size:10px;color:#9eafcf;letter-spacing:.07em;text-transform:uppercase}.sidebar-title{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#6e8ebd;text-transform:uppercase;padding:0 14px;margin-bottom:-12px}.nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;border:0;width:100%;padding:12px 14px;background:transparent;color:#afc1e2;border-radius:12px;font-size:13px;font-weight:590}.nav-item:hover{background:#172f58;color:#fff}.nav-item.active{background:#204574;color:white;box-shadow:inset 3px 0 #65b4ff}.sidebar-footer{margin-top:auto;background:#132950;border:1px solid #24416b;border-radius:16px;padding:16px}.sidebar-footer strong{font-size:13px}.sidebar-footer p{font-size:12px;color:#a4b8dc;line-height:1.6}.mini-dot{display:inline-block;width:7px;height:7px;background:#67dbb7;border-radius:100%;margin-right:5px}.main{padding:34px clamp(18px,4.4vw,70px) 58px;max-width:1450px;width:100%;margin:0 auto}.top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#6282ac;font-weight:750;text-transform:uppercase}.top h1{font-size:clamp(25px,3vw,34px);letter-spacing:-1.2px;margin:7px 0 0;color:#182845}.top-actions{display:flex;gap:10px;align-items:center}.round-btn{width:40px;height:40px;border-radius:12px;border:1px solid #e3e8f1;background:white;color:#4d6281;display:grid;place-items:center}.badge-pill{background:#e8f0fb;color:#2b5893;font-size:11px;border-radius:100px;padding:9px 12px;font-weight:650}.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;border-radius:11px;padding:12px 16px;font-size:13px;font-weight:750;border:1px solid transparent;white-space:nowrap}.primary{background:#246bd5;color:#fff;box-shadow:0 6px 16px rgba(28,95,200,.15)}.primary:hover{background:#1a5dbe}.secondary{background:white;color:#23426f;border-color:#dce5f0}.secondary:hover{background:#f3f7fd}.danger{background:#fff0f1;color:#ae2838;border-color:#ffdae0}.light{background:#ffffff29;color:white;border-color:#ffffff44}.small{padding:9px 12px;font-size:12px}.hero{background:linear-gradient(113deg,#14356c 0%,#255dab 67%,#377bd3 100%);min-height:214px;color:#fff;border-radius:23px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;box-shadow:0 11px 25px #193c8420}.hero::before,.hero::after{content:"";position:absolute;border:1px solid #d8eaff2e;border-radius:50%;width:320px;height:320px;right:-35px;top:-80px}.hero::after{width:210px;height:210px;right:22px;top:-25px}.hero-content{z-index:1;max-width:580px}.hero .eyebrow{color:#bcd7ff}.hero h2{font-size:clamp(24px,3vw,32px);letter-spacing:-.9px;line-height:1.2;margin:12px 0}.hero p{font-size:13px;line-height:1.65;color:#dbebff;max-width:455px;margin-bottom:20px}.hero-art{position:relative;z-index:1;width:155px;flex:none;opacity:.9}.hero-art svg{width:150px;height:150px;filter:drop-shadow(0px 12px 15px #103c7f)}.grid-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0 30px}.stat{background:#fff;border:1px solid #e8edf4;border-radius:16px;padding:18px;min-width:0;box-shadow:0 5px 17px #142e5206}.stat-top{display:flex;align-items:center;justify-content:space-between}.stat-icon{width:37px;height:37px;background:#e9f2ff;color:#387bd0;border-radius:11px;display:grid;place-items:center}.stat-number{font-size:28px;font-weight:800;letter-spacing:-1px;margin:12px 0 3px}.stat-label{font-size:12px;color:#71819b}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;gap:10px}.section-head h2{font-size:18px;letter-spacing:-.4px;margin:0}.subtle{font-size:12px;color:#8190aa}.text-link{border:0;background:none;color:#2769bf;font-weight:700;font-size:12px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.study-card{background:#fff;border:1px solid #e6ebf2;border-radius:17px;padding:19px;min-width:0;display:flex;flex-direction:column;gap:13px;box-shadow:0 4px 13px #16274904}.study-card:hover{border-color:#b8d0f3}.card-head{display:flex;align-items:center;justify-content:space-between}.card-type{font-size:10px;color:#567faf;background:#e9f2fc;border-radius:6px;padding:6px 9px;font-weight:750;letter-spacing:.04em}.icon-btn{border:0;background:transparent;color:#8a98ae;padding:5px;display:grid;place-items:center;border-radius:6px}.icon-btn:hover{background:#f1f5fa;color:#265a9d}.icon-btn.on{color:#e57887}.study-card h3{font-size:15px;margin:1px 0 0;line-height:1.4;color:#172943}.study-card p{margin:0;font-size:12px;color:#74839a;line-height:1.65;min-height:38px;overflow-wrap:anywhere}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto}.ref{font-size:11px;color:#5c78a0;font-weight:690}.card-actions{display:flex;gap:4px}.tagrow{display:flex;gap:6px;flex-wrap:wrap}.tag{background:#f0f4fa;color:#637997;font-size:10px;padding:5px 8px;border-radius:20px}.panel{border:1px solid #e7edf5;background:#fff;border-radius:17px;padding:21px}.split{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.quick-action{display:flex;align-items:center;gap:14px;width:100%;background:#fff;border:1px solid #e7edf5;padding:16px;border-radius:14px;text-align:left;margin:10px 0}.quick-action>span:first-child{width:40px;height:40px;background:#ecf3ff;color:#326bbc;border-radius:12px;display:grid;place-items:center}.quick-action strong{display:block;font-size:13px}.quick-action small{font-size:11px;color:#8a98ab}.searchbar{background:white;border:1px solid #dde6f0;border-radius:13px;padding:0 13px;display:flex;align-items:center;gap:10px;color:#8c9db7;min-height:49px}.searchbar input{border:none;outline:none;font-size:13px;flex:1;width:100%;color:#14243c}.searchbar input:focus{outline:none}.filters{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 21px}.chip{border-radius:999px;border:1px solid #dbe4f0;background:white;color:#56708f;font-size:12px;font-weight:680;padding:9px 14px}.chip.active{background:#1e4e97;border-color:#1e4e97;color:#fff}.quiz-config{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.config-group{margin:0 0 22px}.config-group>label,.field label{display:block;font-size:12px;font-weight:750;color:#344562;margin:0 0 9px}.field input,.field textarea,.field select{display:block;width:100%;min-height:43px;border:1px solid #dbe4ef;border-radius:11px;padding:11px 12px;background:white;color:#233653;outline:none;font-size:13px}.field textarea{min-height:113px;resize:vertical;line-height:1.55}.field input:focus,.field textarea:focus,.field select:focus{border-color:#5b92e8;box-shadow:0 0 0 3px #e7f1ff}.field{margin-bottom:17px}.option-row{display:flex;gap:9px;flex-wrap:wrap}.choice{padding:12px 16px;border:1px solid #dce5f1;border-radius:11px;background:white;font-weight:650;font-size:12px;color:#506789}.choice.active{color:#1c5fbc;background:#eaf3ff;border-color:#83b0eb}.tip{display:flex;align-items:flex-start;gap:10px;background:#eef6ff;color:#527096;padding:15px;border-radius:12px;font-size:12px;line-height:1.65}.quiz-card{max-width:830px;margin:0 auto;background:white;border:1px solid #e5ebf5;border-radius:22px;padding:clamp(20px,4vw,37px);box-shadow:0 14px 38px #18365b10}.progress-line{background:#edf2f9;height:8px;border-radius:30px;overflow:hidden}.progress-line span{display:block;height:100%;background:linear-gradient(90deg,#2a6dcc,#6ca9ff);border-radius:30px;transition:width .22s}.question-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.question-head strong{font-size:12px;color:#5f7899}.question-text{font-size:clamp(21px,3vw,27px);line-height:1.35;letter-spacing:-.4px;margin:30px 0}.answer-grid{display:grid;gap:11px;margin:20px 0}.answer{width:100%;text-align:left;border:1px solid #e2e8f1;background:#fff;padding:17px 15px;border-radius:13px;display:flex;align-items:center;gap:13px;color:#2a3d59;font-size:14px;font-weight:570}.answer .letter{display:grid;place-items:center;width:29px;height:29px;border:1px solid #dce6f4;background:#f5f9ff;color:#5a7ba8;border-radius:9px;font-size:12px;flex:none}.answer:hover:not(:disabled){border-color:#83b4ec;background:#f9fcff}.answer.selected{border-color:#4986db;background:#edf5ff}.answer.good{background:#e9f9f3;border-color:#7bd8b6}.answer.bad{background:#fff0f2;border-color:#e8a2ad}.answer.good .letter{background:#bde8d6}.answer.bad .letter{background:#ffdbe1}.feedback{border-radius:11px;padding:14px 16px;background:#f1f6ff;font-size:12px;line-height:1.6;color:#3c5d85;margin:14px 0}.feedback strong{display:block;margin-bottom:4px}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px}.result-icon{width:74px;height:74px;background:#e3f2ff;color:#2a71cb;border-radius:26px;margin:0 auto 18px;display:grid;place-items:center}.result{text-align:center}.result h2{font-size:30px;margin:7px 0}.result p{font-size:13px;line-height:1.7;color:#7a8aa3}.result-score{font-size:64px;letter-spacing:-3px;font-weight:850;color:#1e579e;margin:15px 0}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:25px}.empty{background:#fff;border:1px dashed #cddbec;border-radius:16px;text-align:center;padding:36px 22px;color:#7a8da8}.empty h3{color:#344967}.empty p{font-size:13px;line-height:1.65}.empty-icon{width:60px;height:60px;border-radius:20px;margin:0 auto;background:#eff5fd;color:#3975c9;display:grid;place-items:center}.review-list{display:grid;gap:9px}.review-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;background:white;border:1px solid #e4eaf3;border-radius:13px}.review-item strong{font-size:13px}.review-item small{display:block;margin-top:5px;color:#7a89a2}.modal-wrap{position:fixed;inset:0;background:#0e1b35aa;z-index:30;display:grid;place-items:center;padding:18px;overflow:auto}.modal{width:min(100%,540px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;padding:25px;border-radius:22px;box-shadow:0 22px 70px #020d2855}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.modal-top h2{font-size:20px;margin:0}.modal-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}.small-muted{font-size:11px;color:#8b9bb2;line-height:1.6}.divider{border:0;border-top:1px solid #ebeff5;margin:21px 0}.notice{padding:15px 18px;background:#fff8e8;border:1px solid #f5e2ad;border-radius:12px;font-size:12px;color:#8f713e;line-height:1.6}.toast{position:fixed;z-index:40;right:22px;bottom:22px;background:#163868;color:white;padding:12px 17px;border-radius:12px;font-size:12px;box-shadow:0 10px 30px #182e4655;animation:appear .2s}@keyframes appear{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.mobile-nav{display:none}.inline-input{display:flex;gap:10px}.inline-input>*:first-child{flex:1}.ai-label{display:inline-block;color:#7f63d9;background:#f3efff;padding:5px 9px;border-radius:7px;font-size:11px;font-weight:700}.source-note{margin-top:8px;color:#7b8ba3;font-size:11px;line-height:1.6}.warning-text{color:#bb603c}.note-preview{white-space:pre-wrap;font-size:12px;line-height:1.6;max-height:100px;overflow:auto;color:#64758d}.space-y>*+*{margin-top:14px}.flex-between{display:flex;align-items:center;justify-content:space-between;gap:10px}.hidden{display:none!important}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding-left:25px;padding-right:25px}}
@media(max-width:720px){.shell{display:block}.sidebar{display:none}.main{padding:24px 16px 110px}.top{margin-bottom:20px}.top h1{font-size:26px}.top-actions .badge-pill{display:none}.hero{padding:22px;min-height:230px}.hero-art{width:75px;align-self:end}.hero-art svg{width:100px;height:100px;opacity:.7}.cards{grid-template-columns:1fr}.grid-stats{gap:10px}.stat{padding:14px}.stat-number{font-size:25px}.stat-label{font-size:11px}.split,.quiz-config{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;height:calc(70px + env(safe-area-inset-bottom));padding:8px 6px calc(9px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e6edf5;box-shadow:0 -6px 26px #1b2b410d;justify-content:space-around}.mobile-nav button{display:flex;flex:1;align-items:center;flex-direction:column;justify-content:center;gap:3px;background:none;color:#8b9bb2;border:0;font-size:10px;font-weight:680;padding:5px 0}.mobile-nav button.active{color:#2167bd}.mobile-nav button svg{width:20px;height:20px}.toast{bottom:calc(82px + env(safe-area-inset-bottom));left:16px;right:16px}.question-text{margin:22px 0;font-size:22px}.quiz-card{padding:18px}.quiz-bottom{flex-wrap:wrap}.top .round-btn{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
