@charset "UTF-8";
:root{color-scheme:dark;--bg:#0b101b;--panel:#111927;--panel2:#151f30;--border:#243045;--muted:#94a3b8;--text:#edf3fb;--cyan:#46dddc;--blue:#547aff;--green:#61dfb0;--red:#ff8c9b;--radius:17px;--shadow:0 14px 40px #00000014}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.65}a{color:var(--cyan);text-decoration:none}a:hover{color:#b6fafa}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:10px 18px;border:1px solid transparent;border-radius:9px;background:linear-gradient(120deg,#5275ff,#4963e7);color:white;font-weight:650;font-size:13px;cursor:pointer;transition:background .15s,transform .15s}button:hover,.button:hover{filter:brightness(1.12);color:white}button:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}.button svg{width:18px;height:18px}.secondary{background:#1a2639;color:#d5e0f0;border-color:#2b3b54}.text-button{background:none;border:0;padding:4px 8px;min-height:32px;color:var(--cyan);font-size:12px}.danger{color:var(--red)}.full{width:100%}.light{background:#ecffff;color:#144655}.light:hover{color:#144655}.muted{color:var(--muted)}.small-text{font-size:12px}.cyan-text{color:var(--cyan)}.error-text{color:var(--red)!important}.success{border-color:#286450!important;background:#12372c!important;color:#a6f3d5}.error{border-color:#794452!important;background:#341d2b!important;color:#ffc1cb}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.inline{display:inline-flex;margin:0}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nowrap{flex-wrap:nowrap;white-space:nowrap}.grow{flex:1}.centered{justify-content:center}.align-right{text-align:right}.wide{grid-column:1/-1}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.22;letter-spacing:-1px;margin-bottom:12px}h2{font-size:19px;line-height:1.4;letter-spacing:-.35px;margin-bottom:16px}h3{font-size:16px;line-height:1.7}p{margin-bottom:14px}svg{width:22px;height:22px;flex-shrink:0}label{display:block;font-size:12px;font-weight:600;color:#b8c5d9;margin:0 0 17px}input:not([type=checkbox]):not([type=radio]),textarea,select{width:100%;display:block;border:1px solid #2b374e;background:#0d1523;border-radius:8px;color:var(--text);padding:11px 13px;margin-top:7px;outline-offset:1px;font-size:14px;min-height:44px}input::placeholder,textarea::placeholder{color:#60718c}input[type=checkbox],input[type=radio]{accent-color:var(--cyan)}input[type=checkbox]{display:block;margin-top:14px;width:21px;height:21px}textarea{resize:vertical;line-height:1.65}select{cursor:pointer}form{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin-bottom:24px;box-shadow:var(--shadow);min-width:0}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;letter-spacing:.7px;color:#b9c8df;background:#1e2a3e;border:1px solid #2c3b52;padding:4px 9px;border-radius:6px;white-space:nowrap}.badge.cyan{color:#62e7e4;background:#133237;border-color:#245355}.badge.green{color:var(--green);background:#14332e;border-color:#26544b}.badge.red{color:var(--red);background:#3a2330;border-color:#633949}.eyebrow{color:var(--cyan);font-size:10px;font-weight:800;letter-spacing:1.9px;margin-bottom:14px}.notice{padding:16px 19px;background:#162538;border:1px solid #2b415e;border-radius:12px;color:#bac9df;font-size:13px;margin-bottom:24px}.grid{display:grid;gap:24px}.grid>.card{margin-bottom:0}.two{grid-template-columns:1fr 1fr;margin-bottom:24px}.three{grid-template-columns:repeat(3,1fr);margin-bottom:24px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.toolbar h2{margin:0}.toolbar>a{font-size:12px}.sidebar{width:248px;position:fixed;left:0;top:0;height:100dvh;z-index:30;background:#0d1421;border-right:1px solid #202c40;display:flex;flex-direction:column;padding:27px 16px 0;overflow:auto}.brand{display:flex;gap:12px;align-items:center;color:white;font-size:20px;letter-spacing:1.8px;font-weight:850;line-height:1.3}.brand small{display:block;color:#7994af;font-size:8px;letter-spacing:4px;margin-top:4px;font-weight:600}.brand-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:44px;border:1px solid #4b8fa5;border-radius:12px;box-shadow:inset 0 0 18px #28698250,0 0 25px #2da6c014;background:linear-gradient(135deg,#243b67,#133d45);color:#84f6f0;font-size:25px;font-style:italic;letter-spacing:0}.sidebar>.brand{margin:0 13px 30px}.nav-caption{font-size:9px;font-weight:700;color:#5e728c;letter-spacing:1.8px;margin:0 15px 13px}.nav-item{display:flex;align-items:center;gap:13px;padding:11px 14px;margin-bottom:3px;border:1px solid transparent;border-radius:10px;font-size:12px;font-weight:550;color:#8fa1ba;min-height:43px}.nav-item svg{width:18px;height:18px}.nav-item small{font-size:8px;color:#6dd5d6;background:#18373d;padding:2px 6px;border-radius:4px;margin-left:auto}.nav-item:hover{background:#172134;color:#d5e3f8}.nav-item.active{color:#6ee7e2;border-color:#285364;background:linear-gradient(90deg,#193247,#152735)}.sidebar-bottom{margin-top:auto;padding:20px 4px 0}.mini-card{border:1px solid #244153;border-radius:12px;padding:17px;background:linear-gradient(140deg,#152438,#122a32)}.mini-card p{font-size:12px;line-height:1.7;margin-top:12px;color:#9bb4c8}.mini-card a{font-size:11px;font-weight:700}.user-line{display:flex;gap:10px;align-items:center;border-top:1px solid #213047;padding:20px 0;margin-top:20px}.user-line>div{min-width:0;flex:1}.user-line strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.user-line small{display:block;color:var(--muted);font-size:10px}.avatar{width:34px;height:34px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;background:linear-gradient(130deg,#3e4771,#1e6c6d);color:#d1ffff;font-size:13px;font-weight:700;border:1px solid #42727e}.avatar.small{width:30px;height:30px;font-size:11px}.workspace{margin-left:248px;min-height:100vh}.topbar{height:77px;border-bottom:1px solid #1d2a3e;display:flex;justify-content:space-between;align-items:center;padding:0 38px;font-size:11px;background:#0d1420}.topbar strong{font-weight:500}.slash{color:#475973;margin:0 15px}.main-content{padding:34px 38px;max-width:1540px;margin:auto;min-height:calc(100vh - 155px)}.page-heading{margin-bottom:26px}.page-heading .eyebrow{margin-bottom:10px}.page-heading .muted{font-size:13px}.hero{position:relative;overflow:hidden;border:1px solid #3b6186;border-radius:20px;background:radial-gradient(ellipse at 85% 0%,#266a817a,transparent 50%),linear-gradient(110deg,#183358,#1d3551 50%,#1b404d);padding:32px 40px;margin-bottom:24px;min-height:274px;display:flex;align-items:center;justify-content:space-between}.hero .badge{background:#628dba21;border-color:#6598b43f;color:#a7ddf0;font-size:9px}.hero h2{font-size:29px;line-height:1.3;margin:17px 0 13px;color:white}.hero h2 span{color:#9bdddf}.hero p{font-size:12px;color:#a6c3d5}.hero .button{margin-top:5px;font-size:12px;min-height:38px}.goal-orb{width:194px;height:194px;border:1px solid #6bb9c147;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 0 18px #a2ffff05,0 0 0 38px #a2ffff04,inset 0 0 65px #68dfd30c;z-index:1;margin:0 33px 0 25px;flex-shrink:0;background:#29617830}.goal-orb strong{font-size:55px;font-weight:800;line-height:1.4;letter-spacing:-2px;color:#b7fff3}.goal-orb span{font-size:8px;letter-spacing:2px;color:#a3cbd5}.goal-orb small{font-size:9px;letter-spacing:4px;color:#75a9b2}.hero-star{position:absolute;right:32px;top:28px;font-size:52px;color:#81bfc7;transform:rotate(12deg)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:21px;gap:7px}.stat strong{font-size:27px;line-height:1.4;letter-spacing:-.7px}.stat>.muted{font-size:11px}.stat-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;border-radius:11px;background:#1d3244;color:#6ae1db;border:1px solid #254659}.stat>.stat-icon{margin-bottom:4px}.stat-icon svg{width:19px;height:19px}.quick-link{display:flex;align-items:center;gap:14px;color:#dce7f5;padding:16px 0;border-bottom:1px solid #233047}.quick-link:last-child{border:0;padding-bottom:0}.quick-link>div{flex:1}.quick-link strong{font-size:12px;display:block}.quick-link small{font-size:10px;color:var(--muted)}.quick-link>span:last-child{color:#718aa5}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.empty>span{font-size:30px;color:#446a85}.empty h3{color:#c6d5e7;margin-bottom:8px}.empty p{font-size:12px}.empty a{font-size:12px}.footer{border-top:1px solid #1d2a3e;padding:21px 38px;display:flex;justify-content:space-between;gap:15px;color:#647891;font-size:10px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:normal;font-size:12px}th{font-size:10px;color:#7f91aa;text-transform:uppercase;letter-spacing:.6px;font-weight:600;padding:14px 12px;border-bottom:1px solid #29364b}td{padding:17px 12px;border-bottom:1px solid #233045;color:#a7b8ce}td strong{color:#d2def0;font-weight:550}tbody tr:last-child td{border-bottom:0}.tabs{display:flex;gap:6px;flex-wrap:wrap;padding:5px;background:#101a2a;border:1px solid #26354b;border-radius:11px;margin-bottom:25px;width:fit-content}.tabs a{color:#899cb8;padding:8px 15px;font-size:12px;border-radius:7px}.tabs .active{color:#d8f5fc;background:#233852;box-shadow:0 2px 6px #0002}.search{display:flex;align-items:center;gap:12px;margin-bottom:24px}.search input,.search select{margin:0}.search input{flex:1}.search select{width:230px}.search button{flex-shrink:0}.pagination{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin:24px 0;font-size:12px}.pagination>span{margin-right:auto}.test-card{display:flex;flex-direction:column}.test-card .eyebrow{margin-top:8px;font-size:9px}.test-card h2{font-size:19px;margin-bottom:10px}.test-card p{font-size:12px}.test-card .test-meta{display:flex;justify-content:space-between;color:#8fa7c1;font-size:11px;padding:18px 0;border-top:1px solid #233047;margin-top:auto}.test-card form{width:100%}.test-card .toolbar{margin-bottom:15px}.exam-bar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:17px 22px;background:#132339;border:1px solid #315879;border-radius:12px;margin-bottom:24px;box-shadow:0 10px 30px #0004}.exam-bar #save-status{font-size:12px;color:#97bbc4}.exam-bar strong{font-variant-numeric:tabular-nums;font-size:23px;color:var(--cyan)}.exam-question{padding:30px}.passage{background:#0c1421;border:1px solid #27384f;border-left:3px solid #537cb1;border-radius:8px;padding:22px;font-family:Georgia,serif;font-size:17px;line-height:1.85;margin:20px 0}.question-image{display:block;max-width:100%;max-height:400px;margin:20px auto;object-fit:contain}.options{display:grid;gap:12px;margin-top:22px}.option{display:flex;align-items:center;gap:13px;padding:16px;margin:0;border:1px solid #2b3a52;border-radius:9px;font-weight:450;color:#bac8dc;font-size:14px;cursor:pointer;background:#0e1726}.option:has(input:checked){border-color:#41b3b7;background:#12323a;color:#d3ffff}.option-letter{display:flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:6px;border:1px solid #35475d;flex-shrink:0}.review-option{padding:12px 15px;border:1px solid #2b394d;border-radius:8px;margin:10px 0}.correct{background:#123a2e!important;border-color:#347f62!important;color:#a7f4d5!important}.incorrect{background:#3b1f2c!important;border-color:#925060!important;color:#ffc3cc!important}.explanation{background:#172638;border:1px solid #2a405a;border-radius:10px;padding:20px;margin:22px 0;font-size:13px;color:#aebfd6}.explanation strong{color:#c6e5f7}.explanation p{margin-top:12px;margin-bottom:0}summary{cursor:pointer;font-weight:600;color:#b2d8ea}details[open]>summary{margin-bottom:20px}.task-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #233047}.task-row:last-child{border:0}.task-row>.muted{font-size:11px}.check{width:30px;height:30px;min-height:30px;padding:0;background:#182438;border:1px solid #3a4b65;border-radius:8px;color:#7e94ae}.check.checked{color:#7ef1ca;border-color:#398671;background:#183d35}.struck{text-decoration:line-through;color:#6d849d}.book-card{display:block;color:var(--text)}.book-card:hover{border-color:#3e627d;color:var(--text)}.book-cover{height:245px;background:linear-gradient(125deg,#344d5d,#1b3742);border:1px solid #4c6770;border-radius:8px 12px 12px 8px;margin-bottom:22px;padding:28px 25px 28px 34px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.book-lines{position:absolute;left:12px;top:0;bottom:0;border-left:1px solid #96b4b34d;border-right:1px solid #96b4b329;width:5px}.book-cover .eyebrow{font-size:8px;color:#b4c7ba;letter-spacing:2px}.book-cover strong{font-family:Georgia,serif;font-size:31px;line-height:1.1;color:#eadfbc;max-width:230px;font-weight:400}.book-cover>span:last-child{color:#c1c9b9;font-size:10px;letter-spacing:1px;text-transform:uppercase}.book-card h2{margin-bottom:5px}.book-card p{font-size:12px}.book-card .toolbar{margin-bottom:17px}progress{width:100%;height:5px;appearance:none;border:0;border-radius:10px;background:#24364d}progress::-webkit-progress-bar{background:#24364d;border-radius:10px}progress::-webkit-progress-value{background:#4aced0;border-radius:10px}progress::-moz-progress-bar{background:#4aced0;border-radius:10px}.chapter-link{display:flex;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid #233047;color:#d5e0f0}.chapter-link:last-child{border:0}.chapter-link>strong{flex:1}.chapter-number{font-size:23px;color:#5c7c99;width:35px;text-align:center}.reader-toolbar{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:20px 0}.reader-toolbar .muted{font-size:12px}.reader{max-width:900px;margin:0 auto 25px;padding:45px 55px;background:#141d28;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.95;color:#c3cbd4}.reader p{margin-bottom:1.6em}.reader-size-16{font-size:16px}.reader-size-18{font-size:18px}.reader-size-20{font-size:20px}.reader-size-22{font-size:22px}.reader-size-24{font-size:24px}.reader-size-26{font-size:26px}.reader-size-28{font-size:28px}.vocab-card h2{font-size:25px;margin:3px 0 0}.vocab-card .eyebrow{font-size:9px}.vocab-card .toolbar{margin-bottom:9px}.vocab-card .phonetic{color:#6488a6;font-size:13px}.translation{color:#6bd7d0}.vocab-card blockquote{margin:18px 0;padding:10px 16px;border-left:2px solid #36526b;background:#131f30;color:#8299b4;font-size:12px;font-style:italic}.vocab-card .actions{border-top:1px solid #26344b;padding-top:18px;margin-top:20px;gap:6px}.vocab-card .actions button{font-size:11px;padding:7px 10px}.learning-card{max-width:760px;margin:0 auto 25px;text-align:center;min-height:380px;padding:30px}.game-word{font-size:46px;margin:35px 0 15px;letter-spacing:-1px}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:28px 0}.quiz-choice{padding:20px;min-height:90px;background:#1a2940;border:1px solid #324560;color:#d3e5f5;font-weight:400}.learning-card .actions{margin:30px 0 15px}.rank{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#1b2a40;color:#9daecc;font-size:12px}.top-rank{background:#4b3c2144;border:1px solid #8b774055;color:#f3d685}.my-row{background:#20495633}.pricing{padding:32px}.pricing h2{font-size:25px;margin:20px 0 13px}.price{font-size:32px;display:block;font-weight:700;letter-spacing:-1px}.pricing ul{padding-left:20px;color:#9fb3c9;line-height:2.8;margin:22px 0}.pricing.featured{background:radial-gradient(ellipse at top right,#29626850,transparent 60%),#142233;border-color:#366775}.tutor-toggle{position:fixed;bottom:24px;right:24px;z-index:15;background:linear-gradient(120deg,#28576d,#214b54);border:1px solid #488589;border-radius:100px;box-shadow:0 4px 20px #0005;color:#9ef4ed;font-size:12px}dialog{background:#121d2c;border:1px solid #34556e;border-radius:18px;color:var(--text);width:min(640px,calc(100% - 30px));max-height:85dvh;overflow:auto;padding:27px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#030812bf;backdrop-filter:blur(5px)}dialog .toolbar{align-items:flex-start}dialog .toolbar .eyebrow{font-size:8px}dialog .toolbar h2{font-size:23px}dialog .muted{font-size:12px}.ai-output{padding:20px;border:1px solid #2e425d;background:#0e1624;border-radius:10px;min-height:130px;max-height:40dvh;overflow:auto;margin-bottom:20px;line-height:1.85;font-size:13px}.mobile-menu{display:none}.mobile-backdrop{position:fixed;inset:0;background:#0009;z-index:25}.auth-body{min-height:100dvh;background:radial-gradient(ellipse at 20% 15%,#142941,#0b101b 70%)}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1500px;margin:auto}.auth-shell>.notice{grid-column:1/-1;margin:15px 30px}.auth-marketing{padding:45px 55px;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid #25324a;background:radial-gradient(ellipse at 60% 40%,#224a5438,transparent 65%)}.auth-marketing>.brand{margin-bottom:50px}.auth-marketing h1{font-size:43px;font-weight:750;letter-spacing:-1.6px;line-height:1.2}.auth-marketing h1 span{color:#75dcda}.auth-marketing .muted{font-size:13px;line-height:1.9}.auth-marketing>p:last-child{font-size:11px;margin:20px 0 0}.auth-panel{padding:55px;display:flex;align-items:center;justify-content:center}.auth-form{max-width:390px;width:100%}.auth-form>h2{font-size:30px;letter-spacing:-1px;margin:25px 0 10px;line-height:1.3}.auth-form>.muted{font-size:13px;margin-bottom:30px}.auth-form .align-right{font-size:12px;margin:-5px 0 25px}.auth-form .full{min-height:46px;margin-top:5px}.auth-link{text-align:center;font-size:12px;color:#8297b2;margin:23px 0 30px}.auth-link a{font-weight:650}.auth-security{text-align:center;border-top:1px solid #263247;padding:20px 0;color:#607995;font-size:10px}.orbit-art{position:relative;width:300px;height:250px;margin:15px auto 0;display:flex;align-items:center;justify-content:center}.orbit-ring{position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid #50879e35;transform:rotateX(40deg) rotate(-25deg)}.orbit-ring.second{width:285px;height:285px;transform:rotateX(45deg) rotate(30deg)}.orbit-core{width:135px;height:135px;background:radial-gradient(circle at 40% 30%,#2d6771,#162a44);box-shadow:0 0 70px #39a5bd14,inset 0 0 40px #5ae0d716;border:1px solid #5e899c69;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:50%;font-size:58px;color:#abfdf0;font-weight:800;font-style:italic}.orbit-core span{font-size:6px;letter-spacing:2px;font-weight:600;font-style:normal;color:#6caaa9}.orbit-label{position:absolute;left:-10px;top:50px;background:#182d40;border:1px solid #375269;border-radius:8px;padding:9px 12px;color:#88b3ca;font-size:8px;letter-spacing:1px}.orbit-label.right{left:auto;right:0;top:180px;color:#9fdedc}.install{width:min(570px,calc(100% - 36px));margin:60px auto;padding:38px}.install .brand{margin-bottom:30px}.install h1{font-size:30px}.install>.muted{font-size:13px}.install .eyebrow{margin-top:35px}

/* ---------- Bluebook uslubidagi test rejimi ---------- */
.exam-body{background:#0d1420;overflow:hidden}
/* ===== Bluebook uslubidagi imtihon rejimi (yorug' mavzu) ===== */
.bb-shell{display:block}
body.exam-body{background:#fff;color:#1e1e1e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif}
.bb{position:fixed;inset:0;display:grid;grid-template-rows:auto 1fr auto;background:#fff;color:#1e1e1e;--line:#d8d8d8}
.bb button,.bb .button{font-family:inherit}
.bb-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding:10px 24px 8px;background:#fff;border-bottom:2px dashed #b9b9b9}
.bb-title strong{display:block;font-size:17px;font-weight:700;color:#1e1e1e;line-height:1.3}
.bb-title small{display:block;color:#4a4a4a;font-size:13px;letter-spacing:0;margin-top:2px}
.bb-directions{background:none;border:0;padding:0;min-height:24px;color:#1e1e1e;font-size:13px;font-weight:600;gap:6px}
.bb-directions:hover{color:#324dc7;filter:none}
.bb-clock{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:120px}
.bb-clock strong{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;color:#1e1e1e;line-height:1.15}
.bb-clock strong.error-text{color:#b3261e!important}
.bb-clock strong.timer-hidden{visibility:hidden}
.bb-clock .text-button{font-size:12px;color:#1e1e1e;border:1px solid #9a9a9a;border-radius:999px;padding:1px 14px;min-height:24px;background:#fff}
.bb-clock .text-button:hover{background:#f1f1f1;color:#1e1e1e}
.bb-clock #save-status{font-size:11px;color:#6b6b6b}
.bb-tools{display:flex;gap:4px;justify-content:flex-end;align-items:flex-start}
.bb-tools button,.bb-tools .button{flex-direction:column;gap:2px;min-height:44px;padding:4px 12px;font-size:11px;font-weight:600;background:none;border:0;border-radius:6px;color:#1e1e1e}
.bb-tools button:hover,.bb-tools .button:hover{background:#f0f0f0;filter:none;color:#1e1e1e}
.bb-tools button .ico,.bb-tools .button .ico{font-size:17px;line-height:1.1}
.bb-tools button[aria-pressed=true]{background:#fff;color:#1e1e1e;box-shadow:inset 0 -3px 0 #1e1e1e}
.bb-main{overflow:auto;padding:0;background:#fff}
.exam-form{max-width:none;margin:0}
.bb-q.hidden-q{display:none}
.bb-q{display:block}
.bb-q-bar{display:flex;align-items:center;gap:14px;padding:6px 24px;margin:0;background:#f1f1f1;border-bottom:1px solid #d8d8d8}
.q-number{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:3px;background:#1e1e1e;color:#fff;font-weight:700;font-size:14px}
.mark-button{background:none;border:0;color:#1e1e1e;min-height:30px;font-size:13px;font-weight:600;padding:2px 6px;gap:5px}
.mark-button:hover{background:#e3e3e3;filter:none;color:#1e1e1e}
.mark-button.marked{color:#b3261e;background:none}
.elim-toggle{margin-left:auto;font-size:12px;font-weight:700;color:#1e1e1e;border:1px solid #1e1e1e;border-radius:4px;min-height:26px;padding:0 8px;background:#fff}
.elim-toggle[aria-pressed=true]{background:#1e1e1e;color:#fff}
.bb-split{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:start;min-height:calc(100dvh - 190px)}
.bb-split.single{grid-template-columns:minmax(0,780px);justify-content:center}
.bb-passage{padding:26px 34px;border-right:2px dashed #b9b9b9;max-height:calc(100dvh - 190px);overflow:auto}
.bb-split .passage{margin:0;background:transparent;border:0;padding:0;font-size:17px;line-height:1.75;color:#1e1e1e;font-family:Georgia,"Times New Roman",serif}
.bb-ask{padding:26px 34px;max-height:calc(100dvh - 190px);overflow:auto}
.bb-ask h2{font-size:17px;line-height:1.7;font-weight:500;color:#1e1e1e;margin-bottom:22px;font-family:Georgia,"Times New Roman",serif}
.options{display:flex;flex-direction:column;gap:12px}
.option-row{display:flex;align-items:center;gap:10px}
.option-row .option{flex:1;margin:0;display:flex;align-items:center;gap:12px;border:1px solid #6b6b6b;border-radius:9px;padding:11px 15px;background:#fff;color:#1e1e1e;font-size:15px;font-weight:400;cursor:pointer;min-height:52px}
.option-row .option:hover{border-color:#324dc7;box-shadow:inset 0 0 0 1px #324dc7}
.option-row .option input{position:absolute;opacity:0;width:0;height:0;margin:0}
.option-letter{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex-shrink:0;border:1px solid #1e1e1e;border-radius:50%;font-size:13px;font-weight:600}
.option-text{font-family:Georgia,"Times New Roman",serif}
.option-row .option:has(input:checked){border-color:#324dc7;box-shadow:inset 0 0 0 1px #324dc7}
.option-row .option:has(input:checked) .option-letter{background:#324dc7;border-color:#324dc7;color:#fff}
.option-row .option:has(input:focus-visible){outline:2px solid #324dc7;outline-offset:2px}
.option-row.eliminated .option{opacity:.55}
.option-row.eliminated .option-text{text-decoration:line-through}
.eliminate{min-height:26px;width:26px;padding:0;font-size:12px;font-weight:700;background:#fff;border:1px solid #1e1e1e;color:#1e1e1e;border-radius:50%;text-decoration:line-through}
.eliminate:hover{background:#eee;filter:none;color:#1e1e1e}
.option-row.eliminated .eliminate{background:#1e1e1e;color:#fff;text-decoration:none}
.desmos-tip{margin-top:22px;font-size:13px;color:#4a4a4a}
.desmos-tip summary{cursor:pointer;font-weight:600}
.bb-bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:10px 24px;background:#fff;border-top:2px dashed #b9b9b9}
.bb-user{font-size:15px;font-weight:700;color:#1e1e1e}
#nav-toggle{background:#1e1e1e;border:0;border-radius:6px;font-size:14px;font-weight:600;color:#fff;min-height:38px;padding:8px 18px;justify-self:center}
#nav-toggle:hover{background:#333;filter:none}
.bb-bottom .actions{justify-content:flex-end;gap:10px}
.bb-bottom .actions button{background:#324dc7;border:0;border-radius:999px;min-height:40px;padding:9px 26px;font-size:15px;font-weight:700;color:#fff}
.bb-bottom .actions button:hover{background:#2840ad;filter:none}
.bb-bottom .actions .secondary{background:#324dc7;color:#fff}
.bb-navigator{position:fixed;left:50%;bottom:74px;transform:translateX(-50%);z-index:60;width:min(620px,calc(100% - 26px));background:#fff;border:1px solid #6b6b6b;border-radius:10px;padding:20px;box-shadow:0 18px 50px #00000040;color:#1e1e1e}
.bb-navigator .toolbar{margin-bottom:12px}
.bb-navigator h2{font-size:16px;color:#1e1e1e;text-align:center;flex:1}
.bb-navigator .close-nav{color:#1e1e1e}
.nav-legend{display:flex;gap:18px;justify-content:center;font-size:12px;color:#4a4a4a;margin-bottom:16px;flex-wrap:wrap;border-bottom:1px solid #d8d8d8;padding-bottom:12px}
.legend::before{content:'';display:inline-block;width:12px;height:12px;border:1px dashed #6b6b6b;border-radius:3px;margin-right:6px;vertical-align:-2px;background:#fff}
.legend.answered::before{background:#324dc7;border:1px solid #324dc7}
.legend.marked::before{background:#fff;border:1px solid #b3261e}
.nav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:10px;margin-bottom:18px;max-height:230px;overflow:auto}
.nav-cell{min-height:40px;padding:0;background:#fff;border:1px dashed #6b6b6b;color:#1e1e1e;font-size:14px;font-weight:600;border-radius:4px}
.nav-cell:hover{background:#eee;filter:none;color:#1e1e1e}
.nav-cell.answered{background:#324dc7;border:1px solid #324dc7;color:#fff}
.nav-cell.marked{position:relative;border-color:#b3261e;border-style:solid}
.nav-cell.marked::after{content:'⚑';position:absolute;top:-8px;right:-4px;font-size:12px;color:#b3261e}
.nav-cell.current{outline:2px solid #1e1e1e;outline-offset:2px}
#review-submit{background:#324dc7;border-radius:999px;color:#fff}
.bb-panel{position:fixed;left:26px;top:96px;z-index:45;width:min(640px,calc(100% - 32px));background:#1e1e1e;border:1px solid #1e1e1e;border-radius:10px;box-shadow:0 24px 70px #00000055;overflow:hidden;resize:both}
.bb-panel.dragging{opacity:.96}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:#1e1e1e;color:#fff;cursor:move;font-size:15px;font-weight:600;touch-action:none}
.panel-head .grip{margin-left:auto;margin-right:auto;color:#cfcfcf;letter-spacing:2px;font-size:15px}
.panel-head .close-panel{color:#fff;font-size:17px}
.desmos-host{width:100%;height:520px;min-height:260px;background:#fff}
.desmos-host button,.desmos-host .dcg-btn,.desmos-host input{background:none;border:0;min-height:0;padding:0;margin:0;border-radius:0;color:inherit;font-weight:inherit;box-shadow:none;transition:none}
.desmos-host button:hover{filter:none}
.desmos-host .dcg-action-clear,.desmos-host .dcg-keys button{background:inherit}
.panel-note{font-size:12px;color:#cfcfcf;margin:0;padding:8px 14px;background:#1e1e1e}
#reference-panel{left:auto;right:26px;background:#fff;border:1px solid #6b6b6b;color:#1e1e1e;padding-bottom:10px;resize:none}
#reference-panel .panel-head{background:#1e1e1e}
.reference-table{font-size:13px;color:#1e1e1e}
.reference-table th{text-transform:none;letter-spacing:0;color:#1e1e1e;font-size:13px;width:34%;padding:10px 16px;border-bottom:1px solid #d8d8d8}
.reference-table td{padding:10px 16px;font-family:Georgia,serif;font-size:15px;color:#1e1e1e;border-bottom:1px solid #eee}
#submit-dialog{width:min(430px,calc(100% - 30px));text-align:center;background:#fff;color:#1e1e1e;border:1px solid #6b6b6b;border-radius:10px}
#submit-dialog h2{font-size:20px;color:#1e1e1e}
#submit-dialog .muted{color:#4a4a4a}
#submit-dialog .actions{justify-content:center;margin-top:22px}
#submit-dialog .secondary{background:#fff;color:#324dc7;border:1px solid #324dc7}
#submit-dialog #confirm-submit{background:#324dc7;border-radius:999px}
.bb-exit-tool{color:#1e1e1e;text-decoration:none}.bb-exit-tool:hover{color:#1e1e1e}
.bb-break{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:25px;background:#fff}
.bb-break .card{max-width:520px;text-align:center;padding:40px;background:#fff;border:1px solid #d8d8d8;color:#1e1e1e;box-shadow:0 10px 40px #00000014}
.bb-break .card h1,.bb-break .card h2{color:#1e1e1e}
.bb-break .eyebrow{color:#324dc7}
.bb-break .muted{color:#4a4a4a}
.bb-break button,.bb-break .button{background:#324dc7;border-radius:999px}
.break-timer{display:block;font-size:64px;font-variant-numeric:tabular-nums;color:#1e1e1e;margin:10px 0 28px;letter-spacing:-1px;font-weight:600}
@media(max-width:900px){
 #reference-panel{left:8px;right:8px}
 .bb-top{grid-template-columns:1fr;gap:8px;padding:8px 14px;text-align:center}
 .bb-title strong{font-size:15px}
 .bb-clock{order:-1;flex-direction:row;gap:10px;min-width:0;justify-content:center}
 .bb-clock strong{font-size:22px}
 .bb-tools{justify-content:center;flex-wrap:wrap}
 .bb-split{grid-template-columns:1fr;min-height:0}
 .bb-passage{padding:16px;border-right:0;border-bottom:2px dashed #b9b9b9;max-height:40dvh}
 .bb-ask{padding:16px;max-height:none;overflow:visible}
 .bb-q-bar{padding:6px 14px;gap:8px}
 .bb-bottom{grid-template-columns:1fr;gap:8px;padding:8px 14px}
 .bb-user{display:none}
 .bb-bottom .actions{width:100%;justify-content:space-between}
 .bb-panel{left:8px;right:8px;top:auto;bottom:86px;width:auto}
 .desmos-host{height:320px}
 .bb-navigator{bottom:120px}
}
@media(min-width:1550px){.main-content{padding:40px 50px}.hero{min-height:310px}.hero h2{font-size:35px}.goal-orb{width:210px;height:210px}}
@media(max-width:1180px){.sidebar{width:218px;padding-left:10px;padding-right:10px}.sidebar>.brand{margin-left:10px}.brand{font-size:18px}.workspace{margin-left:218px}.main-content{padding:28px 25px}.topbar{padding:0 25px}.three{grid-template-columns:1fr 1fr}.stat-grid{gap:12px}.stat{padding:18px}.hero{padding:28px}.goal-orb{width:158px;height:158px;margin-right:8px}.goal-orb strong{font-size:45px}.hero h2{font-size:26px}.two{gap:18px}.card{padding:21px}.auth-marketing{padding:40px}.auth-panel{padding:40px}.auth-marketing h1{font-size:35px}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);width:255px;transition:transform .2s}.workspace{margin-left:0}.menu-open .sidebar{transform:translateX(0)}.mobile-menu{display:inline-flex;position:fixed;left:14px;top:17px;z-index:20;width:38px;min-height:36px;padding:3px}.topbar{padding-left:70px;height:70px}.main-content{padding:28px}.hero{min-height:260px}.auth-shell{grid-template-columns:1fr 1fr}.auth-marketing{padding:30px}.auth-panel{padding:30px}.auth-marketing h1{font-size:31px}.orbit-art{width:240px}.orbit-label{left:-5px;font-size:7px}.orbit-ring.second{width:240px;height:240px}.reader{padding:30px}.footer{padding:20px 28px}}
@media(max-width:650px){h1{font-size:27px}.main-content{padding:25px 17px}.topbar{padding-right:17px}.topbar>div:first-child>.muted,.topbar .slash{display:none}.header-date{display:none}.topbar .actions{gap:10px}.page-heading{margin-bottom:22px}.page-heading .muted{font-size:12px}.page-heading .eyebrow{font-size:8px}.hero{padding:25px;min-height:245px}.hero h2{font-size:24px}.hero p{font-size:11px;max-width:245px}.hero .badge{font-size:8px}.goal-orb{display:none}.hero-star{font-size:40px;right:18px;top:20px;opacity:.5}.stat-grid{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:18px}.stat strong{font-size:25px}.stat .muted{font-size:10px}.three,.two{grid-template-columns:1fr;gap:17px}.card{padding:21px;margin-bottom:20px}.grid>.card{margin-bottom:0}.toolbar{gap:10px}.toolbar h2{font-size:17px}.tabs{gap:4px;width:100%}.tabs a{font-size:11px;padding:8px 11px}.search{flex-wrap:wrap;gap:8px}.search select{width:auto;flex:1}.search input{min-width:160px}.search button{padding:10px 14px}.form-grid{grid-template-columns:1fr;gap:0}.footer{flex-direction:column;padding:20px 17px;gap:4px;padding-bottom:70px}.tutor-toggle{right:16px;bottom:16px;font-size:11px;min-height:38px}.exam-bar{padding:12px;gap:10px;flex-wrap:wrap}.exam-bar #save-status{font-size:10px;max-width:170px}.exam-bar strong{font-size:21px}.exam-question{padding:20px}.passage{padding:18px;font-size:16px}.option{font-size:13px;padding:13px}.chapter-link{gap:12px;flex-wrap:wrap}.chapter-link strong{font-size:13px}.chapter-link .badge{font-size:8px}.reader{padding:23px;font-size:18px}.reader-size-16{font-size:16px}.reader-size-20{font-size:20px}.reader-size-22{font-size:22px}.reader-size-24{font-size:24px}.reader-size-26{font-size:26px}.reader-size-28{font-size:28px}.reader-toolbar .muted{display:none}.pagination{flex-wrap:wrap;font-size:10px}.pagination .button{font-size:11px;padding:8px 10px}.quiz-options{grid-template-columns:1fr}.game-word{font-size:35px}.learning-card{padding:20px}.task-row{gap:10px}.task-row>.muted{font-size:9px}.pricing{padding:25px}.auth-shell{display:block}.auth-marketing{padding:27px 25px;border:0}.auth-marketing>.brand{margin:0}.auth-marketing>div,.auth-marketing>p{display:none}.auth-panel{padding:20px 25px 40px}.auth-form{max-width:440px}.auth-form>h2{font-size:29px}.auth-form>.badge{display:none}.auth-form>h2{margin-top:5px}.install{margin:25px auto;padding:27px}.install h1{font-size:27px}dialog{padding:22px}.book-cover{height:275px}.book-cover strong{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.custom-book-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.25}.book-cover>strong,.book-cover>.eyebrow,.book-cover>span:last-child{position:relative}

/* ====== Yangi: login, CEFR, reyting, AI matni, animatsiya, highlight ====== */
.auth-shell{background:radial-gradient(1200px 600px at 12% 0%,#16224a 0%,transparent 55%),radial-gradient(900px 500px at 100% 100%,#2a1a4d 0%,transparent 55%),#080c16}
.auth-marketing{background:linear-gradient(160deg,#0d1730,#0a1024 60%,#120e2a);border-right:1px solid #1e2a49;display:flex;flex-direction:column;gap:18px;justify-content:center}
.auth-marketing>.brand{margin-bottom:6px;font-size:30px;letter-spacing:2px}
.auth-marketing .brand-icon{background:linear-gradient(140deg,#4f7dff,#8b5cf6);border:0;color:#fff;box-shadow:0 10px 30px #4f7dff44;font-style:normal;font-weight:800;font-size:22px}
.auth-pill{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-size:12px;font-weight:600;color:#b8c9ff;background:#16224a80;border:1px solid #2c3e72;border-radius:999px;padding:8px 16px;margin:0}
.auth-marketing h1{font-size:44px;line-height:1.14;letter-spacing:-1.6px;margin:0}
.auth-marketing h1 span{background:linear-gradient(100deg,#5b8cff,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-lead{font-size:14px;max-width:430px;margin:0}
.auth-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:470px}
.auth-stat{background:#0f1a33aa;border:1px solid #23305a;border-radius:14px;padding:16px 18px}
.auth-stat strong{display:block;font-size:24px;letter-spacing:-.5px;line-height:1.3}
.auth-stat span{font-size:12px;color:#93a3c4}
.blue-text{color:#6c9bff}.amber-text{color:#fbbf24}.green-text{color:#34d399}
.auth-quote{background:#0f1a33aa;border:1px solid #23305a;border-radius:16px;padding:18px 20px;max-width:470px}
.auth-quote p{font-size:13px;line-height:1.7;color:#c6d3ee;margin-bottom:14px}
.auth-quote-by{display:flex;align-items:center;gap:10px}
.auth-quote-by strong{display:block;font-size:12px}
.auth-quote-by small{color:#8698bd;font-size:11px}
.auth-copy{font-size:11px;color:#6b7ba0;margin:0}
.auth-panel{display:flex;align-items:center;justify-content:center;background:#0a0f1e}
.auth-form{width:100%;max-width:430px}
.auth-form h2{font-size:32px;letter-spacing:-1px;margin-bottom:8px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#101a30;border:1px solid #223055;border-radius:14px;padding:6px;margin:20px 0 22px}
.auth-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;font-size:13px;font-weight:600;color:#9fb0d3}
.auth-tabs a.active{background:linear-gradient(120deg,#4f7dff,#8b5cf6);color:#fff;box-shadow:0 8px 24px #4f7dff33}
.pw-wrap{position:relative;display:block}
.pw-eye{position:absolute;right:6px;top:calc(50% + 3px);transform:translateY(-50%);background:none;border:0;min-height:34px;padding:0 10px;font-size:15px;color:#8aa0c4}
.pw-eye:hover{background:none;filter:none}
button.glow{background:linear-gradient(120deg,#4f7dff,#8b5cf6);box-shadow:0 14px 34px #4f7dff33;min-height:50px;font-size:15px;border-radius:12px}
.auth-link{margin-top:18px;font-size:13px;text-align:center;color:#93a3c4}
.auth-link a{color:#7aa2ff;font-weight:600}

/* ---- Kitob o'quvchisi ---- */
.back-link{display:inline-block;margin-bottom:10px;font-size:12px}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px;position:sticky;top:0;z-index:12;background:var(--bg);padding:10px 0}
.reader-tools{display:flex;gap:8px}
.cefr-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cefr-label{font-size:11px;color:var(--muted);margin-right:2px}
.cefr-chip{min-height:30px;padding:4px 12px;font-size:11px;font-weight:700;border-radius:999px;background:#151f30;border:1px solid #2b3b54;color:#9db0c9}
.cefr-chip:hover{filter:brightness(1.25)}
.cefr-chip.on{color:#08101d}
.cefr-chip.on.lv-A1,.cefr-w.lv-A1{background:#7ee787}
.cefr-chip.on.lv-A2,.cefr-w.lv-A2{background:#a5f3a0}
.cefr-chip.on.lv-B1,.cefr-w.lv-B1{background:#7dd3fc}
.cefr-chip.on.lv-B2,.cefr-w.lv-B2{background:#a5b4fc}
.cefr-chip.on.lv-C1,.cefr-w.lv-C1{background:#f0abfc}
.cefr-chip.on.lv-C2,.cefr-w.lv-C2{background:#fca5a5}
.cefr-chip.on{border-color:transparent}
.cefr-chip.cefr-all.on{background:#e2e8f0}
.cefr-w{color:#08101d;border-radius:4px;padding:0 2px;cursor:pointer}
.cefr-badge{font-size:10px;color:#08101d!important;border:0}
.cefr-badge.lv-A1{background:#7ee787}.cefr-badge.lv-A2{background:#a5f3a0}.cefr-badge.lv-B1{background:#7dd3fc}.cefr-badge.lv-B2{background:#a5b4fc}.cefr-badge.lv-C1{background:#f0abfc}.cefr-badge.lv-C2{background:#fca5a5}
.reader-progress{display:block;width:100%;height:4px;border:0;border-radius:999px;background:#182234;margin-bottom:14px;position:sticky;top:56px;z-index:11;appearance:none;-webkit-appearance:none;overflow:hidden}
.reader-progress::-webkit-progress-bar{background:#182234}
.reader-progress::-webkit-progress-value{background:linear-gradient(90deg,#4f7dff,#46dddc)}
.reader-progress::-moz-progress-bar{background:#4f7dff}
.reader-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:30px}
.word-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
body.focus-mode .sidebar,body.focus-mode .topbar,body.focus-mode .footer,body.focus-mode .tutor-toggle,body.focus-mode .page-heading{display:none}
body.focus-mode .workspace{margin-left:0}
body.focus-mode .main-content{max-width:820px;padding-top:20px}

/* ---- Reyting ---- */
.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px;align-items:end}
.podium-card{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:22px 16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(160deg,#141f33,#111927)}
.podium-card.place-1{padding:30px 16px;border-color:#c99a2e;background:linear-gradient(160deg,#2a2412,#15192a);box-shadow:0 14px 40px #c99a2e1f}
.podium-card.place-2{border-color:#8b97ab}
.podium-card.place-3{border-color:#a4713f}
.podium-card.mine{outline:2px solid var(--cyan);outline-offset:2px}
.podium-medal{font-size:26px}
.podium-card strong{font-size:14px}
.podium-points{font-size:19px;font-weight:800;color:var(--cyan)}
.my-rank{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-color:#2c5a6b;background:linear-gradient(120deg,#12283a,#14202f)}
.my-rank h2{margin:4px 0}
.rank-gap{text-align:right}
.rank-gap strong{display:block;font-size:26px;color:var(--cyan);line-height:1.2}
.rank-table td{vertical-align:middle}
.rank-user{display:flex;align-items:center;gap:10px}
.rank-bar{display:block;width:90px;height:5px;border:0;border-radius:999px;background:#1d2940;margin-bottom:5px;appearance:none;-webkit-appearance:none;overflow:hidden}
.rank-bar::-webkit-progress-bar{background:#1d2940}
.rank-bar::-webkit-progress-value{background:linear-gradient(90deg,#4f7dff,#46dddc)}
.rank-bar::-moz-progress-bar{background:#4f7dff}
.rank{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#18233a;font-weight:700;font-size:12px}
.rank.top-rank{background:linear-gradient(140deg,#c99a2e,#8a6a1c);color:#1a1405}
tr.my-row{background:#132434}

/* ---- AI javobi ---- */
.ai-output{max-height:min(52dvh,460px);overflow:auto}
.ai-output.rich{white-space:normal;font-size:13.5px;line-height:1.75}
.ai-output.rich h2,.ai-output.rich h3,.ai-output.rich h4{margin:18px 0 8px;font-size:15px;color:#cfe3ff;letter-spacing:0}
.ai-output.rich h2:first-child,.ai-output.rich h3:first-child{margin-top:0}
.ai-output.rich p{margin-bottom:10px}
.ai-output.rich ul,.ai-output.rich ol{margin:0 0 12px;padding-left:22px}
.ai-output.rich li{margin-bottom:6px}
.ai-output.rich hr{border:0;border-top:1px solid #253149;margin:14px 0}
.ai-output.rich code{background:#0f1a2b;border:1px solid #23314a;border-radius:5px;padding:1px 6px;font-size:12.5px}
.ai-output.rich .code-block{background:#0d1523;border:1px solid #23314a;border-radius:10px;padding:12px 14px;overflow:auto;margin-bottom:12px}
.ai-output.rich blockquote{margin:0 0 12px;padding:8px 14px;border-left:3px solid #3a5a8c;background:#101a2b;border-radius:0 8px 8px 0;color:#bacbe4}
.ai-output.rich .math-block{margin:12px 0;padding:16px;line-height:1.35;background:#0f1a2b;border:1px solid #24344f;border-radius:12px;text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:17px;color:#e7f0ff}
.ai-output.rich .math-inline{font-family:Georgia,"Times New Roman",serif;color:#dbe8ff;white-space:nowrap}
.frac{display:inline-block;vertical-align:middle;text-align:center;margin:0 .22em;line-height:1.18;font-size:.96em}
.frac .num{display:block;border-bottom:1.5px solid currentColor;padding:0 .3em}
.frac .den{display:block;padding:0 .3em}
.math-block .frac{font-size:1em}
.sqrt{border-top:1.5px solid currentColor;padding:0 .2em}
.ai-loading{color:var(--cyan)}

/* ---- Toastlar ---- */
#toast-box{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{background:#16243a;border:1px solid #2f4260;border-radius:12px;padding:11px 18px;font-size:12.5px;color:#dceaff;box-shadow:0 16px 40px #0007;animation:toast-in .22s ease-out}
.toast.out{opacity:0;transition:opacity .3s}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
button.armed{background:linear-gradient(120deg,#c2453f,#96322d)}

/* ---- Sahifa animatsiyasi ---- */
@media(prefers-reduced-motion:no-preference){
 body.page-in .main-content{animation:page-enter .34s cubic-bezier(.22,.7,.3,1) both}
 body.page-in .main-content>*{animation:page-enter .4s cubic-bezier(.22,.7,.3,1) both}
 body.page-in .main-content>*:nth-child(2){animation-delay:.04s}
 body.page-in .main-content>*:nth-child(3){animation-delay:.08s}
 body.page-in .main-content>*:nth-child(4){animation-delay:.12s}
 body.page-in .main-content>*:nth-child(n+5){animation-delay:.16s}
 body.page-out .workspace,body.page-out .auth-shell{opacity:0;transform:translateY(-6px);transition:opacity .14s ease,transform .14s ease}
 body.page-in .auth-shell{animation:page-enter .4s cubic-bezier(.22,.7,.3,1) both}
 .nav-item,.card,.button,button{transition:background .15s,transform .15s,border-color .15s,box-shadow .15s}
 .card:hover{border-color:#2c3b54}
 .quick-link:hover{transform:translateX(3px)}
}
@keyframes page-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---- Imtihonda matn belgilash ---- */
.hl-toolbar{position:fixed;left:0;top:0;z-index:70;display:flex;align-items:center;gap:8px;background:#1e1e1e;border-radius:999px;padding:7px 12px;box-shadow:0 12px 30px #00000055}
.hl-pick{width:22px;height:22px;min-height:22px;padding:0;border-radius:50%;border:2px solid #fff3}
.hl-pick[data-color=yellow]{background:#ffe066}
.hl-pick[data-color=green]{background:#86efac}
.hl-pick[data-color=blue]{background:#93c5fd}
.hl-clear{background:none;border:0;color:#fff;min-height:22px;padding:0 4px;font-size:13px}
.hl-clear:hover{background:none;filter:none}
mark.hl{border-radius:3px;padding:0 1px;color:#1e1e1e}
mark.hl-yellow{background:#ffe066}
mark.hl-green{background:#86efac}
mark.hl-blue{background:#93c5fd}

@media(max-width:900px){
 .auth-stats{grid-template-columns:1fr 1fr}
 .auth-marketing h1{font-size:34px}
 .podium{grid-template-columns:1fr;align-items:stretch}
 .my-rank{flex-direction:column;align-items:flex-start}
 .rank-gap{text-align:left}
 .reader-toolbar{position:static}
 .reader-progress{position:static}
}

/* ---- Formulalar (MathML): $...$ ichidagi TeX ---- */
math{font-family:"Latin Modern Math","STIX Two Math","Cambria Math","Noto Sans Math","Asana Math",math,serif}
.mx math{font-size:1.16em;math-style:normal}
.mx math[display="block"]{margin:.5em 0;text-align:center}
.mx-ovl{border-top:.07em solid currentColor;padding-top:.07em}
.mx-und{border-bottom:.07em solid currentColor;padding-bottom:.07em}
.mx-b{font-weight:700}
.mx-unk,code.mx-err{color:#d64545}
/* ---- Admin: formula paneli, jonli ko'rinish, rasm yuklash ---- */
.math-bar{position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px;margin:0 0 18px;background:#0f1a2b;border:1px solid #24344f;border-radius:12px;box-shadow:0 8px 24px #0006}
.math-bar .mb-group{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding-right:8px;border-right:1px solid #24344f}
.math-bar .mb-group:last-of-type{border-right:0}
.math-bar button{min-width:38px;height:36px;padding:0 10px;border-radius:8px;background:#152238;border:1px solid #2b3b58;color:#e7f0ff;font:16px/1 "Cambria Math","STIX Two Math",Georgia,serif;cursor:pointer;box-shadow:none}
.math-bar button:hover{background:#1d3151;border-color:var(--cyan)}
.math-bar .mb-hint{flex-basis:100%;margin:2px 2px 0;font-size:12px;color:var(--muted)}
.math-preview{margin-top:8px;padding:10px 13px;border:1px dashed #2f4262;border-radius:8px;background:#0b1424;color:#e7f0ff;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.75}
.math-preview:empty{display:none}
.math-preview::before{content:"Ko‘rinishi";display:block;margin-bottom:4px;font:600 10px/1 Inter,sans-serif;letter-spacing:1px;text-transform:uppercase;color:#60718c}
.img-field{margin:0 0 17px;padding:14px;border:1px dashed #2f4262;border-radius:12px;background:#0d1523;outline:none}
.img-field.drag,.img-field:focus-visible{border-color:var(--cyan);background:#0f2233}
.img-label{display:block;margin-bottom:10px;font-size:12px;font-weight:600;color:#b8c5d9}
.img-current{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;margin-bottom:12px}
.img-current img,.img-new img{max-width:260px;max-height:180px;border:1px solid #2b374e;border-radius:8px;background:#fff;object-fit:contain}
.img-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.img-controls input[type=text]{flex:1;min-width:220px;margin:0}
.img-drop{margin-top:10px}
.img-new{display:flex;gap:10px;align-items:center;margin-top:8px;font-size:12px;color:var(--green)}
.check{display:inline-flex;gap:8px;align-items:center;margin:0}
kbd{padding:1px 6px;border:1px solid #2b3b58;border-radius:5px;background:#152238;font:11px/1.6 ui-monospace,Menlo,monospace}
/* ---- Yozma javobli savol (test rejimi) ---- */
.text-answer{margin-top:8px}
.text-answer-label{display:block;margin:0 0 8px;font-size:14px;font-weight:600;color:#1e1e1e}
.bb-ask .answer-input{width:min(100%,260px);height:56px;padding:0 16px;border:1px solid #6b6b6b;border-radius:9px;background:#fff;color:#1e1e1e;font:500 22px/1 Georgia,"Times New Roman",serif;letter-spacing:.5px}
.bb-ask .answer-input:focus{outline:none;border-color:#324dc7;box-shadow:inset 0 0 0 1px #324dc7}
.text-answer-hint{margin:10px 0 0;font-size:13px;color:#4a4a4a}
@media(max-width:650px){.math-bar{position:static}.math-bar button{min-width:34px;height:34px}.img-current img,.img-new img{max-width:100%}}

/* Telegram orqali kirish: ochiq rozilik, kod va sessiyani uzish. */
.tg-consent{display:flex;align-items:flex-start;gap:12px;margin:4px 0 19px;padding:13px 14px;border-radius:11px;background:#132237;border:1px solid #29405e;font-size:12px;line-height:1.6;color:#c8d7e8;font-weight:500}
.tg-consent input[type=checkbox]{flex:none;width:19px;height:19px;margin:1px 0 0}
.tg-disclaimer{margin-top:15px;line-height:1.65}
.tg-cancel{margin-top:11px}
.tg-check{margin:16px 0 0}
.tg-disconnect{margin:15px 0}
.tg-disconnect .danger{border-color:#713b4b;color:#ffabb8}
