@charset "UTF-8";
:root{--paper:#f7f5ef;--card:#fffefa;--ink:#173440;--muted:#6b7879;--line:#e1e5dc;--teal:#226c68;--light:#eaf2ec;--gold:#e8c680;--navy:#102f3d;--danger:#a23f38;--reading-size:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;line-height:1.55}
*{box-sizing:border-box}html{scroll-padding-top:22px}body{margin:0;background:var(--paper);color:var(--ink)}body.dark{--paper:#142128;--card:#1c2e35;--ink:#e5ece6;--muted:#a9bbb6;--line:#35494e;--teal:#9ad0bd;--light:#263f40;--gold:#e8c680;--navy:#0c1d25;--danger:#f0ada0;color-scheme:dark}a{color:var(--teal);text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c99532;outline-offset:3px}input,select,textarea{background:var(--card);color:var(--ink);border:1px solid #bdcbc2;border-radius:10px;min-height:46px;max-width:100%;padding:11px 13px}input[type=checkbox],input[type=radio]{accent-color:var(--teal);width:19px;height:19px;min-height:19px;flex-shrink:0;padding:0}textarea{width:100%;min-height:210px;resize:vertical;line-height:1.8}label{display:block}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{font-weight:660;line-height:1.22;letter-spacing:-.035em}h1{font-size:clamp(29px,3.2vw,43px);margin-bottom:15px;max-width:950px}h2{font-size:25px}h3{font-size:19px}p{margin-bottom:17px}img{max-width:100%;height:auto}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{display:block;font-size:10px;letter-spacing:.14em;font-weight:750;color:var(--teal);text-transform:uppercase;margin-bottom:13px}.row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.between{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.intro{margin-bottom:29px}.intro p{font-size:15px;color:var(--muted);max-width:760px;margin-bottom:0}.intro .actions{margin-top:20px}.skip{position:fixed;top:8px;left:12px;z-index:100;background:var(--navy);color:#fff;padding:13px 18px;border-radius:8px;transform:translateY(-150%)}.skip:focus{transform:translateY(0)}
.sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:29px 23px 20px;background:var(--card);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:25}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:25px;font-weight:800;letter-spacing:-.05em}.brand img{width:51px;height:51px;border-radius:12px;object-fit:contain;flex-shrink:0;background:#131210}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.005em;font-weight:500;margin-top:3px}.brand em{font-size:10px;font-style:normal;color:var(--teal);border:1px solid var(--line);padding:2px 5px;border-radius:4px;vertical-align:middle;letter-spacing:.08em}.nav-links{display:grid;gap:7px;margin-top:45px}.nav-links a{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:580;min-height:48px}.nav-links a span{width:23px;text-align:center;font-size:21px;font-weight:400;line-height:1}.nav-links a:hover{background:var(--paper)}.nav-links a.active{color:var(--teal);background:var(--light)}.sidebar-foot{margin-top:auto;padding:24px 12px 0;color:var(--muted);font-size:10px;line-height:1.9;border-top:1px solid var(--line)}.sidebar-foot p{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.5;color:var(--ink);margin-bottom:19px}.sidebar-foot .eyebrow{font-size:8px;letter-spacing:.09em}.shell{margin-left:250px}.topbar{height:80px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-size:12px;color:var(--muted)}.offline{font-size:10px;display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid var(--line);border-radius:30px;padding:7px 11px;color:var(--teal)}.offline:before{content:"";width:6px;height:6px;background:#659e78;border-radius:50%}.mobile-brand{display:none}main,#main{max-width:1320px;margin:0 auto;padding:37px 42px 45px;min-height:calc(100vh - 163px)}main>*{min-width:0}footer{padding:19px 42px 24px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.bottom-nav{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:11px 18px;border:1px solid var(--teal);border-radius:10px;background:var(--teal);color:#fff;font-size:13px;font-weight:650;line-height:1.4;text-align:center}.btn:hover{filter:brightness(.95)}.btn.secondary{background:var(--card);border-color:#bccfc2;color:var(--ink)}.btn.ghost{background:transparent;border-color:transparent;color:var(--teal)}.btn.danger{background:transparent;border-color:#d4aba5;color:var(--danger)}.btn.gold{background:var(--gold);border-color:var(--gold);color:#15313b}.btn.wide{width:100%}.btn.sm{padding:9px 12px;font-size:12px}.card{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:25px}.hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:24px;margin-bottom:35px}.book-cover{min-height:365px;background:#102f3d;color:#fbf8eb;border-radius:17px;overflow:hidden;position:relative;padding:32px 33px;display:flex;flex-direction:column;box-shadow:0 8px 0 -3px #d9d9c9,0 17px 30px -18px #183c4b50}.book-cover:before{content:"";position:absolute;inset:0 auto 0 12px;border-left:1px solid #ffffff17}.cover-kicker{color:#b5d2c5;font-size:9px;letter-spacing:.17em;margin-bottom:30px;position:relative;z-index:1}.cover-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(33px,3.2vw,47px);line-height:1.13;letter-spacing:-.035em;font-weight:400;max-width:360px;margin-bottom:19px;position:relative;z-index:1}.book-cover>p{font-size:12px;max-width:270px;color:#b5d2c5;position:relative;z-index:1}.cover-bottom{margin-top:auto;padding-top:30px;display:flex;align-items:end;justify-content:space-between;gap:15px;position:relative;z-index:1;font-size:12px}.cover-bottom small{display:block;color:#a6c1b8;font-size:9px;margin-bottom:7px}.cover-number{position:absolute;bottom:60px;right:22px;font:130px/1 Georgia,serif;color:#7aa99d17;letter-spacing:-.06em}.cover-orbit{position:absolute;width:250px;height:250px;right:-78px;top:38px;border:1px solid #d5bb7d35;border-radius:50%}.cover-orbit:before,.cover-orbit:after{content:"";position:absolute;inset:20px;border:1px solid #d5bb7d35;border-radius:50%}.cover-orbit:after{inset:42px}.hero-side{display:flex;flex-direction:column;gap:17px;min-width:0}.continue-card{flex:1;padding:27px}.continue-card h2,.continue-card h3{font-size:24px;line-height:1.3;margin:13px 0 15px}.continue-card p{font-size:13px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.stat{padding:18px 9px;background:var(--card);border:1px solid var(--line);border-radius:13px;text-align:center}.stat b{display:block;color:var(--teal);font:30px/1.2 Georgia,serif}.stat span{display:block;font-size:10px;color:var(--muted);margin-top:7px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:29px 0 19px;flex-wrap:wrap}.section-head h2{margin:0;font-size:24px}.section-head a{font-size:12px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chapter-card{display:flex;align-items:start;gap:17px;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:13px;color:var(--ink)}.chapter-card:hover{border-color:#8caf9d}.chapter-no{font:32px/1.2 Georgia,serif;color:#8da99b;flex-shrink:0;min-width:37px}.chapter-info{min-width:0}.chapter-info h3{font-size:16px;line-height:1.4;letter-spacing:-.02em;margin-bottom:10px}.chapter-info p,.chapter-info small{font-size:11px;color:var(--muted);margin:0}.tag{display:inline-block;padding:4px 8px;border-radius:6px;background:var(--light);color:var(--teal);font-size:10px;line-height:1.5;font-weight:600}.tag+.tag{margin-left:5px}.filters{display:flex;align-items:center;gap:12px;margin:0 0 22px;flex-wrap:wrap}.filters input{flex:2;min-width:190px}.filters select{flex:1;min-width:140px;font-size:12px}.empty{border:1px dashed var(--line);border-radius:13px;padding:32px 25px;color:var(--muted);font-size:14px;text-align:center}.callout{padding:17px 19px;background:var(--light);border-left:3px solid var(--teal);border-radius:0 10px 10px 0;font-size:13px;line-height:1.7;margin:20px 0}.callout p:last-child{margin-bottom:0}.progress-fill{height:5px;background:var(--line);border-radius:10px;overflow:hidden;margin:15px 0 11px}.progress-fill i,.progress-fill>span{display:block;background:#4a9282;height:100%;border-radius:10px}
.reader-toolbar,.reader-nav{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:20px}.reader-nav{margin:23px 0 0}.reader{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:34px;max-width:100%;min-width:0}.reader>h1{font-size:clamp(27px,2.5vw,38px);line-height:1.3}.reader .eyebrow{margin-bottom:14px}.prose{font-family:Georgia,"Times New Roman",serif;font-size:var(--reading-size);line-height:1.87;overflow-wrap:anywhere;min-width:0;max-width:100%}.prose p{margin:0 0 19px}.prose h2{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:25px;line-height:1.35;margin:36px 0 20px;letter-spacing:-.025em}.prose h3{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:20px;line-height:1.4;margin:28px 0 15px;letter-spacing:-.02em}.prose h4{font-size:18px;margin:22px 0 12px}.prose ul,.prose ol{padding-left:27px;margin:18px 0}.prose li{padding-left:4px;margin:9px 0}.prose blockquote{margin:22px 0;padding:16px 20px;background:var(--light);border-left:3px solid var(--teal);border-radius:0 10px 10px 0;color:var(--ink)}.prose blockquote p:last-child{margin:0}.prose figure{margin:24px 0;max-width:100%;overflow-x:auto}.prose figure img{display:block;max-width:100%;height:auto;margin:0 auto}.prose figcaption{font:12px/1.7 Inter,-apple-system,sans-serif;color:var(--muted);margin-top:11px}.prose table{border-collapse:collapse;display:block;max-width:100%;overflow-x:auto;margin:22px 0;font-size:.9em}.prose td,.prose th{padding:10px 13px;border:1px solid var(--line);vertical-align:top}.prose th{background:var(--light)}.prose .box,.prose .studybox,.prose .warningbox,.prose .notebox,.prose .idea,.prose .asosiyfikr,.prose .callout{background:var(--light);border:1px solid var(--line);border-left:3px solid var(--teal);padding:17px 20px;border-radius:0 10px 10px 0;margin:22px 0;font-size:1em}.prose .theorem,.prose .teorema,.prose .example,.prose .misol{padding:18px 20px;margin:23px 0;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.prose .proof{margin:17px 0 25px}.prose details{margin:20px 0}.katex{font-size:1.05em}.katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 0;margin:19px 0}.katex-display>.katex{width:max-content;min-width:100%}.prose .katex-error{color:var(--danger)!important}.prose pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;font-size:13px}.reader-toolbar select{font-size:12px}.reader-toolbar .small{color:var(--muted)}
.problem-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;align-items:start}.problem-index{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow-y:auto;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:18px 15px}.problem-index h3{font-size:14px;line-height:1.5}.problem-list{display:grid;gap:8px}.problem-link{display:block;border:1px solid var(--line);border-radius:9px;padding:12px 13px;color:var(--ink);font-size:12px;line-height:1.6;min-height:44px}.problem-link:hover,.problem-link.active{background:var(--light);border-color:#8bb3a1;color:var(--teal)}.problem-link small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.problem-title{font-size:clamp(27px,2.6vw,38px);line-height:1.3;margin-bottom:18px}.note-label{font-size:12px;font-weight:650;margin-bottom:10px}.note-label small{color:var(--muted);font-weight:400}.problem-layout>section,.problem-layout>div{min-width:0}.problem-layout>.card{padding:28px}.problem-layout .card+.card{margin-top:18px}.check{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.7;min-height:44px}.check input{margin:0}.note-status{font-size:11px;color:var(--muted);margin:8px 0}details{border:1px solid var(--line);background:var(--card);border-radius:12px;margin:16px 0;overflow:hidden}summary{cursor:pointer;padding:17px 20px;font-size:13px;font-weight:650;min-height:54px;line-height:1.6}details[open]>summary{border-bottom:1px solid var(--line);background:var(--paper)}details>.prose{padding:19px 22px 5px}details>div:not(.prose){padding:18px 22px}details .prose p:last-child{margin-bottom:10px}
.quiz-hero{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:29px;margin-bottom:24px}.quiz-hero h2{font-family:Georgia,serif;font-size:33px;font-weight:400;line-height:1.25;max-width:600px;margin-bottom:14px}.quiz-hero p{font-size:14px;color:var(--muted);max-width:700px}.quiz-config{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:23px 0}.quiz-config label{font-size:12px;font-weight:650;flex:1;min-width:145px}.quiz-config label span{display:block;margin-bottom:9px}.quiz-config select{width:100%;font-size:13px;font-weight:400}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:22px;align-items:start}.quiz-question{background:var(--card);border:1px solid var(--line);border-radius:17px;padding:27px;min-width:0}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.quiz-top h2{font-size:20px;margin:0;color:var(--ink)}.quiz-question fieldset{border:0;padding:0;margin:0;min-width:0}.quiz-question legend{padding:0;width:100%;margin-bottom:22px}.quiz-question legend .prose{font-size:calc(var(--reading-size) + 2px)}.quiz-question .prose{overflow-x:auto;overflow-y:hidden}.options{display:grid;gap:12px;margin:22px 0}.option{display:flex;align-items:center;gap:12px;padding:16px 15px;border:1px solid var(--line);border-radius:11px;cursor:pointer;min-width:0;min-height:58px}.option:hover{border-color:#85b09d}.option.selected{background:var(--light);border-color:var(--teal);box-shadow:inset 3px 0 var(--teal)}.option input{margin:0}.option .letter{font:13px/1 Inter,-apple-system,sans-serif;color:var(--muted);min-width:18px}.option .prose{font-size:var(--reading-size);min-width:0;flex:1}.option .prose p:last-child{margin-bottom:0}.quiz-map{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:22px 17px;position:sticky;top:20px}.quiz-map h3{font-size:13px;margin-bottom:16px;line-height:1.6}.quiz-map .small{color:var(--muted);font-size:10px}.number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:15px 0 21px}.qnum{padding:0;border:1px solid var(--line);border-radius:7px;min-width:0;min-height:44px;color:var(--muted);background:var(--card);font-size:11px}.qnum.answered{background:var(--light);border-color:#8db5a3;color:var(--teal)}.qnum.current{background:var(--teal);border-color:var(--teal);color:#fff}.quiz-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:24px;flex-wrap:wrap}.quiz-map .btn{width:100%}.score{font:58px/1.1 Georgia,serif;color:var(--teal);margin:15px 0}.score small{font:16px/1.2 Inter,sans-serif;color:var(--muted)}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:23px 0}.result-grid .stat b{font-size:30px}.review-item{margin:14px 0}.review-item summary{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.review-item .prose{padding:15px 22px}.review-item .option{margin:10px 0}.review-item .option.correct{background:var(--light);border-color:var(--teal)}.review-item .option.wrong{border-left:4px solid var(--danger)}.correct{color:var(--teal)}.wrong{color:var(--danger)}.history-item{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:18px 20px;margin:10px 0}.history-item h3{font-size:14px;margin-bottom:6px}.history-item b{font:25px Georgia,serif;color:var(--teal)}.history-item .small{color:var(--muted);font-size:11px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.setting{padding:16px 0;border-bottom:1px solid var(--line)}.setting:last-child{border-bottom:0}.setting label{font-size:13px;font-weight:650;margin-bottom:10px}.setting p{font-size:12px;color:var(--muted);line-height:1.8}.setting select{font-size:13px;width:100%}.settings-grid h2{font-size:22px}.settings-grid .btn{margin-bottom:8px}.settings-grid input[type=file]{width:100%;font-size:12px}.progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.progress-row h3{font-size:14px;line-height:1.5;margin-bottom:8px}.progress-row .small{font-size:11px;color:var(--muted)}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);max-width:calc(100vw - 36px);background:#102f3d;color:white;border:1px solid #597d75;box-shadow:0 5px 25px #0003;border-radius:10px;padding:13px 20px;font-size:13px;line-height:1.6;z-index:100;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translate(-50%,0)}body.dark .btn{color:#102f3d}body.dark .btn.secondary,body.dark .btn.ghost{color:var(--ink)}body.dark .btn.danger{color:var(--danger)}body.dark .qnum.current{color:#102f3d}body.dark .book-cover{box-shadow:0 8px 0 -3px #34433b,0 17px 30px -18px #0009}body.dark .brand img{background:#131210}.focusmode .sidebar{display:none}.focusmode .shell{margin-left:0}.focusmode main{max-width:1000px}
@media(max-width:1150px){main,#main{padding:33px 29px 40px}.topbar{padding:0 29px}footer{padding-left:29px;padding-right:29px}.hero{gap:19px}.book-cover{padding:29px 27px}.cover-title{font-size:36px}.continue-card{padding:23px}.quiz-layout{grid-template-columns:minmax(0,1fr) 190px;gap:18px}.quiz-map{padding:20px 13px}.number-grid{gap:5px}.problem-layout{grid-template-columns:205px minmax(0,1fr);gap:18px}.reader{padding:29px}}
@media(max-width:850px){.sidebar{display:none}.shell{margin-left:0}.topbar{height:72px;padding:0 24px}.mobile-brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:23px;font-weight:800;letter-spacing:-.04em}.mobile-brand img{width:39px;height:39px;border-radius:10px}.topbar .breadcrumb{display:none}main,#main{padding:30px 24px 37px;min-height:calc(100vh - 210px)}footer{padding:20px 24px 100px}.bottom-nav{position:fixed;inset:auto 0 0;background:var(--card);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:40;padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 22px #18343b08}.bottom-nav a{color:var(--muted);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:49px;min-width:0;font-size:10px}.bottom-nav a span{font-size:21px;line-height:1.2}.bottom-nav a small{font-size:9px;line-height:1.4}.bottom-nav a.active{color:var(--teal);font-weight:700}.quiz-layout{grid-template-columns:minmax(0,1fr)}.quiz-map{position:static;padding:20px}.number-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.qnum{min-height:44px;font-size:12px}.quiz-map .btn{width:auto}.problem-layout{grid-template-columns:minmax(0,1fr)}.problem-index{position:static;max-height:240px}.problem-index .problem-list{grid-template-columns:repeat(3,minmax(0,1fr))}.quiz-layout>*,.problem-layout>*{min-width:0}#toast{bottom:92px}.focusmode .bottom-nav{display:none}.focusmode footer{padding-bottom:24px}.focusmode #toast{bottom:25px}}
@media(max-width:620px){h1{font-size:29px;line-height:1.25}h2{font-size:23px}.intro{margin-bottom:23px}.intro p{font-size:13px}.topbar{padding:0 18px;gap:10px}.offline{font-size:9px;padding:6px 9px}.mobile-brand{font-size:22px}.mobile-brand img{width:36px;height:36px}main,#main{padding:27px 18px 34px}.hero{grid-template-columns:minmax(0,1fr);gap:23px;margin-bottom:30px}.book-cover{min-height:333px;padding:29px 28px}.cover-title{font-size:40px;max-width:310px}.cover-kicker{font-size:8px;margin-bottom:28px}.cover-number{font-size:135px;bottom:46px}.cover-bottom{padding-top:25px}.cover-bottom .btn{padding:10px 13px;font-size:11px}.hero-side{gap:13px}.continue-card{padding:23px}.continue-card h2,.continue-card h3{font-size:23px}.stats{gap:9px}.stat{padding:16px 7px}.stat b{font-size:28px}.stat span{font-size:9px;margin-top:6px}.card{padding:22px}.section-head{margin:26px 0 16px}.section-head h2{font-size:22px}.section-head a{font-size:11px}.grid{grid-template-columns:minmax(0,1fr);gap:11px}.chapter-card{padding:20px 17px;gap:14px}.chapter-no{font-size:29px;min-width:34px}.chapter-info h3{font-size:15px}.chapter-info small,.chapter-info p{font-size:10px}.filters{gap:9px}.filters input{flex-basis:100%;min-width:0}.filters select{min-width:0;flex-basis:calc(50% - 5px);font-size:11px}.reader{padding:23px 18px}.reader>h1{font-size:27px}.reader-toolbar,.reader-nav{gap:9px}.reader-toolbar .btn,.reader-nav .btn{font-size:11px;padding:10px 12px}.reader-toolbar select{width:100%;font-size:11px}.reader-nav .btn{flex:1}.prose{line-height:1.85}.prose h2{font-size:22px;margin-top:29px}.prose h3{font-size:19px;margin-top:25px}.prose .box,.prose .studybox,.prose .warningbox,.prose .notebox,.prose .idea,.prose .asosiyfikr,.prose .callout,.prose .theorem,.prose .teorema,.prose .example,.prose .misol{padding:14px}.prose blockquote{padding:14px 16px}.prose ul,.prose ol{padding-left:23px}.prose table{font-size:.84em}.prose th,.prose td{padding:8px}.problem-index{padding:16px 13px}.problem-index .problem-list{grid-template-columns:repeat(2,minmax(0,1fr))}.problem-link{font-size:11px;padding:11px}.problem-title{font-size:27px}.problem-layout>.card{padding:23px 18px}.callout{padding:15px 16px;font-size:12px}.quiz-hero{padding:23px}.quiz-hero h2{font-size:29px}.quiz-hero p{font-size:13px}.quiz-config{gap:13px;margin:21px 0}.quiz-config label{min-width:120px}.quiz-config label span{font-size:11px}.quiz-config select{font-size:12px}.quiz-question{padding:23px 17px}.quiz-top{font-size:11px;gap:9px;margin-bottom:18px}.quiz-top h2{font-size:18px}.quiz-question legend .prose{font-size:calc(var(--reading-size) + 1px)}.options{gap:10px}.option{padding:14px 11px;gap:9px}.option .letter{font-size:12px;min-width:14px}.option .prose{font-size:var(--reading-size)}.quiz-actions{gap:8px;margin-top:20px}.quiz-actions .btn{font-size:12px;padding:11px 13px}.quiz-map{padding:20px 17px}.number-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.qnum{min-height:44px}.quiz-map .btn{width:100%}.result-grid{gap:8px;margin:20px 0}.result-grid .stat b{font-size:28px}.score{font-size:51px}.review-item summary{padding:15px 14px;font-size:12px;gap:9px}.review-item .prose{padding:14px 17px}.review-item .option .prose{padding:0}.history-item{padding:17px 16px;gap:11px}.history-item h3{font-size:13px}.history-item b{font-size:23px}.history-item .small{font-size:10px}.settings-grid{grid-template-columns:minmax(0,1fr);gap:17px}.settings-grid h2{font-size:22px}.settings-grid .actions .btn{flex:1;min-width:120px}.progress-row{gap:12px}.progress-row h3{font-size:13px}.progress-row .btn{font-size:11px;padding:9px 11px}details>.prose{padding:17px 17px 4px}summary{padding:16px 17px;font-size:12px}details>div:not(.prose){padding:17px}.check{font-size:12px}footer{padding:18px 18px 98px;font-size:9px;display:block}footer>*+*{margin-top:7px}.bottom-nav a small{font-size:9px}.btn{font-size:12px}.actions .btn{max-width:100%}.quiz-hero>.actions .btn{width:100%}}
@media(max-width:380px){.cover-title{font-size:36px}.book-cover{padding:28px 24px}.cover-bottom{gap:10px}.cover-bottom .btn{padding:10px 11px;font-size:10px}.mobile-brand{font-size:20px}.mobile-brand img{width:33px;height:33px}.offline{font-size:8px}.topbar{padding:0 15px}main,#main{padding-left:15px;padding-right:15px}.bottom-nav a small{font-size:8px}.quiz-config label{flex-basis:100%}.quiz-actions .btn{font-size:11px}.card{padding:21px 18px}.history-item>.actions{width:100%}}
@media(prefers-reduced-motion:no-preference){.chapter-card,.problem-link,.option,.btn{transition:background-color .15s,border-color .15s,filter .15s}}
@media print{.sidebar,.topbar,.bottom-nav,.reader-toolbar,.reader-nav,footer,.quiz-map,#toast{display:none!important}.shell{margin:0}main,#main{padding:0;max-width:none}.reader,.card{border:0;padding:0}.prose{font-size:12pt;color:#000;line-height:1.6}.katex-display{overflow:visible}body{background:#fff;color:#000}details{break-inside:avoid}}

/* Match full practice cards and native fieldset styling. */
.quiz-question fieldset{padding:0;margin:0;border:0;min-width:0}.quiz-question legend.prose{font-size:calc(var(--reading-size) + 2px);line-height:1.65}.brand>b,.brand span>b{font-size:12px;letter-spacing:.04em;color:var(--teal)}.sidebar>.eyebrow{font-size:8px;margin-top:8px}.nav-links{margin-top:30px}.problem-list>.problem-link{display:flex;align-items:start;gap:16px;padding:22px}.problem-link>div{min-width:0;flex:1}.problem-link .prose{font-size:var(--reading-size);margin-top:10px}.history-item>a{display:flex;align-items:center;gap:20px;flex:1;min-width:0}.history-item>a>span{font-size:12px;color:var(--muted)}.reader+.card{margin-top:20px}.card+details.card,details.card+details.card{margin-top:16px}.book-diagram{background:#fff;border-radius:8px;padding:12px}.prose img{max-width:100%;height:auto}fieldset:disabled{opacity:.8}@media(max-width:620px){.problem-list>.problem-link{padding:17px 14px;gap:10px}.problem-link .prose{font-size:16px}.topbar #breadcrumb{display:none}.history-item>a{gap:14px}}
.problem-title{font-size:calc(var(--reading-size) + 2px);line-height:1.8}

/* Institute identity: same emblem and wording as the original Isbot header. */
.topbar-tools{margin-left:auto;display:flex;align-items:center;gap:22px;flex-shrink:0}.header-institute{display:flex;align-items:center;gap:11px;flex-shrink:0;color:var(--ink);text-align:left;font-size:10px;line-height:1.45}.header-institute img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.header-institute b{font-size:12px;font-weight:700}.header-institute img{background:#fffefa;border-radius:50%;padding:2px}@media(max-width:1050px){.topbar-tools>.offline{display:none}}@media(max-width:850px){.topbar{padding-left:18px;padding-right:18px}.topbar-tools{gap:0}.header-institute{font-size:8px;gap:8px}.header-institute b{font-size:10px}.header-institute img{width:40px;height:40px}.topbar #breadcrumb{display:none}}@media(max-width:380px){.topbar{padding-left:12px;padding-right:12px;gap:8px}.mobile-brand{font-size:18px;gap:7px}.mobile-brand img{width:32px;height:32px}.mobile-brand span>b{font-size:10px}.header-institute{font-size:7px;gap:6px}.header-institute b{font-size:9px}.header-institute img{width:34px;height:34px}}
/* Keep a 300-question map within reach while the question remains readable. */
.quiz-map .number-grid{max-height:min(52vh,480px);overflow-y:auto;scrollbar-gutter:stable;padding:3px}@media(max-width:850px){.quiz-map .number-grid{max-height:300px}}

/* Analysis content additions preserve the Isbot UNI reading system. */
.volume-tabs{margin-bottom:23px}.volume-tabs .btn.selected{border-color:var(--teal);background:var(--light)}
.chapter-note{margin-top:20px}.chapter-note textarea{min-height:150px}
.prose .definition,.prose .lemma,.prose .proposition,.prose .corollary,.prose .remark{padding:18px 20px;margin:23px 0;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.prose .proof,.prose .solution{margin:17px 0 25px}.prose .math{max-width:100%}
.brand span>b{letter-spacing:.015em}.sidebar-foot small{line-height:1.9}
.prose .theorem-title,.prose .env-title{font-weight:bold}.prose .proof-title{font-style:italic}
.prose .figure{margin:24px auto;text-align:center}.prose .figure img{max-width:100%;height:auto}
@media(max-width:620px){.volume-tabs{gap:8px}.volume-tabs .btn{padding:9px 11px;font-size:11px}.prose .definition,.prose .lemma,.prose .proposition,.prose .corollary,.prose .remark{padding:14px}}

/* Course selection shares the original Isbot UNI layout and reading settings. */
.sidebar-course{font-size:10px;color:var(--muted);margin-top:19px}.sidebar-course select{display:block;width:100%;font-size:11px;min-height:39px;padding:8px;margin-top:7px}.sidebar-course+.nav-links{margin-top:18px}
.course-strip{border-bottom:1px solid var(--line);padding:10px 42px;background:var(--card)}.course-strip label{display:flex;gap:14px;align-items:center;color:var(--muted);font-size:10px}.course-strip select{min-height:34px;padding:6px 10px;font-size:12px;max-width:290px;width:100%}
.course-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:26px}.course-choice{background:var(--card);border:1px solid var(--line);border-radius:12px;text-align:left;padding:18px 20px;color:var(--ink);min-width:0}.course-choice.selected{border-color:var(--teal);box-shadow:inset 3px 0 var(--teal);background:var(--light)}.course-choice .eyebrow{font-size:8px;margin-bottom:8px}.course-choice strong{display:block;font-size:17px;font-weight:650;line-height:1.4}.course-choice small{display:block;font-size:10px;color:var(--muted);margin-top:8px}
.prose .goalbox{background:var(--light);border-left:3px solid var(--teal);padding:17px 20px;border-radius:0 10px 10px 0;margin:22px 0}
@media(max-width:1150px){.course-strip{padding-left:29px;padding-right:29px}}@media(max-width:850px){.course-strip{padding-left:24px;padding-right:24px}.course-strip label{justify-content:space-between}}@media(max-width:620px){.course-strip{padding:9px 18px}.course-strip select{max-width:230px;font-size:11px}.course-strip label{font-size:9px;gap:9px}.course-catalog{gap:9px;margin-bottom:23px}.course-choice{padding:15px 13px}.course-choice strong{font-size:14px}.course-choice small{font-size:9px}.course-choice .eyebrow{font-size:7px;letter-spacing:.07em}.prose .goalbox{padding:14px}}

/* Four independent courses; appendix documents remain separate from main chapters. */
.course-catalog{grid-template-columns:repeat(4,minmax(0,1fr))}.course-choice strong{font-size:16px}.problem-caption{display:block;font-size:14px;line-height:1.5;margin:9px 0}
@media(max-width:620px){.course-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.course-choice{padding:15px 13px}.course-choice strong{font-size:14px}.course-choice small{font-size:9px}.course-choice .eyebrow{font-size:7px;letter-spacing:.07em}}

/* Four real courses; all phone cards use the same two-column layout. */
@media(max-width:1150px){.course-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.course-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.course-choice:last-child{grid-column:auto}}
