@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

:root{--bg:#eef4fb;--card:#fff;--text:#14213d;--muted:#64748b;--line:#d9e4f2;--blue:#078fcf;--blue2:#006da7;--green:#16a34a;--red:#dc2626;--amber:#f59e0b;--shadow:0 14px 40px rgba(31,65,105,.12)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#edf5fc,#f7fbff);color:var(--text)}button,input,select,textarea{font:inherit}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);background:var(--card);padding:32px;border-radius:26px;box-shadow:var(--shadow);display:grid;gap:16px}.auth-card h1,.auth-card p{text-align:center;margin:0}.logo{width:72px;height:72px;border-radius:24px;background:linear-gradient(135deg,var(--blue),#5cc7f2);color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900;margin:auto}.auth-card label,.form-grid label{display:grid;gap:7px;font-weight:700;color:#475569}.auth-card input,.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#f8fbff;outline:none}.auth-card input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(7,143,207,.13)}.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.primary{background:var(--blue);color:white}.btn.primary:hover{background:var(--blue2)}.btn.green{background:var(--green);color:#fff}.btn.red{background:var(--red);color:#fff}.btn.amber{background:var(--amber);color:#fff}.btn.ghost{background:#eaf1f8;color:#334155}.btn.small{padding:8px 11px}.btn.wide{width:100%}.alert{padding:12px;border-radius:12px}.alert.danger{background:#fee2e2;color:#991b1b}.alert.success{background:#dcfce7;color:#166534}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:5}.brand{font-weight:900;text-decoration:none;color:var(--text);font-size:19px}.brand span{background:var(--blue);color:white;padding:7px 10px;border-radius:11px;margin-right:7px}.top-actions{display:flex;align-items:center;gap:10px}.shell{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 68px)}.sidebar{padding:20px 14px;border-right:1px solid var(--line);background:rgba(255,255,255,.68);display:flex;flex-direction:column;gap:8px}.nav{border:0;background:transparent;text-align:left;padding:13px 14px;border-radius:13px;font-weight:800;color:#475569;cursor:pointer}.nav:hover,.nav.active{background:#dff3ff;color:#036b9c}.content{padding:24px;min-width:0}body.student-nav-hidden .shell{grid-template-columns:1fr}body.student-nav-hidden .sidebar{display:none!important}body.student-nav-hidden .content{padding-bottom:24px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:20px}.page-head h1{margin:0}.muted{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 8px 25px rgba(31,65,105,.06)}.stat b{font-size:30px;display:block;margin-top:8px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 8px 25px rgba(31,65,105,.06)}.card h3{margin:0 0 8px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px}.table{width:100%;border-collapse:collapse;min-width:700px}.table th,.table td{padding:13px 15px;border-bottom:1px solid var(--line);text-align:left}.table th{background:#f1f7fd;color:#475569}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .full{grid-column:1/-1}.modal-bg{position:fixed;inset:0;background:rgba(15,23,42,.42);display:grid;place-items:center;padding:20px;z-index:20}.modal{width:min(620px,100%);background:#fff;border-radius:22px;padding:22px;box-shadow:var(--shadow)}.modal h2{margin-top:0}.study-wrap{max-width:760px;margin:auto}.flashcard{min-height:330px;background:linear-gradient(145deg,#fff,#eef8ff);border:1px solid #bdddf1;border-radius:28px;display:grid;place-items:center;text-align:center;padding:30px;box-shadow:var(--shadow);cursor:pointer}.flashcard .ko{font-size:48px;font-weight:900}.flashcard .uz{font-size:28px;color:var(--blue2);margin-top:18px}.study-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:15px}.option-list{display:grid;gap:10px;margin-top:18px}.option{border:1px solid var(--line);padding:14px;border-radius:14px;background:#fff;text-align:left;font-weight:800;cursor:pointer}.option:hover{border-color:var(--blue);background:#eefaff}.progress{height:10px;background:#dce8f3;border-radius:999px;overflow:hidden;margin-bottom:16px}.progress i{display:block;height:100%;background:var(--blue)}#toast{position:fixed;right:18px;bottom:18px;z-index:30}.toast{background:#0f172a;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:var(--shadow);margin-top:8px}.loading{text-align:center;padding:50px;color:var(--muted)}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;right:0;bottom:0;z-index:10;flex-direction:row;border:0;border-top:1px solid var(--line);padding:8px;overflow:auto;background:#fff}.nav{white-space:nowrap;font-size:13px;padding:10px}.content{padding:16px 16px 88px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr 1fr}body.student-nav-hidden .content{padding:16px}}@media(max-width:600px){.topbar{padding:0 12px}.top-actions b{display:none}.stats,.grid,.form-grid{grid-template-columns:1fr}.study-actions{grid-template-columns:1fr 1fr}.flashcard .ko{font-size:38px}.page-head{align-items:flex-start;flex-direction:column}}

/* 3D flashcard: faqat Flashcard rejimi uchun */
.flip-card{min-height:330px;perspective:1200px;cursor:pointer;outline:none}
.flip-card-inner{position:relative;width:100%;min-height:330px;transition:transform .65s cubic-bezier(.2,.75,.25,1);transform-style:preserve-3d}
.flip-card.is-flipped .flip-card-inner{transform:rotateY(180deg)}
.flip-card-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px 30px 72px;border:1px solid #bdddf1;border-radius:28px;box-shadow:var(--shadow);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.flip-card-front{background:linear-gradient(145deg,#fff,#eef8ff)}
.flip-card-back{background:linear-gradient(145deg,#eef8ff,#fff);transform:rotateY(180deg)}
.flip-card-main{width:100%;display:flex;align-items:center;justify-content:center;text-align:center}.flip-card-meta{position:absolute;left:22px;bottom:18px;color:var(--muted);font-size:14px;font-weight:700;text-align:left}.flip-card-face .ko{font-size:48px;font-weight:900}.flip-card-face .uz{font-size:48px;font-weight:900;color:var(--blue2)}
.flip-card:focus-visible{border-radius:28px;box-shadow:0 0 0 4px rgba(7,143,207,.2)}
.flashcard-summary{grid-template-columns:minmax(220px,360px);justify-content:center}
@media(max-width:600px){.flip-card,.flip-card-inner{min-height:300px}.flip-card-face{padding:24px 24px 66px}.flip-card-meta{left:18px;bottom:14px;font-size:13px}.flip-card-face .ko{font-size:38px}.flip-card-face .uz{font-size:38px}}
@media(prefers-reduced-motion:reduce){.flip-card-inner{transition:none}}


/* Flashcard navigatsiya tugmalari */
.flashcard-stage{position:relative;display:flex;align-items:center;justify-content:center}
.flashcard-stage .flip-card{width:100%}
.flash-nav{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:999px;border:1px solid rgba(7,143,207,.18);background:rgba(255,255,255,.34);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);color:var(--blue2);font-size:36px;font-weight:900;line-height:1;display:grid;place-items:center;cursor:pointer;z-index:4;box-shadow:0 8px 22px rgba(31,65,105,.09);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.flash-nav.left{left:14px}
.flash-nav.right{right:14px}
.flash-nav:hover{background:rgba(255,255,255,.72);border-color:rgba(7,143,207,.42);box-shadow:0 10px 28px rgba(31,65,105,.16)}
.flash-nav:active{transform:translateY(-50%) scale(.95)}
.flash-nav:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(7,143,207,.20),0 10px 28px rgba(31,65,105,.16)}
@media(max-width:600px){.flash-nav{width:46px;height:46px;font-size:30px}.flash-nav.left{left:8px}.flash-nav.right{right:8px}}


/* Flashcard sozlamalari va yo‘nalish tanlash */
.flashcard-toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:42px}
.flashcard-direction-label{color:var(--muted);font-size:14px;font-weight:800}
.flashcard-settings{position:relative;margin-left:auto}
.flash-settings-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.82);color:#475569;font-size:21px;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(31,65,105,.08);transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.flash-settings-btn:hover,.flash-settings-btn[aria-expanded="true"]{background:#fff;border-color:#9ccfea;color:var(--blue2);box-shadow:0 8px 24px rgba(31,65,105,.14)}
.flash-settings-btn:active{transform:scale(.96)}
.flash-settings-btn:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(7,143,207,.18)}
.flash-settings-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(280px,calc(100vw - 48px));padding:10px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);z-index:12}
.flash-settings-menu[hidden]{display:none}
.flash-settings-title{padding:5px 7px 9px;color:var(--muted);font-size:13px;font-weight:800}
.flash-direction-option{width:100%;border:0;border-radius:10px;background:transparent;padding:11px 12px;text-align:left;color:#334155;font-weight:800;cursor:pointer}
.flash-direction-option:hover{background:#eef8ff}
.flash-direction-option.active{background:#dff3ff;color:#036b9c}
.flash-direction-option.active::after{content:'✓';float:right}
@media(max-width:600px){.flashcard-toolbar{margin-bottom:10px}.flashcard-direction-label{font-size:13px}.flash-settings-btn{width:40px;height:40px}}


/* Quiz rejimi uchun yangi ko‘rinish */
.quiz-wrap{max-width:900px}
.quiz-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 12px 32px rgba(31,65,105,.08)}
.quiz-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.quiz-counter{color:var(--muted);font-size:14px;font-weight:800;margin-bottom:8px}
.quiz-question{margin:0;font-size:42px;line-height:1.1}
.quiz-continue{flex:0 0 auto}.quiz-continue[hidden]{display:none}
.quiz-feedback{display:flex;align-items:flex-start;gap:12px;border-radius:16px;padding:14px 16px;margin-bottom:18px;font-weight:700}
.quiz-feedback.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.quiz-feedback.error{background:#fff1f4;color:#b4235a;border:1px solid #f4a6bc}
.quiz-feedback-icon{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 auto;background:rgba(255,255,255,.72)}
.quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quiz-option{position:relative;width:100%;min-height:72px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--text);font-weight:800;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.quiz-option:hover{border-color:#9ccfea;background:#f9fcff;box-shadow:0 8px 20px rgba(31,65,105,.07)}
.quiz-option:disabled{cursor:default}
.quiz-option.is-muted{opacity:.58}
.quiz-option.is-correct{border-color:#6ee7b7;background:#ecfdf5;color:#065f46;box-shadow:0 8px 22px rgba(16,185,129,.12)}
.quiz-option.is-wrong{border-color:#f4a6bc;background:#fff1f4;color:#9d174d;box-shadow:0 8px 22px rgba(219,39,119,.12)}
.quiz-option-mark{width:28px;height:28px;border-radius:999px;border:2px solid #d6e4f0;display:grid;place-items:center;flex:0 0 auto;color:transparent;background:#fff;font-size:18px;font-weight:900}
.quiz-option-label{font-size:24px;line-height:1.2}
.quiz-option.is-correct .quiz-option-mark{border-color:#34d399;background:#34d399;color:#fff}
.quiz-option.is-correct .quiz-option-mark::before{content:'✓'}
.quiz-option.is-wrong .quiz-option-mark{border-color:#ec6f9e;background:#fff;color:#d94682}
.quiz-option.is-wrong .quiz-option-mark::before{content:'✕'}
@media(max-width:700px){.quiz-options{grid-template-columns:1fr}.quiz-head{flex-direction:column;align-items:stretch}.quiz-question{font-size:34px}.quiz-continue{width:100%}.quiz-option-label{font-size:21px}}


/* Variantli test yo‘nalish sozlamalari */
.quiz-toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:42px}
.quiz-direction-label{color:var(--muted);font-size:14px;font-weight:800}
.quiz-settings{position:relative;margin-left:auto}
@media(max-width:600px){.quiz-toolbar{margin-bottom:10px}.quiz-direction-label{font-size:13px}}


/* Anagramma mashqi */
.anagram-wrap{max-width:820px}
.anagram-mode-card{position:relative;overflow:hidden}
.anagram-mode-card::after{content:'가';position:absolute;right:18px;bottom:-12px;font-size:82px;font-weight:900;color:rgba(7,143,207,.08);transform:rotate(-8deg);pointer-events:none}
.anagram-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 12px 32px rgba(31,65,105,.08)}
.anagram-top{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:14px;font-weight:800}
.anagram-counter{white-space:nowrap}
.anagram-label{text-align:right}
.anagram-meaning{text-align:center;font-size:36px;font-weight:900;color:var(--text);padding:30px 12px 24px}
.anagram-answer{min-height:86px;border:2px dashed #b8d5e8;border-radius:18px;background:#f7fbff;padding:14px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.anagram-answer.is-correct{border-style:solid;border-color:#34d399;background:#ecfdf5;box-shadow:0 8px 22px rgba(16,185,129,.12)}
.anagram-answer.is-wrong{border-style:solid;border-color:#f9a8d4;background:#fdf2f8;box-shadow:0 8px 22px rgba(236,72,153,.10)}
.anagram-placeholder{color:#94a3b8;font-weight:700}
.anagram-selected-piece,.anagram-piece{min-width:60px;height:58px;border-radius:14px;font-size:27px;font-weight:900;display:grid;place-items:center;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
.anagram-selected-piece{border:1px solid #72c7ee;background:#e7f7ff;color:#075985;box-shadow:0 6px 16px rgba(7,143,207,.11)}
.anagram-selected-piece:hover{transform:translateY(-2px);background:#d9f2ff}
.anagram-hint{text-align:center;color:var(--muted);font-size:14px;font-weight:700;margin:20px 0 12px}
.anagram-pieces{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;min-height:70px}
.anagram-piece{border:1px solid #cbdbea;background:#fff;color:var(--text);box-shadow:0 7px 18px rgba(31,65,105,.08)}
.anagram-piece:hover{transform:translateY(-3px);border-color:#62bde7;background:#f2fbff;box-shadow:0 10px 22px rgba(31,65,105,.12)}
.anagram-feedback{margin:0 0 16px;border-radius:14px;padding:13px 15px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;text-align:center}
.anagram-feedback.success{background:#ecfdf5;border:1px solid #86efac;color:#047857}
.anagram-feedback.error{background:#fdf2f8;border:1px solid #f9a8d4;color:#be185d}
.anagram-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.anagram-actions .btn[hidden]{display:none}
.anagram-actions .btn:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:600px){.anagram-card{padding:18px}.anagram-top{align-items:flex-start}.anagram-meaning{font-size:30px;padding:24px 8px 20px}.anagram-answer{min-height:78px;padding:12px;gap:8px}.anagram-selected-piece,.anagram-piece{min-width:52px;height:52px;font-size:24px}.anagram-actions{display:grid;grid-template-columns:1fr 1fr}.anagram-actions .btn:last-child{grid-column:1/-1}}


/* Moslashtirish mashqi */
.matching-mode-card{position:relative;overflow:hidden}
.matching-mode-card::after{content:'↔';position:absolute;right:18px;bottom:-22px;font-size:94px;font-weight:900;color:rgba(7,143,207,.08);pointer-events:none}
.matching-wrap{max-width:1040px;margin:auto}
.matching-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.matching-header h2{margin:0 0 5px}
.matching-header p{margin:0;color:var(--muted)}
.matching-counter{min-width:82px;padding:9px 13px;border-radius:12px;background:#fff;border:1px solid var(--line);font-weight:900;text-align:center;box-shadow:0 6px 18px rgba(31,65,105,.06)}
.matching-message{min-height:46px;margin:14px 0;padding:12px 16px;border-radius:14px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:800;text-align:center}
.matching-message.success{background:#ecfdf5;border-color:#86efac;color:#047857}
.matching-message.error{background:#fdf2f8;border-color:#f9a8d4;color:#be185d}
.matching-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.matching-card{min-height:132px;border:1px solid #c7d9e8;border-radius:18px;background:#fff;color:var(--text);padding:16px;display:grid;place-items:center;text-align:center;font-size:22px;font-weight:850;cursor:pointer;box-shadow:0 7px 20px rgba(31,65,105,.06);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease,opacity .25s ease}
.matching-card:hover{transform:translateY(-2px);border-color:#72c7ee;background:#f7fcff;box-shadow:0 10px 24px rgba(31,65,105,.11)}
.matching-card.ko{font-size:26px}
.matching-card.selected{border:2px solid var(--blue);background:#e8f7ff;box-shadow:0 0 0 4px rgba(7,143,207,.11)}
.matching-card.wrong{border-color:#ec6f9e;background:#fff1f5;color:#9d174d;animation:matchingShake .32s ease}
.matching-card.matched{border-color:#34d399;background:#ecfdf5;color:#047857;opacity:.22;pointer-events:none;transform:scale(.96)}
@keyframes matchingShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media(max-width:900px){.matching-board{grid-template-columns:repeat(3,minmax(0,1fr))}.matching-card{min-height:116px}}
@media(max-width:650px){.matching-header{align-items:center}.matching-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.matching-card{min-height:94px;padding:12px;font-size:18px}.matching-card.ko{font-size:22px}.matching-message{margin:10px 0}}


/* Moslashtirish: tillar doim alohida ustunlarda va bosqichlar bilan */
.matching-stage-info{min-width:145px;padding:10px 13px;border-radius:14px;background:#fff;border:1px solid var(--line);display:grid;gap:3px;text-align:right;box-shadow:0 6px 18px rgba(31,65,105,.06)}
.matching-stage-info b{font-size:14px}.matching-stage-info span{color:var(--muted);font-size:12px;font-weight:700}
.matching-board.matching-board-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.matching-column{min-width:0;background:rgba(255,255,255,.55);border:1px solid var(--line);border-radius:20px;padding:12px}
.matching-column-title{text-align:center;color:var(--muted);font-size:14px;font-weight:900;padding:3px 6px 11px}
.matching-column-cards{display:grid;gap:10px}
.matching-board-split .matching-card{width:100%;min-height:82px}
.matching-stage-complete{margin-top:16px;padding:15px 16px;border:1px solid #a7d8ef;border-radius:16px;background:#eef9ff;display:flex;align-items:center;justify-content:space-between;gap:14px}
.matching-stage-complete[hidden]{display:none!important}
.matching-stage-complete>div{display:grid;gap:3px}.matching-stage-complete span{color:var(--muted);font-size:13px;font-weight:700}
@media(max-width:650px){.matching-header{align-items:flex-start}.matching-stage-info{min-width:126px;padding:8px 10px}.matching-board.matching-board-split{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.matching-column{padding:7px;border-radius:15px}.matching-column-title{font-size:12px;padding-bottom:7px}.matching-column-cards{gap:7px}.matching-board-split .matching-card{min-height:72px;padding:8px 6px;font-size:15px;border-radius:13px}.matching-board-split .matching-card.ko{font-size:18px}.matching-stage-complete{align-items:stretch;flex-direction:column}.matching-stage-complete .btn{width:100%}}


/* Oddiy lug‘at ko‘rinishidagi So‘zlar bo‘limi */
.words-mode-card{position:relative;overflow:hidden}
.words-mode-card::after{content:'가';position:absolute;right:20px;bottom:-18px;font-size:92px;font-weight:900;color:rgba(7,143,207,.07);pointer-events:none}
.words-wrap{max-width:1120px;margin:auto}
.words-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.words-header h1{margin:16px 0 4px;font-size:30px}
.words-header p{margin:0}
.words-count{min-width:112px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:12px 16px;display:flex;align-items:baseline;justify-content:center;gap:5px;box-shadow:0 7px 20px rgba(31,65,105,.06)}
.words-count b{font-size:27px}.words-count span{color:var(--muted);font-size:13px;font-weight:800}
.words-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.words-search{flex:1;min-width:0;height:48px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 14px;display:flex;align-items:center;gap:9px;box-shadow:0 5px 16px rgba(31,65,105,.05)}
.words-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(7,143,207,.12)}
.words-search input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--text)}
.words-direction{display:flex;background:#e7eff7;border-radius:13px;padding:4px;gap:4px;flex:0 0 auto}
.words-direction-btn{border:0;border-radius:10px;background:transparent;padding:9px 13px;color:#64748b;font-weight:900;cursor:pointer}
.words-direction-btn.active{background:#fff;color:#036b9c;box-shadow:0 4px 12px rgba(31,65,105,.10)}
.words-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.word-entry{position:relative;background:#fff;border:1px solid var(--line);border-radius:19px;padding:17px 18px 17px 58px;min-width:0;box-shadow:0 7px 22px rgba(31,65,105,.055)}
.word-entry-number{position:absolute;left:16px;top:17px;width:28px;height:28px;border-radius:9px;background:#e8f6ff;color:#0375ac;display:grid;place-items:center;font-size:12px;font-weight:900}
.word-entry-main{position:relative;padding-right:68px}
.word-primary{font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.word-primary.ko{font-size:29px}.word-primary.uz{font-size:24px;color:#075985}
.word-secondary{margin-top:6px;color:#475569;font-weight:750;overflow-wrap:anywhere}
.word-secondary.ko{font-size:21px}.word-secondary.uz{font-size:18px}
.word-type{position:absolute;right:0;top:2px;max-width:64px;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.word-extra{border-top:1px dashed var(--line);margin-top:14px;padding-top:12px}
.word-extra p{margin:5px 0;line-height:1.5}.example-ko{font-weight:800}.example-uz{color:#64748b}.word-note{color:#7c3aed;font-size:14px}
.words-empty{grid-column:1/-1;min-height:180px;background:#fff;border:1px dashed #b8d5e8;border-radius:19px;display:grid;place-items:center;align-content:center;gap:6px;color:#64748b;text-align:center}
.words-empty b{font-size:20px;color:var(--text)}
@media(max-width:760px){.words-header{align-items:flex-start}.words-tools{align-items:stretch;flex-direction:column}.words-direction{width:100%}.words-direction-btn{flex:1}.words-list{grid-template-columns:1fr}.word-entry{padding-left:52px}.word-primary.ko{font-size:26px}.word-primary.uz{font-size:22px}}
@media(max-width:480px){.words-header{flex-direction:column}.words-count{width:100%}.word-entry-main{padding-right:0}.word-type{position:static;display:inline-block;margin-top:9px;max-width:none}}


/* Yozib javob berish rejimi */
.typing-wrap{max-width:760px}
.typing-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 12px 32px rgba(31,65,105,.08)}
.typing-counter{color:var(--muted);font-size:14px;font-weight:800}
.typing-prompt{text-align:center;color:var(--muted);font-size:14px;font-weight:800;margin-top:6px}
.typing-question{text-align:center;font-size:44px;line-height:1.2;margin:18px 0 28px}
.typing-form{display:grid;gap:12px}
.typing-form label{display:grid;gap:8px;color:#475569;font-weight:800}
.typing-form input{width:100%;border:1px solid var(--line);border-radius:15px;padding:15px 16px;background:#f8fbff;outline:none;font-size:28px;font-weight:800;text-align:center}
.typing-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(7,143,207,.13)}
.typing-result{display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:15px 16px;border-radius:16px;border:1px solid}
.typing-result>span{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.75);font-size:18px;font-weight:900}
.typing-result b{display:block;margin-bottom:3px}
.typing-result p{margin:0}
.typing-result.success{background:#ecfdf5;border-color:#86efac;color:#047857}
.typing-result.near{background:#fffbeb;border-color:#fcd34d;color:#a16207}
.typing-result.danger{background:#fff1f2;border-color:#fda4af;color:#be123c}
.typing-next{margin-top:10px}
@media(max-width:600px){.typing-card{padding:20px}.typing-question{font-size:36px}.typing-form input{font-size:24px}}


/* Bosh sahifadagi bugungi takrorlash bo‘limi */
.daily-review-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;background:linear-gradient(135deg,#ffffff,#f2f9ff);border:1px solid #b9dcef;border-radius:24px;padding:24px;margin-bottom:28px;box-shadow:0 12px 32px rgba(31,65,105,.08)}
.daily-review-card.has-due{border-color:#8fcbe8}
.daily-review-card.is-clear{background:linear-gradient(135deg,#fff,#f1fff7);border-color:#b7e8ca}
.daily-review-icon{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:#e5f5ff;font-size:30px}
.daily-review-card.is-clear .daily-review-icon{background:#dcfce7}
.daily-review-eyebrow{color:var(--blue2);font-size:14px;font-weight:900;margin-bottom:5px}
.daily-review-content h2{margin:0 0 7px;font-size:30px}
.daily-review-content p{margin:0;color:var(--muted)}
.daily-review-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.daily-review-tags span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 11px;color:#475569;font-size:13px}
.daily-review-action{display:flex;align-items:center;justify-content:flex-end}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:0 0 14px}
.set-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media(max-width:700px){.daily-review-card{grid-template-columns:auto minmax(0,1fr);padding:19px;gap:14px}.daily-review-action{grid-column:1/-1}.daily-review-action .btn{width:100%}.daily-review-content h2{font-size:25px}.daily-review-icon{width:52px;height:52px;border-radius:17px;font-size:25px}}

/* 1-bosqich: kitob, mavzu, guruh va kunlik buyruq boshqaruvi */
.learning-admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.learning-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.learning-panel{min-height:250px}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.panel-title h2{margin:0;font-size:20px}.panel-title>span{padding:6px 10px;border-radius:999px;background:#eef6fd;color:var(--blue2);font-weight:800;font-size:13px}
.learning-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.learning-row:last-child{border-bottom:0}.learning-row b,.learning-row small{display:block}.learning-row small{color:var(--muted);margin-top:4px}.row-count{text-align:right;color:#475569;font-size:13px;font-weight:800;white-space:nowrap}
.student-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.student-group-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfdff}
.student-group-item span b,.student-group-item span small{display:block}.student-group-item span small{color:var(--muted);margin-top:3px}.student-group-item select{min-width:170px;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}
.command-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900;background:#eef2f7;color:#475569}
.command-pill.part1{background:#e0f2fe;color:#075985}.command-pill.both{background:#dcfce7;color:#166534}.command-pill.none{background:#fee2e2;color:#991b1b}.command-pill.pending{background:#fef3c7;color:#92400e}
.learning-command-table .table{min-width:820px}
@media(max-width:1050px){.learning-admin-grid{grid-template-columns:1fr}.student-group-grid{grid-template-columns:1fr}}
@media(max-width:600px){.learning-admin-actions .btn{flex:1 1 calc(50% - 8px)}.student-group-item{align-items:stretch;flex-direction:column}.student-group-item select{width:100%;min-width:0}}

/* CSV ommaviy import */
.import-columns{display:grid;gap:8px;padding:14px;border:1px dashed #b8d4e8;border-radius:14px;background:#f7fbff;color:#475569}
.import-columns code{display:block;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.55;color:#0f5f89}

/* 2-bosqich: o‘quvchining kunlik ikki kapsulali rejasi */
.daily-plan-date{background:#e7f3fb;color:#036b9c;border-radius:999px;padding:8px 12px;font-weight:800;font-size:13px}
.daily-plan-grid{display:grid;gap:18px;margin-bottom:28px}
.plan-capsule{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 10px 28px rgba(31,65,105,.07);transition:opacity .18s ease,filter .18s ease,border-color .18s ease}
.plan-capsule.review-capsule{border-color:#a7dfc0;background:linear-gradient(135deg,#fff,#f2fff7)}
.plan-capsule.new-capsule{border-color:#b9d9ee;background:linear-gradient(135deg,#fff,#f4fbff)}
.plan-capsule.is-locked{background:#f7f9fc;border-color:#d9e4f2}
.plan-capsule.is-complete{opacity:.72;filter:saturate(.75)}
.plan-capsule.needs-retry{border-color:#f3a5b3;background:linear-gradient(135deg,#fff,#fff3f6)}
.plan-capsule-icon{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:#e5f7ed;font-size:31px}
.new-capsule .plan-capsule-icon{background:#e5f4fd}
.plan-capsule.is-locked .plan-capsule-icon{background:#edf1f6}
.plan-capsule.needs-retry .plan-capsule-icon{background:#ffe6ec}
.plan-capsule-label{font-size:13px;font-weight:900;color:#036b9c;margin-bottom:7px}
.plan-capsule h2{margin:0 0 8px;font-size:28px}
.plan-capsule p{margin:0;color:var(--muted);line-height:1.55}
.plan-capsule-actions{display:flex;align-items:center;justify-content:flex-end}
.plan-progress{height:8px;background:#dce8f3;border-radius:999px;overflow:hidden;margin-top:15px}
.plan-progress i{display:block;height:100%;background:var(--blue);border-radius:inherit}
.review-capsule .plan-progress i{background:var(--green)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:22px 0 14px}
.section-head h2,.section-head p{margin:0}.section-head p{margin-top:5px}
.daily-finish-card .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.plan-capsule{grid-template-columns:auto 1fr;padding:18px;gap:14px}.plan-capsule-actions{grid-column:1/-1}.plan-capsule-actions .btn{width:100%}.plan-capsule-icon{width:52px;height:52px;border-radius:17px;font-size:26px}.plan-capsule h2{font-size:22px}.daily-finish-card .stats{grid-template-columns:repeat(2,1fr)}}

/* Xavfsiz import va yangi flashcard baholash paneli */
.import-sync-option{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fbff;font-weight:700}
.import-sync-option input{width:auto!important;margin-top:3px}
.flashcard-rate-note{text-align:center;margin-top:14px;color:var(--muted);font-size:14px;font-weight:800}
.flashcard-rate-note.is-rated{color:#166534}
.flashcard-rate-actions{margin-top:10px}
.flashcard-rate-actions .btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:600px){.flashcard-rate-actions{grid-template-columns:1fr 1fr}.flashcard-rate-note{font-size:13px}}


/* Koreyscha so‘z audiosi */
.word-audio-btn{display:inline-grid;place-items:center;width:38px;height:38px;margin-left:9px;border:1px solid #b9d9eb;border-radius:12px;background:#f3faff;color:#075985;font-size:19px;line-height:1;cursor:pointer;vertical-align:middle;box-shadow:0 4px 12px rgba(31,65,105,.08);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.word-audio-btn:hover{transform:translateY(-1px);background:#e8f6ff;box-shadow:0 7px 16px rgba(31,65,105,.12)}
.word-audio-btn:active{transform:translateY(0) scale(.96)}
.word-audio-btn:focus-visible{outline:3px solid rgba(7,143,207,.22);outline-offset:2px}
.word-audio-btn.playing{background:#dff3ff;box-shadow:0 0 0 4px rgba(7,143,207,.10)}
.flash-audio-btn{position:absolute;top:18px;right:18px;z-index:5;width:44px;height:44px;margin:0;border-radius:14px}
.word-primary .word-list-audio{width:36px;height:36px;font-size:18px}
.word-secondary .word-list-audio{width:32px;height:32px;font-size:16px}
@media(max-width:600px){.flash-audio-btn{top:14px;right:14px;width:42px;height:42px}.word-audio-btn{margin-left:7px}}


/* Flashcard avtomatik audio rejimi */
.flashcard-controls{display:flex;align-items:center;gap:8px;margin-left:auto}
.flashcard-controls .flashcard-settings{margin-left:0}
.flash-autoplay-btn{font-size:18px;color:var(--blue2);font-weight:900}
.flash-autoplay-btn.is-playing{background:#dff3ff;border-color:#7fc5e7;color:#036b9c;box-shadow:0 0 0 4px rgba(7,143,207,.08),0 8px 24px rgba(31,65,105,.12)}
@media(max-width:600px){.flashcard-controls{gap:7px}.flash-autoplay-btn{font-size:17px}}

/* Phase 6 learning engine */
.admin-alert-stack{display:grid;gap:10px;margin:0 0 16px}.alert.warning{background:#fff8e7;border-color:#f1d28a}.alert.info{background:#eef7ff;border-color:#b8d9f5}.alert.compact{padding:8px 10px;margin-top:8px;font-size:13px}
.phase6-debt-section{margin:0 0 18px}.phase6-debt-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:8px 0;border:1px solid #f0b7c8;background:#fff3f7;border-radius:16px}.phase6-debt-card p{margin:5px 0 0;color:var(--muted)}.phase6-debt-card-simple b{font-size:18px;line-height:1.35}
.plan-capsule.is-rest{opacity:.9;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}
.phase6-word-list{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.phase6-word-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line);background:var(--card)}.phase6-word-row:last-child{border-bottom:0}.phase6-word-no{font-size:12px;color:var(--muted);font-weight:700}.phase6-word-text{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.phase6-word-text b{font-size:18px}.phase6-word-text span{color:var(--muted)}.phase6-word-progress{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.phase6-word-progress span{font-size:11px;border:1px solid var(--line);padding:4px 7px;border-radius:999px;color:var(--muted)}.phase6-word-progress span.done{background:#ecfdf3;border-color:#b7ebc7;color:#16763a}
.phase6-sticky-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0 6px}.phase6-method-grid{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}.phase6-required-card{margin-bottom:16px}
.phase6-calendar-shell{margin-top:16px}.phase6-calendar-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 16px}.phase6-calendar-toolbar select{min-width:220px}.phase6-calendar-toolbar b{margin-left:auto;margin-right:auto}.phase6-calendar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.phase6-calendar-block{appearance:none;text-align:left;min-height:132px;border:1px solid var(--line);border-radius:18px;padding:14px;background:var(--card);display:flex;flex-direction:column;gap:7px;cursor:pointer;color:inherit}.phase6-calendar-block:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(15,23,42,.08)}.phase6-calendar-block.rest{cursor:default;opacity:.72;background:#f8fafc}.phase6-calendar-block.tone-0.assigned{background:#f1f8ff;border-color:#bfdbfe}.phase6-calendar-block.tone-1.assigned{background:#f4fbf6;border-color:#bbebca}.phase6-calendar-block.tone-2.assigned{background:#fff9ed;border-color:#f4d9a1}.phase6-calendar-block.missing{border-style:dashed}.phase6-calendar-date{font-size:12px;color:var(--muted);font-weight:700}.phase6-calendar-block b{font-size:15px}.phase6-calendar-block small{color:var(--muted)}.phase6-calendar-block em{font-style:normal;font-size:11px;font-weight:700;color:#16763a;margin-top:auto}
.phase6-admin-word-picker{max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:14px}.phase6-admin-word-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr);gap:12px;padding:9px 11px;border-bottom:1px solid var(--line)}.phase6-admin-word-row:last-child{border-bottom:0}.phase6-admin-word-row.selected{background:#eef7ff}.phase6-admin-word-row span{color:var(--muted)}
@media(max-width:900px){.phase6-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.phase6-word-row{grid-template-columns:34px minmax(0,1fr)}.phase6-word-progress{grid-column:2;justify-content:flex-start}.phase6-debt-card{align-items:flex-start;flex-direction:column}.phase6-calendar-toolbar b{width:100%;order:4;text-align:center}}
@media(max-width:560px){.phase6-calendar{grid-template-columns:1fr}.phase6-calendar-block{min-height:auto}.phase6-admin-word-row{grid-template-columns:1fr}.phase6-word-text{gap:5px}.phase6-word-text b{font-size:17px}.phase6-method-grid .btn{flex:1 1 140px}}
.phase6-method-grid-four .btn{min-width:150px;line-height:1.2}.phase6-method-grid-four .btn small{display:block;margin-top:4px;font-size:11px;font-weight:600;opacity:.72}.phase6-method-grid-priority-right #assignmentFlash{order:1}.phase6-method-grid-priority-right #assignmentMatch{order:2}.phase6-method-grid-priority-right #assignmentQuiz{order:3}.phase6-method-grid-priority-right #assignmentTyping{order:4}
@media(max-width:560px){.phase6-method-grid-four .btn{flex:1 1 calc(50% - 10px);min-width:0}}

/* Student task UI v7 */
.phase6-word-row{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px 14px}
.phase6-word-text{display:grid;grid-template-columns:minmax(82px,.85fr) 42px minmax(110px,1.15fr) 42px;align-items:center;gap:10px;width:100%;min-width:0}
.phase6-word-text b.phase6-word-ko{font-size:18px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
.phase6-word-text span.phase6-word-uz{color:var(--muted);line-height:1.35;min-width:0;overflow-wrap:anywhere}
.phase6-word-audio{display:grid;place-items:center;min-width:0}
.phase6-word-audio .word-audio-btn{margin-left:0}
.phase6-method-grid-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.phase6-method-grid-four .btn{width:100%;min-width:0;min-height:60px}
@media(max-width:560px){
  .phase6-word-row{grid-template-columns:28px minmax(0,1fr);gap:7px;padding:11px 9px}
  .phase6-word-text{grid-template-columns:minmax(62px,.82fr) 38px minmax(78px,1.18fr) 38px;gap:6px}
  .phase6-word-text b.phase6-word-ko{font-size:17px}
  .phase6-word-text span.phase6-word-uz{font-size:15px}
  .phase6-word-audio .word-audio-btn{width:36px;height:36px;font-size:17px}
  .phase6-method-grid-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .phase6-method-grid-four .btn{min-height:58px;padding:10px 8px}
}

/* v9: umumiy Ortga tugmasi, mobil modal scroll, swipe va majburiy belgi */
.student-header-back{white-space:nowrap;background:#eaf1f8;color:#334155}
.student-header-back[hidden]{display:none!important}
.modal-bg{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.flip-card{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.phase6-method-grid-four .btn small.required-label{color:#ff3b30;opacity:1;font-weight:900}
@media(max-width:600px){
  .modal-bg{place-items:start center;padding:14px 12px}
  .modal{width:100%;max-height:calc(100dvh - 28px);padding:20px 18px;margin:auto 0}
  .student-header-back{padding:8px 10px}
}


/* v10: typing hint pulse + interactive 3D flashcard swipe */
.matching-message[hidden]{display:none!important}
.flip-card{
  --swipe-x:0px;
  --swipe-rotate:0deg;
  --swipe-tilt:0deg;
  --swipe-scale:1;
  transform:perspective(1100px) translate3d(var(--swipe-x),0,0) rotateY(var(--swipe-tilt)) rotateZ(var(--swipe-rotate)) scale(var(--swipe-scale));
  transform-origin:center center;
  transition:transform .24s cubic-bezier(.22,.75,.22,1),filter .24s ease,opacity .24s ease;
  will-change:transform;
}
.flip-card.is-dragging{transition:none;filter:drop-shadow(0 18px 24px rgba(31,65,105,.16))}
.flip-card.is-swipe-out{opacity:.18;transition:transform .19s cubic-bezier(.2,.72,.25,1),opacity .19s ease,filter .19s ease}
@keyframes typingHintPulse{
  0%{box-shadow:0 0 0 0 rgba(239,186,53,0);background:#fff;transform:translateY(0) scale(1)}
  24%{box-shadow:0 0 0 6px rgba(239,186,53,.20),0 0 24px rgba(239,186,53,.32);background:#fff4bd;transform:translateY(-1px) scale(1.045)}
  58%{box-shadow:0 0 0 3px rgba(239,186,53,.11),0 0 12px rgba(239,186,53,.18);background:#fff9e6;transform:translateY(0) scale(1.015)}
  100%{box-shadow:none;background:#fff;transform:translateY(0) scale(1)}
}
.typing-syllable-box.typing-hint-pulse{animation:typingHintPulse 1.05s ease-out both}
@media(prefers-reduced-motion:reduce){
  .flip-card,.flip-card.is-dragging,.flip-card.is-swipe-out{transition:none}
  .typing-syllable-box.typing-hint-pulse{animation:none}
}

/* Yagona mashq sarlavhasi */
.practice-page-head{align-items:center;margin-bottom:12px}
.practice-page-head h1{font-size:clamp(24px,3vw,32px)}
.practice-page-badge{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:10px 14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,#f7fbff);min-width:120px;box-shadow:0 8px 20px rgba(31,65,105,.05)}
.practice-page-badge b{font-size:18px;line-height:1;color:var(--text)}
.practice-page-badge span{font-size:12px;color:var(--muted);text-align:right}
@media(max-width:640px){.practice-page-head{align-items:flex-start}.practice-page-badge{align-items:flex-start;min-width:0;width:100%}.practice-page-badge span{text-align:left}}

/* v13: mashqlarni birxillashtirish + mini-app ergonomikasi + yumshoq swipe */
:root{--mini-app-height:100dvh;--practice-radius:24px;--practice-shadow:0 12px 32px rgba(31,65,105,.08)}
html,body{min-height:100%;overscroll-behavior-y:none}
body{min-height:var(--mini-app-height,100dvh);-webkit-tap-highlight-color:transparent}
button,.btn,.nav,.option,.quiz-option,.matching-card,.flash-settings-btn{touch-action:manipulation}
.study-wrap,.quiz-wrap,.matching-wrap,.typing-wrap,.anagram-wrap{width:min(100%,1040px);margin-inline:auto}
.quiz-card,.typing-card,.anagram-card,.matching-column,.flip-card-face{border-radius:var(--practice-radius);box-shadow:var(--practice-shadow)}
.practice-page-head{min-height:58px}
.practice-page-badge{min-height:46px;justify-content:center}
.progress{height:9px;background:#dce8f3;box-shadow:inset 0 1px 2px rgba(31,65,105,.06)}
.progress i{transition:width .28s ease}

/* Swipe kartasi barmoq bilan birga yengil ko‘tariladi va keyingi karta yumshoq kiradi. */
.flip-card{
  --swipe-y:0px;
  --swipe-progress:0;
  transform:perspective(1100px) translate3d(var(--swipe-x),var(--swipe-y),0) rotateY(var(--swipe-tilt)) rotateZ(var(--swipe-rotate)) scale(var(--swipe-scale));
}
.flip-card.is-dragging{cursor:grabbing;filter:drop-shadow(0 20px 30px rgba(31,65,105,.18))}
.flip-card.is-enter-from-right{transform:perspective(1100px) translate3d(54px,0,0) rotateZ(2.5deg) scale(.985);opacity:.45;transition:none}
.flip-card.is-enter-from-left{transform:perspective(1100px) translate3d(-54px,0,0) rotateZ(-2.5deg) scale(.985);opacity:.45;transition:none}

/* Telefon / Telegram mini-app: bosh barmoq uchun yirik touch target va safe-area. */
@media(max-width:900px){
  .sidebar{padding-bottom:max(8px,env(safe-area-inset-bottom));min-height:calc(58px + env(safe-area-inset-bottom));justify-content:space-around}
  .sidebar .nav{min-height:46px;display:flex;align-items:center;justify-content:center;flex:1 0 auto}
  .content{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  body.student-nav-hidden .content{padding-bottom:max(18px,env(safe-area-inset-bottom))}
}
@media(max-width:640px){
  .topbar{height:60px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .shell{min-height:calc(var(--mini-app-height,100dvh) - 60px)}
  .content{padding:14px max(12px,env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  body.student-nav-hidden .content{padding:14px max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .btn{min-height:44px;padding:11px 14px}
  .btn.small{min-height:40px}
  .practice-page-head{gap:9px;margin-bottom:10px}
  .practice-page-badge{width:auto;max-width:100%;padding:8px 11px;min-height:42px}
  .quiz-card,.typing-card,.anagram-card{padding:18px 14px;border-radius:20px}
  .matching-column{border-radius:16px}
  .flip-card,.flip-card-inner{min-height:min(310px,calc(var(--mini-app-height,100dvh) - 270px))}
  .flip-card-face{border-radius:22px;padding-inline:54px}
  .flash-nav{width:48px;height:48px;background:rgba(255,255,255,.72)}
  .quiz-option,.matching-card{min-height:52px}
  .typing-answer-input-shell{scroll-margin-bottom:28vh}
}
@media(max-width:420px){
  .brand{font-size:16px}.brand span{padding:6px 8px;margin-right:5px}
  .top-actions{gap:6px}
  .student-header-back{max-width:116px;overflow:hidden;text-overflow:ellipsis}
  .practice-page-head h1{font-size:23px}
  .flip-card-face .ko,.flip-card-face .uz{font-size:34px}
  .flashcard-direction-label{max-width:58vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
body.mini-keyboard-open .sidebar{transform:translateY(calc(100% + env(safe-area-inset-bottom)));pointer-events:none}
body.mini-keyboard-open .content{padding-bottom:max(12px,env(safe-area-inset-bottom))}
body.mini-keyboard-open .typing-card{scroll-margin-bottom:12px}
@media(prefers-reduced-motion:reduce){.progress i,.flip-card.is-enter-from-right,.flip-card.is-enter-from-left{transition:none!important}}


/* v14: student mini-app header + profile avatar */
.student-topbar{gap:10px;justify-content:space-between}
.student-profile-trigger{appearance:none;border:0;background:transparent;padding:0;margin:0;display:grid;place-items:center;flex:0 0 auto;border-radius:999px;cursor:pointer;touch-action:manipulation}
.student-avatar,.student-profile-photo{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--blue),#5cc7f2);color:#fff;font-size:22px;font-weight:900;box-shadow:0 4px 14px rgba(31,65,105,.16);border:2px solid #fff}
.student-avatar img,.student-profile-photo img{width:100%;height:100%;display:block;object-fit:cover}
.student-profile-trigger:focus-visible{outline:3px solid rgba(7,143,207,.26);outline-offset:3px}
.student-top-actions{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}
.student-header-nav-btn{width:clamp(104px,29vw,138px);min-width:0;height:46px;min-height:46px;padding:8px 10px!important;border-radius:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;line-height:1}
.student-header-home{background:#eaf1f8;color:#334155}
.student-profile-modal{text-align:center}
.student-profile-photo-wrap{display:flex;justify-content:center;margin:2px 0 12px}
.student-profile-photo{width:92px;height:92px;font-size:38px;box-shadow:0 10px 28px rgba(31,65,105,.18)}
.student-profile-modal h2{margin:0 0 6px}
.student-profile-modal p{margin:0 0 18px}
.student-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:640px){
  .student-topbar{height:64px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:8px}
  .student-avatar{width:44px;height:44px;font-size:20px}
  .student-top-actions{gap:7px;flex:1;justify-content:flex-end}
  .student-header-nav-btn{width:clamp(98px,28vw,126px);height:44px;min-height:44px;font-size:14px;padding:7px 8px!important}
  .shell{min-height:calc(var(--mini-app-height,100dvh) - 64px)}
}
@media(max-width:390px){
  .student-topbar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));gap:6px}
  .student-avatar{width:42px;height:42px}
  .student-header-nav-btn{width:clamp(92px,27vw,108px);font-size:13px;border-radius:12px!important;padding-inline:6px!important}
}
@media(max-width:340px){
  .student-header-nav-btn{width:90px;font-size:12px}
  .student-avatar{width:40px;height:40px}
}
@media(max-width:420px){
  .student-header-back{max-width:none;overflow:hidden;text-overflow:ellipsis}
}

/* v15: daily date, compact practice headers, stable flashcard touch, responsive word rows */
.daily-plan-head{align-items:flex-start;position:relative;min-height:52px}
.daily-plan-head .daily-plan-date{margin-left:auto;align-self:flex-start;white-space:nowrap}
@media(max-width:600px){
  .page-head.daily-plan-head{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:12px}
  .daily-plan-head>div:first-child{min-width:0;flex:1}
  .daily-plan-head .daily-plan-date{flex:0 0 auto;margin-left:auto}
}
.flashcard-toolbar,.quiz-toolbar{justify-content:flex-end}
.flashcard-toolbar .flashcard-controls,.quiz-toolbar .quiz-settings{margin-left:auto}
.flashcard-study-wrap,.flashcard-stage,.flip-card{overscroll-behavior:contain}
.flip-card{touch-action:none;-webkit-tap-highlight-color:transparent}
body:has(.flashcard-study-wrap){overscroll-behavior-y:none}
.flip-card-face{padding-bottom:30px}
@media(max-width:600px){.flip-card-face{padding-bottom:24px}}
.activity-day{cursor:pointer;touch-action:manipulation;transition:transform .16s ease,filter .16s ease}
.activity-day.is-inspecting{transform:scale(1.07);z-index:2;filter:saturate(1.08)}
.activity-day.is-inspecting .activity-bar{transform:scaleX(1.13);transform-origin:bottom center}
.activity-day.is-inspecting .activity-day-value{font-size:12px;color:#0a264e;font-weight:900;white-space:normal;line-height:1.05}
.activity-bar{transition:height .25s ease,transform .16s ease}
@media(max-width:720px){.activity-day.is-inspecting .activity-day-value{font-size:10px}}

/* So‘zlar ro‘yxati: tarjimalar imkon qadar bir qatorda, uzun matnlar esa tabiiy so‘z chegarasida tushadi */
.phase6-word-text{grid-template-columns:minmax(90px,1fr) 38px minmax(90px,1fr) 38px;gap:7px}
.phase6-word-text b.phase6-word-ko,.phase6-word-text span.phase6-word-uz{overflow-wrap:normal;word-break:normal;hyphens:none;min-width:0}
.phase6-word-text b.phase6-word-ko{font-size:clamp(15px,2.3vw,18px)}
.phase6-word-text span.phase6-word-uz{font-size:clamp(14px,2.15vw,16px)}
@media(max-width:560px){
  .phase6-word-text{grid-template-columns:minmax(78px,1fr) 34px minmax(78px,1fr) 34px;gap:5px}
  .phase6-word-audio .word-audio-btn{width:34px;height:34px;font-size:16px}
}
@media(max-width:390px){
  .phase6-word-row{grid-template-columns:24px minmax(0,1fr);padding-inline:7px}
  .phase6-word-text{grid-template-columns:minmax(68px,1fr) 32px minmax(68px,1fr) 32px;gap:4px}
  .phase6-word-audio .word-audio-btn{width:32px;height:32px;font-size:15px}
}


/* v16: unified typography + stable responsive layout */
:root{
  --app-font:"Pretendard",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Noto Sans",Arial,sans-serif;
  --content-max:1040px;
  --content-pad:clamp(12px,3.4vw,24px);
  --ui-radius:16px;
  --ui-title-weight:750;
  --ui-body-weight:500;
}
html{
  font-family:var(--app-font);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body,button,input,select,textarea{
  font-family:var(--app-font);
  font-synthesis:none;
}
body{
  font-weight:var(--ui-body-weight);
  line-height:1.5;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
button,.btn,.nav{letter-spacing:-.01em}
h1,h2,h3,h4,h5,h6{
  font-family:var(--app-font);
  font-weight:var(--ui-title-weight);
  letter-spacing:-.025em;
  line-height:1.18;
  text-wrap:balance;
}
p,.muted,.card,.stat,.option,.quiz-option,.matching-card,.phase6-word-row{
  letter-spacing:-.008em;
}

/* Barcha asosiy sahifalarda kontent bir xil o‘qda turadi. */
.content{
  width:100%;
  min-width:0;
  padding-inline:var(--content-pad);
}
body.student-app .content>*,.study-wrap,.quiz-wrap,.matching-wrap,.typing-wrap,.anagram-wrap{
  max-width:var(--content-max);
  margin-inline:auto;
}
.page-head{
  width:100%;
  min-width:0;
  align-items:center;
  gap:clamp(10px,2vw,18px);
}
.page-head>div{min-width:0}
.page-head h1{
  font-size:clamp(26px,4.2vw,38px);
  line-height:1.12;
  overflow-wrap:normal;
  word-break:keep-all;
}
.page-head .muted{font-size:clamp(13px,1.8vw,15px);line-height:1.45}

/* Kartalar va boshqaruvlar: bir xil radius, matn vazni va touch balandligi. */
.card,.stat,.quiz-card,.typing-card,.anagram-card,.matching-column,.practice-page-badge{
  border-radius:clamp(16px,2.4vw,22px);
}
.card h2,.card h3,.stat b{font-weight:700}
.btn,.nav,.option,.quiz-option,.flash-direction-option{
  font-weight:650;
}
.btn{min-height:44px;line-height:1.2}
.option,.quiz-option{line-height:1.35}

/* O‘quvchi headeri: avatar chapda, ikkala navigatsiya tugmasi doim teng. */
.student-topbar{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  width:100%;
}
.student-profile-trigger{justify-self:start}
.student-top-actions{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,138px));
  justify-content:end;
  gap:8px;
  margin-left:0;
}
.student-header-nav-btn{
  width:100%;
  max-width:none;
  min-width:0;
  height:46px;
  min-height:46px;
  padding:0 10px!important;
  font-size:clamp(13px,2.2vw,15px);
  font-weight:650;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.student-header-nav-btn[hidden]{display:none!important}
/* Bitta tugma ko‘ringanda o‘ngdagi o‘z joyida qoladi. */
.student-top-actions>.student-header-nav-btn:only-child{grid-column:2}

/* Pastki mobil navigatsiya: uchta tugma teng kenglikda, matn bir qatorda. */
@media(max-width:900px){
  .sidebar{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    overflow:visible;
    gap:6px;
    padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  }
  .sidebar .nav{
    width:100%;
    min-width:0;
    min-height:48px;
    padding:8px 6px;
    justify-content:center;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:clamp(12px,3.15vw,15px);
    line-height:1.15;
  }
}

/* Mashqlar sarlavhasi va kapsula: turli ekranlarda buzilmaydi. */
.practice-page-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.practice-page-head h1{
  font-size:clamp(25px,4vw,34px);
  margin:0;
  white-space:normal;
}
.practice-page-badge{
  width:auto;
  min-width:clamp(108px,18vw,138px);
  max-width:44vw;
  align-items:flex-end;
  text-align:right;
  padding:9px 12px;
}
.practice-page-badge b{font-size:clamp(16px,2.7vw,19px);font-weight:700}
.practice-page-badge span{font-size:clamp(11px,1.9vw,13px);line-height:1.25}

/* Flashcard matni: koreys va o‘zbekcha bir xil vizual ritmda. */
.flip-card-face .ko,.flip-card-face .uz{
  font-family:var(--app-font);
  font-size:clamp(34px,7vw,52px);
  font-weight:700;
  line-height:1.18;
  letter-spacing:-.035em;
  overflow-wrap:normal;
  word-break:keep-all;
}
.flash-settings-title,.flash-direction-option,.quiz-direction-label,.flashcard-direction-label{
  font-weight:650;
}
.quiz-question{
  font-size:clamp(30px,5.3vw,44px);
  font-weight:700;
  line-height:1.18;
  overflow-wrap:normal;
  word-break:keep-all;
}
.quiz-option-label{font-size:clamp(18px,3.1vw,24px);font-weight:650}

/* Bugungi reja: sana yuqori o‘ngda, sarlavha bilan bir qatorda. */
.daily-plan-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start!important;
  width:100%;
}
.daily-plan-head .daily-plan-date{
  justify-self:end;
  margin:0;
  font-size:clamp(12px,2.1vw,14px);
  font-weight:650;
  line-height:1;
  padding:8px 10px;
  border-radius:999px;
}

/* So‘zlar ro‘yxati: har bir tilga qat’iy ustun, harf o‘rtasidan bo‘linmaydi. */
.phase6-word-row{
  width:100%;
  min-width:0;
  align-items:center;
}
.phase6-word-text{
  grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) 36px;
  gap:clamp(4px,1.3vw,8px);
  min-width:0;
}
.phase6-word-text b.phase6-word-ko,
.phase6-word-text span.phase6-word-uz{
  min-width:0;
  max-width:100%;
  font-family:var(--app-font);
  font-weight:650;
  line-height:1.35;
  word-break:keep-all;
  overflow-wrap:normal;
  hyphens:none;
}
.phase6-word-text b.phase6-word-ko{font-size:clamp(15px,2.6vw,19px)}
.phase6-word-text span.phase6-word-uz{font-size:clamp(14px,2.45vw,17px);color:#526177}
.phase6-word-audio .word-audio-btn{flex:0 0 auto}

/* Kichik telefonlar: joylashuv saqlanadi, faqat o‘lchamlar yumshoq kamayadi. */
@media(max-width:640px){
  :root{--content-pad:max(12px,env(safe-area-inset-left))}
  .content{
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
  }
  .student-topbar{
    grid-template-columns:44px minmax(0,1fr);
    column-gap:8px;
  }
  .student-top-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .student-header-nav-btn{height:44px;min-height:44px;padding-inline:7px!important}
  .practice-page-head{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .practice-page-badge{min-width:104px;max-width:46vw;align-items:flex-end;width:auto}
  .phase6-word-row{grid-template-columns:24px minmax(0,1fr);gap:6px;padding:11px 7px}
  .phase6-word-text{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr) 34px;gap:4px}
}
@media(max-width:390px){
  .student-topbar{grid-template-columns:42px minmax(0,1fr);column-gap:6px}
  .student-top-actions{gap:5px}
  .student-header-nav-btn{font-size:12.5px;padding-inline:5px!important}
  .practice-page-head h1{font-size:23px}
  .practice-page-badge{min-width:94px;padding:7px 9px}
  .practice-page-badge b{font-size:15px}
  .practice-page-badge span{font-size:10.5px}
  .phase6-word-text{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px;gap:3px}
  .phase6-word-text b.phase6-word-ko{font-size:14px}
  .phase6-word-text span.phase6-word-uz{font-size:13px}
}
@media(max-width:340px){
  .student-topbar{grid-template-columns:40px minmax(0,1fr)}
  .student-header-nav-btn{font-size:11.5px}
  .page-head h1{font-size:24px}
  .practice-page-head h1{font-size:21px}
}

/* =========================================================
   v17 — Student visual system: Light/Dark + glass + soft 3D
   Faqat o‘quvchi interfeysiga ta’sir qiladi.
   ========================================================= */
body.student-app{
  --student-bg:#f5f7ff;
  --student-bg-2:#eef5ff;
  --student-surface:rgba(255,255,255,.78);
  --student-surface-strong:rgba(255,255,255,.94);
  --student-surface-soft:rgba(248,250,255,.70);
  --student-text:#101a33;
  --student-muted:#65738b;
  --student-line:rgba(121,142,179,.18);
  --student-blue:#4361ee;
  --student-blue-2:#2563eb;
  --student-purple:#8b5cf6;
  --student-cyan:#22b8e6;
  --student-green:#10b981;
  --student-red:#f55367;
  --student-orange:#ff922b;
  --student-shadow-soft:0 5px 16px rgba(46,61,96,.08),0 1px 2px rgba(46,61,96,.05);
  --student-shadow-card:0 14px 34px rgba(51,65,99,.10),inset 0 1px 0 rgba(255,255,255,.82);
  --student-shadow-float:0 18px 48px rgba(49,62,96,.16),inset 0 1px 0 rgba(255,255,255,.9);
  --student-inset:inset 1px 1px 0 rgba(255,255,255,.82),inset -1px -1px 0 rgba(105,122,154,.06);
  --bg:var(--student-bg);--card:var(--student-surface-strong);--text:var(--student-text);--muted:var(--student-muted);--line:var(--student-line);--blue:var(--student-blue);--blue2:var(--student-blue-2);--green:var(--student-green);--red:var(--student-red);--amber:var(--student-orange);--shadow:var(--student-shadow-card);
  color:var(--student-text);
  background:
    radial-gradient(circle at 8% 0%,rgba(99,102,241,.12),transparent 30%),
    radial-gradient(circle at 92% 8%,rgba(34,184,230,.10),transparent 28%),
    linear-gradient(145deg,var(--student-bg) 0%,var(--student-bg-2) 52%,#f9f7ff 100%);
  background-attachment:fixed;
}
html[data-theme="dark"] body.student-app{
  --student-bg:#07111f;
  --student-bg-2:#0b1728;
  --student-surface:rgba(15,27,45,.76);
  --student-surface-strong:rgba(16,29,48,.94);
  --student-surface-soft:rgba(19,34,55,.68);
  --student-text:#f4f7ff;
  --student-muted:#9ba9c0;
  --student-line:rgba(157,178,215,.15);
  --student-blue:#5f78ff;
  --student-blue-2:#3b82f6;
  --student-purple:#9c6cff;
  --student-cyan:#37c8f4;
  --student-green:#25c994;
  --student-red:#ff6379;
  --student-orange:#ff9f43;
  --student-shadow-soft:0 7px 18px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
  --student-shadow-card:0 18px 42px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.045);
  --student-shadow-float:0 24px 58px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06);
  --student-inset:inset 1px 1px 0 rgba(255,255,255,.04),inset -1px -1px 0 rgba(0,0,0,.18);
  --bg:var(--student-bg);--card:var(--student-surface-strong);--text:var(--student-text);--muted:var(--student-muted);--line:var(--student-line);--blue:var(--student-blue);--blue2:var(--student-blue-2);--green:var(--student-green);--red:var(--student-red);--amber:var(--student-orange);--shadow:var(--student-shadow-card);
  background:
    radial-gradient(circle at 8% 0%,rgba(65,105,225,.20),transparent 30%),
    radial-gradient(circle at 95% 10%,rgba(118,75,162,.16),transparent 28%),
    radial-gradient(circle at 50% 90%,rgba(0,119,182,.10),transparent 34%),
    linear-gradient(145deg,var(--student-bg),var(--student-bg-2));
}
body.student-app,
body.student-app button,
body.student-app input,
body.student-app select,
body.student-app textarea{color:var(--student-text)}
body.student-app .muted,
body.student-app .plan-capsule p,
body.student-app .phase6-word-text span.phase6-word-uz,
body.student-app .practice-page-badge span,
body.student-app .typing-prompt,
body.student-app .typing-counter{color:var(--student-muted)}

/* Glass header */
body.student-app .student-topbar{
  height:72px;
  background:color-mix(in srgb,var(--student-surface-strong) 88%,transparent);
  border-bottom:1px solid var(--student-line);
  box-shadow:0 8px 28px rgba(61,75,108,.07);
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
}
html[data-theme="dark"] body.student-app .student-topbar{box-shadow:0 10px 30px rgba(0,0,0,.18)}
body.student-app .student-avatar{
  border-color:rgba(255,255,255,.82);
  background:linear-gradient(145deg,var(--student-blue),var(--student-purple));
  box-shadow:0 7px 18px rgba(67,97,238,.23),inset 0 1px 0 rgba(255,255,255,.65);
}
html[data-theme="dark"] body.student-app .student-avatar{border-color:rgba(255,255,255,.18);box-shadow:0 8px 20px rgba(0,0,0,.36),0 0 0 1px rgba(93,120,255,.2)}
body.student-app .student-profile-trigger{transition:transform .18s ease,filter .18s ease}
body.student-app .student-profile-trigger:hover{transform:translateY(-1px)}
body.student-app .student-profile-trigger:active{transform:scale(.95)}

/* Neumorphic header buttons */
body.student-app .student-header-nav-btn,
body.student-app .btn.ghost,
body.student-app .flash-settings-btn,
body.student-app .words-direction-btn.active{
  border:1px solid var(--student-line)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--student-surface-strong) 96%,white 4%),color-mix(in srgb,var(--student-surface) 88%,#dfe7f5 12%))!important;
  color:var(--student-text)!important;
  box-shadow:var(--student-shadow-soft),var(--student-inset)!important;
}
body.student-app .student-header-nav-btn:hover,
body.student-app .btn.ghost:hover,
body.student-app .flash-settings-btn:hover{transform:translateY(-1px);filter:brightness(1.015)}
body.student-app .student-header-nav-btn:active,
body.student-app .btn:active,
body.student-app .flash-settings-btn:active{transform:translateY(1px) scale(.985);box-shadow:0 3px 9px rgba(46,61,96,.08),inset 0 2px 5px rgba(60,75,100,.08)!important}
html[data-theme="dark"] body.student-app .student-header-nav-btn,
html[data-theme="dark"] body.student-app .btn.ghost,
html[data-theme="dark"] body.student-app .flash-settings-btn,
html[data-theme="dark"] body.student-app .words-direction-btn.active{
  background:linear-gradient(145deg,rgba(26,42,66,.96),rgba(12,24,42,.92))!important;
}

/* Primary buttons — modern blue/violet glass gradient */
body.student-app .btn.primary,
body.student-app .quiz-continue,
body.student-app .typing-next{
  border:1px solid rgba(255,255,255,.30);
  background:linear-gradient(115deg,var(--student-blue) 0%,var(--student-purple) 100%)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(79,70,229,.22),inset 0 1px 0 rgba(255,255,255,.34)!important;
}
body.student-app .btn.green{background:linear-gradient(135deg,#20c997,var(--student-green))!important;box-shadow:0 10px 24px rgba(16,185,129,.20),inset 0 1px 0 rgba(255,255,255,.28)!important}
body.student-app .btn.red{background:linear-gradient(135deg,#ff6b78,var(--student-red))!important;box-shadow:0 10px 24px rgba(245,83,103,.19),inset 0 1px 0 rgba(255,255,255,.28)!important}

/* Main surfaces */
body.student-app .card,
body.student-app .stat,
body.student-app .typing-card,
body.student-app .quiz-card,
body.student-app .matching-column,
body.student-app .words-count,
body.student-app .words-search,
body.student-app .word-entry,
body.student-app .practice-page-badge,
body.student-app .flash-settings-menu,
body.student-app .modal{
  background:var(--student-surface);
  border-color:var(--student-line);
  color:var(--student-text);
  box-shadow:var(--student-shadow-card);
  backdrop-filter:blur(16px) saturate(135%);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
}
body.student-app .card,
body.student-app .typing-card,
body.student-app .quiz-card{border-radius:24px}
body.student-app .modal-bg{background:rgba(7,15,28,.48);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
html[data-theme="dark"] body.student-app .modal-bg{background:rgba(1,6,14,.68)}

/* Dashboard cards */
body.student-app .daily-plan-grid{gap:18px}
body.student-app .plan-capsule{
  background:var(--student-surface);
  border:1px solid var(--student-line);
  border-radius:25px;
  box-shadow:var(--student-shadow-card);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  overflow:hidden;
  position:relative;
}
body.student-app .plan-capsule::before{
  content:'';position:absolute;inset:0 auto 0 0;width:4px;border-radius:4px;
  background:linear-gradient(180deg,var(--student-green),#73e6c0);opacity:.8;
}
body.student-app .plan-capsule.new-capsule::before{background:linear-gradient(180deg,var(--student-blue),var(--student-cyan))}
body.student-app .plan-capsule.needs-retry::before{background:linear-gradient(180deg,var(--student-red),#ff9a85)}
body.student-app .plan-capsule.review-capsule,
body.student-app .plan-capsule.new-capsule,
body.student-app .plan-capsule.is-locked,
body.student-app .plan-capsule.needs-retry,
body.student-app .plan-capsule.is-rest{background:var(--student-surface)}
body.student-app .plan-capsule:hover{transform:translateY(-1px);box-shadow:var(--student-shadow-float)}
body.student-app .plan-capsule{transition:transform .2s ease,box-shadow .2s ease,opacity .18s ease,filter .18s ease,border-color .18s ease}
body.student-app .plan-capsule-icon{
  width:66px;height:66px;border:0;background:transparent!important;border-radius:22px;padding:0;overflow:visible;
}
body.student-app .soft3d-icon{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 8px 10px rgba(34,49,78,.11))}
html[data-theme="dark"] body.student-app .soft3d-icon{filter:drop-shadow(0 10px 12px rgba(0,0,0,.32)) brightness(.92)}
body.student-app .plan-capsule-label{color:var(--student-blue-2);letter-spacing:-.01em}
html[data-theme="dark"] body.student-app .plan-capsule-label{color:#8db3ff}
body.student-app .plan-progress{background:color-mix(in srgb,var(--student-blue) 12%,transparent)}
body.student-app .plan-progress i,
body.student-app .progress i{background:linear-gradient(90deg,var(--student-blue-2),var(--student-purple),var(--student-cyan))}
body.student-app .progress{background:color-mix(in srgb,var(--student-blue) 11%,transparent)}
body.student-app .phase6-debt-card{
  border:1px solid color-mix(in srgb,var(--student-red) 28%,var(--student-line));
  background:linear-gradient(120deg,color-mix(in srgb,var(--student-red) 7%,var(--student-surface)),var(--student-surface));
  box-shadow:var(--student-shadow-soft);
  border-radius:20px;
}
body.student-app .phase6-debt-message{display:flex;align-items:center;gap:12px;min-width:0}
body.student-app .phase6-debt-message .soft3d-icon{width:46px;height:46px;flex:0 0 46px}
body.student-app .phase6-debt-message b{color:var(--student-text)}

/* Flashcard */
body.student-app .flip-card-face{
  border-color:var(--student-line);
  background:
    radial-gradient(circle at 85% 12%,rgba(139,92,246,.08),transparent 26%),
    radial-gradient(circle at 10% 90%,rgba(34,184,230,.07),transparent 30%),
    var(--student-surface-strong);
  box-shadow:var(--student-shadow-float);
  color:var(--student-text);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
html[data-theme="dark"] body.student-app .flip-card-face{
  background:
    radial-gradient(circle at 88% 10%,rgba(120,78,255,.14),transparent 27%),
    radial-gradient(circle at 8% 92%,rgba(0,157,255,.11),transparent 31%),
    linear-gradient(145deg,rgba(20,32,52,.96),rgba(8,20,36,.94));
}
body.student-app .flip-card-face .uz{color:var(--student-text)}
body.student-app .flash-nav{
  border-color:var(--student-line);background:var(--student-surface);color:var(--student-blue);
  box-shadow:var(--student-shadow-soft);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
html[data-theme="dark"] body.student-app .flash-nav:hover{background:rgba(28,45,70,.94)}
body.student-app .word-audio-btn{
  box-shadow:var(--student-shadow-soft)!important;border-color:var(--student-line)!important;
  background:var(--student-surface-strong)!important;color:var(--student-blue)!important;
}

/* Quiz, matching, words, typing */
body.student-app .quiz-option,
body.student-app .option,
body.student-app .matching-card{
  background:var(--student-surface-strong);
  border-color:var(--student-line);
  color:var(--student-text);
  box-shadow:var(--student-shadow-soft);
}
body.student-app .quiz-option:hover,
body.student-app .option:hover,
body.student-app .matching-card:hover{background:color-mix(in srgb,var(--student-surface-strong) 90%,var(--student-blue) 10%);border-color:color-mix(in srgb,var(--student-blue) 46%,var(--student-line))}
body.student-app .quiz-option.is-correct{background:color-mix(in srgb,var(--student-green) 12%,var(--student-surface-strong));border-color:color-mix(in srgb,var(--student-green) 58%,var(--student-line));color:var(--student-text)}
body.student-app .quiz-option.is-wrong{background:color-mix(in srgb,var(--student-red) 11%,var(--student-surface-strong));border-color:color-mix(in srgb,var(--student-red) 55%,var(--student-line));color:var(--student-text)}
body.student-app .quiz-option-mark{background:var(--student-surface-strong);border-color:var(--student-line)}
body.student-app .words-direction{background:color-mix(in srgb,var(--student-blue) 7%,var(--student-surface-soft));border:1px solid var(--student-line)}
body.student-app .words-direction-btn{color:var(--student-muted)}
body.student-app .words-direction-btn.active{color:var(--student-blue)!important}
body.student-app .words-search input,
body.student-app .typing-form input{color:var(--student-text);background:transparent}
body.student-app .typing-form input{background:var(--student-surface-strong);border-color:var(--student-line)}
body.student-app .word-primary.uz{color:var(--student-blue-2)}
html[data-theme="dark"] body.student-app .word-primary.uz{color:#89b4ff}
body.student-app .word-secondary{color:var(--student-muted)}
body.student-app .word-type{background:color-mix(in srgb,var(--student-blue) 8%,var(--student-surface));color:var(--student-muted)}

/* Bottom nav glass */
@media(max-width:900px){
  body.student-app .sidebar{
    border-top:1px solid var(--student-line);
    background:color-mix(in srgb,var(--student-surface-strong) 90%,transparent);
    box-shadow:0 -10px 32px rgba(41,56,88,.08);
    backdrop-filter:blur(20px) saturate(150%);
    -webkit-backdrop-filter:blur(20px) saturate(150%);
  }
  html[data-theme="dark"] body.student-app .sidebar{box-shadow:0 -12px 34px rgba(0,0,0,.24)}
  body.student-app .sidebar .nav{color:var(--student-muted);border:1px solid transparent;transition:all .18s ease}
  body.student-app .sidebar .nav.active{
    background:linear-gradient(145deg,color-mix(in srgb,var(--student-blue) 13%,var(--student-surface-strong)),color-mix(in srgb,var(--student-purple) 7%,var(--student-surface)));
    color:var(--student-blue);
    border-color:color-mix(in srgb,var(--student-blue) 18%,var(--student-line));
    box-shadow:var(--student-shadow-soft);
  }
}

/* Date capsule */
body.student-app .daily-plan-head .daily-plan-date{
  background:var(--student-surface);
  border:1px solid var(--student-line);
  color:var(--student-muted);
  box-shadow:var(--student-shadow-soft);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

/* Avatar menu — Variant B */
.student-profile-menu{
  position:fixed;z-index:10040;padding:12px;border:1px solid var(--student-line);
  border-radius:22px;background:var(--student-surface-strong);color:var(--student-text);
  box-shadow:var(--student-shadow-float);backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);
  transform-origin:top left;animation:studentProfileMenuIn .16s ease both;
}
@keyframes studentProfileMenuIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
.student-profile-menu-head{display:flex;align-items:center;gap:11px;padding:5px 5px 12px}
.student-profile-menu-avatar{width:44px;height:44px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,var(--student-blue),var(--student-purple));color:white;font-weight:800;border:2px solid rgba(255,255,255,.65);box-shadow:var(--student-shadow-soft);flex:0 0 44px}
.student-profile-menu-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.student-profile-menu-head div{display:grid;gap:2px;min-width:0}.student-profile-menu-head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-profile-menu-head small{color:var(--student-muted)}
.student-profile-menu-label{padding:5px 5px 7px;color:var(--student-muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.045em}
.student-theme-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:5px;border-radius:16px;background:color-mix(in srgb,var(--student-blue) 6%,var(--student-surface-soft));border:1px solid var(--student-line)}
.student-theme-choice{height:42px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--student-muted);font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.student-theme-choice span{font-size:18px}.student-theme-choice.active{background:var(--student-surface-strong);color:var(--student-blue);border-color:var(--student-line);box-shadow:var(--student-shadow-soft)}
.student-profile-menu-action{width:100%;margin-top:9px;padding:11px 8px;border:0;border-top:1px solid var(--student-line);background:transparent;color:var(--student-text);display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:8px;text-align:left;cursor:pointer;border-radius:12px}
.student-profile-menu-action:hover{background:color-mix(in srgb,var(--student-blue) 6%,transparent)}
.student-profile-menu-action-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,color-mix(in srgb,var(--student-blue) 16%,var(--student-surface-strong)),var(--student-surface));color:var(--student-blue);font-size:22px;box-shadow:var(--student-shadow-soft)}
.student-profile-menu-action span:nth-child(2){display:grid;gap:2px}.student-profile-menu-action small{color:var(--student-muted);font-size:11px}.student-profile-menu-chevron{color:var(--student-muted);font-size:22px}

/* Profile photo modal inherits the selected theme */
body.student-app .student-profile-photo{background:linear-gradient(145deg,var(--student-blue),var(--student-purple));border-color:rgba(255,255,255,.6)}
body.student-app .student-profile-modal h2{color:var(--student-text)}

/* Small-screen refinements */
@media(max-width:640px){
  body.student-app .student-topbar{height:68px}
  body.student-app .plan-capsule{border-radius:22px}
  body.student-app .plan-capsule-icon{width:56px;height:56px}
  body.student-app .phase6-debt-message .soft3d-icon{width:40px;height:40px;flex-basis:40px}
}

/* Reduced motion still keeps the visual system accessible. */
@media(prefers-reduced-motion:reduce){
  body.student-app .plan-capsule,
  body.student-app .student-profile-trigger,
  .student-profile-menu{transition:none!important;animation:none!important}
}

html[data-theme="dark"] body.student-app .activity-day.is-inspecting .activity-day-value{color:var(--student-text)}
body.student-app .phase6-word-list{border-color:var(--student-line);background:var(--student-surface)}
body.student-app .phase6-word-row{background:var(--student-surface-strong);border-color:var(--student-line)}

/* =========================================================
   v18 — Final bright neumorphic / glass student design
   Built on v17. Visual-only overrides: no exercise logic changed.
   ========================================================= */
body.student-app{
  --student-bg:#eef7ff;
  --student-bg-2:#f8fbff;
  --student-surface:rgba(255,255,255,.80);
  --student-surface-strong:rgba(255,255,255,.96);
  --student-surface-soft:rgba(244,249,255,.82);
  --student-text:#0b1834;
  --student-muted:#55719e;
  --student-line:rgba(111,155,213,.24);
  --student-blue:#2778ff;
  --student-blue-2:#1265ee;
  --student-purple:#7467ff;
  --student-cyan:#42c9ff;
  --student-green:#22c96b;
  --student-red:#ff5d6f;
  --student-orange:#ff9f43;
  --student-shadow-soft:0 6px 14px rgba(41,93,158,.11),0 2px 4px rgba(41,93,158,.06),inset 0 1px 0 rgba(255,255,255,.95);
  --student-shadow-card:0 14px 30px rgba(47,99,163,.13),0 4px 10px rgba(47,99,163,.07),inset 0 1px 0 rgba(255,255,255,.98);
  --student-shadow-float:0 22px 48px rgba(38,88,153,.19),0 8px 18px rgba(38,88,153,.09),inset 0 1px 0 rgba(255,255,255,1);
  --student-inset:inset 1px 1px 0 rgba(255,255,255,.98),inset -1px -1px 0 rgba(117,154,204,.10);
  background:
    radial-gradient(circle at 8% -4%,rgba(54,151,255,.16),transparent 31%),
    radial-gradient(circle at 92% 2%,rgba(103,207,255,.17),transparent 26%),
    radial-gradient(circle at 55% 98%,rgba(116,103,255,.07),transparent 30%),
    linear-gradient(150deg,#f8fcff 0%,#eef7ff 45%,#f7fbff 100%);
}
html[data-theme="dark"] body.student-app{
  --student-bg:#020b1b;
  --student-bg-2:#06142b;
  --student-surface:rgba(7,20,42,.82);
  --student-surface-strong:rgba(8,23,48,.96);
  --student-surface-soft:rgba(13,29,55,.88);
  --student-text:#f8fbff;
  --student-muted:#b4c7e7;
  --student-line:rgba(123,166,231,.28);
  --student-blue:#3d82ff;
  --student-blue-2:#2d73ff;
  --student-purple:#7a6cff;
  --student-cyan:#3ac9ff;
  --student-green:#3bd878;
  --student-red:#ff6477;
  --student-orange:#ffad4f;
  --student-shadow-soft:0 8px 18px rgba(0,0,0,.34),0 0 0 1px rgba(103,150,224,.07),inset 0 1px 0 rgba(255,255,255,.055);
  --student-shadow-card:0 18px 38px rgba(0,0,0,.42),0 0 0 1px rgba(90,139,217,.08),inset 0 1px 0 rgba(255,255,255,.06);
  --student-shadow-float:0 25px 56px rgba(0,0,0,.55),0 0 28px rgba(38,102,255,.08),inset 0 1px 0 rgba(255,255,255,.075);
  --student-inset:inset 1px 1px 0 rgba(255,255,255,.065),inset -1px -1px 0 rgba(0,0,0,.30);
  background:
    radial-gradient(circle at 7% -3%,rgba(30,102,255,.22),transparent 31%),
    radial-gradient(circle at 96% 7%,rgba(58,105,210,.14),transparent 29%),
    radial-gradient(circle at 52% 100%,rgba(29,78,216,.12),transparent 36%),
    linear-gradient(150deg,#020817 0%,#041128 48%,#020b1b 100%);
}

/* Clearer typography in both modes */
body.student-app h1,
body.student-app h2,
body.student-app h3,
body.student-app strong,
body.student-app b{letter-spacing:-.022em}
html[data-theme="dark"] body.student-app .muted,
html[data-theme="dark"] body.student-app .plan-capsule p,
html[data-theme="dark"] body.student-app .phase6-word-text span.phase6-word-uz,
html[data-theme="dark"] body.student-app .practice-page-badge span,
html[data-theme="dark"] body.student-app .typing-prompt,
html[data-theme="dark"] body.student-app .typing-counter{color:#b8c9e4!important}
html[data-theme="dark"] body.student-app .plan-capsule-label,
html[data-theme="dark"] body.student-app .word-primary.uz{color:#7eb4ff!important}

/* Header: airy, translucent, raised controls */
body.student-app .student-topbar{
  background:rgba(248,252,255,.79);
  border-bottom:1px solid rgba(119,160,215,.20);
  box-shadow:0 8px 25px rgba(43,91,149,.09);
  backdrop-filter:blur(24px) saturate(165%);
  -webkit-backdrop-filter:blur(24px) saturate(165%);
}
html[data-theme="dark"] body.student-app .student-topbar{
  background:rgba(4,15,33,.86);
  border-bottom-color:rgba(105,151,220,.20);
  box-shadow:0 10px 28px rgba(0,0,0,.34);
}
body.student-app .student-avatar{
  box-shadow:0 8px 18px rgba(38,108,255,.25),0 0 0 3px rgba(255,255,255,.72),inset 0 1px 0 rgba(255,255,255,.7);
}
html[data-theme="dark"] body.student-app .student-avatar{
  box-shadow:0 9px 22px rgba(0,0,0,.45),0 0 0 2px rgba(74,127,255,.34),0 0 18px rgba(50,112,255,.18);
}

/* Raised white buttons inspired by the approved mockup */
body.student-app .student-header-nav-btn,
body.student-app .btn.ghost,
body.student-app .flash-settings-btn,
body.student-app .flash-nav,
body.student-app .word-audio-btn,
body.student-app .words-direction-btn.active,
body.student-app .daily-plan-date,
body.student-app .practice-page-badge{
  background:linear-gradient(145deg,#ffffff 0%,#f1f7ff 100%)!important;
  border:1px solid rgba(123,163,218,.23)!important;
  color:#17335e!important;
  box-shadow:0 9px 20px rgba(49,99,162,.14),0 3px 7px rgba(49,99,162,.08),inset 0 1px 0 #fff!important;
}
html[data-theme="dark"] body.student-app .student-header-nav-btn,
html[data-theme="dark"] body.student-app .btn.ghost,
html[data-theme="dark"] body.student-app .flash-settings-btn,
html[data-theme="dark"] body.student-app .flash-nav,
html[data-theme="dark"] body.student-app .word-audio-btn,
html[data-theme="dark"] body.student-app .words-direction-btn.active,
html[data-theme="dark"] body.student-app .daily-plan-date,
html[data-theme="dark"] body.student-app .practice-page-badge{
  background:linear-gradient(145deg,#0e203f 0%,#07162e 100%)!important;
  border-color:rgba(103,151,230,.30)!important;
  color:#f7fbff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.42),0 0 0 1px rgba(86,139,229,.06),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
body.student-app .student-header-nav-btn:hover,
body.student-app .btn.ghost:hover,
body.student-app .flash-settings-btn:hover,
body.student-app .flash-nav:hover{transform:translateY(-2px);filter:none}

/* Primary call-to-action: clearer blue, deeper floating shadow */
body.student-app .btn.primary,
body.student-app .quiz-continue,
body.student-app .typing-next{
  background:linear-gradient(180deg,#4b8cff 0%,#1264f1 100%)!important;
  border:1px solid rgba(255,255,255,.44)!important;
  color:#fff!important;
  text-shadow:0 1px 1px rgba(0,43,120,.18);
  box-shadow:0 13px 24px rgba(30,105,238,.29),0 5px 10px rgba(30,105,238,.14),inset 0 1px 0 rgba(255,255,255,.52),inset 0 -1px 0 rgba(0,54,170,.18)!important;
}
body.student-app .btn.primary:hover,
body.student-app .quiz-continue:hover,
body.student-app .typing-next:hover{filter:brightness(1.045);transform:translateY(-1px)}
body.student-app .btn.primary:active,
body.student-app .quiz-continue:active,
body.student-app .typing-next:active{transform:translateY(1px) scale(.99);box-shadow:0 5px 12px rgba(30,105,238,.22),inset 0 2px 5px rgba(0,52,160,.20)!important}
body.student-app .btn.green{
  background:linear-gradient(180deg,#58dc85 0%,#18b856 100%)!important;
  box-shadow:0 13px 24px rgba(22,184,86,.25),0 5px 10px rgba(22,184,86,.12),inset 0 1px 0 rgba(255,255,255,.45)!important;
}
body.student-app .btn.red{
  background:linear-gradient(180deg,#ff7d88 0%,#ef4157 100%)!important;
  box-shadow:0 13px 24px rgba(239,65,87,.24),0 5px 10px rgba(239,65,87,.12),inset 0 1px 0 rgba(255,255,255,.42)!important;
}

/* Cards: clean white planes with blue-tinted depth */
body.student-app .card,
body.student-app .stat,
body.student-app .typing-card,
body.student-app .quiz-card,
body.student-app .matching-column,
body.student-app .words-count,
body.student-app .words-search,
body.student-app .word-entry,
body.student-app .flash-settings-menu,
body.student-app .modal,
body.student-app .plan-capsule{
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(247,251,255,.90));
  border-color:rgba(113,157,217,.22);
  box-shadow:var(--student-shadow-card);
}
html[data-theme="dark"] body.student-app .card,
html[data-theme="dark"] body.student-app .stat,
html[data-theme="dark"] body.student-app .typing-card,
html[data-theme="dark"] body.student-app .quiz-card,
html[data-theme="dark"] body.student-app .matching-column,
html[data-theme="dark"] body.student-app .words-count,
html[data-theme="dark"] body.student-app .words-search,
html[data-theme="dark"] body.student-app .word-entry,
html[data-theme="dark"] body.student-app .flash-settings-menu,
html[data-theme="dark"] body.student-app .modal,
html[data-theme="dark"] body.student-app .plan-capsule{
  background:linear-gradient(145deg,rgba(12,29,57,.97),rgba(5,18,39,.95));
  border-color:rgba(106,153,226,.28);
  color:#f8fbff;
}
body.student-app .plan-capsule{box-shadow:0 13px 28px rgba(45,95,157,.12),0 4px 9px rgba(45,95,157,.07),inset 0 1px 0 rgba(255,255,255,.95)}
html[data-theme="dark"] body.student-app .plan-capsule{box-shadow:0 15px 32px rgba(0,0,0,.38),0 0 0 1px rgba(91,142,224,.06),inset 0 1px 0 rgba(255,255,255,.055)}
body.student-app .plan-capsule::before{width:4px;border-radius:10px;opacity:1}

/* Flashcard: layered paper-stack effect from the approved concept */
body.student-app .flip-card{filter:drop-shadow(0 11px 16px rgba(42,93,154,.09))}
body.student-app .flip-card-face{
  border:1px solid rgba(104,153,218,.28);
  background:
    radial-gradient(circle at 88% 8%,rgba(79,142,255,.08),transparent 27%),
    linear-gradient(150deg,#ffffff 0%,#f6faff 100%);
  box-shadow:0 20px 42px rgba(46,96,160,.18),0 7px 15px rgba(46,96,160,.09),inset 0 1px 0 rgba(255,255,255,1);
}
html[data-theme="dark"] body.student-app .flip-card-face{
  border-color:rgba(98,147,228,.33);
  background:
    radial-gradient(circle at 86% 6%,rgba(47,105,255,.16),transparent 30%),
    linear-gradient(150deg,#0e2347 0%,#06162f 100%);
  box-shadow:0 23px 48px rgba(0,0,0,.51),0 0 30px rgba(26,91,255,.08),inset 0 1px 0 rgba(255,255,255,.06);
}
body.student-app .flip-card-face .ko{color:#1764e9;text-shadow:0 3px 10px rgba(37,111,246,.10)}
html[data-theme="dark"] body.student-app .flip-card-face .ko{color:#4c8cff;text-shadow:0 0 18px rgba(54,118,255,.18)}
html[data-theme="dark"] body.student-app .flip-card-face .uz{color:#f7fbff}

/* Quiz/answer rows: raised soft panels */
body.student-app .quiz-option,
body.student-app .option,
body.student-app .matching-card{
  background:linear-gradient(145deg,#fff,#f5f9ff);
  border:1px solid rgba(112,155,216,.22);
  box-shadow:0 8px 18px rgba(48,97,158,.11),0 2px 5px rgba(48,97,158,.06),inset 0 1px 0 rgba(255,255,255,.95);
}
html[data-theme="dark"] body.student-app .quiz-option,
html[data-theme="dark"] body.student-app .option,
html[data-theme="dark"] body.student-app .matching-card{
  background:linear-gradient(145deg,#0d2142,#07172f);
  border-color:rgba(103,150,225,.27);
  color:#f8fbff;
  box-shadow:0 9px 20px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05);
}
body.student-app .quiz-option:hover,
body.student-app .option:hover,
body.student-app .matching-card:hover{transform:translateY(-1px);border-color:rgba(48,117,255,.45)}

/* Results/statistic tiles */
body.student-app .stat{border-radius:20px}
body.student-app .activity-day-bar{box-shadow:0 6px 14px rgba(39,120,255,.15)}
body.student-app .activity-day.is-inspecting .activity-day-bar{filter:saturate(1.18) brightness(1.03);box-shadow:0 10px 20px rgba(37,110,255,.28)}

/* Bottom navigation */
@media(max-width:900px){
  body.student-app .sidebar{
    background:rgba(249,252,255,.90);
    border-top:1px solid rgba(111,154,212,.20);
    box-shadow:0 -10px 28px rgba(41,88,148,.11);
    backdrop-filter:blur(24px) saturate(160%);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
  }
  html[data-theme="dark"] body.student-app .sidebar{
    background:rgba(5,17,37,.93);
    border-top-color:rgba(101,148,220,.23);
    box-shadow:0 -12px 30px rgba(0,0,0,.38);
  }
  body.student-app .sidebar .nav{border-radius:16px}
  body.student-app .sidebar .nav.active{
    background:linear-gradient(145deg,#ffffff,#edf5ff);
    color:#1765ee;
    border-color:rgba(86,139,222,.25);
    box-shadow:0 8px 18px rgba(43,93,155,.13),inset 0 1px 0 #fff;
  }
  html[data-theme="dark"] body.student-app .sidebar .nav.active{
    background:linear-gradient(145deg,#102852,#071a38);
    color:#4c8dff;
    border-color:rgba(78,133,229,.35);
    box-shadow:0 9px 20px rgba(0,0,0,.42),0 0 16px rgba(42,103,255,.07),inset 0 1px 0 rgba(255,255,255,.06);
  }
}

/* Profile/theme popover matches the same raised-control language */
.student-profile-menu{
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(242,248,255,.96));
  border-color:rgba(107,153,218,.24);
  box-shadow:0 18px 40px rgba(41,89,150,.20),0 7px 14px rgba(41,89,150,.10),inset 0 1px 0 rgba(255,255,255,1);
}
html[data-theme="dark"] .student-profile-menu{
  background:linear-gradient(145deg,rgba(13,31,62,.99),rgba(5,18,39,.98));
  border-color:rgba(101,150,226,.29);
  color:#f8fbff;
  box-shadow:0 22px 46px rgba(0,0,0,.52),0 0 25px rgba(39,100,255,.07),inset 0 1px 0 rgba(255,255,255,.06);
}
.student-theme-switch{background:rgba(111,164,230,.08);border-color:rgba(107,153,218,.20)}
html[data-theme="dark"] .student-theme-switch{background:rgba(57,105,177,.13);border-color:rgba(105,151,220,.20)}
.student-theme-choice.active{background:linear-gradient(145deg,#fff,#eef6ff);color:#1765ee;box-shadow:0 7px 14px rgba(44,93,155,.12),inset 0 1px 0 #fff}
html[data-theme="dark"] .student-theme-choice.active{background:linear-gradient(145deg,#123064,#081d3d);color:#63a0ff;border-color:rgba(94,145,230,.34);box-shadow:0 8px 18px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.06)}

/* Soft 3D illustrations remain crisp in both themes */
body.student-app .soft3d-icon{filter:drop-shadow(0 9px 12px rgba(38,83,137,.16)) saturate(1.06)}
html[data-theme="dark"] body.student-app .soft3d-icon{filter:drop-shadow(0 10px 14px rgba(0,0,0,.40)) saturate(1.12) brightness(1.02)}

/* Accessibility: dark-mode text that previously looked too dim */
html[data-theme="dark"] body.student-app .nav,
html[data-theme="dark"] body.student-app .word-secondary,
html[data-theme="dark"] body.student-app .student-profile-menu-head small,
html[data-theme="dark"] body.student-app .student-profile-menu-label,
html[data-theme="dark"] body.student-app .student-profile-menu-action small,
html[data-theme="dark"] body.student-app .student-profile-menu-chevron{color:#afc2e1}
html[data-theme="dark"] body.student-app .plan-capsule h2,
html[data-theme="dark"] body.student-app .plan-capsule h3,
html[data-theme="dark"] body.student-app .plan-capsule b,
html[data-theme="dark"] body.student-app .phase6-debt-message b,
html[data-theme="dark"] body.student-app .page-head h1,
html[data-theme="dark"] body.student-app .practice-page-head h1{color:#f8fbff!important}

@media(max-width:640px){
  body.student-app .card,
  body.student-app .typing-card,
  body.student-app .quiz-card,
  body.student-app .plan-capsule{border-radius:22px}
  body.student-app .btn{min-height:46px}
}

/* v18.1 — dark warning readability fix */
html[data-theme="dark"] body.student-app .alert.warning,
html[data-theme="dark"] body.student-app .alert.warning.compact{
  background:linear-gradient(145deg,rgba(92,61,10,.96),rgba(48,34,12,.98))!important;
  color:#fff2c2!important;
  border:1px solid rgba(255,193,61,.62)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.34),0 0 0 1px rgba(255,205,92,.06) inset!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18);
}
html[data-theme="dark"] body.student-app .alert.warning *,
html[data-theme="dark"] body.student-app .alert.warning.compact *{
  color:#fff2c2!important;
}
html[data-theme="dark"] body.student-app .alert.warning b,
html[data-theme="dark"] body.student-app .alert.warning strong{
  color:#fff8df!important;
}

/* v19 — neon dark palette + visual practice stickers + unified student surfaces */
html[data-theme="dark"] body.student-app{
  --student-bg:#130722;
  --student-bg-2:#1a0d34;
  --student-surface:rgba(47,22,79,.70);
  --student-surface-strong:rgba(57,26,95,.86);
  --student-surface-soft:rgba(63,30,104,.60);
  --student-text:#fbf8ff;
  --student-muted:#c7bfe2;
  --student-line:rgba(207,177,255,.18);
  --student-blue:#63b7ff;
  --student-blue-2:#4f8cff;
  --student-purple:#b45cff;
  --student-cyan:#34d8ff;
  --student-green:#45e4a1;
  --student-red:#ff5fa2;
  --student-orange:#ffb454;
  --student-shadow-soft:0 10px 22px rgba(8,2,23,.30), inset 0 1px 0 rgba(255,255,255,.06), 0 0 18px rgba(132,78,255,.10);
  --student-shadow-card:0 18px 42px rgba(8,2,23,.42), inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(255,255,255,.03);
  --student-shadow-float:0 24px 58px rgba(8,2,23,.55), inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px rgba(118,91,255,.14);
  background:
    radial-gradient(circle at 15% 0%,rgba(103,72,255,.42),transparent 28%),
    radial-gradient(circle at 90% 8%,rgba(255,86,163,.28),transparent 30%),
    radial-gradient(circle at 86% 82%,rgba(34,216,255,.18),transparent 26%),
    radial-gradient(circle at 12% 100%,rgba(121,78,255,.18),transparent 30%),
    linear-gradient(145deg,var(--student-bg) 0%,var(--student-bg-2) 54%,#0d0720 100%);
}
html[data-theme="dark"] body.student-app .student-topbar,
html[data-theme="dark"] body.student-app .sidebar{
  background:color-mix(in srgb,var(--student-surface-strong) 92%,transparent);
}
html[data-theme="dark"] body.student-app .card,
html[data-theme="dark"] body.student-app .stat,
html[data-theme="dark"] body.student-app .typing-card,
html[data-theme="dark"] body.student-app .quiz-card,
html[data-theme="dark"] body.student-app .matching-column,
html[data-theme="dark"] body.student-app .words-count,
html[data-theme="dark"] body.student-app .words-search,
html[data-theme="dark"] body.student-app .word-entry,
html[data-theme="dark"] body.student-app .practice-page-badge,
html[data-theme="dark"] body.student-app .flash-settings-menu,
html[data-theme="dark"] body.student-app .modal,
html[data-theme="dark"] body.student-app .plan-capsule,
html[data-theme="dark"] body.student-app .flip-card-face,
html[data-theme="dark"] body.student-app .quiz-option,
html[data-theme="dark"] body.student-app .option,
html[data-theme="dark"] body.student-app .matching-card,
html[data-theme="dark"] body.student-app .daily-plan-date,
html[data-theme="dark"] body.student-app .student-profile-menu{
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)),
    linear-gradient(145deg,rgba(58,29,97,.94),rgba(24,13,44,.94)) !important;
  border-color:rgba(206,173,255,.18) !important;
  box-shadow:var(--student-shadow-card) !important;
}
html[data-theme="dark"] body.student-app .quiz-option:hover,
html[data-theme="dark"] body.student-app .option:hover,
html[data-theme="dark"] body.student-app .matching-card:hover,
html[data-theme="dark"] body.student-app .student-header-nav-btn:hover,
html[data-theme="dark"] body.student-app .btn.ghost:hover{
  filter:brightness(1.06);
  border-color:rgba(140,188,255,.34)!important;
}
html[data-theme="dark"] body.student-app .student-header-nav-btn,
html[data-theme="dark"] body.student-app .btn.ghost,
html[data-theme="dark"] body.student-app .flash-settings-btn,
html[data-theme="dark"] body.student-app .words-direction-btn.active,
html[data-theme="dark"] body.student-app .flash-nav,
html[data-theme="dark"] body.student-app .word-audio-btn{
  background:
    linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02)),
    linear-gradient(145deg,rgba(70,36,117,.96),rgba(31,17,58,.96))!important;
  border-color:rgba(206,173,255,.18)!important;
  color:#f8f9ff!important;
}
html[data-theme="dark"] body.student-app .btn.primary,
html[data-theme="dark"] body.student-app .quiz-continue,
html[data-theme="dark"] body.student-app .typing-next{
  background:linear-gradient(115deg,#5d8cff 0%,#7a6bff 36%,#bb5cff 72%,#ff6b93 100%)!important;
  box-shadow:0 14px 28px rgba(118,74,255,.30), inset 0 1px 0 rgba(255,255,255,.26), 0 0 18px rgba(185,96,255,.16)!important;
}
html[data-theme="dark"] body.student-app .btn.green{
  background:linear-gradient(115deg,#19c37d 0%,#45e4a1 100%)!important;
  box-shadow:0 12px 26px rgba(40,202,140,.22), inset 0 1px 0 rgba(255,255,255,.22)!important;
}
html[data-theme="dark"] body.student-app .btn.red{
  background:linear-gradient(115deg,#ff5f9c 0%,#ff7f6b 100%)!important;
  box-shadow:0 12px 26px rgba(255,92,156,.24), inset 0 1px 0 rgba(255,255,255,.22)!important;
}
html[data-theme="dark"] body.student-app .plan-progress i,
html[data-theme="dark"] body.student-app .progress i{
  background:linear-gradient(90deg,#56c8ff,#6f8cff,#b458ff,#ff72b1);
}
html[data-theme="dark"] body.student-app .plan-capsule::before{opacity:1;box-shadow:0 0 18px currentColor}
html[data-theme="dark"] body.student-app .plan-capsule.review-capsule::before{color:#45e4a1}
html[data-theme="dark"] body.student-app .plan-capsule.new-capsule::before{color:#64bfff}
html[data-theme="dark"] body.student-app .plan-capsule.needs-retry::before{color:#ff6c9d}
html[data-theme="dark"] body.student-app .phase6-debt-card{
  background:linear-gradient(120deg,rgba(90,35,62,.72),rgba(48,24,72,.88));
  border-color:rgba(255,108,157,.28);
}

body.student-app .study-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.student-app .mode-visual-card{display:flex;align-items:center;gap:16px;text-align:left;padding:18px 18px 18px 16px;min-height:124px;overflow:hidden;position:relative}
body.student-app .mode-visual-card::after{content:none!important}
body.student-app .mode-card-icon{width:68px;height:68px;flex:0 0 68px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--student-blue) 10%,#fff),color-mix(in srgb,var(--student-purple) 4%,#fff));box-shadow:var(--student-shadow-soft);padding:8px}
body.student-app .mode-card-icon .soft3d-icon{filter:drop-shadow(0 8px 10px rgba(34,49,78,.10))}
body.student-app .mode-card-content{display:grid;gap:6px;min-width:0}
body.student-app .mode-card-content h3{margin:0;font-size:24px;line-height:1.08;color:var(--student-text)}
body.student-app .mode-card-content p{margin:0;color:var(--student-muted);font-size:14px;line-height:1.42}
body.student-app .mode-visual-card:hover{transform:translateY(-2px);box-shadow:var(--student-shadow-float)}
html[data-theme="dark"] body.student-app .mode-card-icon{background:linear-gradient(145deg,rgba(79,55,129,.95),rgba(41,24,74,.95));box-shadow:var(--student-shadow-soft),0 0 14px rgba(127,82,255,.12)}
html[data-theme="dark"] body.student-app .mode-card-icon .soft3d-icon{filter:drop-shadow(0 10px 12px rgba(0,0,0,.32)) brightness(1)}

body.student-app .phase6-method-visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
body.student-app .method-visual-btn{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:13px 14px!important;min-height:74px;text-align:left;white-space:normal;line-height:1.16}
body.student-app .method-visual-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center}
body.student-app .method-visual-text{display:grid;gap:4px;min-width:0}
body.student-app .method-visual-text strong{font-size:15px;line-height:1.1;color:inherit}
body.student-app .method-visual-text small{font-size:11.5px;opacity:.86;color:inherit}
body.student-app .method-visual-btn br{display:none}
html[data-theme="dark"] body.student-app .method-visual-btn .soft3d-icon{filter:drop-shadow(0 8px 12px rgba(0,0,0,.34)) brightness(.98)}

@media(max-width:700px){
  body.student-app .study-mode-grid{grid-template-columns:1fr}
  body.student-app .mode-card-content h3{font-size:22px}
}
@media(max-width:560px){
  body.student-app .phase6-method-visual-grid{grid-template-columns:1fr 1fr;gap:10px}
  body.student-app .method-visual-btn{padding:12px 11px!important;min-height:72px;gap:10px}
  body.student-app .method-visual-icon{width:38px;height:38px;flex-basis:38px}
  body.student-app .method-visual-text strong{font-size:13.5px}
  body.student-app .method-visual-text small{font-size:10.5px}
}
@media(max-width:390px){
  body.student-app .mode-visual-card{padding:16px 14px;gap:12px;min-height:112px}
  body.student-app .mode-card-icon{width:58px;height:58px;flex-basis:58px;border-radius:18px}
  body.student-app .mode-card-content h3{font-size:20px}
  body.student-app .phase6-method-visual-grid{grid-template-columns:1fr}
}

/* v20 — replace student emoji stickers with one consistent Soft 3D icon family */
body.student-app .ui3d-icon,
body.student-app .nav-3d-icon{
  display:block;
  width:1em;
  height:1em;
  object-fit:contain;
  flex:0 0 auto;
  user-select:none;
  -webkit-user-drag:none;
  filter:drop-shadow(0 5px 7px rgba(48,69,118,.16));
}
html[data-theme="dark"] body.student-app .ui3d-icon,
html[data-theme="dark"] body.student-app .nav-3d-icon{
  filter:drop-shadow(0 6px 9px rgba(0,0,0,.40)) brightness(1.04);
}
body.student-app .nav,
body.student-app .student-header-nav-btn{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}
body.student-app .student-header-nav-btn{justify-content:center}
body.student-app .nav-3d-icon{width:24px;height:24px}
body.student-app .student-header-nav-btn .nav-3d-icon{width:22px;height:22px}
body.student-app .button-3d-icon{width:24px;height:24px}
body.student-app .control-3d-icon{width:25px;height:25px}
body.student-app .theme-3d-icon{width:24px;height:24px}
body.student-app .menu-3d-icon{width:28px;height:28px}
body.student-app .heading-3d-icon{width:44px;height:44px}
body.student-app .title-3d-icon{width:34px;height:34px}
body.student-app .result-3d-icon{width:56px;height:56px}
body.student-app .feedback-3d-icon{width:32px;height:32px}
body.student-app .tiny-3d-icon{width:24px;height:24px}
body.student-app .practice-title-with-icon,
body.student-app .result-title-with-icon,
body.student-app .inline-icon-title{
  display:flex;
  align-items:center;
  gap:10px;
}
body.student-app .result-title-with-icon{justify-content:center;flex-wrap:wrap}
body.student-app .result-title-with-icon span{min-width:0}
body.student-app .inline-icon-title{justify-content:flex-start}
body.student-app .alert-with-icon{display:flex;align-items:flex-start;gap:8px}
body.student-app .alert-with-icon .tiny-3d-icon{margin-top:-2px}
body.student-app .quiz-feedback-icon.image-icon,
body.student-app .typing-result>span.image-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:transparent!important;
  border:0!important;
}
body.student-app .student-theme-choice .theme-3d-icon{margin:0}
body.student-app .student-profile-menu-action-icon .menu-3d-icon{width:28px;height:28px}
body.student-app .word-audio-btn{display:grid;place-items:center}
body.student-app .word-audio-btn .control-3d-icon{width:28px;height:28px}
body.student-app .flash-settings-btn{display:grid;place-items:center}
body.student-app .flash-settings-btn .control-3d-icon{width:26px;height:26px}
body.student-app .daily-plan-date .tiny-3d-icon{display:inline-block;vertical-align:middle;margin-right:5px}

@media(max-width:900px){
  body.student-app .sidebar .nav{justify-content:center;gap:6px}
  body.student-app .sidebar .nav-3d-icon{width:22px;height:22px}
}
@media(max-width:390px){
  body.student-app .nav-3d-icon{width:20px;height:20px}
  body.student-app .heading-3d-icon{width:38px;height:38px}
  body.student-app .result-3d-icon{width:48px;height:48px}
}

/* v21 — stable headings + student identity/name */
body.student-app .page-head{
  width:100%;
  max-width:var(--content-max);
  margin-left:auto;
  margin-right:auto;
  justify-content:stretch;
  text-align:left;
}
body.student-app .page-head>div:first-child{
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  text-align:left;
}
body.student-app .page-head h1,
body.student-app .page-head .muted{
  margin-left:0!important;
  margin-right:0!important;
  text-align:left!important;
}
body.student-app .results-stats,
body.student-app #resultsActivityHost{
  width:100%;
  max-width:var(--content-max);
  margin-left:auto;
  margin-right:auto;
}
body.student-app .stats.results-stats{align-items:stretch}

body.student-app .student-profile-identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:start;
}
body.student-app .student-header-name{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--student-text);
  font:inherit;
  font-size:clamp(14px,2.4vw,17px);
  font-weight:750;
  line-height:1.2;
  letter-spacing:-.015em;
  padding:8px 10px;
  margin:0;
  max-width:min(42vw,220px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
  cursor:pointer;
  border-radius:13px;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
body.student-app .student-header-name:hover{
  background:color-mix(in srgb,var(--student-blue) 7%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--student-blue) 12%,transparent);
}
body.student-app .student-header-name:active{transform:scale(.98)}
body.student-app .student-header-name[hidden]{display:none!important}
body.student-app.student-name-visible .student-topbar{
  grid-template-columns:minmax(0,1fr);
}
body.student-app.student-name-visible .student-top-actions{display:none!important}
body.student-app.student-name-visible .student-profile-identity{max-width:100%}

body.student-app .student-name-modal{display:grid;gap:14px}
body.student-app .student-name-modal h2{margin:0}
body.student-app .student-name-field{
  display:grid;
  gap:7px;
  font-weight:700;
  color:var(--student-text);
}
body.student-app .student-name-field input{
  width:100%;
  min-height:48px;
  border:1px solid var(--student-line);
  border-radius:14px;
  padding:11px 13px;
  outline:none;
  background:var(--student-surface-strong);
  color:var(--student-text);
  box-shadow:var(--student-shadow-soft);
}
body.student-app .student-name-field input:focus{
  border-color:color-mix(in srgb,var(--student-blue) 65%,var(--student-line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--student-blue) 14%,transparent),var(--student-shadow-soft);
}
html[data-theme="dark"] body.student-app .student-header-name{color:#fff!important}

@media(max-width:640px){
  body.student-app .page-head{margin-bottom:18px}
  body.student-app .page-head h1{font-size:clamp(26px,8vw,34px)}
  body.student-app .student-profile-identity{gap:7px}
  body.student-app .student-header-name{max-width:calc(100vw - 92px);padding-inline:7px;font-size:15px}
}

/* v22 — student join applications + admin student registry */
.telegram-onboarding{display:grid;gap:14px;text-align:left}.telegram-onboarding>h2,.telegram-onboarding>p{text-align:center}.telegram-auto-profile{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f7fbff}.student-join-form{display:grid;gap:13px}.student-join-form label{display:grid;gap:7px;font-weight:700;color:#475569}.student-join-form input{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#f8fbff;outline:none}.student-join-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(7,143,207,.13)}.student-join-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.student-photo-upload input[type=file]{padding:9px;background:#fff}.student-photo-upload .muted{font-size:12px}.telegram-login-panel .btn.wide{width:100%;text-decoration:none}.admin-student-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.admin-student-tab{border:1px solid var(--line);background:#eef4fb;color:#52637a;border-radius:14px;padding:10px 14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.admin-student-tab.active{background:#dff3ff;color:#036b9c;border-color:#a9d9ef}.admin-student-tab-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ef4444;color:white;font-size:11px}.admin-student-tab-panel{margin-bottom:16px}.student-applications-list{display:grid;gap:13px}.student-application-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:16px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 8px 24px rgba(31,65,105,.06)}.student-application-photo{width:78px;height:78px;border-radius:18px;overflow:hidden;background:#edf3f8;display:grid;place-items:center;font-weight:900;color:#8492a6}.student-application-photo img{width:100%;height:100%;object-fit:cover}.student-application-main{min-width:0;display:grid;gap:11px}.student-application-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.student-application-title h3{margin:0}.student-application-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;color:#5d6f86;font-size:13px}.student-application-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.student-application-controls label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#64748b}.student-application-controls select{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px;background:#f8fbff}.student-application-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-student-summary{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.btn.danger{background:#fee2e2;color:#991b1b}.btn.danger:hover{background:#fecaca}.tg-status.unlinked{background:#f2f4f7;color:#667085}.tg-status.linked{background:#eafaf2;color:#087a49}
@media(max-width:700px){.student-join-name-grid,.student-application-details,.student-application-controls{grid-template-columns:1fr}.student-application-card{grid-template-columns:58px minmax(0,1fr);gap:12px;padding:13px}.student-application-photo{width:58px;height:58px;border-radius:15px}.student-application-title{align-items:flex-start;flex-direction:column}.admin-student-tab{flex:1 1 calc(50% - 8px);justify-content:center}}
@media(max-width:420px){.admin-student-tabs{display:grid;grid-template-columns:1fr 1fr}.admin-student-tab{width:100%;font-size:12px;padding:9px 8px}.student-application-card{grid-template-columns:1fr}.student-application-photo{width:72px;height:72px}.student-application-actions .btn{flex:1}}
.admin-new-student-alert{width:100%;border:1px solid #b8d9f5;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;margin-bottom:14px;font-weight:600}.admin-new-student-alert span{color:#0574ac;font-weight:800;white-space:nowrap}

/* v24 rebuild — admin student identity, registration history and stable actions */
.admin-student-identity{display:flex;align-items:flex-start;gap:12px;min-width:260px}
.admin-student-avatar{width:46px;height:46px;flex:0 0 46px;border-radius:15px;overflow:hidden;display:grid;place-items:center;background:#eef5ff;border:1px solid #d3e2f2;color:#54708d;font-weight:900;box-shadow:0 4px 12px rgba(28,61,98,.08)}
.admin-student-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.admin-student-name{display:grid;gap:3px;min-width:0;flex:1}
.admin-student-name>b{font-size:14px;color:#12213a}
.admin-student-name>small{font-size:11.5px;color:#6a7f98;line-height:1.35}
.student-history-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.student-history-item{position:relative}
.student-history-item summary{list-style:none;cursor:pointer;border:1px solid #d6e4f1;background:#f7fbff;color:#42627f;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;display:flex;align-items:center;gap:6px;user-select:none}
.student-history-item summary::-webkit-details-marker{display:none}
.student-history-item summary small{font-weight:600;color:#7a8da2;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.student-history-item[open] summary{border-color:#82c9ea;background:#edf9ff;color:#0877a8}
.student-history-body{position:absolute;z-index:35;top:calc(100% + 7px);left:0;width:min(360px,72vw);display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #d3e3f1;border-radius:14px;background:#fff;box-shadow:0 16px 38px rgba(31,65,105,.18)}
.student-history-body img{width:64px;height:64px;border-radius:14px;object-fit:cover;border:1px solid #d8e5f0}
.student-history-body>div{display:grid;gap:4px;min-width:0}
.student-history-body b{font-size:14px}
.student-history-body span{font-size:11.5px;color:#61778f;overflow-wrap:anywhere}
.admin-student-actions{align-items:center}
.admin-student-actions .btn[disabled]{opacity:.58;cursor:not-allowed}
@media(max-width:760px){.admin-student-identity{min-width:220px}.student-history-body{position:fixed;left:16px;right:16px;top:auto;bottom:90px;width:auto}}

/* v24.4 — words inline pair, clearer controls, stable quiz feedback layout */
body.student-app .word-pair-inline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center;
  gap:clamp(7px,1.7vw,13px)!important;
  width:100%;
  min-width:0;
}
body.student-app .word-pair-side{
  display:flex;
  align-items:center;
  min-width:0;
  gap:7px;
}
body.student-app .word-pair-primary{justify-content:flex-end;text-align:right}
body.student-app .word-pair-secondary{justify-content:flex-start;text-align:left}
body.student-app .word-pair-side b.phase6-word-ko,
body.student-app .word-pair-side span.phase6-word-uz{
  min-width:0;
  width:auto;
  max-width:100%;
  word-break:keep-all;
  overflow-wrap:normal;
  hyphens:none;
}
body.student-app .word-pair-arrow{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  color:var(--student-blue)!important;
  font-size:21px;
  font-weight:800;
  line-height:1;
  flex:0 0 26px;
}
body.student-app .word-pair-side .phase6-word-audio{display:inline-flex;flex:0 0 auto}

/* Karnay va sozlama tugmalari — rang va kontrast aniqroq. */
body.student-app .word-audio-btn{
  border-color:color-mix(in srgb,var(--student-blue) 42%,var(--student-line))!important;
  background:linear-gradient(145deg,#eaf7ff,#e7edff)!important;
  color:#2563eb!important;
  box-shadow:0 7px 17px rgba(37,99,235,.15),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
body.student-app .word-audio-btn .control-3d-icon{
  filter:saturate(1.55) contrast(1.12) brightness(.94);
}
body.student-app .word-audio-btn:hover,
body.student-app .word-audio-btn.playing{
  background:linear-gradient(145deg,#dff4ff,#dce6ff)!important;
  border-color:#60a5fa!important;
  box-shadow:0 9px 20px rgba(37,99,235,.20),0 0 0 3px rgba(96,165,250,.10)!important;
}
body.student-app .flash-settings-btn{
  border-color:color-mix(in srgb,var(--student-purple) 34%,var(--student-line))!important;
  background:linear-gradient(145deg,#f5efff,#e8edff)!important;
  color:#6d4aff!important;
  box-shadow:0 7px 17px rgba(109,74,255,.14),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
body.student-app .flash-settings-btn .control-3d-icon{
  filter:saturate(1.55) contrast(1.12) brightness(.92);
}
body.student-app .flash-settings-btn:hover,
body.student-app .flash-settings-btn[aria-expanded="true"]{
  background:linear-gradient(145deg,#eee5ff,#dfe8ff)!important;
  border-color:#a78bfa!important;
  box-shadow:0 9px 21px rgba(109,74,255,.19),0 0 0 3px rgba(167,139,250,.09)!important;
}
html[data-theme="dark"] body.student-app .word-audio-btn{
  background:linear-gradient(145deg,rgba(37,99,235,.42),rgba(52,32,104,.82))!important;
  border-color:rgba(99,179,255,.48)!important;
  color:#dff5ff!important;
  box-shadow:0 8px 20px rgba(12,5,35,.34),0 0 16px rgba(52,172,255,.16)!important;
}
html[data-theme="dark"] body.student-app .flash-settings-btn{
  background:linear-gradient(145deg,rgba(116,64,204,.62),rgba(43,24,83,.92))!important;
  border-color:rgba(197,151,255,.42)!important;
  color:#f3eaff!important;
  box-shadow:0 8px 20px rgba(12,5,35,.34),0 0 16px rgba(181,92,255,.16)!important;
}
html[data-theme="dark"] body.student-app .word-audio-btn .control-3d-icon,
html[data-theme="dark"] body.student-app .flash-settings-btn .control-3d-icon{
  filter:saturate(1.7) contrast(1.15) brightness(1.08);
}

/* Quiz: savol va feedback bir qatorda, variantlar esa doim bir joyda qoladi. */
body.student-app .quiz-intro-zone{
  display:grid;
  grid-template-rows:auto 48px;
  align-content:start;
  min-height:clamp(132px,20vw,164px);
  margin-bottom:16px;
}
body.student-app .quiz-question-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:14px;
  min-width:0;
}
body.student-app .quiz-question-row .quiz-question{min-width:0;margin:0}
body.student-app .quiz-feedback-compact{
  align-self:start;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:max-content;
  max-width:180px;
  margin:0!important;
  padding:8px 11px!important;
  border-radius:13px!important;
  line-height:1.15;
  font-size:14px;
  white-space:nowrap;
}
body.student-app .quiz-feedback-compact[hidden]{display:none!important}
body.student-app .quiz-feedback-compact .quiz-feedback-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  font-size:15px;
}
body.student-app .quiz-feedback-compact .feedback-3d-icon{width:25px;height:25px}
body.student-app .quiz-feedback-error-mark{
  background:rgba(255,255,255,.72);
  color:#be123c;
}
body.student-app .quiz-action-slot{
  display:flex;
  align-items:end;
  min-height:48px;
  padding-top:7px;
}
body.student-app .quiz-action-slot .quiz-continue{
  width:auto;
  min-width:132px;
  min-height:40px;
  padding:8px 18px;
}

@media(max-width:640px){
  body.student-app .word-pair-inline{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr)!important;gap:5px!important}
  body.student-app .word-pair-side{gap:5px}
  body.student-app .word-pair-arrow{width:22px;height:22px;font-size:18px;flex-basis:22px}
  body.student-app .word-pair-side .word-audio-btn{width:32px;height:32px;margin:0}
  body.student-app .word-pair-side .word-audio-btn .control-3d-icon{width:24px;height:24px}
  body.student-app .quiz-intro-zone{min-height:148px;grid-template-rows:auto 46px;margin-bottom:14px}
  body.student-app .quiz-question-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  body.student-app .quiz-feedback-compact{font-size:12.5px;padding:7px 9px!important;max-width:145px}
  body.student-app .quiz-feedback-compact .quiz-feedback-icon{width:21px;height:21px;flex-basis:21px}
  body.student-app .quiz-feedback-compact .feedback-3d-icon{width:22px;height:22px}
  body.student-app .quiz-action-slot .quiz-continue{min-width:120px;min-height:38px;padding:7px 14px}
}
@media(max-width:390px){
  body.student-app .word-pair-side b.phase6-word-ko{font-size:14px}
  body.student-app .word-pair-side span.phase6-word-uz{font-size:13px}
  body.student-app .word-pair-side .word-audio-btn{width:29px;height:29px}
  body.student-app .word-pair-side .word-audio-btn .control-3d-icon{width:22px;height:22px}
  body.student-app .quiz-intro-zone{min-height:142px}
  body.student-app .quiz-feedback-compact{font-size:11.5px;max-width:128px;padding:6px 8px!important}
}

/* v24.5 — compact quiz feedback + clearer audio/settings controls */
body.student-app .word-audio-btn{
  border-color:rgba(14,165,164,.34)!important;
  background:linear-gradient(145deg,#e9fffc,#dff7ff)!important;
  color:#087f8c!important;
  box-shadow:0 7px 17px rgba(8,145,158,.15),inset 0 1px 0 rgba(255,255,255,.94)!important;
}
body.student-app .word-audio-btn .control-3d-icon{
  filter:hue-rotate(120deg) saturate(1.5) contrast(1.08) brightness(.93);
}
body.student-app .word-audio-btn:hover,
body.student-app .word-audio-btn.playing{
  border-color:#27c4c3!important;
  background:linear-gradient(145deg,#d9fff9,#d3f3ff)!important;
  box-shadow:0 9px 21px rgba(8,145,158,.20),0 0 0 3px rgba(39,196,195,.10)!important;
}
body.student-app .flash-settings-btn{
  border-color:rgba(245,158,11,.36)!important;
  background:linear-gradient(145deg,#fff8e8,#ffedd5)!important;
  color:#c76b08!important;
  box-shadow:0 7px 17px rgba(217,119,6,.14),inset 0 1px 0 rgba(255,255,255,.94)!important;
}
body.student-app .flash-settings-btn .control-3d-icon{
  filter:hue-rotate(330deg) saturate(1.45) contrast(1.08) brightness(.96);
}
body.student-app .flash-settings-btn:hover,
body.student-app .flash-settings-btn[aria-expanded="true"]{
  border-color:#f59e0b!important;
  background:linear-gradient(145deg,#fff2cf,#ffe4bd)!important;
  box-shadow:0 9px 21px rgba(217,119,6,.19),0 0 0 3px rgba(245,158,11,.09)!important;
}
html[data-theme="dark"] body.student-app .word-audio-btn{
  background:linear-gradient(145deg,rgba(16,185,180,.38),rgba(17,94,110,.64))!important;
  border-color:rgba(76,225,218,.50)!important;
  color:#d8fffb!important;
  box-shadow:0 8px 20px rgba(5,8,30,.36),0 0 16px rgba(34,211,205,.17)!important;
}
html[data-theme="dark"] body.student-app .flash-settings-btn{
  background:linear-gradient(145deg,rgba(245,158,11,.36),rgba(120,53,15,.68))!important;
  border-color:rgba(251,191,36,.48)!important;
  color:#fff2cf!important;
  box-shadow:0 8px 20px rgba(5,8,30,.36),0 0 16px rgba(245,158,11,.16)!important;
}
html[data-theme="dark"] body.student-app .word-audio-btn .control-3d-icon,
html[data-theme="dark"] body.student-app .flash-settings-btn .control-3d-icon{
  filter:saturate(1.7) contrast(1.12) brightness(1.12);
}

body.student-app .quiz-intro-zone{
  display:block;
  min-height:0!important;
  margin-bottom:8px!important;
}
body.student-app .quiz-question-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  min-height:78px;
}
body.student-app .quiz-feedback-stack{
  display:grid;
  justify-items:end;
  align-content:start;
  gap:6px;
  min-width:0;
}
body.student-app .quiz-feedback-compact{
  max-width:154px!important;
  min-width:0!important;
  padding:6px 9px!important;
  border-radius:11px!important;
  gap:5px!important;
  font-size:12.5px!important;
  line-height:1.05!important;
}
body.student-app .quiz-feedback-compact .quiz-feedback-icon{
  width:20px!important;
  height:20px!important;
  flex-basis:20px!important;
  font-size:13px!important;
}
body.student-app .quiz-feedback-compact .feedback-3d-icon{width:20px!important;height:20px!important}
body.student-app .quiz-feedback-stack .quiz-continue{
  width:auto!important;
  min-width:112px!important;
  min-height:34px!important;
  padding:6px 12px!important;
  font-size:12.5px!important;
  border-radius:10px!important;
}
body.student-app .quiz-options{margin-top:0!important}

@media(max-width:640px){
  body.student-app .quiz-question-row{gap:7px;min-height:74px}
  body.student-app .quiz-feedback-stack{gap:5px}
  body.student-app .quiz-feedback-compact{max-width:128px!important;font-size:11.5px!important;padding:5px 7px!important}
  body.student-app .quiz-feedback-compact .quiz-feedback-icon{width:18px!important;height:18px!important;flex-basis:18px!important}
  body.student-app .quiz-feedback-compact .feedback-3d-icon{width:18px!important;height:18px!important}
  body.student-app .quiz-feedback-stack .quiz-continue{min-width:102px!important;min-height:32px!important;padding:5px 10px!important;font-size:11.5px!important}
}
@media(max-width:390px){
  body.student-app .quiz-question-row{grid-template-columns:minmax(0,1fr) auto;min-height:70px}
  body.student-app .quiz-feedback-compact{max-width:112px!important;font-size:10.5px!important}
  body.student-app .quiz-feedback-stack .quiz-continue{min-width:94px!important;font-size:10.5px!important}
}

/* v24.6 — Variantli test mobil layout polish */
body.student-app .quiz-wrap .practice-page-head{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
body.student-app .quiz-wrap .practice-title-with-icon{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  font-size:clamp(24px,4.2vw,31px)!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
body.student-app .quiz-wrap .practice-title-with-icon span{
  white-space:nowrap;
}
body.student-app .quiz-wrap .practice-title-with-icon .heading-3d-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
}
body.student-app .quiz-wrap .practice-page-badge{
  min-width:132px;
  max-width:42vw;
  padding:8px 10px;
}
body.student-app .quiz-wrap .practice-page-badge b{font-size:17px}
body.student-app .quiz-wrap .practice-page-badge span{font-size:11px;white-space:nowrap}

body.student-app .quiz-progress-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin:4px 0 10px;
}
body.student-app .quiz-progress-row .progress{
  margin:0!important;
  min-width:0;
}
body.student-app .quiz-progress-row .quiz-settings{
  position:relative;
  display:grid;
  place-items:center;
}
body.student-app .quiz-progress-row .flash-settings-btn{
  width:42px;
  height:42px;
  border-radius:13px;
}
body.student-app .quiz-progress-row .flash-settings-menu{
  right:0;
  left:auto;
  top:calc(100% + 7px);
}

body.student-app .quiz-card{
  padding:18px!important;
}
body.student-app .quiz-intro-zone{
  margin-bottom:4px!important;
}
body.student-app .quiz-question-row{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:9px;
  min-height:64px!important;
}
body.student-app .quiz-question-row .quiz-question{
  font-size:clamp(28px,5vw,40px)!important;
  line-height:1.12!important;
  padding-top:2px;
}
body.student-app .quiz-feedback-stack{
  min-height:64px;
  display:grid;
  grid-template-rows:30px 30px;
  justify-items:end;
  align-content:start;
  gap:4px!important;
}
body.student-app .quiz-feedback-compact{
  max-width:124px!important;
  min-height:30px;
  padding:4px 7px!important;
  border-radius:10px!important;
  gap:4px!important;
  font-size:11.5px!important;
  line-height:1!important;
}
body.student-app .quiz-feedback-compact .quiz-feedback-icon{
  width:18px!important;
  height:18px!important;
  flex-basis:18px!important;
  font-size:12px!important;
}
body.student-app .quiz-feedback-compact .feedback-3d-icon{
  width:18px!important;
  height:18px!important;
}
body.student-app .quiz-feedback-stack .quiz-continue{
  min-width:108px!important;
  min-height:30px!important;
  height:30px!important;
  padding:4px 10px!important;
  border-radius:9px!important;
  font-size:11.5px!important;
  line-height:1!important;
}
body.student-app .quiz-options{
  gap:10px!important;
  margin-top:0!important;
}
body.student-app .quiz-option{
  min-height:62px!important;
  padding:12px 15px!important;
  border-radius:15px!important;
  gap:10px!important;
}
body.student-app .quiz-option-mark{
  width:26px!important;
  height:26px!important;
  flex-basis:26px!important;
}
body.student-app .quiz-option-label{
  font-size:clamp(18px,3vw,22px)!important;
  line-height:1.15!important;
}

@media(max-width:640px){
  body.student-app .quiz-wrap .practice-title-with-icon{
    font-size:24px!important;
    gap:7px;
  }
  body.student-app .quiz-wrap .practice-title-with-icon .heading-3d-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  body.student-app .quiz-wrap .practice-page-badge{
    min-width:126px;
    max-width:43vw;
    padding:7px 9px;
  }
  body.student-app .quiz-wrap .practice-page-badge b{font-size:16px}
  body.student-app .quiz-wrap .practice-page-badge span{font-size:10.5px}
  body.student-app .quiz-progress-row{
    grid-template-columns:minmax(0,1fr) 40px;
    gap:8px;
    margin-bottom:9px;
  }
  body.student-app .quiz-progress-row .flash-settings-btn{width:40px;height:40px}
  body.student-app .quiz-card{padding:15px!important}
  body.student-app .quiz-question-row{min-height:60px!important;gap:6px}
  body.student-app .quiz-question-row .quiz-question{font-size:30px!important}
  body.student-app .quiz-feedback-stack{
    min-height:60px;
    grid-template-rows:28px 28px;
    gap:4px!important;
  }
  body.student-app .quiz-feedback-compact{
    max-width:112px!important;
    min-height:28px;
    font-size:10.5px!important;
    padding:4px 6px!important;
  }
  body.student-app .quiz-feedback-stack .quiz-continue{
    min-width:98px!important;
    min-height:28px!important;
    height:28px!important;
    padding:3px 8px!important;
    font-size:10.5px!important;
  }
  body.student-app .quiz-options{gap:9px!important}
  body.student-app .quiz-option{
    min-height:58px!important;
    padding:10px 13px!important;
  }
}

@media(max-width:390px){
  body.student-app .quiz-wrap .practice-title-with-icon{font-size:21px!important;gap:5px}
  body.student-app .quiz-wrap .practice-title-with-icon .heading-3d-icon{width:30px;height:30px;flex-basis:30px}
  body.student-app .quiz-wrap .practice-page-badge{min-width:116px;max-width:44vw;padding:6px 7px}
  body.student-app .quiz-wrap .practice-page-badge b{font-size:15px}
  body.student-app .quiz-wrap .practice-page-badge span{font-size:9.5px}
  body.student-app .quiz-question-row .quiz-question{font-size:27px!important}
  body.student-app .quiz-feedback-compact{max-width:104px!important;font-size:10px!important}
  body.student-app .quiz-feedback-stack .quiz-continue{min-width:92px!important;font-size:10px!important}
}

/* =========================================================
   v24.7 — quiz feedback containment + settings position restore
   Faqat Variantli test layoutiga ta'sir qiladi.
   ========================================================= */
body.student-app .quiz-wrap .quiz-toolbar{
  position:relative;
  display:flex!important;
  align-items:center;
  justify-content:flex-end!important;
  min-height:42px;
  margin:0 0 7px!important;
  padding:0!important;
}
body.student-app .quiz-wrap .quiz-toolbar .quiz-settings{
  position:relative;
  margin-left:auto!important;
}
body.student-app .quiz-wrap .quiz-toolbar .flash-settings-btn{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
}
body.student-app .quiz-wrap .quiz-toolbar .flash-settings-menu{
  right:0!important;
  left:auto!important;
  top:calc(100% + 7px)!important;
}
body.student-app .quiz-wrap .quiz-main-progress{
  margin:0 0 10px!important;
  width:100%;
}

/* Feedbackning o'ng ustuni aniq kenglikka ega — kapsula kartadan chiqmaydi. */
body.student-app .quiz-wrap .quiz-question-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) clamp(124px,34%,148px)!important;
  align-items:start!important;
  gap:10px!important;
  min-height:70px!important;
  width:100%;
  min-width:0;
}
body.student-app .quiz-wrap .quiz-question-row .quiz-question{
  min-width:0;
  max-width:100%;
  margin:0!important;
  overflow-wrap:break-word;
}
body.student-app .quiz-wrap .quiz-feedback-stack{
  width:100%!important;
  min-width:0!important;
  max-width:148px!important;
  min-height:70px!important;
  display:grid!important;
  grid-template-rows:30px 34px!important;
  align-content:start!important;
  justify-items:stretch!important;
  gap:5px!important;
  overflow:visible;
}
body.student-app .quiz-wrap .quiz-feedback-compact{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:30px!important;
  margin:0!important;
  padding:5px 8px!important;
  border-radius:10px!important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px!important;
  font-size:11.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden;
}
body.student-app .quiz-wrap .quiz-feedback-compact b{
  min-width:0;
  overflow:hidden;
  text-overflow:clip;
  white-space:nowrap;
}
body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  font-size:12px!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .feedback-3d-icon{
  width:18px!important;
  height:18px!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:5px 8px!important;
  border-radius:9px!important;
  font-size:11.5px!important;
  line-height:1!important;
  align-self:start;
}
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue[hidden],
body.student-app .quiz-wrap .quiz-feedback-compact[hidden]{
  display:none!important;
}
body.student-app .quiz-wrap .quiz-intro-zone{
  margin-bottom:4px!important;
  min-height:0!important;
}
body.student-app .quiz-wrap .quiz-options{
  margin-top:0!important;
}

@media(max-width:640px){
  body.student-app .quiz-wrap .quiz-toolbar{min-height:40px;margin-bottom:7px!important}
  body.student-app .quiz-wrap .quiz-toolbar .flash-settings-btn{width:40px!important;height:40px!important}
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 128px!important;
    gap:7px!important;
    min-height:68px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack{
    max-width:128px!important;
    min-height:68px!important;
    grid-template-rows:29px 33px!important;
    gap:5px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact{
    min-height:29px!important;
    font-size:10.5px!important;
    padding:4px 6px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
    height:33px!important;
    min-height:33px!important;
    font-size:10.5px!important;
  }
}

@media(max-width:390px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 120px!important;
    gap:6px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack{max-width:120px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact,
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
    font-size:10px!important;
  }
}

@media(max-width:345px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 112px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack{max-width:112px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact{padding-inline:5px!important}
}

/* =========================================================
   v24.8 — final stable quiz question / feedback layout
   Replaces earlier quiz feedback sizing overrides.
   ========================================================= */
body.student-app .quiz-wrap .quiz-card{
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-intro-zone{
  width:100%!important;
  margin:0 0 6px!important;
  min-height:72px!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-question-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(154px,176px)!important;
  align-items:start!important;
  column-gap:12px!important;
  min-height:72px!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-question-row .quiz-question{
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:3px 0 0!important;
  font-size:clamp(28px,5vw,40px)!important;
  line-height:1.12!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:154px!important;
  max-width:176px!important;
  min-height:72px!important;
  display:grid!important;
  grid-template-rows:32px 34px!important;
  align-content:start!important;
  justify-items:stretch!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:5px 9px!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font-size:12.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact b{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  font-size:12.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-icon{
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
  margin:0!important;
  font-size:12px!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .feedback-3d-icon{
  width:19px!important;
  height:19px!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:6px 10px!important;
  border-radius:10px!important;
  font-size:11.5px!important;
  line-height:1!important;
  justify-self:stretch!important;
}
/* Keep the right-side status column reserved so answer options never jump. */
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-feedback-compact[hidden],
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue[hidden]{
  display:flex!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.student-app .quiz-wrap .quiz-options{
  margin-top:0!important;
  gap:10px!important;
}

/* Keep settings at its established place: separate row, above progress, right aligned. */
body.student-app .quiz-wrap .quiz-toolbar{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  min-height:42px!important;
  margin:0 0 7px!important;
  padding:0!important;
}
body.student-app .quiz-wrap .quiz-main-progress{
  width:100%!important;
  margin:0 0 10px!important;
}

@media(max-width:640px){
  body.student-app .quiz-wrap .quiz-intro-zone{min-height:68px!important;margin-bottom:5px!important}
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 154px!important;
    column-gap:8px!important;
    min-height:68px!important;
  }
  body.student-app .quiz-wrap .quiz-question-row .quiz-question{
    font-size:30px!important;
    padding-top:2px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack{
    min-width:154px!important;
    max-width:154px!important;
    min-height:68px!important;
    grid-template-rows:30px 32px!important;
    gap:6px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact{
    height:30px!important;
    min-height:30px!important;
    padding:4px 8px!important;
    font-size:11.5px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact b{font-size:11.5px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-icon{
    width:18px!important;height:18px!important;flex-basis:18px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact .feedback-3d-icon{width:18px!important;height:18px!important}
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
    height:32px!important;min-height:32px!important;font-size:10.5px!important;padding:5px 8px!important;
  }
}

@media(max-width:390px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 148px!important;
    column-gap:7px!important;
  }
  body.student-app .quiz-wrap .quiz-question-row .quiz-question{font-size:27px!important}
  body.student-app .quiz-wrap .quiz-feedback-stack{min-width:148px!important;max-width:148px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact,
  body.student-app .quiz-wrap .quiz-feedback-compact b{font-size:11px!important}
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{font-size:10.5px!important}
}

@media(max-width:350px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 142px!important;
    column-gap:6px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack{min-width:142px!important;max-width:142px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact{padding-inline:6px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact,
  body.student-app .quiz-wrap .quiz-feedback-compact b{font-size:10.5px!important}
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{font-size:10px!important}
}

/* v24.9 — fixed quiz question + feedback anchor
   Savol chapda, feedback esa doim bir xil o‘ng ankorda. */
body.student-app .quiz-wrap .quiz-intro-zone{
  position:relative!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
body.student-app .quiz-wrap .quiz-question-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 176px!important;
  column-gap:12px!important;
  align-items:start!important;
  width:100%!important;
  min-height:88px!important;
  margin:0!important;
  padding:0!important;
}
body.student-app .quiz-wrap .quiz-question-row .quiz-question{
  grid-column:1!important;
  align-self:start!important;
  min-width:0!important;
  margin:6px 0 0!important;
  padding:0!important;
  position:static!important;
  transform:none!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack{
  grid-column:2!important;
  position:static!important;
  width:176px!important;
  min-width:176px!important;
  max-width:176px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:7px!important;
  transform:none!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  width:176px!important;
  min-width:176px!important;
  max-width:176px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:6px 10px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  border-radius:16px!important;
  line-height:1!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-icon{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  flex:0 0 24px!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .feedback-3d-icon{
  position:static!important;
  transform:none!important;
  display:block!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  margin:0!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-error-mark{
  border-radius:50%!important;
  font-size:20px!important;
  font-weight:900!important;
}
body.student-app .quiz-wrap .quiz-feedback-compact b{
  position:static!important;
  transform:none!important;
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:176px!important;
  min-width:176px!important;
  max-width:176px!important;
  min-height:38px!important;
  height:38px!important;
  margin:0!important;
  padding:6px 10px!important;
  border-radius:13px!important;
  font-size:12px!important;
  line-height:1!important;
}
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-feedback-compact[hidden],
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue[hidden]{
  display:none!important;
}

@media(max-width:430px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 158px!important;
    column-gap:8px!important;
    min-height:84px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack,
  body.student-app .quiz-wrap .quiz-feedback-compact,
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
    width:158px!important;
    min-width:158px!important;
    max-width:158px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact b{font-size:12.5px!important}
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{font-size:11.5px!important}
}
@media(max-width:370px){
  body.student-app .quiz-wrap .quiz-question-row{
    grid-template-columns:minmax(0,1fr) 144px!important;
    column-gap:7px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-stack,
  body.student-app .quiz-wrap .quiz-feedback-compact,
  body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
    width:144px!important;
    min-width:144px!important;
    max-width:144px!important;
  }
  body.student-app .quiz-wrap .quiz-feedback-compact{padding-inline:7px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact b{font-size:11.5px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact .quiz-feedback-icon{flex-basis:21px!important;width:21px!important;height:21px!important}
  body.student-app .quiz-wrap .quiz-feedback-compact .feedback-3d-icon{width:20px!important;height:20px!important}
}


/* v24.10 — wrong-answer feedback simplified:
   “Xato qildingiz” olib tashlandi; Davom etish aynan shu ankorda turadi. */
body.student-app .quiz-wrap .quiz-feedback-stack .quiz-continue{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  border-radius:16px!important;
  align-self:stretch!important;
}

/* v24.11 — admin-controlled student-visible collections */
.student-visible-sets-panel{margin-bottom:18px}
.student-visible-sets-panel .panel-title{align-items:flex-start}
.student-visible-set-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.student-visible-set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fbff;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.student-visible-set-row:hover{border-color:#9bcfe7;background:#f2faff;box-shadow:0 5px 14px rgba(31,65,105,.05)}
.student-visible-set-main{display:flex;align-items:center;gap:11px;min-width:0}
.student-visible-set-main input{width:20px;height:20px;accent-color:var(--blue);flex:0 0 20px;cursor:pointer}
.student-visible-set-main>span{min-width:0;display:grid;gap:3px}
.student-visible-set-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.student-visible-set-main small{color:var(--muted)}
.student-visible-set-row em{font-style:normal;font-size:12px;font-weight:800;color:#64748b;background:#edf3f8;padding:5px 8px;border-radius:999px;white-space:nowrap}
.student-visible-set-row:has(input:checked){border-color:#8fd2b4;background:#f0fff7}
.student-visible-set-row:has(input:checked) em{color:#087a4d;background:#dcf8e9}
.collection-picker-back{display:flex;align-items:center;gap:10px;margin-bottom:16px}
@media(max-width:820px){.student-visible-set-list{grid-template-columns:1fr}}

/* v24.12 — guruh bo‘yicha to‘plam/bo‘lim ruxsatlari */
.admin-group-row-actions,.learning-group-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.group-collection-modal{display:grid;gap:16px}
.group-collection-modal-head h2{margin:0 0 6px}
.group-collection-modal-head p{margin:0;max-width:720px}
.group-collection-tree{display:grid;gap:14px;max-height:min(64vh,620px);overflow:auto;padding-right:4px}
.group-collection-source{border:1px solid var(--line);border-radius:20px;background:#f8fbff;overflow:hidden;transition:opacity .18s ease,filter .18s ease,border-color .18s ease}
.group-collection-source.is-disabled{opacity:.72;filter:saturate(.72)}
.group-collection-source-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 16px;cursor:pointer;background:linear-gradient(180deg,#fff,#f4f8fd)}
.group-collection-source-copy{display:grid;gap:3px;min-width:0}.group-collection-source-copy b{font-size:17px}.group-collection-source-copy small,.group-collection-set small{color:var(--muted);font-size:12px}
.group-collection-source-head em{font-style:normal;font-size:12px;font-weight:800;color:var(--blue)}
.group-collection-source.is-disabled .group-collection-source-head em{color:var(--muted)}
.group-collection-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px 14px 15px;border-top:1px solid var(--line)}
.group-collection-set{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}
.group-collection-set>span:last-child{display:grid;gap:2px;min-width:0}.group-collection-set b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-collection-source.is-disabled .group-collection-set{opacity:.48;cursor:not-allowed}
.group-access-switch{position:relative;width:44px;height:25px;display:inline-block;flex:0 0 auto}.group-access-switch.small{width:38px;height:22px}.group-access-switch input{position:absolute;opacity:0;pointer-events:none}.group-access-switch>span{position:absolute;inset:0;border-radius:999px;background:#d7e0eb;box-shadow:inset 0 1px 3px rgba(15,23,42,.12);transition:.18s}.group-access-switch>span::after{content:'';position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 2px 5px rgba(15,23,42,.22);transition:.18s}.group-access-switch.small>span::after{width:16px;height:16px}.group-access-switch input:checked+span{background:linear-gradient(135deg,#39a8ff,#635bff)}.group-access-switch input:checked+span::after{transform:translateX(19px)}.group-access-switch.small input:checked+span::after{transform:translateX(16px)}.group-access-switch input:disabled+span{opacity:.45}
.group-collection-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:2px}

body.student-app .collection-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.student-app .collection-access-card{position:relative;min-height:112px;text-align:left;transition:opacity .18s ease,filter .18s ease,transform .18s ease}
body.student-app .collection-access-card.is-open:hover{transform:translateY(-2px)}
body.student-app .collection-access-card.is-locked{opacity:.46;filter:grayscale(.28) saturate(.48);cursor:not-allowed!important;box-shadow:none!important}
body.student-app .collection-access-card.is-locked:disabled{color:var(--student-muted);-webkit-text-fill-color:var(--student-muted)}
body.student-app .collection-access-card.is-locked h3{color:var(--student-muted)}
body.student-app .collection-lock-mark{position:absolute;right:14px;top:12px;width:30px;height:30px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--student-surface-strong) 82%,var(--student-muted) 18%);border:1px solid var(--student-line);font-size:15px;box-shadow:var(--student-shadow-soft)}
html[data-theme="dark"] body.student-app .collection-access-card.is-locked{opacity:.40;filter:grayscale(.20) saturate(.45)}
html[data-theme="dark"] body.student-app .collection-lock-mark{background:rgba(255,255,255,.07)}

@media(max-width:640px){.group-collection-children{grid-template-columns:1fr}.group-collection-tree{max-height:58vh}.admin-group-row-actions{justify-content:flex-start}body.student-app .collection-access-grid{grid-template-columns:1fr 1fr}}
@media(max-width:390px){body.student-app .collection-access-grid{grid-template-columns:1fr}.group-collection-source-head{grid-template-columns:auto minmax(0,1fr)}.group-collection-source-head em{grid-column:2}}

/* v24.13 — To‘plam → Mavzu → So‘z admin boshqaruvi */
.collections-page-head{align-items:flex-start}.collection-top-actions{justify-content:flex-end;gap:9px;max-width:720px}.collection-top-actions .btn{min-height:44px}
.collection-choice-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:stretch}
.collection-choice-row .collection-choice{min-width:0;height:100%}
.collection-more{border:1px solid var(--line);border-radius:12px;background:#f7fbff;color:#536980;font-size:22px;font-weight:900;cursor:pointer;display:grid;place-items:center;line-height:1}
.collection-more:hover{border-color:#8bc9e8;background:#edf8ff;color:var(--blue)}
.collection-words-title{align-items:flex-start!important}.collection-word-title-actions{display:flex;align-items:center;gap:9px}.collection-word-title-actions>span{font-weight:800;color:#52677f}
.collection-word-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:10px}.collection-word-search{flex:1;min-width:0;height:42px;border:1px solid var(--line);border-radius:12px;background:#f8fbff;display:flex;align-items:center;gap:8px;padding:0 12px}.collection-word-search span{font-size:19px;color:#66819b}.collection-word-search input{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;width:100%;padding:0!important;color:var(--text)}.collection-word-tools small{white-space:nowrap;color:var(--muted);font-weight:800}
.admin-word-simple-form>label input,.admin-word-simple-form>label select{min-height:46px}.admin-extra-fields{border:1px solid var(--line);border-radius:14px;background:#f8fbff;padding:0;overflow:hidden}.admin-extra-fields summary{cursor:pointer;font-weight:800;color:#40566f;padding:13px 15px;list-style:none}.admin-extra-fields summary::-webkit-details-marker{display:none}.admin-extra-fields summary::after{content:'＋';float:right;color:var(--blue)}.admin-extra-fields[open] summary::after{content:'−'}.admin-extra-fields>.form-grid{padding:0 14px 14px;grid-template-columns:1fr}.collection-fixed-parent{display:grid;gap:6px;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#f8fbff}.collection-fixed-parent span{font-size:13px;font-weight:800;color:#62758b}.collection-fixed-parent b{font-size:16px}.collection-manage-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.collection-manage-actions .btn{min-height:46px}
@media(max-width:900px){.collections-page-head{display:grid;grid-template-columns:1fr}.collection-top-actions{justify-content:flex-start;max-width:none;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.collection-top-actions .btn{width:100%}}
@media(max-width:600px){.collection-top-actions{grid-template-columns:1fr}.collection-choice-row{grid-template-columns:minmax(0,1fr) 36px}.collection-manage-actions{grid-template-columns:1fr}.collection-word-tools{align-items:stretch;flex-direction:column}.collection-word-tools small{align-self:flex-end}}


/* v24.14 — Student So‘zlar view restored to the v24.3 layout only.
   Admin To‘plamlar and all post-v24.3 functionality remain unchanged. */
body.student-app .phase6-word-list .phase6-word-text{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) 36px!important;
  align-items:center!important;
  gap:clamp(4px,1.3vw,8px)!important;
  width:100%!important;
  min-width:0!important;
}
body.student-app .phase6-word-list .phase6-word-text b.phase6-word-ko,
body.student-app .phase6-word-list .phase6-word-text span.phase6-word-uz{
  min-width:0!important;
  max-width:100%!important;
  font-family:var(--app-font)!important;
  font-weight:650!important;
  line-height:1.35!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-align:left!important;
}
body.student-app .phase6-word-list .phase6-word-text b.phase6-word-ko{font-size:clamp(15px,2.6vw,19px)!important}
body.student-app .phase6-word-list .phase6-word-text span.phase6-word-uz{font-size:clamp(14px,2.45vw,17px)!important;color:var(--student-muted)!important}
body.student-app .phase6-word-list .phase6-word-audio{display:grid!important;place-items:center!important;min-width:0!important}
body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn{
  width:36px!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--student-line)!important;
  border-radius:12px!important;
  background:var(--student-surface-strong)!important;
  color:var(--student-blue)!important;
  box-shadow:var(--student-shadow-soft)!important;
}
body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn .control-3d-icon{
  width:26px!important;
  height:26px!important;
  filter:none!important;
}
body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn:hover,
body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn.playing{
  background:color-mix(in srgb,var(--student-surface-strong) 88%,var(--student-blue) 12%)!important;
  border-color:color-mix(in srgb,var(--student-blue) 42%,var(--student-line))!important;
  box-shadow:var(--student-shadow-soft)!important;
}
html[data-theme="dark"] body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn{
  background:var(--student-surface-strong)!important;
  border-color:var(--student-line)!important;
  color:var(--student-blue)!important;
  box-shadow:var(--student-shadow-soft)!important;
}
@media(max-width:640px){
  body.student-app .phase6-word-list .phase6-word-row{grid-template-columns:24px minmax(0,1fr)!important;gap:6px!important;padding:11px 7px!important}
  body.student-app .phase6-word-list .phase6-word-text{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr) 34px!important;gap:4px!important}
  body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn{width:34px!important;height:34px!important}
  body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn .control-3d-icon{width:24px!important;height:24px!important}
}
@media(max-width:390px){
  body.student-app .phase6-word-list .phase6-word-text{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px!important;gap:3px!important}
  body.student-app .phase6-word-list .phase6-word-text b.phase6-word-ko{font-size:14px!important}
  body.student-app .phase6-word-list .phase6-word-text span.phase6-word-uz{font-size:13px!important}
  body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn{width:32px!important;height:32px!important}
  body.student-app .phase6-word-list .phase6-word-audio .word-audio-btn .control-3d-icon{width:22px!important;height:22px!important}
}


/* v24.15 — Lug‘at/qidiruvni tiklash. v24.3 word-row layoutiga tegmaydi. */
body.student-app .words-dictionary-tools{display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:16px!important;width:100%!important}
body.student-app .words-dictionary-search{display:flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto!important;min-width:0!important;height:48px!important}
body.student-app .words-dictionary-search input{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;min-width:0!important}
body.student-app .words-search-icon{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;flex:0 0 22px!important;font-size:21px!important;line-height:1!important;color:var(--student-blue)!important;font-weight:800!important}
@media(max-width:760px){body.student-app .words-dictionary-tools{align-items:stretch!important;flex-direction:column!important}.words-dictionary-tools .words-direction{width:100%!important}}

/* v24.17 — reliable dictionary search magnifier (no emoji/SVG/asset dependency) */
body.student-app .words-search-icon{
  position:relative!important;
  display:inline-block!important;
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  color:var(--student-blue)!important;
  overflow:visible!important;
}
body.student-app .words-search-icon > svg{display:none!important}
body.student-app .words-search-icon::before{
  content:"";
  position:absolute;
  width:11px;
  height:11px;
  left:2px;
  top:2px;
  border:2.25px solid currentColor;
  border-radius:50%;
  box-sizing:border-box;
}
body.student-app .words-search-icon::after{
  content:"";
  position:absolute;
  width:8px;
  height:2.25px;
  left:12px;
  top:14px;
  border-radius:999px;
  background:currentColor;
  transform:rotate(45deg);
  transform-origin:left center;
}
html[data-theme="dark"] body.student-app .words-search-icon{
  color:#63d7ff!important;
}

/* v24.18 — Main-page dictionary launcher (always-visible magnifier) */
body.student-app .daily-plan-head{
  align-items:flex-start;
}
body.student-app .daily-plan-head-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap;
}
body.student-app .student-dictionary-launch{
  min-height:42px;
  padding:9px 13px;
  border:1px solid rgba(42,133,223,.30);
  border-radius:14px;
  background:linear-gradient(145deg,#eef8ff,#dff1ff);
  color:#0969a9;
  box-shadow:0 7px 18px rgba(36,111,174,.14),inset 0 1px 0 rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
body.student-app .student-dictionary-launch:hover{
  transform:translateY(-1px);
  filter:brightness(1.015);
  box-shadow:0 9px 22px rgba(36,111,174,.18),inset 0 1px 0 rgba(255,255,255,.92);
}
body.student-app .student-dictionary-launch:active{
  transform:translateY(1px) scale(.985);
}
body.student-app .dictionary-launch-icon{
  width:20px;
  height:20px;
  display:block;
  flex:0 0 20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html[data-theme="dark"] body.student-app .student-dictionary-launch{
  border-color:rgba(94,195,255,.34);
  background:linear-gradient(145deg,rgba(38,79,132,.96),rgba(28,47,87,.96));
  color:#86d8ff;
  box-shadow:0 8px 22px rgba(0,0,0,.30),0 0 18px rgba(61,183,255,.10),inset 0 1px 0 rgba(255,255,255,.08);
}

body.student-app .student-dictionary-modal{display:grid;gap:14px}
body.student-app .student-dictionary-title{display:flex;align-items:center;gap:12px}
body.student-app .student-dictionary-title h2{margin:0}
body.student-app .student-dictionary-title p{margin:3px 0 0}
body.student-app .student-dictionary-title-icon{
  width:46px;height:46px;flex:0 0 46px;border-radius:15px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#e8f6ff,#d9efff);
  color:#0875b9;
  box-shadow:var(--student-shadow-soft);
}
body.student-app .student-dictionary-title-icon .dictionary-launch-icon{width:24px;height:24px}
body.student-app .student-dictionary-search{
  min-height:50px;
  width:100%;
  border:1px solid var(--student-line);
  border-radius:16px;
  background:var(--student-surface-strong);
  box-shadow:var(--student-shadow-soft);
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:9px;
  padding:0 14px;
}
body.student-app .student-dictionary-input-icon{color:var(--student-blue);display:grid;place-items:center}
body.student-app .student-dictionary-input-icon .dictionary-launch-icon{width:20px;height:20px}
body.student-app .student-dictionary-search input{
  min-width:0;width:100%;height:48px;border:0!important;outline:0!important;background:transparent!important;
  color:var(--student-text)!important;padding:0!important;box-shadow:none!important;font-size:16px;
}
body.student-app .student-dictionary-search input::placeholder{color:var(--student-muted)}
body.student-app .student-dictionary-status{min-height:18px;color:var(--student-muted);font-size:12.5px;padding:0 2px}
body.student-app .student-dictionary-results{display:grid;gap:8px;max-height:min(52vh,440px);overflow:auto;padding:2px}
body.student-app .student-dictionary-row{
  display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:8px;
  min-height:58px;padding:10px 12px;border:1px solid var(--student-line);border-radius:15px;
  background:var(--student-surface-strong);box-shadow:0 4px 12px rgba(31,65,105,.05);
}
body.student-app .student-dictionary-side{min-width:0;display:flex;align-items:center;gap:7px}
body.student-app .student-dictionary-side.ko{justify-content:flex-end;text-align:right}
body.student-app .student-dictionary-side.uz{justify-content:flex-start;text-align:left}
body.student-app .student-dictionary-side b,
body.student-app .student-dictionary-side span{overflow-wrap:anywhere}
body.student-app .student-dictionary-arrow{text-align:center;color:var(--student-muted);font-weight:800}
body.student-app .student-dictionary-row .dictionary-audio{flex:0 0 auto}
body.student-app .student-dictionary-empty{
  display:grid;gap:5px;text-align:center;padding:24px 16px;border:1px dashed var(--student-line);border-radius:16px;color:var(--student-muted)
}
body.student-app .student-dictionary-empty b{color:var(--student-text)}
html[data-theme="dark"] body.student-app .student-dictionary-title-icon{
  background:linear-gradient(145deg,rgba(41,92,143,.92),rgba(32,54,99,.92));color:#8ad9ff;
}
html[data-theme="dark"] body.student-app .student-dictionary-row{box-shadow:0 5px 14px rgba(0,0,0,.20)}

@media(max-width:640px){
  body.student-app .daily-plan-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
  body.student-app .daily-plan-head-actions{display:grid;justify-items:end;gap:7px}
  body.student-app .student-dictionary-launch{min-height:40px;padding:8px 11px;border-radius:13px}
  body.student-app .daily-plan-date{margin:0}
}
@media(max-width:390px){
  body.student-app .student-dictionary-launch{font-size:12px;padding:7px 9px}
  body.student-app .student-dictionary-launch .dictionary-launch-icon{width:18px;height:18px;flex-basis:18px}
  body.student-app .student-dictionary-row{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:5px;padding:9px 8px}
}


/* v24.19 — Dictionary launcher beside student name in the top-right header area */
body.student-app .student-profile-identity{
  width:100%;
}
body.student-app .student-dictionary-header-btn{
  margin-left:auto;
  min-width:42px;
  min-height:42px;
  padding:8px 11px;
  border:1px solid rgba(42,133,223,.30);
  border-radius:14px;
  background:linear-gradient(145deg,#eef8ff,#dff1ff);
  color:#0969a9;
  box-shadow:0 7px 18px rgba(36,111,174,.14),inset 0 1px 0 rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex:0 0 auto;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
body.student-app .student-dictionary-header-btn[hidden]{display:none!important}
body.student-app .student-dictionary-header-btn .dictionary-launch-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
}
body.student-app .student-dictionary-header-btn:hover{transform:translateY(-1px)}
body.student-app .student-dictionary-header-btn:active{transform:translateY(1px) scale(.985)}
html[data-theme="dark"] body.student-app .student-dictionary-header-btn{
  border-color:rgba(94,195,255,.34);
  background:linear-gradient(145deg,rgba(38,79,132,.96),rgba(28,47,87,.96));
  color:#86d8ff;
  box-shadow:0 8px 22px rgba(0,0,0,.30),0 0 18px rgba(61,183,255,.10),inset 0 1px 0 rgba(255,255,255,.08);
}
@media(max-width:640px){
  body.student-app .student-header-name{max-width:calc(100vw - 170px)!important}
  body.student-app .student-dictionary-header-btn{min-width:40px;min-height:40px;padding:8px 9px}
  body.student-app .student-dictionary-header-btn span{display:none}
}


/* v24.20 — starred difficult words, faster flashcard warm-up, mobile keyboard assist */
body.student-app.student-name-visible .student-profile-identity{
  width:100%!important;
  max-width:100%!important;
}
body.student-app .student-dictionary-header-btn{
  margin-left:auto!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:8px!important;
  border-radius:14px!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 44px!important;
}
body.student-app .student-dictionary-header-btn .control-3d-icon{
  width:27px!important;
  height:27px!important;
  filter:saturate(1.18) contrast(1.08) brightness(.96);
}
@media(max-width:640px){
  body.student-app .student-header-name{max-width:calc(100vw - 150px)!important}
  body.student-app .student-dictionary-header-btn{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;flex-basis:42px!important}
  body.student-app .student-dictionary-header-btn .control-3d-icon{width:25px!important;height:25px!important}
}

body.student-app .practice-methods-head,
body.student-app .panel-title-with-star{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body.student-app .starred-words-launch{
  appearance:none;
  width:46px;
  min-width:46px;
  height:46px;
  min-height:46px;
  padding:8px;
  border:1px solid rgba(226,161,24,.36);
  border-radius:15px;
  background:linear-gradient(145deg,#fffaf0,#fff0c8);
  box-shadow:0 7px 18px rgba(190,125,12,.14),inset 0 1px 0 rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
body.student-app .starred-words-launch.compact{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:13px;padding:7px}
body.student-app .starred-words-launch .control-3d-icon{width:27px;height:27px;filter:saturate(1.2) contrast(1.05)}
body.student-app .starred-words-launch:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(190,125,12,.19),0 0 0 3px rgba(247,190,48,.07)}
body.student-app .starred-words-launch:active{transform:translateY(1px) scale(.97)}
html[data-theme="dark"] body.student-app .starred-words-launch{
  border-color:rgba(251,191,36,.42);
  background:linear-gradient(145deg,rgba(132,87,14,.74),rgba(75,48,13,.9));
  box-shadow:0 8px 20px rgba(0,0,0,.34),0 0 15px rgba(251,191,36,.12);
}
body.student-app .starred-practice-card{margin-bottom:14px}
body.student-app .starred-empty-card{text-align:center;padding:30px 18px}
body.student-app .starred-empty-icon{display:grid;place-items:center;margin-bottom:8px}
body.student-app .starred-empty-icon .heading-3d-icon{width:58px;height:58px;opacity:.78}

body.student-app .flip-card{position:relative}
body.student-app .flash-star-btn{
  position:absolute;
  z-index:8;
  top:14px;
  left:14px;
  width:44px;
  height:44px;
  padding:8px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:14px;
  background:rgba(250,252,255,.88);
  box-shadow:0 6px 16px rgba(42,67,96,.10),inset 0 1px 0 rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:.70;
  filter:grayscale(.84) saturate(.55);
  transition:transform .18s ease,opacity .18s ease,filter .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
  touch-action:manipulation;
}
body.student-app .flash-star-btn .flash-star-icon{width:27px;height:27px;pointer-events:none}
body.student-app .flash-star-btn:hover{opacity:.94;transform:translateY(-1px)}
body.student-app .flash-star-btn.is-starred{
  opacity:1;
  filter:none;
  border-color:rgba(245,181,29,.54);
  background:linear-gradient(145deg,#fff9d9,#ffe997);
  box-shadow:0 7px 19px rgba(220,151,13,.22),0 0 16px rgba(255,199,43,.17),inset 0 1px 0 rgba(255,255,255,.96);
}
body.student-app .flash-star-btn.star-pop{animation:flashStarPop .34s ease}
@keyframes flashStarPop{0%{transform:scale(.88)}48%{transform:scale(1.15) rotate(-5deg)}100%{transform:scale(1)}}
html[data-theme="dark"] body.student-app .flash-star-btn{
  background:rgba(25,38,63,.90);border-color:rgba(160,178,204,.25);box-shadow:0 7px 18px rgba(0,0,0,.32);opacity:.72
}
html[data-theme="dark"] body.student-app .flash-star-btn.is-starred{
  background:linear-gradient(145deg,rgba(180,119,9,.82),rgba(92,58,8,.95));border-color:rgba(251,191,36,.58);opacity:1;box-shadow:0 8px 20px rgba(0,0,0,.34),0 0 16px rgba(251,191,36,.18)
}
@media(max-width:640px){
  body.student-app .flash-star-btn{top:11px;left:11px;width:40px;height:40px;border-radius:12px;padding:7px}
  body.student-app .flash-star-btn .flash-star-icon{width:25px;height:25px}
}

body.student-app .matching-card.match-success-flash{
  border-color:#31c779!important;
  background:#e9fff3!important;
  color:#067647!important;
  box-shadow:0 0 0 4px rgba(49,199,121,.13),0 10px 25px rgba(34,175,105,.18)!important;
  animation:matchingSuccessPulse .43s ease;
}
@keyframes matchingSuccessPulse{0%{transform:scale(.98)}48%{transform:scale(1.025)}100%{transform:scale(1)}}
html[data-theme="dark"] body.student-app .matching-card.match-success-flash{background:rgba(23,105,70,.72)!important;color:#c8ffe2!important;border-color:#45e59a!important}
body.student-app .matching-card.matched{transition:opacity .22s ease,transform .22s ease!important}

body.mini-keyboard-open .typing-wrap{
  padding-bottom:calc(var(--mini-keyboard-height,0px) + 24px)!important;
}
body.mini-keyboard-open .typing-form{
  scroll-margin-bottom:calc(var(--mini-keyboard-height,0px) + 18px);
}

/* Karnay va sozlama ikonkalari yanada aniqroq. */
body.student-app .word-audio-btn{
  border-color:rgba(24,119,203,.46)!important;
  background:linear-gradient(145deg,#eef8ff,#dcefff)!important;
  box-shadow:0 7px 17px rgba(24,119,203,.16),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
body.student-app .word-audio-btn .control-3d-icon{
  filter:saturate(1.9) contrast(1.24) brightness(.83)!important;
}
body.student-app .flash-settings-btn{
  border-color:rgba(207,111,9,.48)!important;
  background:linear-gradient(145deg,#fff5dd,#ffe1b5)!important;
  box-shadow:0 7px 18px rgba(196,100,10,.17),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
body.student-app .flash-settings-btn .control-3d-icon{
  filter:hue-rotate(325deg) saturate(2.05) contrast(1.24) brightness(.80)!important;
}
html[data-theme="dark"] body.student-app .word-audio-btn .control-3d-icon,
html[data-theme="dark"] body.student-app .flash-settings-btn .control-3d-icon{
  filter:saturate(1.75) contrast(1.2) brightness(1.18)!important;
}

/* v24.22 — Mashq usullari yulduzchasi: sarlavha bilan bir qatorda, qat'iy o'ngda. */
body.student-app .page-head.practice-methods-head{
  display:block!important;
  width:100%!important;
}
body.student-app .practice-methods-title-row{
  width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
body.student-app .practice-methods-title-row>h1{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
}
body.student-app .practice-methods-title-row>.starred-words-launch{
  flex:0 0 46px!important;
  margin:0 0 0 auto!important;
  align-self:center!important;
}
@media(max-width:600px){
  body.student-app .practice-methods-title-row{gap:10px!important}
  body.student-app .practice-methods-title-row>.starred-words-launch{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    flex-basis:44px!important;
  }
}

/* v24.22 — Qiyin so'zlar ro'yxatidan yulduzchani olib tashlash. */
body.student-app .phase6-word-list.starred-manage-list .phase6-word-row.has-star-control{
  grid-template-columns:34px minmax(0,1fr) 44px!important;
  position:relative;
  overflow:hidden;
  transform-origin:center;
  transition:opacity .30s ease,transform .34s cubic-bezier(.22,.8,.28,1),max-height .36s ease,padding .30s ease,border-color .24s ease,background .24s ease;
  max-height:180px;
}
body.student-app .starred-row-toggle{
  appearance:none;
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  padding:7px;
  border-radius:13px;
  border:1px solid rgba(230,166,28,.48);
  background:linear-gradient(145deg,#fff8d8,#ffe78b);
  box-shadow:0 7px 17px rgba(202,136,10,.17),0 0 12px rgba(255,198,33,.12),inset 0 1px 0 rgba(255,255,255,.95);
  display:grid;
  place-items:center;
  justify-self:end;
  cursor:pointer;
  opacity:1;
  filter:none;
  transition:transform .18s ease,opacity .18s ease,filter .18s ease,box-shadow .18s ease;
  touch-action:manipulation;
}
body.student-app .starred-row-toggle .control-3d-icon{width:27px;height:27px;pointer-events:none}
body.student-app .starred-row-toggle:active{transform:scale(.92)}
body.student-app .starred-row-toggle.star-unpinning{
  animation:starRowUnpin .42s ease both;
  pointer-events:none;
}
body.student-app .phase6-word-row.starred-row-pending{background:rgba(255,248,220,.72)!important}
body.student-app .phase6-word-row.starred-row-removing{
  opacity:0!important;
  transform:translateX(30px) scale(.965)!important;
  max-height:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  border-color:transparent!important;
  pointer-events:none!important;
}
@keyframes starRowUnpin{
  0%{transform:scale(1) rotate(0deg);filter:none;opacity:1}
  36%{transform:scale(1.13) rotate(-7deg);filter:brightness(1.16) saturate(1.2);opacity:1}
  100%{transform:scale(.76) rotate(8deg);filter:grayscale(.72);opacity:.28}
}
body.student-app .starred-section-leaving{opacity:0;transform:translateY(-6px);transition:opacity .22s ease,transform .22s ease}
body.student-app .starred-empty-enter{animation:starredEmptyEnter .34s cubic-bezier(.22,.8,.28,1) both}
@keyframes starredEmptyEnter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
html[data-theme="dark"] body.student-app .starred-row-toggle{
  border-color:rgba(251,191,36,.52);
  background:linear-gradient(145deg,rgba(175,116,10,.84),rgba(89,57,8,.96));
  box-shadow:0 8px 18px rgba(0,0,0,.34),0 0 14px rgba(251,191,36,.15);
}
html[data-theme="dark"] body.student-app .phase6-word-row.starred-row-pending{background:rgba(104,73,18,.42)!important}
@media(max-width:760px){
  body.student-app .phase6-word-list.starred-manage-list .phase6-word-row.has-star-control{
    grid-template-columns:24px minmax(0,1fr) 40px!important;
    gap:5px!important;
  }
  body.student-app .starred-row-toggle{
    width:38px;min-width:38px;height:38px;min-height:38px;border-radius:12px;padding:6px;
  }
  body.student-app .starred-row-toggle .control-3d-icon{width:25px;height:25px}
}
@media(max-width:390px){
  body.student-app .phase6-word-list.starred-manage-list .phase6-word-row.has-star-control{
    grid-template-columns:22px minmax(0,1fr) 36px!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
  body.student-app .starred-row-toggle{width:34px;min-width:34px;height:34px;min-height:34px;padding:5px}
  body.student-app .starred-row-toggle .control-3d-icon{width:23px;height:23px}
}

/* v24.23 — boshqariladigan audio preload: yengil navbat + aniq tayyorlik holati. */
body.student-app .audio-load-capsule{
  width:max-content;
  max-width:100%;
  min-height:34px;
  margin:4px 0 14px;
  padding:7px 11px;
  border:1px solid rgba(42,133,211,.25);
  border-radius:999px;
  background:linear-gradient(145deg,rgba(238,248,255,.96),rgba(223,241,255,.92));
  box-shadow:0 5px 14px rgba(32,105,166,.09),inset 0 1px 0 rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#315d80;
  transition:opacity .22s ease,transform .22s ease,border-color .22s ease,background .22s ease;
}
body.student-app .audio-load-copy{display:flex;align-items:baseline;gap:6px;min-width:0}
body.student-app .audio-load-copy b{font-size:12px;line-height:1.2;white-space:nowrap}
body.student-app .audio-load-copy small{font-size:11px;line-height:1.2;color:#64809a;white-space:nowrap}
body.student-app .audio-load-spinner{
  width:15px;height:15px;flex:0 0 15px;border-radius:50%;
  border:2px solid rgba(32,123,200,.18);border-top-color:#2583cf;
  animation:audioLoadSpin .78s linear infinite;
}
body.student-app .audio-load-capsule.is-ready{border-color:rgba(27,164,101,.30);background:linear-gradient(145deg,#effcf5,#e4f8ee);color:#087a49;transform:translateY(-1px)}
body.student-app .audio-load-capsule.is-ready .audio-load-copy small{color:#438267}
body.student-app .audio-load-capsule.is-ready .audio-load-spinner{border-color:rgba(27,164,101,.22);border-top-color:#1ba465;animation:none}
body.student-app .audio-load-capsule.has-error{border-color:rgba(220,143,25,.30);background:linear-gradient(145deg,#fff9ea,#fff1cc);color:#8b5a0a}
body.student-app .flashcard-study-wrap>.audio-load-capsule{margin:0 auto 10px;display:flex}
@keyframes audioLoadSpin{to{transform:rotate(360deg)}}

body.student-app .word-audio-btn.audio-loading:disabled{
  opacity:.48!important;
  cursor:wait!important;
  pointer-events:none!important;
  filter:saturate(.72)!important;
  box-shadow:0 3px 9px rgba(31,65,105,.07)!important;
}
body.student-app .word-audio-btn.audio-loading:disabled .control-3d-icon{
  opacity:.72;
  animation:audioIconBreath 1.25s ease-in-out infinite;
}
body.student-app .word-audio-btn.audio-ready{
  opacity:1!important;
  transition:transform .15s ease,box-shadow .15s ease,background .18s ease,opacity .18s ease!important;
}
body.student-app .word-audio-btn.audio-error{
  opacity:.88!important;
  border-color:rgba(210,132,25,.46)!important;
  background:linear-gradient(145deg,#fff7e8,#ffebc8)!important;
}
@keyframes audioIconBreath{0%,100%{transform:scale(.94);opacity:.58}50%{transform:scale(1);opacity:.86}}
html[data-theme="dark"] body.student-app .audio-load-capsule{background:linear-gradient(145deg,rgba(28,55,85,.96),rgba(20,42,68,.96));border-color:rgba(94,169,230,.26);color:#c8e8ff;box-shadow:0 6px 16px rgba(0,0,0,.22)}
html[data-theme="dark"] body.student-app .audio-load-copy small{color:#8eb4d2}
html[data-theme="dark"] body.student-app .audio-load-capsule.has-error{background:linear-gradient(145deg,rgba(91,65,19,.95),rgba(65,45,13,.96));border-color:rgba(238,177,61,.31);color:#ffe0a1}
html[data-theme="dark"] body.student-app .word-audio-btn.audio-error{background:linear-gradient(145deg,rgba(99,67,20,.96),rgba(68,45,14,.96))!important;border-color:rgba(238,177,61,.42)!important}
@media(max-width:600px){
  body.student-app .audio-load-capsule{min-height:32px;padding:6px 10px;margin-bottom:11px}
  body.student-app .audio-load-copy b{font-size:11.5px}
  body.student-app .audio-load-copy small{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  body.student-app .audio-load-spinner,body.student-app .word-audio-btn.audio-loading:disabled .control-3d-icon{animation:none!important}
}

/* v24.24 — Moslashtirish: touch qurilmalarda ortiqcha hover/paint ishini kamaytirish. */
@media (hover:none), (pointer:coarse){
  body.student-app .matching-card{
    transition:transform .14s ease,border-color .14s ease,background .14s ease,opacity .18s ease!important;
  }
  body.student-app .matching-card:hover{
    transform:none!important;
  }
}

/* v24.25 — Quiz: touch qurilmada oldingi variantning sticky hover/focus ramkasini qoldirmaslik. */
@media (hover:none), (pointer:coarse){
  body.student-app .quiz-option{
    -webkit-tap-highlight-color:transparent;
  }
  body.student-app .quiz-option:hover:not(.is-correct):not(.is-wrong){
    transform:none!important;
    background:linear-gradient(145deg,#fff,#f5f9ff)!important;
    border-color:rgba(112,155,216,.22)!important;
    box-shadow:0 8px 18px rgba(48,97,158,.11),0 2px 5px rgba(48,97,158,.06),inset 0 1px 0 rgba(255,255,255,.95)!important;
  }
  body.student-app .quiz-option:focus{
    outline:none!important;
  }
  html[data-theme="dark"] body.student-app .quiz-option:hover:not(.is-correct):not(.is-wrong){
    background:linear-gradient(145deg,#0d2142,#07172f)!important;
    border-color:rgba(103,150,225,.27)!important;
    color:#f8fbff!important;
    box-shadow:0 9px 20px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05)!important;
  }
}

/* vNext performance: Flashcard + Variantli test uchun yengil mobil animatsiyalar */
.flip-card{
  transform:translate3d(var(--swipe-x),var(--swipe-y),0) rotateZ(var(--swipe-rotate)) scale(var(--swipe-scale));
  will-change:auto;
}
.flip-card.is-dragging,.flip-card.is-swipe-out,.flip-card.is-enter-from-right,.flip-card.is-enter-from-left{will-change:transform,opacity}
.flip-card.is-dragging{filter:none}
.flip-card-inner{
  transition:transform .42s cubic-bezier(.22,.72,.24,1);
  will-change:transform;
}
.flip-card.is-enter-from-right{transform:translate3d(42px,0,0) rotateZ(1.5deg) scale(.992);opacity:.62}
.flip-card.is-enter-from-left{transform:translate3d(-42px,0,0) rotateZ(-1.5deg) scale(.992);opacity:.62}
.quiz-card{contain:layout style}
.quiz-option{will-change:auto}

@media (hover:none),(pointer:coarse){
  .flash-nav{
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    background:rgba(255,255,255,.72);
    box-shadow:0 5px 14px rgba(31,65,105,.08);
  }
  .flash-nav:hover{box-shadow:0 5px 14px rgba(31,65,105,.08)}
  body.student-app .quiz-option{
    transition:border-color .12s ease,background-color .12s ease,opacity .12s ease!important;
    box-shadow:none!important;
  }
  body.student-app .quiz-option:hover{box-shadow:none!important;transform:none!important}
  body.student-app .quiz-option.is-correct,body.student-app .quiz-option.is-wrong{box-shadow:none!important}
  html[data-theme="dark"] body.student-app .quiz-option:hover:not(.is-correct):not(.is-wrong){box-shadow:none!important}
}

/* =========================================================
   v24.26 — Responsive consistency hardening
   Faqat joylashuv/touch ergonomikasini barqarorlashtiradi.
   Mashq mantiqi va JS funksiyalariga tegmaydi.
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
body.student-app{width:100%;min-width:0}
body.student-app .shell,
body.student-app .content,
body.student-app .content>*,
body.student-app .study-wrap,
body.student-app .quiz-wrap,
body.student-app .matching-wrap,
body.student-app .typing-wrap,
body.student-app .anagram-wrap{min-width:0}

/* Barcha asosiy bosiladigan elementlarda bir xil touch balandligi. */
body.student-app button,
body.student-app .btn,
body.student-app .nav{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
body.student-app .btn{min-height:44px}

/* Header: ekran eni o‘zgarsa ham avatar va navigatsiya tugmalari siljimaydi. */
body.student-app .student-topbar{
  width:100%;
  min-width:0;
}
body.student-app .student-profile-identity,
body.student-app .student-top-actions{min-width:0}
body.student-app .student-header-nav-btn{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Mashq sarlavhasi: sarlavha va hisoblagich kapsulasi bir-birini bosmaydi. */
body.student-app .practice-page-head{
  width:100%;
  min-width:0;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
body.student-app .practice-page-head>div:first-child{min-width:0}
body.student-app .practice-page-head h1{min-width:0;overflow-wrap:break-word}
body.student-app .practice-page-badge{
  flex:0 0 auto;
  width:auto;
  max-width:min(46vw,160px);
  min-width:0;
}

/* Mashq tugmalari bir xil ritmda. */
body.student-app .study-actions,
body.student-app .phase6-method-visual-grid{
  align-items:stretch;
}
body.student-app .study-actions .btn,
body.student-app .phase6-method-visual-grid .btn{
  width:100%;
  min-width:0;
  height:100%;
}
body.student-app .anagram-actions .btn{min-width:0}

/* Variantli test: uzun matnlar tugma o‘lchamini buzmaydi. */
body.student-app .quiz-card,
body.student-app .quiz-options,
body.student-app .quiz-option,
body.student-app .quiz-option-label{min-width:0}
body.student-app .quiz-option-label{
  overflow-wrap:break-word;
  word-break:keep-all;
}
body.student-app .quiz-question-row{min-width:0}
body.student-app .quiz-feedback-stack{min-width:0}

/* Moslashtirish: ikki ustun kengligi har xil telefonda ham teng qoladi. */
body.student-app .matching-board.matching-board-split{
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
}
body.student-app .matching-column,
body.student-app .matching-column-cards,
body.student-app .matching-card{min-width:0}
body.student-app .matching-card span{
  max-width:100%;
  overflow-wrap:break-word;
  word-break:keep-all;
}

/* Yozib javob berish: klaviatura ochilganda forma ekran kengligidan chiqmaydi. */
body.student-app .typing-card,
body.student-app .typing-form,
body.student-app .typing-answer-input-shell{min-width:0;max-width:100%}

@media(max-width:900px){
  body.student-app .content{
    width:100%;
    padding-left:max(14px,env(safe-area-inset-left));
    padding-right:max(14px,env(safe-area-inset-right));
  }
  body.student-app .sidebar{
    width:100%;
    left:0;
    right:0;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  body.student-app .sidebar .nav{
    width:100%;
    min-width:0;
    min-height:48px;
    padding-inline:6px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

@media(max-width:640px){
  body.student-app .student-topbar{
    grid-template-columns:44px minmax(0,1fr);
    column-gap:8px;
    padding-left:max(10px,env(safe-area-inset-left));
    padding-right:max(10px,env(safe-area-inset-right));
  }
  body.student-app .student-top-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    width:100%;
  }
  body.student-app .student-header-nav-btn{
    width:100%;
    height:44px;
    min-height:44px;
    padding-inline:7px!important;
    font-size:clamp(12px,3.45vw,14px);
  }

  body.student-app .practice-page-head{gap:8px}
  body.student-app .practice-page-head h1{font-size:clamp(22px,7.2vw,30px)}
  body.student-app .practice-page-badge{
    width:auto!important;
    max-width:44vw;
    padding:8px 10px;
    align-items:flex-end!important;
    text-align:right;
  }
  body.student-app .practice-page-badge span{text-align:right!important}

  body.student-app .quiz-card,
  body.student-app .typing-card,
  body.student-app .anagram-card{width:100%;padding-left:14px;padding-right:14px}
  body.student-app .quiz-options{gap:10px}
  body.student-app .quiz-option{min-height:58px;padding:12px 13px;gap:10px}
  body.student-app .quiz-option-mark{width:26px;height:26px;flex-basis:26px}

  body.student-app .matching-board.matching-board-split{gap:8px}
  body.student-app .matching-column{width:100%;padding:7px}
  body.student-app .matching-column-cards{gap:7px}

  body.student-app .anagram-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
  }
  body.student-app .anagram-actions .btn{width:100%}
  body.student-app .anagram-actions .btn:last-child{grid-column:1/-1}
}

@media(max-width:420px){
  body.student-app .content{
    padding-left:max(10px,env(safe-area-inset-left));
    padding-right:max(10px,env(safe-area-inset-right));
  }
  body.student-app .student-topbar{
    grid-template-columns:42px minmax(0,1fr);
    column-gap:6px;
    padding-left:max(8px,env(safe-area-inset-left));
    padding-right:max(8px,env(safe-area-inset-right));
  }
  body.student-app .student-top-actions{gap:5px}
  body.student-app .student-header-nav-btn{padding-inline:5px!important;font-size:12px}

  body.student-app .practice-page-head{gap:6px}
  body.student-app .practice-page-head h1{font-size:clamp(21px,6.8vw,26px)}
  body.student-app .practice-page-badge{max-width:45vw;padding:7px 8px}
  body.student-app .practice-page-badge b{font-size:14px}
  body.student-app .practice-page-badge span{font-size:10px}

  body.student-app .study-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.student-app .study-actions .btn{min-height:44px;padding-inline:8px}
  body.student-app .phase6-method-visual-grid{grid-template-columns:1fr!important}

  body.student-app .quiz-question-row{gap:6px}
  body.student-app .quiz-option{padding:11px 10px}
  body.student-app .quiz-option-label{font-size:clamp(17px,5.2vw,20px)}

  body.student-app .matching-board.matching-board-split{gap:6px}
  body.student-app .matching-column{padding:6px}
  body.student-app .matching-board-split .matching-card{padding:8px 5px}
}

@media(max-width:350px){
  body.student-app .student-topbar{grid-template-columns:40px minmax(0,1fr);column-gap:5px}
  body.student-app .student-top-actions{gap:4px}
  body.student-app .student-header-nav-btn{font-size:11px;padding-inline:4px!important}
  body.student-app .practice-page-badge{max-width:43vw}
  body.student-app .matching-board.matching-board-split{gap:5px}
}

/* Group collections modal: keep header/actions fixed and make only the collection list scrollable. */
.modal:has(.group-collection-modal){
  overflow:hidden;
  max-height:calc(100dvh - 40px);
}
.group-collection-modal{
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:calc(100dvh - 84px);
}
.group-collection-modal-head,
.group-collection-actions{
  flex:0 0 auto;
}
.group-collection-tree{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding-right:6px;
}
.group-collection-actions{
  position:relative;
  z-index:2;
  background:#fff;
}
@media(max-width:640px){
  .modal:has(.group-collection-modal){max-height:calc(100dvh - 24px)}
  .group-collection-modal{max-height:calc(100dvh - 68px)}
  .group-collection-tree{max-height:none}
}

/* Group collection access v2: all collections at the top, enabled collection topics below. */
.group-collection-picker-wrap{flex:0 0 auto;display:grid;gap:8px}
.group-collection-picker-title{font-size:13px;font-weight:800;color:var(--muted);padding:0 2px}
.group-collection-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.group-collection-picker-item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .18s ease,background .18s ease,opacity .18s ease}
.group-collection-picker-item.is-enabled{background:#f4f9ff;border-color:#bcd9f7}
.group-collection-picker-item.is-disabled{opacity:.76}
.group-collection-picker-copy{display:grid;gap:2px;min-width:0}
.group-collection-picker-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.group-collection-picker-copy small{color:var(--muted);font-size:12px}
.group-collection-details-scroll{flex:1 1 auto;min-height:0;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-gutter:stable;padding-right:8px}
.group-collection-details{display:grid;gap:12px}
.group-collection-detail{display:none;border:1px solid var(--line);border-radius:18px;background:#f8fbff;overflow:hidden}
.group-collection-detail.is-visible{display:block}
.group-collection-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:linear-gradient(180deg,#fff,#f4f8fd);border-bottom:1px solid var(--line)}
.group-collection-detail-head>div{display:grid;gap:2px;min-width:0}.group-collection-detail-head b{font-size:16px}.group-collection-detail-head small{color:var(--muted);font-size:12px}
.group-detail-status{font-size:12px;font-weight:800;color:var(--blue);white-space:nowrap}
.group-collection-details-empty{padding:24px 14px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px;background:#fff}
.group-collection-details-empty.is-hidden{display:none}
.group-collection-details-scroll::-webkit-scrollbar{width:10px}
.group-collection-details-scroll::-webkit-scrollbar-track{background:rgba(148,163,184,.14);border-radius:999px}
.group-collection-details-scroll::-webkit-scrollbar-thumb{background:rgba(100,116,139,.48);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.group-collection-details-scroll{scrollbar-width:auto;scrollbar-color:rgba(100,116,139,.55) rgba(148,163,184,.12)}
/* The old tree is no longer used by this modal layout. */
.group-collection-modal>.group-collection-tree{display:none}
@media(max-width:640px){.group-collection-picker{grid-template-columns:1fr}.group-collection-details-scroll{padding-right:5px}.group-collection-detail-head{align-items:flex-start}}


/* Admin > O‘quvchilar: uzun o‘quvchilar jadvali uchun mustaqil vertikal scroll.
   Faqat Faol/Barcha o‘quvchilar ro‘yxatiga ta'sir qiladi. */
#studentTabActive .table-wrap,
#studentTabAll .table-wrap{
  max-height:min(62dvh,680px);
  overflow-x:auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  scrollbar-gutter:stable;
}
#studentTabActive .table thead th,
#studentTabAll .table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f1f7fd;
}
#studentTabActive .table-wrap::-webkit-scrollbar,
#studentTabAll .table-wrap::-webkit-scrollbar{
  width:10px;
  height:10px;
}
#studentTabActive .table-wrap::-webkit-scrollbar-thumb,
#studentTabAll .table-wrap::-webkit-scrollbar-thumb{
  background:#b9cadb;
  border:2px solid #fff;
  border-radius:999px;
}
#studentTabActive .table-wrap::-webkit-scrollbar-track,
#studentTabAll .table-wrap::-webkit-scrollbar-track{
  background:#eef4fa;
  border-radius:999px;
}
@media(max-height:700px){
  #studentTabActive .table-wrap,
  #studentTabAll .table-wrap{max-height:52dvh}
}


/* Admin > O‘quvchilar: asosiy sahifa vertikal scrolli.
   Jadval ichida alohida vertikal scroll yaratmaymiz; mouse wheel sahifani aylantiradi.
   Gorizontal scroll kerak bo‘lsa table-wrap o‘zida saqlanadi. */
#studentTabActive .table-wrap,
#studentTabAll .table-wrap{
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
  scrollbar-gutter:auto!important;
}
@media(max-height:700px){
  #studentTabActive .table-wrap,
  #studentTabAll .table-wrap{
    max-height:none!important;
  }
}


/* Student to‘plam kartalari — yengil Korean minimal bezak */
body.student-app .collection-showcase-card{
  min-height:132px;
  overflow:hidden;
  isolation:isolate;
  padding:22px 74px 20px 22px;
  border-color:color-mix(in srgb,var(--student-line) 72%,#67b7ff 28%);
  background:
    radial-gradient(circle at 92% 18%,rgba(64,157,255,.12),transparent 30%),
    linear-gradient(145deg,var(--student-surface-strong),color-mix(in srgb,var(--student-surface-strong) 93%,#eaf5ff 7%));
}
body.student-app .collection-showcase-card.is-open{
  box-shadow:0 14px 34px rgba(24,91,155,.12),var(--student-shadow-soft);
}
body.student-app .collection-showcase-card.is-open:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--student-line) 40%,#2d9cff 60%);
}
body.student-app .collection-showcase-copy{position:relative;z-index:2;display:grid;gap:9px}
body.student-app .collection-showcase-copy h3{margin:0;font-size:23px;letter-spacing:-.25px}
body.student-app .collection-showcase-copy p{margin:0;font-size:15px;font-weight:700}
body.student-app .collection-korean-badge{
  position:absolute;right:18px;bottom:17px;z-index:2;
  width:42px;height:42px;border-radius:15px;display:grid;place-items:center;
  font-size:21px;font-weight:900;line-height:1;color:#168cc9;
  background:rgba(255,255,255,.78);border:1px solid rgba(77,159,215,.20);
  box-shadow:0 8px 20px rgba(33,102,159,.10);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
body.student-app .collection-card-pattern{
  position:absolute;right:-22px;top:-28px;z-index:0;width:150px;height:150px;
  opacity:.34;pointer-events:none;transform:rotate(8deg);
  background:
    radial-gradient(circle at 50% 50%,transparent 0 23px,rgba(45,156,255,.12) 24px 26px,transparent 27px 41px,rgba(45,156,255,.08) 42px 44px,transparent 45px),
    repeating-conic-gradient(from 45deg,rgba(86,125,255,.08) 0 12deg,transparent 12deg 34deg);
  border-radius:50%;
}
body.student-app .collection-showcase-card::after{
  content:'';position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,#55b8ff,#7067ff);opacity:.82;
}
body.student-app .collection-showcase-card.is-locked{
  background:linear-gradient(145deg,color-mix(in srgb,var(--student-surface-strong) 96%,#eef2f7 4%),var(--student-surface-strong));
}
body.student-app .collection-showcase-card.is-locked .collection-korean-badge,
body.student-app .collection-showcase-card.is-locked .collection-card-pattern{opacity:.20}
body.student-app .collection-showcase-card.is-locked::after{background:#b8c3cf;opacity:.45}
body.student-app .collection-showcase-card .collection-lock-mark{z-index:3;right:14px;top:12px}
html[data-theme="dark"] body.student-app .collection-showcase-card{
  background:radial-gradient(circle at 92% 18%,rgba(61,151,255,.13),transparent 30%),linear-gradient(145deg,var(--student-surface-strong),rgba(255,255,255,.025));
}
html[data-theme="dark"] body.student-app .collection-korean-badge{background:rgba(255,255,255,.07);color:#73c7ff;border-color:rgba(122,196,255,.18)}
@media(max-width:480px){
  body.student-app .collection-showcase-card{min-height:124px;padding:20px 66px 18px 19px}
  body.student-app .collection-showcase-copy h3{font-size:21px}
  body.student-app .collection-korean-badge{width:38px;height:38px;right:15px;bottom:15px;font-size:19px}
}

/* Admin: to‘plam tartibini qo‘lda boshqarish */
.collection-order-manage{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;
  margin:14px 0;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:#f7fbff;
}
.collection-order-manage>div:first-child{display:grid;gap:3px;min-width:0}
.collection-order-manage b{font-size:15px}.collection-order-manage small{color:var(--muted);font-size:12px;line-height:1.35}
.collection-order-manage-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.collection-order-manage-buttons .btn{min-height:40px;padding:8px 12px}
@media(max-width:560px){.collection-order-manage{grid-template-columns:1fr}.collection-order-manage-buttons{justify-content:stretch}.collection-order-manage-buttons .btn{flex:1}}


/* =========================================================
   v24.27 — Telegram Desktop scroll hotfix
   Desktop/WebViewda mouse-wheel vertikal scroll doim ochiq qoladi.
   Mobil touch ergonomikasi avvalgi holatda saqlanadi.
   ========================================================= */
html{overflow-y:auto}
body.student-app{
  overflow-y:auto;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
}
@media (hover:hover) and (pointer:fine){
  body.student-app,
  body.student-app .shell,
  body.student-app .content{
    touch-action:auto;
  }
}
