@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) 42px 24px minmax(0,1fr) 42px;align-items:center;gap:7px;
  min-height:58px;padding:10px 10px 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}
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-audio-slot{width:42px;display:grid;place-items:center;justify-self:center}
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) 38px 18px minmax(0,1fr) 38px;gap:4px;padding:9px 7px 9px 8px}
  body.student-app .student-dictionary-audio-slot{width:38px}
}


/* 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;
  }
}


/* =========================================================
   v24.28 — unified lightweight scrolling + admin server status
   ========================================================= */
html{
  min-height:100%;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
  scroll-behavior:auto;
  -webkit-text-size-adjust:100%;
}
body{
  min-height:100vh;
  height:auto;
  overflow-x:hidden;
  overflow-y:visible;
  overscroll-behavior-y:auto;
}
.shell{
  height:auto!important;
  min-height:calc(100dvh - 68px);
  overflow:visible!important;
}
.content{
  height:auto!important;
  min-height:0;
  overflow:visible!important;
}
/* Document is the primary vertical scroller. Nested components only scroll when
   they truly need an internal viewport (modal/list/table). */
body:not(.student-app) .content,
body:not(.student-app) .shell{overscroll-behavior:auto;touch-action:auto}

body.student-app{
  height:auto!important;
  min-height:100dvh;
  overflow-y:visible!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
body.student-app .shell,
body.student-app .content{height:auto!important;overflow:visible!important;touch-action:pan-y}
body.student-app .flip-card,
body.student-app .flashcard-stage{touch-action:pan-y;overscroll-behavior:auto}
body.student-app .matching-card,
body.student-app .quiz-option,
body.student-app button{touch-action:manipulation}

/* Desktop mouse wheel must always chain to the page at nested-scroll edges. */
@media (hover:hover) and (pointer:fine){
  html,body{overflow-y:auto!important;overscroll-behavior:auto!important}
  .shell,.content{overflow-y:visible!important;overscroll-behavior:auto!important;touch-action:auto!important}
  .table-wrap,.collection-choice-list,.collection-word-table,.student-dictionary-results,
  .group-collection-tree,.group-collection-details-scroll,.phase6-group-picker-menu{
    overscroll-behavior:auto!important;
  }
}

/* Generic modals: background owns viewport scroll; dialog stays lightweight. */
.modal-bg{overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto;align-items:safe center}
.modal{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:auto;-webkit-overflow-scrolling:touch}
.modal:has(.group-collection-modal){overflow:hidden}

/* Admin long tables use page vertical scroll, preserving horizontal table scroll. */
#studentTabActive .table-wrap,#studentTabAll .table-wrap,
.admin-groups-card .table-wrap{
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
}

/* Low-end phones: avoid expensive smooth scroll/large transition chains. */
@media (prefers-reduced-motion:reduce), (update:slow){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{scroll-behavior:auto!important}
  .flip-card-inner,.matching-card,.quiz-option,.anagram-piece{transition-duration:.12s!important}
}

/* Admin server status button + on-demand dialog. */
.admin-dashboard-head{align-items:center}
.server-status-launch{margin-left:auto;white-space:nowrap}
.server-status-overlay{
  position:fixed;inset:0;z-index:120;background:rgba(15,23,42,.42);backdrop-filter:blur(3px);
  padding:20px;display:flex;align-items:center;justify-content:center;overflow-y:auto;overscroll-behavior:auto;
}
.server-status-dialog{
  width:min(1020px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 22px 70px rgba(15,23,42,.24);overflow:hidden;
}
.server-status-dialog-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fff}
.server-status-dialog-head h2,.server-status-dialog-head p{margin:0}.server-status-dialog-head p{margin-top:4px}
.server-status-close{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:12px;background:#edf3f8;color:#334155;font-size:27px;line-height:1;cursor:pointer}
.server-status-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;padding:18px 20px 20px}
.server-status-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px;color:var(--muted);font-size:13px}
.server-online-dot{color:#15803d;background:#ecfdf3;border-radius:999px;padding:6px 9px}
.server-status-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.server-status-metric{padding:15px;border-radius:16px;display:grid;gap:5px;min-width:0}
.server-status-metric>span{color:#52677f}.server-status-metric strong{font-size:24px;line-height:1.08}.server-status-metric small{color:#40566f;white-space:normal}
.server-status-metric.ok{background:#dcfce7}.server-status-metric.warning{background:#fef3c7}.server-status-metric.danger{background:#fee2e2}.server-status-metric.neutral{background:#eef6ff}
.server-status-metric .uptime-value,.server-status-metric strong.uptime-value{font-size:17px;line-height:1.3}
.server-status-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}
.server-status-detail{border:1px solid var(--line);border-radius:16px;padding:13px 15px;background:#fff}.server-status-detail h3{margin:0 0 6px}
.server-status-service{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e5edf6}.server-status-service:last-child{border-bottom:0}.server-status-service .is-ok{color:#15803d}.server-status-service .is-bad{color:#b91c1c}
.server-status-backup{display:grid;gap:3px;padding:8px 0}.server-status-backup+.server-status-backup{border-top:1px solid #e5edf6}
@media(max-width:820px){.server-status-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.server-status-detail-grid{grid-template-columns:1fr}.server-status-overlay{padding:10px}.server-status-dialog{max-height:calc(100dvh - 20px)}}
@media(max-width:520px){.admin-dashboard-head{align-items:flex-start}.server-status-launch{min-height:40px;padding:9px 11px}.server-status-dialog-body{padding:14px}.server-status-dialog-head{padding:14px}.server-status-metrics{grid-template-columns:1fr 1fr;gap:8px}.server-status-metric{padding:12px}.server-status-metric strong{font-size:21px}}

/* =========================================================
   ADMIN MOBILE v1
   - compact bottom navigation
   - content must stay above navigation
   - student tables become phone-friendly cards
   Desktop and student app are intentionally untouched.
   ========================================================= */

@media (max-width:700px){

  /* ---------- Admin bottom navigation ---------- */
  body:not(.student-app) .sidebar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:50;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:4px;
    padding:6px 8px;
    min-height:68px;
    max-height:76px;
    overflow-x:auto;
    overflow-y:hidden;
    background:#fff;
    border-top:1px solid var(--line);
    box-shadow:0 -8px 24px rgba(15,23,42,.08);
    -webkit-overflow-scrolling:touch;
  }

  body:not(.student-app) .sidebar .nav{
    flex:1 1 0;
    min-width:74px;
    min-height:54px;
    max-height:58px;
    padding:7px 6px;
    margin:0;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    white-space:nowrap;
    font-size:11px;
    line-height:1.15;
    overflow:hidden;
  }

  /* 3D/img icon accidentally becoming huge on admin mobile */
  body:not(.student-app) .sidebar .nav img,
  body:not(.student-app) .sidebar .nav svg,
  body:not(.student-app) .sidebar .nav .nav-3d-icon,
  body:not(.student-app) .sidebar .nav .ui3d-icon{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    object-fit:contain;
    flex:0 0 22px!important;
  }

  body:not(.student-app) .sidebar .nav.active{
    background:#dff3ff;
    color:#036b9c;
  }

  /* Navigation contentni yopib qo‘ymasligi uchun */
  body:not(.student-app) .content{
    padding:14px 12px calc(94px + env(safe-area-inset-bottom))!important;
    min-width:0;
    overflow:visible;
  }

  body:not(.student-app) .shell{
    min-height:calc(100dvh - 68px);
    overflow:visible;
  }


  /* ---------- Admin page headers ---------- */
  body:not(.student-app) .page-head{
    gap:10px;
    margin-bottom:14px;
  }

  body:not(.student-app) .page-head h1{
    font-size:24px;
    line-height:1.15;
  }

  body:not(.student-app) .admin-student-head-actions,
  body:not(.student-app) .learning-admin-actions{
    width:100%;
    display:flex;
    gap:7px;
    flex-wrap:wrap;
  }

  body:not(.student-app) .admin-student-head-actions .btn,
  body:not(.student-app) .learning-admin-actions .btn{
    padding:9px 10px;
    font-size:12px;
  }


  /* ---------- Students tabs ---------- */
  body:not(.student-app) .admin-student-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-bottom:12px;
  }

  body:not(.student-app) .admin-student-tab{
    width:100%;
    min-width:0;
    padding:9px 7px;
    font-size:11.5px;
    justify-content:center;
  }


  /* ---------- Active / All students ---------- */
  body:not(.student-app) #studentTabActive,
  body:not(.student-app) #studentTabAll{
    padding:12px;
    border-radius:16px;
  }

  body:not(.student-app) #studentTabActive .table-wrap,
  body:not(.student-app) #studentTabAll .table-wrap,
  body:not(.student-app) #groupStudentsHost .table-wrap{
    overflow:visible!important;
    width:100%;
  }

  body:not(.student-app) #studentTabActive .table,
  body:not(.student-app) #studentTabAll .table,
  body:not(.student-app) #groupStudentsHost .table{
    min-width:0!important;
    width:100%;
    display:block;
  }

  body:not(.student-app) #studentTabActive .table thead,
  body:not(.student-app) #studentTabAll .table thead,
  body:not(.student-app) #groupStudentsHost .table thead{
    display:none;
  }

  body:not(.student-app) #studentTabActive .table tbody,
  body:not(.student-app) #studentTabAll .table tbody,
  body:not(.student-app) #groupStudentsHost .table tbody{
    display:grid;
    gap:9px;
  }

  body:not(.student-app) #studentTabActive .table tr,
  body:not(.student-app) #studentTabAll .table tr,
  body:not(.student-app) #groupStudentsHost .table tr{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    width:100%;
    background:#fff;
    border:1px solid var(--line);
    border-radius:15px;
    overflow:hidden;
  }

  body:not(.student-app) #studentTabActive .table td,
  body:not(.student-app) #studentTabAll .table td,
  body:not(.student-app) #groupStudentsHost .table td{
    display:block;
    width:100%;
    min-width:0;
    padding:8px 10px;
    border:0;
    border-bottom:1px solid #edf2f7;
    font-size:12px;
    overflow-wrap:anywhere;
  }

  body:not(.student-app) #studentTabActive .table td:last-child,
  body:not(.student-app) #studentTabAll .table td:last-child,
  body:not(.student-app) #groupStudentsHost .table td:last-child{
    border-bottom:0;
  }

  /* labels for desktop table columns */
  body:not(.student-app) #studentTabActive .table td:nth-child(2)::before,
  body:not(.student-app) #studentTabAll .table td:nth-child(2)::before,
  body:not(.student-app) #groupStudentsHost .table td:nth-child(2)::before{
    content:"Guruh: ";
    font-weight:800;
    color:#64748b;
  }

  body:not(.student-app) #studentTabActive .table td:nth-child(3)::before,
  body:not(.student-app) #studentTabAll .table td:nth-child(3)::before,
  body:not(.student-app) #groupStudentsHost .table td:nth-child(3)::before{
    content:"Holat: ";
    font-weight:800;
    color:#64748b;
  }


  /* ---------- Student identity compact ---------- */
  body:not(.student-app) .admin-student-identity{
    min-width:0!important;
    width:100%;
    gap:9px;
    align-items:center;
  }

  body:not(.student-app) .admin-student-avatar{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:12px;
  }

  body:not(.student-app) .admin-student-name{
    gap:2px;
  }

  body:not(.student-app) .admin-student-name>b{
    font-size:13px;
    line-height:1.25;
  }

  body:not(.student-app) .admin-student-name>small{
    font-size:10.5px;
    line-height:1.3;
  }

  body:not(.student-app) .student-history-list{
    margin-top:3px;
  }

  body:not(.student-app) .student-history-item summary{
    font-size:10.5px;
    padding:5px 8px;
  }

  body:not(.student-app) .admin-student-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
  }

  body:not(.student-app) .admin-student-actions .btn{
    padding:7px 9px;
    font-size:11px;
    flex:0 1 auto;
  }


  /* ---------- General cards ---------- */
  body:not(.student-app) .card{
    padding:13px;
    border-radius:16px;
  }

  body:not(.student-app) .panel-title h2{
    font-size:19px;
  }
}

@media (max-width:390px){
  body:not(.student-app) .sidebar .nav{
    min-width:68px;
    font-size:10.5px;
    padding-left:4px;
    padding-right:4px;
  }

  body:not(.student-app) .sidebar .nav img,
  body:not(.student-app) .sidebar .nav svg,
  body:not(.student-app) .sidebar .nav .nav-3d-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    max-width:20px!important;
  }
}



/* Admin > Barcha o‘quvchilar: qidiruv, sana filtri va CSV */
.admin-student-filterbar{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin:12px 0 8px;
}
.admin-student-search{
  min-width:min(360px,100%);
  flex:1 1 320px;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8fbff;
}
.admin-student-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  padding:10px 0;
}
.admin-student-filter-select,
.admin-student-custom-dates input{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:13px;
  padding:8px 11px;
  background:#f8fbff;
  color:var(--text);
}
.admin-student-custom-dates{
  display:flex;
  align-items:center;
  gap:6px;
}
.admin-student-custom-dates[hidden]{display:none!important}
.admin-student-filter-info{
  min-height:18px;
  margin-bottom:8px;
  font-size:12px;
}

@media(max-width:700px){
  body:not(.student-app) .admin-student-filterbar{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  body:not(.student-app) .admin-student-search{
    min-width:0;
    width:100%;
  }
  body:not(.student-app) .admin-student-filter-select,
  body:not(.student-app) #downloadStudentsCsv{
    width:100%;
  }
  body:not(.student-app) .admin-student-custom-dates{
    width:100%;
    display:grid;
    grid-template-columns:1fr auto 1fr;
  }
  body:not(.student-app) .admin-student-custom-dates input{
    width:100%;
    min-width:0;
  }
}

/* Admin student custom label */
.admin-student-name-line{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.admin-student-label-edit{
  width:27px;
  height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:9px;
  background:rgba(255,255,255,.82);
  cursor:pointer;
  font-size:13px;
  line-height:1;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}

.admin-student-label-edit:hover{
  background:#fff;
  transform:translateY(-1px);
}

.admin-student-label-edit:active{
  transform:scale(.96);
}

.admin-student-label-modal{
  width:min(480px,calc(100vw - 32px));
}

.admin-student-label-modal .field{
  display:grid;
  gap:7px;
  margin-top:18px;
}

.admin-student-label-modal input{
  width:100%;
}

.admin-student-label-original{
  display:grid;
  gap:3px;
  margin-top:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(248,250,252,.8);
}

.admin-student-label-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

@media(max-width:700px){
  body:not(.student-app) .admin-student-label-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  body:not(.student-app) .admin-student-label-actions #adminStudentLabelReset{
    grid-column:1/-1;
  }
}


/* ===== Public App V1 ===== */
.nav-emoji{width:28px;height:28px;display:grid;place-items:center;font-size:20px}
.public-home-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.public-home-head h1{margin:2px 0 0}.public-welcome{font-weight:800;color:var(--muted)}.public-streak{padding:10px 14px;border-radius:16px;background:#fff7e6;border:1px solid #ffe0a3;white-space:nowrap}.public-level-card{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin-bottom:16px}.public-level-card>div:first-child{width:76px;height:76px;border-radius:24px;background:linear-gradient(145deg,#e8f7ff,#fff);display:grid;place-items:center;align-content:center;border:1px solid #bce2f4}.public-level-card>div:first-child small{font-weight:900;color:#5b7d94}.public-level-card>div:first-child b{font-size:30px;color:#087bac}.public-level-main>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.public-level-main span,.public-level-main small{color:var(--muted);font-weight:700}.public-level-track,.public-aggregate-bar{height:10px;border-radius:999px;background:#e8eef5;overflow:hidden}.public-level-track i,.public-aggregate-bar i{display:block;height:100%;background:linear-gradient(90deg,#18a7e0,#5dd2a0);border-radius:inherit;transition:width .35s ease}.public-level-main>small{display:block;margin-top:7px}.public-hero-quiz{position:relative;overflow:hidden;padding:26px;margin-bottom:16px;background:linear-gradient(145deg,#f7fbff,#fffdf8)}.public-hero-glow{position:absolute;width:220px;height:220px;border-radius:50%;right:-70px;top:-90px;background:radial-gradient(circle,rgba(255,213,84,.38),rgba(255,255,255,0) 70%);pointer-events:none}.public-quiz-eyebrow{font-weight:1000;letter-spacing:.08em;color:#9a6700;font-size:12px}.public-hero-quiz h2{font-size:28px;margin:8px 0}.public-quiz-meta{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.public-quiz-meta span,.public-preload-checks span{padding:8px 10px;border-radius:12px;background:#f2f6fb;font-weight:800;font-size:13px}.public-prize{font-weight:900;color:#8a5d00;margin:12px 0}.public-quiz-cta{min-width:190px}.public-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.public-task{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.public-task b{color:#087bac}.public-rank-list{display:grid;gap:7px}.public-rank-row{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:8px;padding:10px 11px;border-radius:13px;background:#f7f9fc}.public-rank-row.is-me{background:#eaf8ff;box-shadow:inset 0 0 0 1px #a5dcef}.public-rank-pos{font-weight:1000}.public-rank-name{font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-rank-xp{font-size:12px;font-weight:900;color:#5a7188}.public-quiz-shell{max-width:760px;margin:0 auto}.public-quiz-lobby{text-align:center;padding:34px 24px}.public-ready-ring{width:92px;height:92px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;background:#e8fff3;border:1px solid #a8e4c5;box-shadow:0 12px 40px rgba(37,167,105,.15)}.public-ready-ring span{font-size:46px;font-weight:1000;color:#25a769}.public-preload-checks{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 0}.public-big-countdown{font-size:56px;font-weight:1000;letter-spacing:-.03em;color:#071b40;margin:22px 0 2px}.public-live-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;font-weight:900;margin-bottom:10px}.public-live-top span:last-child{text-align:right}.public-question-progress{height:6px;background:#e7edf4;border-radius:999px;overflow:hidden;margin-bottom:16px}.public-question-progress i{display:block;height:100%;background:#17a2db}.public-question-card{text-align:center;padding:30px 24px;min-height:430px;display:flex;flex-direction:column;justify-content:center}.public-question-card h1{font-size:42px;margin:0 0 28px}.public-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.public-choice{min-height:76px;border:1px solid #d5e1ec;background:#fff;border-radius:18px;padding:12px 16px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--text);font:inherit;cursor:pointer;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background .12s ease}.public-choice:hover:not(:disabled){transform:translateY(-2px);border-color:#88c9e7;box-shadow:0 10px 24px rgba(20,80,130,.08)}.public-choice span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#edf3f8;font-weight:1000}.public-choice b{font-size:16px}.public-choice.correct{background:#ebfff4;border-color:#64c892;box-shadow:0 0 0 2px rgba(56,180,110,.1)}.public-choice.wrong{background:#fff0f0;border-color:#ef8e8e}.public-choice.selected{transform:scale(.99)}.public-answer-flash{display:inline-block;margin-top:18px;padding:9px 14px;border-radius:13px;font-weight:1000;animation:publicPop .22s ease-out}.public-answer-flash.correct{background:#e5faee;color:#187b48}.public-answer-flash.wrong{background:#ffe9e9;color:#b83232}.public-combo-pop{position:fixed;z-index:40;left:50%;top:19%;transform:translateX(-50%);animation:publicCombo .75s cubic-bezier(.2,.8,.2,1);pointer-events:none}.public-combo-pop img{width:min(260px,70vw);filter:drop-shadow(0 14px 18px rgba(25,42,66,.15))}.public-reveal-card{text-align:center;padding:34px 24px}.public-reveal-icon{width:90px;height:90px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#eef7ff;font-size:44px;font-weight:1000;color:#1585bd}.public-aggregate{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0 14px}.public-aggregate>div{padding:14px;border-radius:15px;background:#f6f8fb}.public-aggregate b,.public-aggregate span{display:block}.public-aggregate b{font-size:26px}.public-aggregate span{font-size:12px;color:var(--muted);font-weight:800;margin-top:4px}.public-finish-card{text-align:center;padding:32px}.public-finish-trophy{font-size:72px}.public-finish-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px auto;max-width:390px}.public-finish-stats>div{padding:18px;border-radius:18px;background:#f6f8fb}.public-finish-stats b,.public-finish-stats span{display:block}.public-finish-stats b{font-size:30px}.public-finish-stats span{color:var(--muted);font-weight:800}.public-my-result{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;margin-bottom:16px}.public-my-result .public-level-track{grid-column:1/-1}.public-my-rank-icon{width:70px;height:70px;border-radius:22px;background:#fff8df;display:grid;place-items:center;font-size:34px}.public-rank-large .public-rank-row{padding:13px}.public-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.public-collection-card{display:flex;flex-direction:column;min-height:205px}.public-collection-category{font-size:11px;font-weight:1000;letter-spacing:.08em;color:#66809a}.public-collection-card h2{flex:1}.public-collection-price{font-size:18px;font-weight:1000;margin:12px 0;color:#087bac}
@keyframes publicPop{from{transform:scale(.72);opacity:0}to{transform:scale(1);opacity:1}}@keyframes publicCombo{0%{transform:translate(-50%,-16px) scale(.6);opacity:0}35%{transform:translate(-50%,0) scale(1.08);opacity:1}100%{transform:translate(-50%,-20px) scale(1);opacity:0}}
@media(max-width:760px){.public-home-grid,.public-collection-grid{grid-template-columns:1fr}.public-level-card{grid-template-columns:64px 1fr}.public-level-card>div:first-child{width:64px;height:64px;border-radius:19px}.public-level-main>div:first-child{flex-direction:column;gap:3px}.public-choice-grid{grid-template-columns:1fr}.public-question-card{padding:20px 14px;min-height:430px}.public-question-card h1{font-size:34px}.public-aggregate{gap:6px}.public-aggregate>div{padding:11px 6px}.public-aggregate b{font-size:22px}.public-big-countdown{font-size:48px}.public-rank-row{grid-template-columns:42px minmax(0,1fr) auto}.public-home-head{align-items:flex-end}}


/* ===== PUBLIC APP V2 — live quiz polish ===== */
body.student-app .public-live-top b{min-width:72px;text-align:center;font-variant-numeric:tabular-nums}
body.student-app .public-live-top b.is-urgent{color:#df3e4d;animation:publicTimerPulse .48s ease-in-out infinite alternate}
body.student-app .public-choice:disabled{cursor:default;opacity:1}
body.student-app .public-answer-count b{color:var(--student-text);font-size:1.05em}
body.student-app .public-combo-pop{position:fixed;z-index:40;left:auto;right:max(18px,calc((100vw - 960px)/2));top:96px;transform:none;display:flex;align-items:center;gap:8px;padding:7px 11px 7px 7px;border-radius:18px;background:rgba(255,248,219,.94);border:1px solid rgba(244,178,35,.30);box-shadow:0 12px 30px rgba(96,63,0,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);animation:publicComboV2 .72s cubic-bezier(.2,.8,.2,1);pointer-events:none;max-width:min(250px,55vw)}
body.student-app .public-combo-pop img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(25,42,66,.12))}
body.student-app .public-combo-pop b{font-size:17px;white-space:nowrap;color:#b86600;letter-spacing:-.02em}
body.student-app .public-finish-stats-v2{grid-template-columns:repeat(3,1fr);max-width:none}
body.student-app .public-finish-stats-v2>div{min-width:0}
body.student-app .public-finish-stats-v2 b{font-size:25px;white-space:nowrap}
html[data-theme="dark"] body.student-app .public-combo-pop{background:rgba(67,47,8,.94);border-color:rgba(255,191,60,.24)}
html[data-theme="dark"] body.student-app .public-combo-pop b{color:#ffd477}
@keyframes publicTimerPulse{from{transform:scale(1)}to{transform:scale(1.10);text-shadow:0 0 16px rgba(223,62,77,.30)}}
@keyframes publicComboV2{0%{opacity:0;transform:translateY(-12px) scale(.86)}28%{opacity:1;transform:translateY(0) scale(1.04)}70%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-4px) scale(.98)}}
@media(max-width:760px){body.student-app .public-combo-pop{right:12px;top:80px;max-width:62vw;padding:5px 9px 5px 5px}body.student-app .public-combo-pop img{width:42px;height:42px}body.student-app .public-combo-pop b{font-size:14px}.public-finish-stats-v2{grid-template-columns:1fr 1fr!important}.public-finish-stats-v2 b{font-size:22px!important}}
@media(prefers-reduced-motion:reduce){body.student-app .public-live-top b.is-urgent,body.student-app .public-combo-pop{animation:none!important}}


/* ===== PUBLIC APP V3 — compact combo + live presence ===== */
.public-live-presence{display:inline-flex;align-items:center;gap:6px;margin:2px auto 4px;padding:8px 12px;border-radius:999px;background:#eef8ff;border:1px solid #cce8f7;color:#315a73;font-weight:800;font-size:13px}
.public-live-presence b{color:#087bac;font-size:14px}
.public-combo-pop,.student-app .public-combo-pop,body.student-app .public-combo-pop{position:fixed!important;z-index:100!important;left:auto!important;right:18px!important;top:86px!important;transform:none!important;width:auto!important;max-width:150px!important;min-width:0!important;height:auto!important;display:flex!important;align-items:center!important;gap:6px!important;padding:6px 9px 6px 6px!important;border-radius:14px!important;background:rgba(255,249,225,.96)!important;border:1px solid rgba(235,169,31,.32)!important;box-shadow:0 8px 20px rgba(76,53,6,.13)!important;animation:publicComboV3 .68s cubic-bezier(.2,.8,.2,1)!important;pointer-events:none!important;overflow:hidden!important}
.public-combo-pop img,.student-app .public-combo-pop img,body.student-app .public-combo-pop img{display:block!important;width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;object-fit:contain!important;flex:0 0 32px!important;filter:drop-shadow(0 4px 5px rgba(25,42,66,.10))!important}
.public-combo-pop>span{display:flex;align-items:baseline;gap:4px;line-height:1;white-space:nowrap}
.public-combo-pop small{font-size:9px;font-weight:1000;letter-spacing:.06em;color:#9d6700}
.public-combo-pop b,.student-app .public-combo-pop b,body.student-app .public-combo-pop b{font-size:16px!important;line-height:1!important;color:#c46f00!important;white-space:nowrap!important}
.public-combo-pop.is-mid{background:rgba(255,244,201,.98)!important;box-shadow:0 9px 22px rgba(188,112,0,.16)!important}
.public-combo-pop.is-major{max-width:170px!important;background:rgba(255,237,170,.99)!important;box-shadow:0 10px 25px rgba(188,94,0,.20)!important}
.public-combo-pop.is-major img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;flex-basis:38px!important}
.public-combo-pop.is-major b{font-size:19px!important}
.public-finish-message{margin:0 auto 20px;max-width:430px;padding:11px 15px;border-radius:14px;background:#eef9ff;border:1px solid #cce8f7;font-weight:900;color:#225a78}
html[data-theme="dark"] .public-combo-pop{background:rgba(59,43,10,.97)!important;border-color:rgba(255,191,60,.25)!important}
html[data-theme="dark"] .public-combo-pop small{color:#ffd477}html[data-theme="dark"] .public-combo-pop b{color:#ffd477!important}
@keyframes publicComboV3{0%{opacity:0;transform:translateY(-8px) scale(.82)}30%{opacity:1;transform:translateY(0) scale(1.04)}72%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-3px) scale(.97)}}
@media(max-width:760px){.public-combo-pop,.student-app .public-combo-pop,body.student-app .public-combo-pop{right:8px!important;top:70px!important;max-width:135px!important;padding:5px 8px 5px 5px!important}.public-combo-pop img,.student-app .public-combo-pop img,body.student-app .public-combo-pop img{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;flex-basis:28px!important}.public-combo-pop b,.student-app .public-combo-pop b,body.student-app .public-combo-pop b{font-size:14px!important}.public-combo-pop small{font-size:8px}.public-combo-pop.is-major img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;flex-basis:32px!important}.public-combo-pop.is-major b{font-size:16px!important}}

/* PUBLIC APP V4 — real live sync, heartbeat, reconnect, unanswered stats */
.public-aggregate.public-aggregate-v4{grid-template-columns:repeat(4,1fr)}
.public-connection-hint{margin:12px auto 0;max-width:520px;padding:9px 12px;border-radius:12px;background:#fff8df;border:1px solid #f2d98d;color:#7a5b00;font-size:12px;font-weight:800}
.public-connection-hint[hidden]{display:none!important}
html[data-theme="dark"] .public-connection-hint{background:#3c3214;border-color:#665523;color:#ffe39a}
@media(max-width:760px){.public-aggregate.public-aggregate-v4{grid-template-columns:1fr 1fr}}
/* Public Admin Quiz Creator V6 */
.admin-quiz-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-quiz-editor{min-width:min(980px,92vw);max-height:82vh;overflow:auto;padding:4px}.admin-quiz-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.admin-quiz-meta-grid label,.admin-quiz-correct{display:grid;gap:6px;font-weight:700}.admin-quiz-question{margin:12px 0;padding:14px}.admin-quiz-qhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.admin-quiz-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.admin-quiz-choice-grid label{display:flex;align-items:center;gap:8px}.admin-quiz-choice-grid label span{width:28px;height:28px;border-radius:8px;background:#edf4fb;display:grid;place-items:center;font-weight:800}.admin-quiz-savebar{position:sticky;bottom:-4px;background:rgba(255,255,255,.96);padding:12px 0;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e4edf5}@media(max-width:760px){.admin-quiz-meta-grid,.admin-quiz-choice-grid{grid-template-columns:1fr}.admin-quiz-editor{min-width:0}}

/* Public V7 — Admin Quiz Creator responsive modal fix */
.modal:has(.admin-quiz-editor){
  width:min(1120px,calc(100vw - 48px));
  max-width:1120px;
  padding:0;
  overflow:hidden;
}
.admin-quiz-editor{
  min-width:0;
  width:100%;
  max-width:none;
  max-height:calc(100dvh - 48px);
  overflow-y:auto;
  overflow-x:hidden;
  padding:26px 28px 0;
}
.admin-quiz-editor .page-head{margin-bottom:8px;align-items:flex-start}
.admin-quiz-meta-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
.admin-quiz-meta-grid label,
.admin-quiz-correct{min-width:0}
.admin-quiz-meta-grid input,
.admin-quiz-meta-grid select,
.admin-quiz-question input,
.admin-quiz-question select{width:100%;min-width:0}
.admin-quiz-question{padding:18px;margin:14px 0}
.admin-quiz-qhead{gap:12px}
.admin-quiz-choice-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
}
.admin-quiz-choice-grid label{min-width:0}
.admin-quiz-choice-grid label input{flex:1;min-width:0;width:100%}
.admin-quiz-correct{max-width:220px;margin-top:10px}
.admin-quiz-savebar{
  bottom:0;
  margin:18px -28px 0;
  padding:14px 28px;
  z-index:3;
  box-shadow:0 -10px 24px rgba(31,65,105,.06);
}
@media(max-width:760px){
  .modal:has(.admin-quiz-editor){
    width:calc(100vw - 24px);
    max-width:none;
    max-height:calc(100dvh - 24px);
  }
  .admin-quiz-editor{
    max-height:calc(100dvh - 24px);
    padding:20px 16px 0;
  }
  .admin-quiz-meta-grid,
  .admin-quiz-choice-grid{grid-template-columns:1fr}
  .admin-quiz-correct{max-width:none}
  .admin-quiz-savebar{
    margin:16px -16px 0;
    padding:12px 16px;
  }
}

/* Public App V8: student result is intentionally only correct/wrong. */
.public-aggregate.public-aggregate-v4{grid-template-columns:repeat(3,1fr)}
@media(max-width:760px){.public-aggregate.public-aggregate-v4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.public-aggregate.public-aggregate-v4{grid-template-columns:1fr 1fr 1fr}.public-aggregate.public-aggregate-v4>div{padding:10px 4px}.public-aggregate.public-aggregate-v4 b{font-size:20px}}

/* Public V10 — quiz from collections */
.admin-quiz-source{margin:14px 0;padding:16px;background:#f8fbff}
.admin-quiz-source-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.admin-quiz-collection-tools{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(130px,.5fr) minmax(220px,1fr) auto;gap:10px;align-items:end}
.admin-quiz-collection-tools[hidden]{display:none!important}
.admin-quiz-collection-tools label{display:grid;gap:6px;font-weight:800;min-width:0}
.admin-quiz-generate{height:42px;white-space:nowrap}
#aqQuestionCount{font-size:13px;font-weight:800;margin-left:6px}
@media(max-width:980px){.admin-quiz-collection-tools{grid-template-columns:1fr 1fr}.admin-quiz-generate{width:100%}}
@media(max-width:640px){.admin-quiz-collection-tools{grid-template-columns:1fr}.admin-quiz-source-tabs .btn{flex:1}}


/* V11 — Admin modern UI */
.admin-modern-head{align-items:center!important}
.admin-page-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:linear-gradient(135deg,#e9f6ff,#f4fbff);color:#0a7eb4;font-size:12px;font-weight:900;letter-spacing:.08em;margin-bottom:10px;box-shadow:0 8px 20px rgba(7,143,207,.08)}
.admin-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.admin-overview-card{background:linear-gradient(180deg,#ffffff,#f7fbff);border:1px solid #dbe8f4;border-radius:24px;padding:18px;box-shadow:0 14px 34px rgba(31,65,105,.08);display:flex;align-items:center;gap:14px;min-width:0}
.admin-overview-icon{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#dff3ff,#fff5db);font-size:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.admin-overview-card small{display:block;color:#6d8098;font-weight:800}
.admin-overview-card b{display:block;font-size:32px;line-height:1.08;margin-top:4px;color:#0e2d63}
.admin-counter-badge{display:inline-grid;place-items:center;min-width:52px;height:34px;padding:0 12px;border-radius:999px;background:#eef6ff;color:#0b73aa;font-weight:900;font-size:13px;border:1px solid #d7e7f7}
.admin-quiz-panel,.admin-student-test-panel{padding:18px}
.admin-quiz-table-wrap{border-radius:22px;overflow:hidden;border:1px solid #d8e5f1;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.admin-quiz-table{min-width:860px}
.admin-quiz-table thead th{background:linear-gradient(180deg,#f3f8fd,#edf4fb);font-size:13px;font-weight:900;color:#53677f;border-bottom:1px solid #dbe7f3}
.admin-quiz-table tbody tr{transition:background .16s ease,transform .16s ease}
.admin-quiz-table tbody tr:hover{background:#fbfdff}
.admin-quiz-table tbody td{vertical-align:middle}
.admin-quiz-main b{display:block;font-size:18px;margin-bottom:3px;color:#0f2957}
.admin-quiz-main .muted{font-size:13px;line-height:1.45}
.admin-date-pill,.admin-table-pill,.admin-prize-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border-radius:999px;background:#f4f8fc;border:1px solid #dfebf6;color:#496178;font-weight:800;font-size:13px;white-space:nowrap}
.admin-prize-pill{background:#fff8e8;border-color:#f5de9a;color:#8a6200}
.admin-status-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-weight:900;font-size:13px;white-space:nowrap;border:1px solid transparent}
.admin-status-badge.scheduled{background:#eef6ff;color:#0b73aa;border-color:#cde4f5}
.admin-status-badge.live{background:#fff0f0;color:#c62828;border-color:#f5c1c1}
.admin-status-badge.finished{background:#ecfdf3;color:#117a43;border-color:#bde8cf}
.admin-status-badge.cancelled{background:#fdf2f2;color:#9f1d1d;border-color:#f6cccc}
.admin-status-badge.draft{background:#f5f3ff;color:#6147d9;border-color:#dbd2ff}
.admin-quiz-actions{justify-content:flex-end;gap:8px}
.admin-quiz-actions .btn{min-width:92px}
.admin-test-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.admin-test-student-card{border:1px solid #dbe7f3;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f8fbff);padding:16px;box-shadow:0 12px 30px rgba(31,65,105,.07);display:grid;gap:14px}
.admin-test-student-top{display:flex;align-items:center;gap:12px;min-width:0}
.admin-test-student-avatar{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#eef7ff,#dff2ff);display:grid;place-items:center;font-size:24px;font-weight:900;color:#0a73ac;flex:0 0 auto}
.admin-test-student-meta{display:grid;gap:4px;min-width:0}
.admin-test-student-meta b{font-size:20px;color:#102b57}
.admin-test-student-meta small{color:#76879b}
.admin-mini-pill{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;background:#f3f8fe;border:1px solid #dbe8f5;color:#6780a0;font-size:12px;font-weight:800}
.admin-test-student-status{display:grid;gap:6px}
.admin-empty-state{padding:32px;border:1px dashed #cfddec;border-radius:18px;background:#fbfdff;color:#6c8199;text-align:center}
.admin-results-modal{display:grid;gap:16px}
.admin-results-head{display:grid;gap:12px}
.admin-results-head h2{margin:0}
.admin-results-summary{display:flex;flex-wrap:wrap;gap:8px}
.admin-summary-chip{display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;background:#eef6ff;color:#0d6f9d;border:1px solid #d7e7f4;font-size:13px;font-weight:800}
.admin-summary-chip.success{background:#ecfdf3;color:#117a43;border-color:#bde8cf}
.admin-summary-chip.danger{background:#fdf2f2;color:#9f1d1d;border-color:#f5cdcd}
.admin-summary-chip.warn{background:#fff8e8;color:#8a6200;border-color:#f5de9a}
.admin-results-table{border-radius:20px}
.modal:has(.admin-quiz-editor){border-radius:28px;background:linear-gradient(180deg,#ffffff,#fbfdff);box-shadow:0 30px 70px rgba(15,23,42,.26)}
.admin-quiz-editor{padding-top:30px}
.admin-quiz-editor .page-head h2{font-size:clamp(32px,4vw,42px);line-height:1.06}
.admin-quiz-editor .page-head .muted{font-size:15px}
.admin-quiz-meta-grid label,.admin-quiz-collection-tools label,.admin-quiz-correct{font-size:13px;letter-spacing:.01em;color:#4e637c;text-transform:none}
.admin-quiz-meta-grid input,.admin-quiz-meta-grid select,.admin-quiz-question input,.admin-quiz-question select,.admin-quiz-collection-tools select,.admin-quiz-collection-tools input{background:#fbfdff;border:1px solid #d8e5f1;border-radius:14px;padding:12px 14px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.admin-quiz-meta-grid input:focus,.admin-quiz-meta-grid select:focus,.admin-quiz-question input:focus,.admin-quiz-question select:focus,.admin-quiz-collection-tools select:focus,.admin-quiz-collection-tools input:focus{border-color:#159bd3;box-shadow:0 0 0 4px rgba(21,155,211,.12);outline:0}
.admin-quiz-source{background:linear-gradient(180deg,#f8fbff,#f4f9ff);border:1px solid #dce8f4;border-radius:22px;padding:18px}
.admin-quiz-source-tabs .btn{border-radius:14px;padding:12px 16px}
.admin-quiz-question{border:1px solid #dce8f4;border-radius:24px;background:linear-gradient(180deg,#ffffff,#fbfdff);box-shadow:0 10px 26px rgba(31,65,105,.05)}
.admin-quiz-qhead b{font-size:25px;color:#122e5d}
.admin-quiz-choice-grid label span{width:34px;height:34px;border-radius:11px;background:#eef6ff;color:#0d6f9d}
.admin-quiz-savebar{backdrop-filter:blur(10px);background:rgba(255,255,255,.92)}
.admin-quiz-savebar .btn{min-height:48px;border-radius:16px;min-width:136px}
@media(max-width:1100px){.admin-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-test-student-grid{grid-template-columns:1fr}}
@media(max-width:760px){.admin-head-actions{width:100%}.admin-head-actions .btn{flex:1}.admin-overview-grid{grid-template-columns:1fr 1fr}.admin-overview-card{padding:16px}.admin-overview-card b{font-size:26px}.admin-quiz-panel,.admin-student-test-panel{padding:14px}.admin-quiz-actions{justify-content:flex-start}.admin-quiz-actions .btn{min-width:0;flex:1}.admin-results-summary{display:grid;grid-template-columns:1fr 1fr}.admin-quiz-editor .page-head h2{font-size:30px}.admin-quiz-qhead b{font-size:21px}}
@media(max-width:560px){.admin-overview-grid,.admin-results-summary{grid-template-columns:1fr}.admin-test-student-top{align-items:flex-start}.admin-test-student-meta b{font-size:18px}.admin-page-kicker{font-size:11px}}

/* V13 — compact student home + expandable goals */
body.student-app .public-profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
body.student-app .public-home-profile{min-width:0;display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:4px 2px;color:var(--student-text,var(--text));text-align:left;cursor:pointer;border-radius:18px}
body.student-app .public-home-profile:focus-visible{outline:3px solid rgba(38,115,255,.18);outline-offset:3px}
body.student-app .public-home-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#edf8ff,#dcefff);border:1px solid rgba(30,135,210,.18);color:#087eb7;font-weight:1000;font-size:19px;box-shadow:0 9px 22px rgba(31,65,105,.09)}
body.student-app .public-home-avatar img{width:100%;height:100%;object-fit:cover;display:block}
body.student-app .public-home-profile-text{display:grid;gap:1px;min-width:0}
body.student-app .public-home-profile-text small{font-size:12px;font-weight:800;color:var(--student-muted,var(--muted))}
body.student-app .public-home-profile-text b{font-size:21px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(58vw,420px)}
body.student-app .public-profile-chevron{font-size:24px;line-height:1;color:#91a4ba;transform:translateY(1px)}
body.student-app .public-streak.compact{padding:9px 12px;border-radius:15px;font-size:13px;box-shadow:none;background:#fff9eb}
body.student-app .public-level-shell{padding:0!important;margin-bottom:13px!important;overflow:hidden;border-radius:22px!important}
body.student-app .public-level-toggle{width:100%;border:0;background:transparent;color:inherit;display:grid;grid-template-columns:58px minmax(0,1fr) 28px;align-items:center;gap:12px;padding:13px 14px;cursor:pointer;text-align:left}
body.student-app .public-level-toggle:hover{background:rgba(42,126,235,.025)}
body.student-app .public-level-badge{width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,#eef9ff,#fff);display:grid;place-items:center;align-content:center;border:1px solid #bce2f4;box-shadow:0 7px 18px rgba(26,115,175,.06)}
body.student-app .public-level-badge small{font-size:10px;font-weight:1000;color:#67849b;line-height:1}
body.student-app .public-level-badge b{font-size:25px;color:#087bac;line-height:1.15}
body.student-app .public-level-main.compact{display:grid;gap:7px;min-width:0}
body.student-app .public-level-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
body.student-app .public-level-topline strong{font-size:15px;color:var(--student-text,var(--text))}
body.student-app .public-level-topline em{font-style:normal;color:var(--student-muted,var(--muted));font-weight:800;font-size:12px;white-space:nowrap}
body.student-app .public-level-main.compact small{font-size:11px;color:var(--student-muted,var(--muted));font-weight:800}
body.student-app .public-level-shell .public-level-track{height:7px;margin:0}
body.student-app .public-level-chevron{font-size:23px;text-align:center;color:#7890a8;transition:transform .24s ease}
body.student-app .public-level-toggle[aria-expanded="true"] .public-level-chevron{transform:rotate(180deg)}
body.student-app .public-goals-panel{display:grid;grid-template-rows:0fr;opacity:0;border-top:1px solid transparent;transition:grid-template-rows .28s cubic-bezier(.2,.75,.25,1),opacity .2s ease,border-color .2s ease}
body.student-app .public-goals-panel.is-open{grid-template-rows:1fr;opacity:1;border-top-color:var(--student-line,var(--line))}
body.student-app .public-goals-inner{overflow:hidden;padding:0 14px;transition:padding .28s ease}
body.student-app .public-goals-panel.is-open .public-goals-inner{padding:13px 14px 14px}
body.student-app .public-goals-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:4px}
body.student-app .public-goals-title span{font-weight:1000;font-size:16px}
body.student-app .public-goals-title small{color:var(--student-muted,var(--muted));font-size:11px;font-weight:700;text-align:right}
body.student-app .public-goals-inner .public-task{padding:11px 0}
body.student-app .public-goals-inner .btn{margin-top:7px}
body.student-app .public-hero-quiz{border-radius:22px!important;margin-bottom:0!important}
body.student-app .public-hero-quiz.is-idle{background:linear-gradient(145deg,#fafcff,#f8fafc)!important;border-color:#e5ebf2!important;box-shadow:0 8px 22px rgba(31,65,105,.035)!important;opacity:.68}
body.student-app .public-hero-quiz.is-idle .public-quiz-eyebrow{color:#8d99a8}
body.student-app .public-hero-quiz.is-idle h2{color:#6f7f92;font-size:24px}
body.student-app .public-hero-quiz.is-idle p{color:#8997a8;margin-bottom:0}
html[data-theme="dark"] body.student-app .public-home-avatar{background:linear-gradient(145deg,#24324b,#172238);border-color:rgba(111,167,255,.25);color:#6ba8ff}
html[data-theme="dark"] body.student-app .public-streak.compact{background:#2d2819;border-color:#51451f;color:#ffdd79}
html[data-theme="dark"] body.student-app .public-level-badge{background:linear-gradient(145deg,#1d2d45,#111d31);border-color:#304b6d}
html[data-theme="dark"] body.student-app .public-level-badge b{color:#55b7ff}
html[data-theme="dark"] body.student-app .public-level-badge small{color:#8ba6bf}
html[data-theme="dark"] body.student-app .public-hero-quiz.is-idle{background:linear-gradient(145deg,#121c2b,#111925)!important;border-color:#28354a!important;opacity:.64}
html[data-theme="dark"] body.student-app .public-hero-quiz.is-idle h2{color:#a8b5c6}
html[data-theme="dark"] body.student-app .public-hero-quiz.is-idle p{color:#8392a5}
@media(max-width:600px){
  body.student-app .public-profile-row{margin-bottom:9px}
  body.student-app .public-home-avatar{width:44px;height:44px;flex-basis:44px;border-radius:15px}
  body.student-app .public-home-profile-text b{font-size:19px;max-width:48vw}
  body.student-app .public-streak.compact{padding:8px 10px;font-size:12px}
  body.student-app .public-level-toggle{grid-template-columns:52px minmax(0,1fr) 22px;gap:10px;padding:11px 12px}
  body.student-app .public-level-badge{width:50px;height:50px;border-radius:16px}
  body.student-app .public-level-badge b{font-size:23px}
  body.student-app .public-level-topline{align-items:flex-start;flex-direction:column;gap:2px}
  body.student-app .public-level-topline em{font-size:11px}
  body.student-app .public-level-main.compact{gap:6px}
  body.student-app .public-goals-title{align-items:flex-start;flex-direction:column;gap:2px}
  body.student-app .public-goals-title small{text-align:left}
  body.student-app .public-hero-quiz{padding:20px!important}
  body.student-app .public-hero-quiz.is-idle h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){body.student-app .public-goals-panel,body.student-app .public-goals-inner,body.student-app .public-level-chevron{transition:none}}


/* V14 — Public home styles also work inside admin student preview */
.public-profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.public-home-profile{min-width:0;display:flex;align-items:center;gap:11px;border:0!important;background:transparent!important;padding:4px 2px!important;color:var(--student-text,var(--text));text-align:left;cursor:pointer;border-radius:18px;box-shadow:none!important}
.public-home-profile:focus-visible{outline:3px solid rgba(38,115,255,.18);outline-offset:3px}
.public-home-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#edf8ff,#dcefff);border:1px solid rgba(30,135,210,.18);color:#087eb7;font-weight:1000;font-size:19px;box-shadow:0 9px 22px rgba(31,65,105,.09)}
.public-home-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.public-home-profile-text{display:grid;gap:1px;min-width:0}
.public-home-profile-text small{font-size:12px;font-weight:800;color:var(--student-muted,var(--muted))}
.public-home-profile-text b{font-size:21px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(58vw,420px)}
.public-profile-chevron{font-size:24px;line-height:1;color:#91a4ba;transform:translateY(1px)}
.public-streak.compact{padding:9px 12px;border-radius:15px;font-size:13px;box-shadow:none;background:#fff9eb;width:auto!important}
.public-level-shell{padding:0!important;margin-bottom:13px!important;overflow:hidden;border-radius:22px!important}
.public-level-toggle{width:100%;border:0!important;background:transparent!important;color:inherit;display:grid!important;grid-template-columns:58px minmax(0,1fr) 28px;align-items:center;gap:12px;padding:13px 14px!important;cursor:pointer;text-align:left;box-shadow:none!important}
.public-level-toggle:hover{background:rgba(42,126,235,.025)!important}
.public-level-badge{width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,#eef9ff,#fff);display:grid;place-items:center;align-content:center;border:1px solid #bce2f4;box-shadow:0 7px 18px rgba(26,115,175,.06)}
.public-level-badge small{font-size:10px;font-weight:1000;color:#67849b;line-height:1}
.public-level-badge b{font-size:25px;color:#087bac;line-height:1.15}
.public-level-main.compact{display:grid;gap:7px;min-width:0}
.public-level-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.public-level-topline strong{font-size:15px;color:var(--student-text,var(--text))}
.public-level-topline em{font-style:normal;color:var(--student-muted,var(--muted));font-weight:800;font-size:12px;white-space:nowrap}
.public-level-main.compact small{font-size:11px;color:var(--student-muted,var(--muted));font-weight:800}
.public-level-shell .public-level-track{height:7px;margin:0}
.public-level-chevron{font-size:23px;text-align:center;color:#7890a8;transition:transform .24s ease}
.public-level-toggle[aria-expanded="true"] .public-level-chevron{transform:rotate(180deg)}
.public-goals-panel{display:grid;grid-template-rows:0fr;opacity:0;border-top:1px solid transparent;transition:grid-template-rows .28s cubic-bezier(.2,.75,.25,1),opacity .2s ease,border-color .2s ease}
.public-goals-panel.is-open{grid-template-rows:1fr;opacity:1;border-top-color:var(--student-line,var(--line))}
.public-goals-inner{overflow:hidden;padding:0 14px;transition:padding .28s ease}
.public-goals-panel.is-open .public-goals-inner{padding:13px 14px 14px}
.public-goals-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:4px}
.public-goals-title span{font-weight:1000;font-size:16px}
.public-goals-title small{color:var(--student-muted,var(--muted));font-size:11px;font-weight:700;text-align:right}
.public-goals-inner .public-task{padding:11px 0}
.public-goals-inner .btn{margin-top:7px}
.public-hero-quiz{border-radius:22px!important;margin-bottom:0!important}
.public-hero-quiz.is-idle{background:linear-gradient(145deg,#fafcff,#f8fafc)!important;border-color:#e5ebf2!important;box-shadow:0 8px 22px rgba(31,65,105,.035)!important;opacity:.68}
.public-hero-quiz.is-idle .public-quiz-eyebrow{color:#8d99a8}
.public-hero-quiz.is-idle h2{color:#6f7f92;font-size:24px}
.public-hero-quiz.is-idle p{color:#8997a8;margin-bottom:0}
html[data-theme="dark"] .public-home-avatar{background:linear-gradient(145deg,#24324b,#172238);border-color:rgba(111,167,255,.25);color:#6ba8ff}
html[data-theme="dark"] .public-streak.compact{background:#2d2819;border-color:#51451f;color:#ffdd79}
html[data-theme="dark"] .public-level-badge{background:linear-gradient(145deg,#1d2d45,#111d31);border-color:#304b6d}
html[data-theme="dark"] .public-level-badge b{color:#55b7ff}
html[data-theme="dark"] .public-level-badge small{color:#8ba6bf}
html[data-theme="dark"] .public-hero-quiz.is-idle{background:linear-gradient(145deg,#121c2b,#111925)!important;border-color:#28354a!important;opacity:.64}
html[data-theme="dark"] .public-hero-quiz.is-idle h2{color:#a8b5c6}
html[data-theme="dark"] .public-hero-quiz.is-idle p{color:#8392a5}
@media(max-width:600px){
  .public-profile-row{margin-bottom:9px}
  .public-home-avatar{width:44px;height:44px;flex-basis:44px;border-radius:15px}
  .public-home-profile-text b{font-size:19px;max-width:48vw}
  .public-streak.compact{padding:8px 10px;font-size:12px}
  .public-level-toggle{grid-template-columns:52px minmax(0,1fr) 22px;gap:10px;padding:11px 12px!important}
  .public-level-badge{width:50px;height:50px;border-radius:16px}
  .public-level-badge b{font-size:23px}
  .public-level-topline{align-items:flex-start;flex-direction:column;gap:2px}
  .public-level-topline em{font-size:11px}
  .public-level-main.compact{gap:6px}
  .public-goals-title{align-items:flex-start;flex-direction:column;gap:2px}
  .public-goals-title small{text-align:left}
  .public-hero-quiz{padding:20px!important}
  .public-hero-quiz.is-idle h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.public-goals-panel,.public-goals-inner,.public-level-chevron{transition:none}}


/* V15 — student identity lives in the top bar; reminders hidden; streak folded into level card */
body.student-app .student-topbar,
body.admin-student-preview-active .topbar{min-height:68px;height:auto}
body.student-app .student-profile-identity{gap:9px}
body.student-app .student-header-name{display:inline-flex!important;align-items:center;max-width:min(58vw,360px);font-size:17px;font-weight:900;color:var(--student-text,var(--text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent;border:0;padding:8px 4px;cursor:pointer}
body.student-app .student-header-name[hidden]{display:none!important}
.admin-preview-top-identity{display:flex;align-items:center;gap:9px;min-width:0}
.admin-preview-top-identity .student-avatar{width:42px;height:42px;border-radius:14px}
.admin-preview-top-identity .admin-preview-student-name{display:inline-flex!important;max-width:min(52vw,340px);font-size:17px;font-weight:900;color:#14213d;background:transparent;border:0;padding:8px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.admin-preview-hide-actions{display:none!important}
.public-level-meta{display:flex;align-items:center;gap:7px;justify-content:flex-end;flex-wrap:wrap}
.public-streak-inline{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:#fff7df;border:1px solid #f2dda0;color:#8a6200!important;font-size:11px!important;font-weight:900!important}
html[data-theme="dark"] .public-streak-inline{background:#302817;border-color:#51451f;color:#ffdc73!important}
body.student-app .sidebar .nav[data-view="reminders"],
body.admin-student-preview-active .sidebar .nav[data-view="reminders"]{display:none!important}
@media(max-width:600px){
  body.student-app .topbar,body.admin-student-preview-active .topbar{padding-left:12px;padding-right:12px}
  body.student-app .student-avatar,.admin-preview-top-identity .student-avatar{width:40px;height:40px;border-radius:13px}
  body.student-app .student-header-name,.admin-preview-top-identity .admin-preview-student-name{font-size:16px;max-width:50vw}
  .public-level-meta{justify-content:flex-start}
}


/* V17 — Admin students single-row list + search + expandable details */
.admin-students-page-head{align-items:center!important}
.admin-students-list-panel{padding:18px}
.admin-students-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.admin-student-search{height:48px;display:flex;align-items:center;gap:10px;flex:1;max-width:720px;border:1px solid #d7e5f2;border-radius:16px;background:#f9fcff;padding:0 12px;box-shadow:0 8px 22px rgba(31,65,105,.04);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.admin-student-search:focus-within{border-color:#65bde8;box-shadow:0 0 0 4px rgba(21,155,211,.10);background:#fff}
.admin-student-search>span{font-size:22px;color:#7188a1;line-height:1}
.admin-student-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#17345d;font:inherit;font-weight:700}
.admin-student-search input::placeholder{color:#91a2b6;font-weight:600}
.admin-student-search button{width:30px;height:30px;border:0;border-radius:10px;background:#edf4fa;color:#5e748d;font-size:20px;cursor:pointer}
.admin-student-search-count{flex:0 0 auto;color:#6f8399;font-weight:800;font-size:13px}
.admin-student-list{display:grid;gap:10px}
.admin-student-list-item{border:1px solid #d9e6f2;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 22px rgba(31,65,105,.045);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}
.admin-student-list-item:hover{border-color:#c8ddeb;box-shadow:0 12px 28px rgba(31,65,105,.07)}
.admin-student-list-main{min-height:78px;display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(170px,.7fr) auto;align-items:center;gap:18px;padding:12px 14px}
.admin-student-list-person{display:flex;align-items:center;gap:12px;min-width:0}
.admin-student-list-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:linear-gradient(145deg,#e8f7ff,#dcefff);display:grid;place-items:center;color:#087bb5;font-size:21px;font-weight:1000;border:1px solid #cde7f4}
.admin-student-list-copy{display:grid;gap:3px;min-width:0}
.admin-student-list-copy b{font-size:18px;color:#102e5c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-student-list-copy small{color:#7a8da2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-student-list-status{display:grid;gap:4px}
.admin-status-dot{display:inline-flex;width:max-content;align-items:center;padding:6px 9px;border-radius:999px;font-weight:900;font-size:12px}
.admin-status-dot.active{background:#e9faf2;color:#0d7b49}
.admin-student-list-status small{color:#7c8fa5;font-size:12px}
.admin-student-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.admin-student-list-actions .btn{white-space:nowrap;min-width:112px}
.student-detail-toggle span{display:inline-block;transition:transform .18s ease}
.student-detail-toggle.is-open span{transform:rotate(180deg)}
.admin-student-detail-panel{border-top:1px solid #e2ebf4;background:#f8fbfe;padding:14px 16px 16px}
.admin-student-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.admin-student-detail-item{min-width:0;padding:11px 12px;border:1px solid #dce7f1;border-radius:14px;background:#fff}
.admin-student-detail-item small{display:block;color:#8595a8;font-size:11px;font-weight:800;margin-bottom:4px}
.admin-student-detail-item b{display:block;color:#244361;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){
  .admin-student-list-main{grid-template-columns:minmax(220px,1fr) auto}
  .admin-student-list-status{grid-column:1/2;padding-left:60px;margin-top:-6px}
  .admin-student-list-actions{grid-column:2;grid-row:1/3}
  .admin-student-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .admin-students-toolbar{align-items:stretch;flex-direction:column}
  .admin-student-search{max-width:none;width:100%}
  .admin-student-search-count{padding-left:4px}
  .admin-student-list-main{grid-template-columns:1fr;gap:10px;padding:12px}
  .admin-student-list-status{grid-column:auto;padding-left:60px;margin-top:-4px}
  .admin-student-list-actions{grid-column:auto;grid-row:auto;justify-content:stretch;padding-left:60px}
  .admin-student-list-actions .btn{flex:1;min-width:0}
  .admin-student-detail-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .admin-students-list-panel{padding:12px}
  .admin-student-list-actions{padding-left:0}
  .admin-student-list-status{padding-left:0}
  .admin-student-detail-grid{grid-template-columns:1fr}
}

/* V18 — public registration + admin profile history */
.public-register-onboarding{max-width:620px;margin:0 auto;text-align:left}
.public-register-onboarding>h2,.public-register-onboarding>p{text-align:center}
.public-register-onboarding .telegram-auto-profile{margin:4px 0 2px}
.public-register-onboarding .student-join-form{padding-top:4px}
.admin-student-list-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.admin-student-history-wrap{margin-top:14px;padding-top:14px;border-top:1px solid #dfe9f3}
.admin-student-history-title{font-size:13px;font-weight:900;color:#526a84;margin-bottom:8px}
.admin-student-profile-history{display:grid;gap:7px}
.admin-student-history-row{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:4px 12px;align-items:center;padding:9px 11px;border:1px solid #e0e9f2;border-radius:12px;background:#fff}
.admin-student-history-row span{font-weight:800;color:#304d6d}
.admin-student-history-row small{color:#8a99aa;font-size:11px;white-space:nowrap}
.admin-student-history-row b{grid-column:1/-1;color:#17365b;font-size:12px;font-weight:800}
@media(max-width:600px){.public-register-onboarding .student-join-name-grid{grid-template-columns:1fr}.admin-student-history-row{grid-template-columns:1fr}.admin-student-history-row small{white-space:normal}.admin-student-history-row b{grid-column:auto}}


/* V20 — Premium Core */
.collection-access-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;margin-left:6px;border-radius:999px;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.05em;vertical-align:2px}
.collection-access-badge.free{background:#eef3f7;color:#64748b}
.collection-access-badge.premium{background:#fff2c9;color:#8b6200;border:1px solid #f2d27b}
.student-premium-badge{display:inline-flex;align-items:center;padding:3px 7px;margin-left:5px;border-radius:999px;background:#fff1bd;border:1px solid #f0cf70;color:#7a5600;font-size:9px;font-weight:900;letter-spacing:.06em;vertical-align:middle}
.collection-showcase-card.is-premium.is-locked{cursor:pointer}
.admin-student-premium-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#fffdf5,#fff)}
.admin-student-premium-card>div:first-child{display:grid;gap:4px}
.admin-student-premium-card small{font-size:10px;font-weight:900;letter-spacing:.08em;color:#8b6a14}
.admin-student-premium-status{font-size:16px;color:#64748b}
.admin-student-premium-status.active{color:#12865a}
.admin-student-premium-until{color:var(--muted);font-size:12px;font-weight:700}
.admin-student-premium-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){.admin-student-premium-card{align-items:stretch;flex-direction:column}.admin-student-premium-actions{justify-content:stretch}.admin-student-premium-actions .btn{flex:1}}


/* V21 — Payment session */
.premium-locked-modal,.premium-flow-modal{display:grid;gap:14px;text-align:center}
.premium-lock-big,.premium-flow-icon{width:58px;height:58px;margin:0 auto;border-radius:18px;display:grid;place-items:center;background:#fff4cf;border:1px solid #f1d98d;font-size:26px}
.premium-locked-modal h2,.premium-flow-modal h2{margin:0}
.premium-locked-modal p,.premium-flow-modal p{margin:0}
.premium-benefits{display:grid;gap:8px;text-align:left;padding:12px 14px;border-radius:14px;background:#f6fbff;border:1px solid #dbeaf7;color:var(--text);font-size:13px;font-weight:700}
.premium-plan-list{display:grid;gap:9px}
.premium-plan-choice{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}
.premium-plan-choice.selected{border-color:#3b82f6;background:#f3f8ff;box-shadow:0 0 0 2px rgba(59,130,246,.08)}
.premium-plan-choice input{width:18px;height:18px;flex:0 0 auto}
.premium-plan-choice span{display:grid;gap:2px;flex:1;min-width:0}
.premium-plan-choice span small{color:var(--muted)}
.premium-plan-choice strong{white-space:nowrap;color:#0b63d1}
.premium-question{display:grid;gap:4px;padding-top:4px}.premium-question small{color:var(--muted)}
.premium-flow-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.public-payment-page{display:grid;gap:12px;padding-bottom:16px}
.public-payment-hero{display:grid;gap:8px;text-align:center;padding:22px}
.public-payment-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#55708f}
.public-payment-hero h1{margin:0;font-size:24px}
.public-payment-price{font-size:27px;font-weight:950;color:#0b63d1}
.public-payment-timer-wrap{display:grid;gap:2px;margin:6px auto 0;padding:10px 20px;border-radius:16px;background:#eff7ff;border:1px solid #cfe3f7;min-width:145px}
.public-payment-timer-wrap small{color:#607b99;font-weight:800}
.public-payment-timer-wrap b{font-size:28px;letter-spacing:.04em;color:#07244e}
.public-payment-hero.is-expired{background:#fffaf2}
.public-payment-expired-note,.public-payment-pending{display:grid;gap:6px;padding:12px 14px;border-radius:14px;text-align:left;background:#fff4df;border:1px solid #f2d5a4}
.public-payment-pending{background:#eef8ff;border-color:#cde4f7}
.public-payment-card-box{display:grid;gap:12px}
.public-payment-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.public-payment-card-head span{font-weight:900}.public-payment-card-head small{color:var(--muted)}
.public-payment-card-number{width:100%;border:1px solid #c8ddf2;border-radius:16px;background:#f7fbff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;color:var(--text);cursor:pointer}
.public-payment-card-number b{font-size:18px;letter-spacing:.04em}.public-payment-card-number span{color:#0b63d1;font-weight:900;font-size:12px}
.public-payment-holder{font-size:13px;color:var(--muted)}
.public-payment-card-box p{margin:0;color:var(--muted);line-height:1.5}
.public-payment-next-step{display:grid;gap:8px}.public-payment-next-step p{margin:0}
@media(max-width:520px){
  .premium-flow-actions{grid-template-columns:1fr}
  .public-payment-card-head{align-items:flex-start;flex-direction:column}
  .public-payment-card-number{align-items:flex-start;flex-direction:column}
}


/* V22 — Receipt upload + payment submit */
.public-payment-receipt-card{display:grid;gap:12px}
.public-payment-receipt-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.public-payment-receipt-head>div{display:grid;gap:3px}
.public-payment-receipt-head small{color:var(--muted)}
.public-payment-receipt-head>span{font-size:12px;font-weight:850;color:var(--muted)}
.public-payment-receipt-head>span.is-ready{color:#11845c}
.public-receipt-picker{min-height:78px;border:1.5px dashed #b8cde1;border-radius:16px;background:#f8fbff;display:flex;align-items:center;gap:12px;padding:13px;cursor:pointer;transition:.18s ease}
.public-receipt-picker.has-file{border-style:solid;border-color:#9ed8be;background:#f6fffa}
.public-receipt-picker input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.public-receipt-picker-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf4ff;color:#1875d1;font-size:22px;font-weight:900;flex:0 0 auto}
.public-receipt-picker>span:last-child{display:grid;gap:4px;min-width:0}
.public-receipt-picker small{color:var(--muted);line-height:1.35}
.public-receipt-message{min-height:0;font-size:12px;font-weight:750}
.public-receipt-message.is-loading{color:#516e91}
.public-receipt-message.is-success{color:#11845c}
.public-receipt-message.is-warning{color:#9a6700}
.public-receipt-message.is-error{color:#c43c3c}
.public-payment-timing{display:grid;gap:12px;padding:12px;border-radius:15px;background:#f8fbff;border:1px solid #d9e8f6}
.public-payment-timing.is-disabled{opacity:.5;pointer-events:none}
.public-payment-timing-question{display:grid;gap:9px}
.public-payment-timing-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.public-claimed-time-fields{display:none;grid-template-columns:1fr 1fr;gap:10px}
.public-claimed-time-fields.is-visible{display:grid}
.public-claimed-time-fields label{display:grid;gap:5px;font-size:12px;font-weight:850;color:var(--text)}
.public-claimed-time-fields input{width:100%;min-height:44px;border:1px solid #cbdced;border-radius:12px;background:#fff;padding:9px 11px;font:inherit;color:var(--text)}
.public-claimed-time-fields>small{grid-column:1/-1;color:var(--muted);line-height:1.4}
.public-payment-confirmation{display:grid;gap:13px;text-align:center;padding:24px}
.public-payment-confirm-icon{width:60px;height:60px;border-radius:50%;margin:0 auto;display:grid;place-items:center;background:#eafaf2;border:1px solid #a9dec4;color:#11845c;font-size:30px;font-weight:950}
.public-payment-confirmation h1{margin:0;font-size:23px}
.public-payment-confirmation p{margin:0;color:var(--muted);line-height:1.55}
.public-payment-confirm-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe8f4;background:#f8fbff;border-radius:14px;padding:12px 14px;text-align:left}
.public-payment-confirm-meta span{font-weight:800}
.public-payment-confirm-meta b{color:#0b63d1;white-space:nowrap}
@media(max-width:520px){
  .public-payment-receipt-head{align-items:flex-start;flex-direction:column}
  .public-claimed-time-fields{grid-template-columns:1fr}
  .public-claimed-time-fields>small{grid-column:1}
}


/* V23 — Admin Payment Control Panel */
.admin-payment-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:14px}
.admin-payment-filter{border:1px solid var(--line);background:#fff;border-radius:14px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text);cursor:pointer;font:inherit}
.admin-payment-filter span{font-size:12px;font-weight:800}.admin-payment-filter b{font-size:15px}
.admin-payment-filter.active{border-color:#62a9ff;background:#eef6ff;box-shadow:0 0 0 2px rgba(52,126,255,.07)}
.admin-payment-panel{padding:16px}
.admin-payment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.admin-payment-search{display:flex;align-items:center;gap:8px;min-width:280px;max-width:600px;flex:1;border:1px solid var(--line);border-radius:14px;background:#f8fbff;padding:0 12px}
.admin-payment-search input{border:0;outline:0;background:transparent;width:100%;padding:11px 0;font:inherit;color:var(--text)}
.admin-payment-toolbar>span{font-size:12px;font-weight:800;color:var(--muted)}
.admin-payment-list{display:grid;gap:10px}
.admin-payment-item{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.admin-payment-main{display:grid;grid-template-columns:minmax(230px,1.4fr) minmax(130px,.7fr) minmax(180px,.9fr) auto;gap:14px;align-items:center;padding:13px 14px}
.admin-payment-person{display:flex;align-items:center;gap:10px;min-width:0}
.admin-payment-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#edf5ff;border:1px solid #d6e7f7;display:grid;place-items:center;font-weight:900;color:#0b63d1;flex:0 0 auto}
.admin-payment-avatar img{width:100%;height:100%;object-fit:cover}
.admin-payment-person>div:last-child,.admin-payment-money{display:grid;gap:3px;min-width:0}
.admin-payment-person b,.admin-payment-person small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-payment-person small,.admin-payment-money small{font-size:12px;color:var(--muted)}
.admin-payment-money b{font-size:16px}
.admin-payment-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.admin-payment-status-badge,.admin-payment-receipt-badge,.admin-payment-warning{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900}
.admin-payment-status-badge.active{background:#eaf6ff;color:#1768a8}
.admin-payment-status-badge.waiting{background:#fff3df;color:#956000}
.admin-payment-status-badge.pending{background:#eef5ff;color:#2f64b7}
.admin-payment-status-badge.approved{background:#eaf9f1;color:#128258}
.admin-payment-status-badge.review{background:#fff4df;color:#9a6500}
.admin-payment-status-badge.conflict{background:#fff0ef;color:#bd3f35}
.admin-payment-status-badge.cancelled{background:#f1f3f6;color:#64748b}
.admin-payment-status-badge.rejected{background:#fff0f0;color:#b63d3d}
.admin-payment-receipt-badge{background:#f2f4f7;color:#64748b}.admin-payment-receipt-badge.ready{background:#edf9f3;color:#14845c}
.admin-payment-warning{background:#fff0d7;color:#955f00}
.admin-payment-details-panel{border-top:1px solid var(--line);background:#fbfdff;padding:14px}
.admin-payment-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.admin-payment-detail-item{border:1px solid #dce7f1;background:#fff;border-radius:12px;padding:10px;display:grid;gap:3px;min-width:0}
.admin-payment-detail-item small{font-size:10px;font-weight:800;color:var(--muted)}
.admin-payment-detail-item b{font-size:12px;word-break:break-word}
.admin-payment-decision-box{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.admin-payment-decision-box label{display:grid;gap:5px;flex:1;font-size:12px;font-weight:800}
.admin-payment-decision-box input{min-height:42px;border:1px solid var(--line);border-radius:11px;padding:9px 11px;font:inherit}
.admin-payment-decision-box>div{display:flex;gap:8px}
.admin-payment-admin-note{margin-top:10px;padding:10px;border-radius:11px;background:#f4f7fb;color:var(--muted);font-size:12px}
.admin-payment-receipt-modal{display:grid;gap:13px}.admin-payment-receipt-modal h2{margin:0}.admin-payment-receipt-modal img{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:14px;border:1px solid var(--line);background:#f4f6f8}

.admin-payment-ai-box{margin:12px 0;padding:12px 14px;border:1px solid #f2cf78;border-radius:14px;background:#fffaf0;display:grid;gap:8px}
.admin-payment-ai-box.is-pass{border-color:#a7e5c1;background:#f0fff6}.admin-payment-ai-box>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-payment-ai-box>div span{font-weight:800;font-size:13px}.admin-payment-ai-box ul{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px}.admin-payment-ai-box small{color:var(--muted)}
.admin-payment-ai-modal{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:#f7fbff;border:1px solid var(--line)}.admin-payment-ai-modal b{font-size:14px}.admin-payment-ai-modal span{font-weight:800}.admin-payment-ai-modal small{color:var(--muted);line-height:1.35}
@media(max-width:980px){
  .admin-payment-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-payment-main{grid-template-columns:minmax(220px,1.3fr) minmax(120px,.7fr) 1fr}
  .admin-payment-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
  .admin-payment-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .admin-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-payment-toolbar{align-items:stretch;flex-direction:column}.admin-payment-search{min-width:0;max-width:none}
  .admin-payment-main{grid-template-columns:1fr;gap:10px}
  .admin-payment-actions{grid-column:auto;justify-content:stretch}.admin-payment-actions .btn{width:100%}
  .admin-payment-detail-grid{grid-template-columns:1fr}
  .admin-payment-decision-box{align-items:stretch;flex-direction:column}.admin-payment-decision-box>div{display:grid;grid-template-columns:1fr 1fr}
}


/* TEMP TEST TOOL — permanent student hard delete */
.admin-student-hard-delete-zone{
  margin-top:14px;padding:14px 16px;border:1px dashed #f0a0a0;border-radius:14px;
  background:#fff8f8;display:flex;align-items:center;justify-content:space-between;gap:14px
}
.admin-student-hard-delete-zone>div{display:grid;gap:4px}
.admin-student-hard-delete-zone b{color:#991b1b}
.admin-student-hard-delete-zone small{color:#7f1d1d;line-height:1.45}
@media(max-width:720px){
  .admin-student-hard-delete-zone{align-items:stretch;flex-direction:column}
  .admin-student-hard-delete-zone .btn{width:100%}
}


/* V29 — XP system */
.public-task-goal .public-task-copy{display:flex;flex-direction:column;gap:4px}
.public-task-goal .public-task-copy>span{display:flex;align-items:center;gap:7px}
.public-task-goal .public-task-copy small{font-weight:800;color:var(--muted);font-size:12px}
.public-info-btn{width:20px;height:20px;border-radius:50%;border:1px solid #b8cce0;background:#f7fbff;color:#3b6687;font:800 12px/1 inherit;display:inline-grid;place-items:center;cursor:pointer;padding:0}
.public-info-btn:hover{background:#eaf6ff;border-color:#83b9d6}
.public-xp-info{margin:-2px 0 4px;padding:10px 12px;border-radius:12px;background:#f4f8fc;border:1px solid #dbe7f1;color:#526579;font-size:12px;line-height:1.55}
.public-ranking-card{display:grid;gap:14px}
.public-ranking-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:5px;border-radius:14px;background:#f1f5f9}
.public-ranking-tab{border:0;background:transparent;border-radius:10px;padding:10px 8px;font:800 13px inherit;color:#60758a;cursor:pointer}
.public-ranking-tab.active{background:#fff;color:#087bac;box-shadow:0 4px 14px rgba(30,70,110,.08)}
.public-ranking-summary{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#f8fbfd}
.public-ranking-summary span{color:var(--muted);font-weight:800}
.public-ranking-summary b{font-size:18px}
.public-ranking-summary em{font-style:normal;font-weight:1000;color:#087bac}
.public-ranking-note{color:var(--muted);line-height:1.45}
.public-xp-history{display:grid;gap:8px}
.public-xp-history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 12px;border-radius:12px;background:#f7f9fc}
.public-xp-history-row>div{display:grid;gap:3px}
.public-xp-history-row small{color:var(--muted)}
.public-xp-history-row strong{color:#087bac;white-space:nowrap}
.admin-student-xp-total{padding:8px 0 12px;color:var(--muted)}
.admin-student-xp-total b{color:var(--text)}


/* V29.1 — XP goal polish + TOP10 */
.public-task{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.public-task-mainline{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.public-task-title{
  min-width:0;
  color:var(--text);
  font-weight:850;
  line-height:1.35;
}
.public-task-progress{
  color:#5577a1;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.public-task-reward{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}
.public-task-reward>b{
  color:#0082b8;
  font-weight:1000;
}
.public-info-btn{
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:50%;
  border:1px solid rgba(70,119,159,.28);
  background:linear-gradient(180deg,#fff,#edf7ff);
  color:#3f6f97;
  font:900 12px/1 Arial,sans-serif;
  box-shadow:0 2px 7px rgba(50,91,125,.08),inset 0 1px 0 #fff;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  padding:0;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.public-info-btn:hover{
  background:#e8f5ff;
  box-shadow:0 4px 10px rgba(50,91,125,.12);
}
.public-info-btn:active{transform:scale(.94)}
.public-xp-info{
  grid-column:1/-1;
  margin:-4px 0 2px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(237,247,255,.78);
  border:1px solid rgba(129,176,210,.25);
  color:#4c6276;
  font-size:12px;
  line-height:1.55;
}
.public-top10-label{
  margin:2px 0 8px;
  color:#74879b;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
}
.public-own-rank-separator{
  position:relative;
  display:flex;
  justify-content:center;
  margin:12px 0 9px;
  color:#7b8da0;
  font-size:11px;
  font-weight:850;
}
.public-own-rank-separator:before{
  content:"";
  position:absolute;
  left:0;right:0;top:50%;
  height:1px;
  background:#e1e9f1;
}
.public-own-rank-separator span{
  position:relative;
  z-index:1;
  background:var(--card,#fff);
  padding:0 9px;
}
.public-own-rank-outside{
  border:1px solid rgba(23,148,211,.28)!important;
  background:rgba(226,246,255,.66)!important;
}
@media(max-width:430px){
  .public-task{gap:8px}
  .public-task-mainline{gap:6px}
  .public-task-title{font-size:14px}
  .public-task-reward{gap:6px}
  .public-task-reward>b{font-size:14px}
}


/* V29.2 — Admin student compact identity + payment stats placeholder */
.admin-student-name-capsule{
  position:relative;
  min-width:0;
  border:1px solid #dbe7f1;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.admin-student-name-capsule-head{
  width:100%;
  min-height:77px;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  text-align:left;
  cursor:pointer;
  color:inherit;
}
.admin-student-name-capsule-head>span:first-child{
  min-width:0;
  display:grid;
  gap:5px;
}
.admin-student-name-capsule-head small,
.admin-student-phone-capsule small{
  color:#8495a8;
  font-size:11px;
  font-weight:850;
}
.admin-student-name-capsule-head b,
.admin-student-phone-capsule b{
  min-height:18px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#16375a;
  font-size:14px;
  font-weight:900;
}
.admin-student-capsule-chevron{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#70869b;
  background:#f4f8fb;
  font-size:18px;
  transition:transform .18s ease,background .18s ease;
}
.admin-student-name-capsule-head.is-open .admin-student-capsule-chevron{
  transform:rotate(180deg);
  background:#eaf5fb;
}
.admin-student-name-history{
  border-top:1px solid #e5edf4;
  padding:10px 14px 13px;
  background:#fbfdff;
}
.admin-student-name-history-head,
.admin-student-name-history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,auto);
  gap:18px;
  align-items:center;
}
.admin-student-name-history-head{
  padding:2px 8px 7px;
  color:#8b9aad;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.admin-student-name-history-head span:last-child,
.admin-student-name-history-row time{
  text-align:right;
}
.admin-student-name-history-row{
  padding:9px 8px;
  border-top:1px solid #edf2f7;
}
.admin-student-name-history-row:first-child{border-top:0}
.admin-student-name-history-row span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#203f61;
  font-size:12px;
  font-weight:850;
}
.admin-student-name-history-row time{
  color:#7d8da0;
  font-size:11px;
  white-space:nowrap;
}
.admin-student-name-history-row.is-registered span:after{
  content:"Ro‘yxatdan o‘tgan";
  display:inline-block;
  margin-left:8px;
  padding:2px 6px;
  border-radius:999px;
  background:#eef6fb;
  color:#54718f;
  font-size:9px;
  font-weight:900;
  vertical-align:1px;
}
.admin-student-phone-capsule{
  min-height:77px;
}
.admin-student-photo-history{
  padding:12px 14px 14px;
}
.admin-student-photo-history-body{
  min-height:34px;
}
.admin-student-photo-history-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
}
.admin-student-photo-history-item{
  margin:0;
  min-width:0;
}
.admin-student-photo-history-item a{
  display:block;
  aspect-ratio:1;
  overflow:hidden;
  border:1px solid #d9e5ef;
  border-radius:14px;
  background:#eef4f8;
  box-shadow:0 5px 14px rgba(35,72,103,.08);
}
.admin-student-photo-history-item.is-current a{
  border-color:#7ec7f2;
  box-shadow:0 0 0 2px rgba(80,175,230,.14),0 5px 14px rgba(35,72,103,.09);
}
.admin-student-photo-history-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.admin-student-photo-history-item figcaption{
  margin-top:6px;
  color:#7d8da0;
  font-size:10px;
  line-height:1.25;
  text-align:center;
  word-break:break-word;
}
.admin-student-premium-row{
  display:grid;
  grid-template-columns:minmax(190px,240px) minmax(0,1fr);
  gap:12px;
  margin-top:14px;
  align-items:stretch;
}
.admin-student-premium-row .admin-student-premium-card{
  margin-top:0;
}
.admin-student-payment-stats-card{
  min-height:100%;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#fff);
  display:grid;
  align-content:center;
  gap:7px;
}
.admin-student-payment-stats-card small{
  color:#637e9b;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
}
.admin-student-payment-stats-card b{
  color:#183d63;
  font-size:22px;
  line-height:1;
}
@media(max-width:900px){
  .admin-student-premium-row{grid-template-columns:1fr}
}
@media(max-width:600px){
  .admin-student-name-history-head,
  .admin-student-name-history-row{grid-template-columns:minmax(0,1fr) 120px;gap:10px}
  .admin-student-name-history-row time{font-size:10px}
}

/* vNext — Moslashtirish tanlovi: mobil ekranda tanlangan va xato juftlik aniqroq ko‘rinsin. */
body.student-app .matching-card.selected,
body.student-app .matching-card.selected:hover{
  border-color:#2f7dff!important;
  background:linear-gradient(145deg,#eef6ff,#dfeeff)!important;
  color:var(--student-text)!important;
  box-shadow:0 0 0 3px rgba(47,125,255,.18),0 10px 22px rgba(47,125,255,.14),inset 0 1px 0 rgba(255,255,255,.95)!important;
  transform:translateY(-1px) scale(.985);
}
html[data-theme="dark"] body.student-app .matching-card.selected,
html[data-theme="dark"] body.student-app .matching-card.selected:hover{
  border-color:#67a0ff!important;
  background:linear-gradient(145deg,rgba(42,88,158,.88),rgba(24,55,105,.94))!important;
  color:#f4f8ff!important;
  box-shadow:0 0 0 3px rgba(103,160,255,.22),0 10px 22px rgba(0,0,0,.25)!important;
}
body.student-app .matching-card.wrong,
body.student-app .matching-card.wrong:hover{
  border-color:#f06b9c!important;
  background:linear-gradient(145deg,#fff3f8,#ffe6ef)!important;
  color:#9d174d!important;
  box-shadow:0 0 0 3px rgba(240,107,156,.16),0 10px 22px rgba(214,62,119,.13)!important;
  animation:matchingShake .32s ease;
}
html[data-theme="dark"] body.student-app .matching-card.wrong,
html[data-theme="dark"] body.student-app .matching-card.wrong:hover{
  border-color:#f184ac!important;
  background:linear-gradient(145deg,rgba(126,39,76,.88),rgba(83,27,57,.94))!important;
  color:#ffd8e8!important;
  box-shadow:0 0 0 3px rgba(241,132,172,.18),0 10px 22px rgba(0,0,0,.26)!important;
}

/* v33 — optional collection blocks (Blok → to‘plam → mavzu → so‘z) */
.collection-top-actions{max-width:920px}
.btn.violet{background:linear-gradient(135deg,#7c5cff,#6d46ea);color:#fff;border-color:transparent;box-shadow:0 8px 20px rgba(109,70,234,.18)}
.btn.violet:hover{filter:brightness(1.04);transform:translateY(-1px)}
.collection-block-group{display:grid;gap:0;border:1px solid #cfe0ee;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#f4f9ff);padding:6px;overflow:hidden}
.collection-block-head{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px;align-items:stretch}
.collection-block-toggle{border:0;background:transparent;color:var(--text);min-width:0;padding:7px 8px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;cursor:pointer;border-radius:11px}
.collection-block-toggle:hover{background:rgba(7,143,207,.06)}
.collection-block-toggle>span:nth-child(2){display:grid;gap:2px;min-width:0}.collection-block-toggle b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-block-toggle small{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-block-toggle em{font-style:normal;font-size:11px;font-weight:900;color:#52677f;white-space:nowrap}
.collection-block-chevron{font-size:19px;line-height:1;color:#4c6984;transform:rotate(0deg);transition:transform .18s ease;display:grid;place-items:center}
.collection-block-group.is-collapsed .collection-block-chevron{transform:rotate(-90deg)}
.collection-block-books{display:grid;gap:7px;padding:7px 0 0 12px}.collection-block-group.is-collapsed .collection-block-books{display:none}
.collection-block-books .collection-choice-row{position:relative}.collection-block-books .collection-choice-row::before{content:'';position:absolute;left:-9px;top:13px;bottom:13px;width:2px;border-radius:99px;background:#d9e8f4}
.collection-block-books .collection-choice{background:#fff}.collection-block-books .collection-choice.active{background:#e6f6ff}
.collection-block-empty{padding:10px 12px 11px;color:var(--muted);font-size:12px;text-align:center}
.collection-book-row.is-standalone{margin-top:1px}
.collection-block-card{position:relative;text-align:left;cursor:pointer}.collection-block-card .collection-block-badge{font-size:17px}.collection-block-enter{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:30px;line-height:1;color:#6684a0;font-weight:500}
html[data-theme="dark"] .collection-block-group{background:rgba(255,255,255,.035);border-color:var(--line)}
html[data-theme="dark"] .collection-block-books .collection-choice{background:rgba(255,255,255,.045)}
html[data-theme="dark"] .collection-block-books .collection-choice.active{background:rgba(14,165,233,.14)}
@media(max-width:900px){.collection-top-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.collection-block-books{padding-left:8px}.collection-block-toggle{grid-template-columns:18px minmax(0,1fr) auto}.collection-block-books .collection-choice-row::before{left:-6px}.collection-top-actions{grid-template-columns:1fr}}

/* v35: admin-side temporary student visibility controls */
.collection-visibility-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;margin-left:6px;border-radius:999px;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.04em;vertical-align:2px;background:#fff1d6;color:#9a5b00;border:1px solid #f0c56f}
.collection-choice-row.is-student-hidden>.collection-choice,.collection-block-group.is-student-hidden>.collection-block-head .collection-block-toggle{background:linear-gradient(180deg,#fffaf1,#fff7e8);border-color:#efd7a8}
.collection-choice-row.is-student-hidden>.collection-choice{opacity:.82}
.collection-block-group.is-student-hidden{border-color:#efd7a8;background:linear-gradient(180deg,#fffaf3,#fff8ec)}
.collection-visibility-manage{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin:14px 0;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:#f8fbff}
.collection-visibility-manage>div{display:grid;gap:4px}.collection-visibility-manage b{font-size:15px}.collection-visibility-manage small{color:#63758b;line-height:1.45}.collection-visibility-manage.is-hidden{background:#fff8eb;border-color:#efd7a8}.collection-visibility-manage.is-hidden b{color:#8d5700}
html[data-theme="dark"] .collection-visibility-badge{background:rgba(245,158,11,.16);color:#f9c96a;border-color:rgba(245,158,11,.36)}
html[data-theme="dark"] .collection-choice-row.is-student-hidden>.collection-choice,html[data-theme="dark"] .collection-block-group.is-student-hidden>.collection-block-head .collection-block-toggle{background:rgba(245,158,11,.07);border-color:rgba(245,158,11,.28)}
html[data-theme="dark"] .collection-block-group.is-student-hidden{background:rgba(245,158,11,.045);border-color:rgba(245,158,11,.28)}
html[data-theme="dark"] .collection-visibility-manage{background:rgba(255,255,255,.035)}html[data-theme="dark"] .collection-visibility-manage.is-hidden{background:rgba(245,158,11,.07);border-color:rgba(245,158,11,.28)}
@media(max-width:600px){.collection-visibility-manage{grid-template-columns:1fr}.collection-visibility-manage .btn{width:100%}}


/* v37: “TEZ ORADA” pre-release state */
.collection-coming-soon-badge{
  display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;margin-left:6px;
  border-radius:999px;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.05em;
  vertical-align:2px;background:#eef0ff;color:#5b52c8;border:1px solid #c9c5ff
}
.collection-choice-row.is-coming-soon>.collection-choice,
.collection-block-group.is-coming-soon>.collection-block-head .collection-block-toggle{
  background:linear-gradient(180deg,#faf9ff,#f4f2ff);border-color:#d8d4ff
}
.collection-block-group.is-coming-soon{border-color:#d8d4ff;background:linear-gradient(180deg,#fbfaff,#f7f5ff)}
.collection-visibility-manage.is-coming-soon{background:#f7f5ff;border-color:#d7d2ff}
.collection-visibility-manage.is-coming-soon b{color:#5148b8}
.collection-state-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}

body.student-app .collection-access-card.is-coming-soon{
  opacity:.78;filter:saturate(.72) brightness(.98);cursor:default!important;
  border-color:color-mix(in srgb,var(--student-line) 52%,#8b7cff 48%);
  background:linear-gradient(145deg,color-mix(in srgb,var(--student-surface-strong) 94%,#f0edff 6%),var(--student-surface-strong));
  box-shadow:0 10px 28px rgba(93,76,196,.10),var(--student-shadow-soft)
}
body.student-app .collection-showcase-card.is-coming-soon::after{
  background:linear-gradient(180deg,#8f83ff,#6f63e8);opacity:.88
}
body.student-app .collection-access-card.is-coming-soon:disabled{
  opacity:.78;color:inherit;-webkit-text-fill-color:currentColor
}
body.student-app .student-coming-soon-badge{
  display:inline-flex;align-items:center;padding:4px 8px;margin-left:6px;border-radius:999px;
  background:#eeebff;border:1px solid #c9c3ff;color:#5a50c8;font-size:9px;font-weight:900;
  letter-spacing:.06em;vertical-align:middle;white-space:nowrap
}
body.student-app .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  position:absolute;right:12px;top:10px;margin:0
}
html[data-theme="dark"] .collection-coming-soon-badge{
  background:rgba(124,110,255,.14);color:#bdb6ff;border-color:rgba(154,143,255,.34)
}
html[data-theme="dark"] .collection-choice-row.is-coming-soon>.collection-choice,
html[data-theme="dark"] .collection-block-group.is-coming-soon>.collection-block-head .collection-block-toggle{
  background:rgba(125,108,255,.07);border-color:rgba(146,134,255,.28)
}
html[data-theme="dark"] .collection-block-group.is-coming-soon{background:rgba(125,108,255,.04);border-color:rgba(146,134,255,.28)}
html[data-theme="dark"] .collection-visibility-manage.is-coming-soon{background:rgba(125,108,255,.07);border-color:rgba(146,134,255,.28)}
html[data-theme="dark"] body.student-app .student-coming-soon-badge{
  background:rgba(124,110,255,.16);color:#cbc5ff;border-color:rgba(154,143,255,.34)
}
@media(max-width:600px){
  .collection-state-actions{width:100%;justify-content:stretch}
  .collection-state-actions .btn{flex:1}
}

/* v39: Telegram Mini App auth — login/password form must stay hidden once Telegram initData is detected. */
.auth-card[hidden]{display:none!important}

/* =========================================================
   v42 — Student "Bo‘limni tanlang" ONLY
   Visual-only patch. No DOM/order/events/API logic changed.
   Target: selected Deep Teal reference design.
   ========================================================= */

/* Scope this redesign ONLY while the top-level block picker is on screen. */
body.student-app:has(.collection-block-card) {
  background-color:#003d4a!important;
  background-image:url('../img/student/section_deep_teal.webp')!important;
  background-repeat:no-repeat!important;
  background-position:center top!important;
  background-size:cover!important;
  background-attachment:scroll!important;
  color:#fff;
}

/* Let the selected texture run continuously behind the whole page. */
body.student-app:has(.collection-block-card) .shell,
body.student-app:has(.collection-block-card) .content {
  background:transparent!important;
}
body.student-app:has(.collection-block-card) .content {
  padding-top:clamp(44px,8vh,86px)!important;
  padding-bottom:max(70px,env(safe-area-inset-bottom))!important;
}

/* Header: no large strip; avatar remains left, existing buttons remain right. */
body.student-app:has(.collection-block-card) .student-topbar {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding-top:12px!important;
  padding-bottom:8px!important;
  height:auto!important;
  min-height:72px!important;
}
body.student-app:has(.collection-block-card) .student-avatar,
body.student-app:has(.collection-block-card) .student-profile-photo {
  width:56px!important;
  height:56px!important;
  border-radius:17px!important;
  color:#eefcff!important;
  background:linear-gradient(145deg,#0d3d49,#0b6674)!important;
  border:1px solid rgba(216,245,248,.18)!important;
  box-shadow:0 12px 28px rgba(0,20,28,.28),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
body.student-app:has(.collection-block-card) .student-header-nav-btn {
  height:56px!important;
  min-height:56px!important;
  border-radius:18px!important;
  background:rgba(7,48,59,.76)!important;
  color:#f8fbfc!important;
  border:1px solid rgba(203,235,239,.15)!important;
  box-shadow:0 10px 24px rgba(0,21,28,.18),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(16px) saturate(115%)!important;
  -webkit-backdrop-filter:blur(16px) saturate(115%)!important;
  font-weight:700!important;
}
body.student-app:has(.collection-block-card) .student-header-nav-btn:hover,
body.student-app:has(.collection-block-card) .student-header-nav-btn:active {
  background:rgba(10,61,72,.86)!important;
}

/* Title group = centered exactly like the selected mockup. */
body.student-app:has(.collection-block-card) .page-head {
  display:block!important;
  text-align:center!important;
  margin:0 auto clamp(34px,5.2vh,54px)!important;
  width:100%!important;
}
body.student-app:has(.collection-block-card) .page-head h1 {
  color:#fff!important;
  margin:0!important;
  font-size:clamp(38px,8.4vw,64px)!important;
  line-height:1.04!important;
  letter-spacing:-.045em!important;
  font-weight:850!important;
  text-shadow:0 3px 16px rgba(0,22,29,.24)!important;
}
/* Decorative divider under heading; does not alter DOM or click targets. */
body.student-app:has(.collection-block-card) .page-head::after {
  content:'•';
  display:block;
  width:210px;
  max-width:48vw;
  height:24px;
  margin:14px auto 0;
  color:#82aeb7;
  font-size:19px;
  line-height:18px;
  letter-spacing:0;
  background:
    linear-gradient(90deg,transparent 0 5%,rgba(141,185,193,.58) 5% 43%,transparent 43% 57%,rgba(141,185,193,.58) 57% 95%,transparent 95%) center 8px/100% 1px no-repeat;
}

/* Top-level block grid only. */
body.student-app:has(.collection-block-card) .collection-access-grid {
  width:min(100%,820px)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:clamp(18px,2.4vh,28px)!important;
}

/* Cards: preserve original buttons/click handlers; only restyle. */
body.student-app:has(.collection-block-card) .collection-block-card {
  position:relative!important;
  min-height:clamp(160px,19vh,218px)!important;
  width:100%!important;
  padding:28px 112px 28px 190px!important;
  border-radius:38px!important;
  border:1px solid rgba(204,220,226,.76)!important;
  overflow:hidden!important;
  text-align:left!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.995),rgba(246,250,252,.985))!important;
  box-shadow:
    0 22px 48px rgba(0,25,33,.20),
    inset 0 1px 0 rgba(255,255,255,1)!important;
  color:#071d2f!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:active {
  transform:scale(.988)!important;
  box-shadow:0 14px 32px rgba(0,25,33,.18),inset 0 1px 0 rgba(255,255,255,1)!important;
}
body.student-app:has(.collection-block-card) .collection-block-card::after {
  content:''!important;
  position:absolute!important;
  left:50px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:118px!important;
  height:118px!important;
  border-radius:28px!important;
  border:0!important;
  opacity:1!important;
  background-color:#e9f7fc!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:76px 76px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 24px rgba(29,95,114,.08)!important;
}
/* First block: academy/graduation icon. */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1)::after {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23105e72'/%3E%3Cstop offset='1' stop-color='%2303293a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M8 34 48 15l40 19-40 19L8 34Zm15 11v20c0 8 11 15 25 15s25-7 25-15V45L48 57 23 45Z'/%3E%3Cpath d='M82 39v25' stroke='%2303293a' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='82' cy='68' r='5' fill='%2303293a'/%3E%3C/svg%3E")!important;
}
/* Second block: document + pencil icon. */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2)::after {
  background-color:#e8faf5!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23168b83'/%3E%3Cstop offset='1' stop-color='%23033d4b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='17' y='13' width='54' height='69' rx='9' fill='url(%23g2)'/%3E%3Cpath d='M29 30h30M29 43h25M29 56h18' stroke='%23dffaf3' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='m55 70 24-24 9 9-24 24-13 4 4-13Z' fill='%230b6770'/%3E%3Cpath d='m76 49 7 7' stroke='%23baf3e8' stroke-width='4'/%3E%3C/svg%3E")!important;
}
/* Additional future blocks get a neutral book icon without changing functionality. */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(n+3)::after {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath d='M16 22c13-6 24-4 32 3v52c-9-7-20-9-32-3V22Zm64 0c-13-6-24-4-32 3v52c9-7 20-9 32-3V22Z' fill='%230b6674'/%3E%3C/svg%3E")!important;
}

/* Remove old Korean badge / decorative wheel only on this page. */
body.student-app:has(.collection-block-card) .collection-block-card .collection-korean-badge,
body.student-app:has(.collection-block-card) .collection-block-card .collection-card-pattern {
  display:none!important;
}
body.student-app:has(.collection-block-card) .collection-block-enter {
  right:42px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:64px!important;
  height:64px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#edf4f7!important;
  color:#06344b!important;
  font-size:0!important;
  box-shadow:inset 0 1px 0 #fff!important;
}
body.student-app:has(.collection-block-card) .collection-block-enter::before {
  content:'›';
  font-size:48px;
  line-height:1;
  font-weight:400;
  transform:translateY(-2px);
}
body.student-app:has(.collection-block-card) .collection-showcase-copy {
  display:block!important;
  position:relative!important;
  z-index:2!important;
}
body.student-app:has(.collection-block-card) .collection-showcase-copy h3 {
  margin:0!important;
  color:#071d2f!important;
  font-size:clamp(34px,7vw,56px)!important;
  line-height:1.02!important;
  font-weight:850!important;
  letter-spacing:-.045em!important;
}
/* Visual-only subtitles matching the selected reference. */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1) .collection-showcase-copy h3::after,
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2) .collection-showcase-copy h3::after {
  display:block;
  margin-top:14px;
  color:#718499;
  font-size:clamp(17px,3.8vw,27px);
  line-height:1.22;
  font-weight:500;
  letter-spacing:-.018em;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1) .collection-showcase-copy h3::after {
  content:'Koreya universitetlari uchun imtihon';
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2) .collection-showcase-copy h3::after {
  content:'Koreys tili bilish darajasi imtihoni';
}

/* Coming-soon state keeps existing semantics and remains visibly disabled. */
body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon {
  opacity:.64!important;
  filter:saturate(.66)!important;
}
body.student-app:has(.collection-block-card) .collection-block-card .student-coming-soon-badge {
  font-size:9px!important;
  vertical-align:middle!important;
}

/* Mobile proportions tuned to Telegram Mini App / iPhone widths. */
@media(max-width:600px) {
  body.student-app:has(.collection-block-card) .content {
    padding-left:22px!important;
    padding-right:22px!important;
    padding-top:46px!important;
  }
  body.student-app:has(.collection-block-card) .student-topbar {
    padding-left:24px!important;
    padding-right:24px!important;
    gap:12px!important;
  }
  body.student-app:has(.collection-block-card) .student-top-actions {
    gap:10px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.student-app:has(.collection-block-card) .student-header-nav-btn {
    height:52px!important;
    min-height:52px!important;
    font-size:15px!important;
    border-radius:17px!important;
  }
  body.student-app:has(.collection-block-card) .student-avatar,
  body.student-app:has(.collection-block-card) .student-profile-photo {
    width:54px!important;
    height:54px!important;
  }
  body.student-app:has(.collection-block-card) .page-head {
    margin-bottom:34px!important;
  }
  body.student-app:has(.collection-block-card) .page-head h1 {
    font-size:clamp(39px,10vw,52px)!important;
  }
  body.student-app:has(.collection-block-card) .collection-access-grid {
    gap:20px!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card {
    min-height:132px!important;
    padding:22px 76px 22px 132px!important;
    border-radius:28px!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card::after {
    left:22px!important;
    width:88px!important;
    height:88px!important;
    border-radius:23px!important;
    background-size:60px 60px!important;
  }
  body.student-app:has(.collection-block-card) .collection-showcase-copy h3 {
    font-size:31px!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1) .collection-showcase-copy h3::after,
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2) .collection-showcase-copy h3::after {
    margin-top:8px!important;
    font-size:15px!important;
    line-height:1.18!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-enter {
    right:18px!important;
    width:48px!important;
    height:48px!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-enter::before {
    font-size:38px!important;
  }
}

@media(max-width:390px) {
  body.student-app:has(.collection-block-card) .content {padding-left:16px!important;padding-right:16px!important}
  body.student-app:has(.collection-block-card) .student-topbar {padding-left:16px!important;padding-right:16px!important}
  body.student-app:has(.collection-block-card) .student-avatar,
  body.student-app:has(.collection-block-card) .student-profile-photo {width:50px!important;height:50px!important}
  body.student-app:has(.collection-block-card) .student-header-nav-btn {height:48px!important;min-height:48px!important;font-size:14px!important}
  body.student-app:has(.collection-block-card) .collection-block-card {min-height:124px!important;padding-left:118px!important;padding-right:66px!important}
  body.student-app:has(.collection-block-card) .collection-block-card::after {left:18px!important;width:82px!important;height:82px!important;background-size:55px 55px!important}
  body.student-app:has(.collection-block-card) .collection-showcase-copy h3 {font-size:28px!important}
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1) .collection-showcase-copy h3::after,
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2) .collection-showcase-copy h3::after {font-size:13px!important}
}

/* =========================================================
   v45 — Same optimized deep-teal texture on every STUDENT page
   Visual background only. No layout, DOM or behavior changes.
   The v44 section-picker styling remains untouched.
   ========================================================= */
body.student-app:not(:has(.collection-block-card)){
  background-color:#003f4b!important;
  background-image:url('../img/student/section_deep_teal.webp')!important;
  background-size:cover!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
}

/* =========================================================
   v46 — Student top navigation alignment + unified glass size
   VISUAL/LAYOUT ONLY: no DOM, JS, API or behavior changes.
   - 한 stays alone on the left.
   - Back + Home stay grouped on the right.
   - The three capsules share one fixed height on every student page.
   - Removes the separator line under the student topbar everywhere.
   ========================================================= */
body.student-app .student-topbar{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  width:100%!important;
  min-height:68px!important;
  height:auto!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  border-bottom:0!important;
}

body.student-app .student-profile-trigger{
  justify-self:start!important;
  width:52px!important;
  min-width:52px!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
}
body.student-app .student-avatar,
body.student-app .student-profile-photo{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  border-radius:16px!important;
}

body.student-app .student-top-actions{
  justify-self:end!important;
  width:min(100%,300px)!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,144px))!important;
  justify-content:end!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
}
body.student-app .student-header-nav-btn{
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:16px!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
/* Keep a lone Back/Home button on the far-right slot, as before. */
body.student-app .student-top-actions>.student-header-nav-btn:only-child{
  grid-column:2!important;
}

/* One consistent translucent glass treatment for the three controls. */
body.student-app .student-profile-trigger,
body.student-app .student-header-nav-btn{
  background:rgba(4,49,59,.70)!important;
  border:1px solid rgba(122,225,229,.46)!important;
  color:#f7ffff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(0,20,28,.16)!important;
  backdrop-filter:blur(14px) saturate(118%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(118%)!important;
}
body.student-app .student-profile-trigger:active,
body.student-app .student-header-nav-btn:active{
  background:rgba(7,63,73,.78)!important;
}
/* Avatar itself becomes transparent inside the outer glass capsule. */
body.student-app .student-profile-trigger .student-avatar,
body.student-app .student-profile-trigger .student-profile-photo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* Remove the old dividing strip/line below the top navigation on every student page. */
body.student-app .student-topbar::after,
body.student-app .student-topbar::before{
  border-bottom:0!important;
}

@media(max-width:600px){
  body.student-app .student-topbar{
    grid-template-columns:48px minmax(0,1fr)!important;
    column-gap:10px!important;
    padding-left:max(14px,env(safe-area-inset-left))!important;
    padding-right:max(14px,env(safe-area-inset-right))!important;
  }
  body.student-app .student-profile-trigger,
  body.student-app .student-avatar,
  body.student-app .student-profile-photo{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:15px!important;
  }
  body.student-app .student-top-actions{
    width:min(100%,286px)!important;
    grid-template-columns:repeat(2,minmax(0,138px))!important;
    gap:8px!important;
  }
  body.student-app .student-header-nav-btn{
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    border-radius:15px!important;
    padding:0 8px!important;
    font-size:13px!important;
  }
}

@media(max-width:390px){
  body.student-app .student-topbar{
    grid-template-columns:44px minmax(0,1fr)!important;
    column-gap:8px!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
  }
  body.student-app .student-profile-trigger,
  body.student-app .student-avatar,
  body.student-app .student-profile-photo{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    border-radius:14px!important;
  }
  body.student-app .student-top-actions{
    width:min(100%,266px)!important;
    grid-template-columns:repeat(2,minmax(0,129px))!important;
    gap:8px!important;
  }
  body.student-app .student-header-nav-btn{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:14px!important;
    padding:0 6px!important;
    font-size:12px!important;
  }
}

/* =========================================================
   v47 — Student header repair / unified transparent navigation
   VISUAL + LAYOUT ONLY. No DOM/JS/API/navigation behavior changes.
   - Subpages: 한 left, Back + Home grouped right on the shared texture.
   - Dashboard: avatar + student name + dictionary search are preserved.
   - Removes the old pale header strip / separator everywhere on student UI.
   ========================================================= */

/* The header wrapper must disappear into the shared student background. */
html body.student-app .topbar.student-topbar{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body.student-app .topbar.student-topbar::before,
html body.student-app .topbar.student-topbar::after{
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* -------- Inner/sub pages -------- */
html body.student-app:not(.student-name-visible) .topbar.student-topbar{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  min-height:72px!important;
  padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left))!important;
}
html body.student-app:not(.student-name-visible) .student-profile-identity{
  display:block!important;
  width:48px!important;
  max-width:48px!important;
  min-width:48px!important;
}
html body.student-app:not(.student-name-visible) .student-profile-trigger{
  justify-self:start!important;
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  border-radius:15px!important;
}
html body.student-app:not(.student-name-visible) .student-avatar,
html body.student-app:not(.student-name-visible) .student-profile-photo{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:15px!important;
}
html body.student-app:not(.student-name-visible) .student-top-actions{
  justify-self:end!important;
  width:auto!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:128px 144px!important;
  justify-content:end!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
}
html body.student-app:not(.student-name-visible) .student-header-nav-btn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:0 10px!important;
  border-radius:15px!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.student-app:not(.student-name-visible) .student-top-actions>.student-header-nav-btn:only-child{
  grid-column:2!important;
}

/* One compact glass family for avatar / Back / Home. */
html body.student-app:not(.student-name-visible) .student-profile-trigger,
html body.student-app:not(.student-name-visible) .student-header-nav-btn{
  background:rgba(3,43,52,.64)!important;
  border:1px solid rgba(111,218,224,.48)!important;
  color:#f8ffff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 5px 16px rgba(0,18,25,.16)!important;
  backdrop-filter:blur(12px) saturate(116%)!important;
  -webkit-backdrop-filter:blur(12px) saturate(116%)!important;
}
html body.student-app:not(.student-name-visible) .student-profile-trigger:active,
html body.student-app:not(.student-name-visible) .student-header-nav-btn:active{
  background:rgba(6,59,68,.74)!important;
  transform:scale(.98)!important;
}
html body.student-app:not(.student-name-visible) .student-profile-trigger .student-avatar,
html body.student-app:not(.student-name-visible) .student-profile-trigger .student-profile-photo{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
}
html body.student-app:not(.student-name-visible) .student-header-nav-btn .nav-3d-icon{
  width:21px!important;
  height:21px!important;
  flex:0 0 21px!important;
}

/* -------- Dashboard/home header --------
   Keep the existing name + dictionary controls; do not apply subpage grid to it. */
html body.student-app.student-name-visible .topbar.student-topbar{
  display:block!important;
  min-height:72px!important;
  padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left))!important;
}
html body.student-app.student-name-visible .student-profile-identity{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 48px!important;
  align-items:center!important;
  gap:10px!important;
}
html body.student-app.student-name-visible .student-profile-trigger{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:15px!important;
  margin:0!important;
  background:rgba(3,43,52,.64)!important;
  border:1px solid rgba(111,218,224,.48)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 5px 16px rgba(0,18,25,.16)!important;
  backdrop-filter:blur(12px) saturate(116%)!important;
  -webkit-backdrop-filter:blur(12px) saturate(116%)!important;
}
html body.student-app.student-name-visible .student-profile-trigger .student-avatar,
html body.student-app.student-name-visible .student-profile-trigger .student-profile-photo{
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:15px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
}
html body.student-app.student-name-visible .student-header-name{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0 4px!important;
  margin:0!important;
  color:#f8ffff!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.student-app.student-name-visible .student-dictionary-header-btn,
html body.student-app.student-name-visible .student-dictionary-trigger{
  justify-self:end!important;
  margin:0!important;
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  padding:9px!important;
  border-radius:15px!important;
}
html body.student-app.student-name-visible .student-top-actions{
  display:none!important;
}

/* Dark texture needs light page headings on normal inner pages. */
html body.student-app:not(.student-name-visible) .page-head>h1,
html body.student-app:not(.student-name-visible) .page-head>div>h1{
  color:#f8ffff!important;
}
html body.student-app:not(.student-name-visible) .page-head>.muted,
html body.student-app:not(.student-name-visible) .page-head>div>.muted{
  color:rgba(224,242,246,.72)!important;
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible) .topbar.student-topbar{
    grid-template-columns:44px minmax(0,1fr)!important;
    column-gap:9px!important;
    min-height:66px!important;
    padding:9px max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left))!important;
  }
  html body.student-app:not(.student-name-visible) .student-profile-identity,
  html body.student-app:not(.student-name-visible) .student-profile-trigger,
  html body.student-app:not(.student-name-visible) .student-avatar,
  html body.student-app:not(.student-name-visible) .student-profile-photo{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    border-radius:14px!important;
  }
  html body.student-app:not(.student-name-visible) .student-top-actions{
    grid-template-columns:122px 136px!important;
    gap:7px!important;
  }
  html body.student-app:not(.student-name-visible) .student-header-nav-btn{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:14px!important;
    padding:0 7px!important;
    font-size:13px!important;
  }
  html body.student-app.student-name-visible .topbar.student-topbar{
    min-height:66px!important;
    padding:9px max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left))!important;
  }
  html body.student-app.student-name-visible .student-profile-identity{
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    gap:8px!important;
  }
  html body.student-app.student-name-visible .student-profile-trigger,
  html body.student-app.student-name-visible .student-profile-trigger .student-avatar,
  html body.student-app.student-name-visible .student-profile-trigger .student-profile-photo,
  html body.student-app.student-name-visible .student-dictionary-header-btn,
  html body.student-app.student-name-visible .student-dictionary-trigger{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    border-radius:14px!important;
  }
  html body.student-app.student-name-visible .student-header-name{font-size:15px!important}
}

@media(max-width:360px){
  html body.student-app:not(.student-name-visible) .student-top-actions{
    grid-template-columns:112px 126px!important;
    gap:6px!important;
  }
  html body.student-app:not(.student-name-visible) .student-header-nav-btn{
    font-size:12px!important;
    padding-inline:5px!important;
  }
}

/* v48 — dark textured background: keep all page-level headings readable.
   Visual-only patch; no layout or interaction changes. */
html body.student-app:not(.student-name-visible) .practice-methods-title-row > h1,
html body.student-app:not(.student-name-visible) .practice-page-head h1,
html body.student-app:not(.student-name-visible) .words-header .practice-title-with-icon,
html body.student-app:not(.student-name-visible) .words-header .practice-title-with-icon > span,
html body.student-app:not(.student-name-visible) .words-header h1{
  color:#f8ffff!important;
  text-shadow:0 2px 12px rgba(0,18,25,.18);
}
html body.student-app:not(.student-name-visible) .practice-methods-head .muted,
html body.student-app:not(.student-name-visible) .practice-page-head .muted,
html body.student-app:not(.student-name-visible) .words-header .muted{
  color:rgba(224,242,246,.74)!important;
}

/* =========================================================
   v49 — Student home floating glass bottom dock
   VISUAL ONLY. Existing sidebar/nav DOM, click handlers and routes remain intact.
   ========================================================= */
@media (max-width:900px){
  /* Only the student home/dashboard has the persistent 3-item bottom navigation. */
  html body.student-app:not(.student-nav-hidden) .sidebar{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
    transform:translateX(-50%)!important;
    z-index:60!important;
    width:min(calc(100% - 24px),560px)!important;
    min-height:64px!important;
    height:auto!important;
    padding:7px!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:center!important;
    gap:5px!important;
    overflow:visible!important;
    border:1px solid rgba(136,224,231,.36)!important;
    border-radius:22px!important;
    background:linear-gradient(135deg,rgba(3,52,60,.78),rgba(4,38,47,.66))!important;
    box-shadow:0 14px 38px rgba(0,20,26,.30),inset 0 1px 0 rgba(255,255,255,.12)!important;
    -webkit-backdrop-filter:blur(16px) saturate(125%)!important;
    backdrop-filter:blur(16px) saturate(125%)!important;
  }

  html body.student-app:not(.student-nav-hidden) .sidebar .nav{
    min-width:0!important;
    width:100%!important;
    min-height:50px!important;
    height:50px!important;
    margin:0!important;
    padding:7px 5px!important;
    border:1px solid transparent!important;
    border-radius:16px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:rgba(233,247,250,.76)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.05!important;
    font-weight:850!important;
    transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,transform .12s ease!important;
  }

  html body.student-app:not(.student-nav-hidden) .sidebar .nav.active{
    color:#0c4250!important;
    background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(231,246,249,.88))!important;
    border-color:rgba(255,255,255,.72)!important;
    box-shadow:0 7px 18px rgba(0,22,28,.16),inset 0 1px 0 rgba(255,255,255,.95)!important;
  }

  html body.student-app:not(.student-nav-hidden) .sidebar .nav:active{
    transform:scale(.975)!important;
  }

  html body.student-app:not(.student-nav-hidden) .sidebar .nav img,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav svg,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav .nav-3d-icon,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav .ui3d-icon{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    max-width:23px!important;
    min-height:23px!important;
    max-height:23px!important;
    object-fit:contain!important;
  }

  /* Keep page content clear of the floating dock. */
  html body.student-app:not(.student-nav-hidden) .content{
    padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:430px){
  html body.student-app:not(.student-nav-hidden) .sidebar{
    width:calc(100% - 18px)!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    min-height:60px!important;
    padding:6px!important;
    border-radius:20px!important;
  }
  html body.student-app:not(.student-nav-hidden) .sidebar .nav{
    min-height:46px!important;
    height:46px!important;
    border-radius:14px!important;
    font-size:11px!important;
    gap:4px!important;
  }
  html body.student-app:not(.student-nav-hidden) .sidebar .nav img,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav svg,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav .nav-3d-icon,
  html body.student-app:not(.student-nav-hidden) .sidebar .nav .ui3d-icon{
    width:21px!important;
    height:21px!important;
    min-width:21px!important;
    max-width:21px!important;
    min-height:21px!important;
    max-height:21px!important;
  }
}

/* =========================================================
   v50 — Bottom dock: respect navigation items hidden by app logic.
   Fixes old/duplicate student nav buttons becoming visible because
   the v49 visual rule used display:flex!important.
   VISUAL ONLY: DOM, routes and click handlers are untouched.
   ========================================================= */
@media (max-width:900px){
  html body.student-app:not(.student-nav-hidden) .sidebar .nav[hidden]{
    display:none!important;
  }
}


/* v51 — Mashq qilish sahifasi: matnli loader o‘rniga skeleton UI */
@media (max-width: 900px){
  body:not(.admin-body) .practice-loading-skeleton{
    width:100%;
    padding:18px 20px 28px;
    box-sizing:border-box;
    display:grid;
    gap:18px;
  }
  body:not(.admin-body) .practice-skeleton-head{
    display:grid;
    gap:10px;
    padding-top:2px;
  }
  body:not(.admin-body) .practice-skeleton-head span,
  body:not(.admin-body) .practice-skeleton-card i,
  body:not(.admin-body) .practice-skeleton-card b,
  body:not(.admin-body) .practice-skeleton-card small{
    position:relative;
    overflow:hidden;
    background:rgba(238,246,248,.34);
    border:1px solid rgba(221,240,243,.28);
  }
  body:not(.admin-body) .practice-skeleton-head span::after,
  body:not(.admin-body) .practice-skeleton-card i::after,
  body:not(.admin-body) .practice-skeleton-card b::after,
  body:not(.admin-body) .practice-skeleton-card small::after{
    content:"";
    position:absolute;
    inset:0;
    transform:translateX(-120%);
    background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.55) 50%,transparent 80%);
    animation:practiceSkeletonShimmer 1.15s ease-in-out infinite;
  }
  body:not(.admin-body) .practice-skeleton-head span:first-child{
    width:min(52%,220px);
    height:30px;
    border-radius:10px;
  }
  body:not(.admin-body) .practice-skeleton-head span:last-child{
    width:min(70%,290px);
    height:14px;
    border-radius:7px;
  }
  body:not(.admin-body) .practice-skeleton-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  body:not(.admin-body) .practice-skeleton-card{
    min-height:138px;
    padding:18px;
    border-radius:24px;
    background:rgba(247,251,252,.92);
    border:1px solid rgba(255,255,255,.9);
    box-shadow:0 10px 28px rgba(0,34,42,.12);
    display:grid;
    grid-template-columns:46px 1fr;
    grid-template-rows:30px 18px;
    column-gap:13px;
    row-gap:12px;
    align-content:center;
  }
  body:not(.admin-body) .practice-skeleton-card i{
    grid-row:1 / 3;
    width:46px;
    height:46px;
    border-radius:14px;
  }
  body:not(.admin-body) .practice-skeleton-card b{
    width:78%;
    height:20px;
    border-radius:8px;
    align-self:end;
  }
  body:not(.admin-body) .practice-skeleton-card small{
    width:92%;
    height:12px;
    border-radius:6px;
    align-self:start;
  }
  @keyframes practiceSkeletonShimmer{to{transform:translateX(120%)}}
}
@media (max-width:560px){
  body:not(.admin-body) .practice-loading-skeleton{padding:18px 20px 26px}
  body:not(.admin-body) .practice-skeleton-grid{grid-template-columns:1fr;gap:13px}
  body:not(.admin-body) .practice-skeleton-card{min-height:112px;border-radius:22px}
}
@media (prefers-reduced-motion:reduce){
  body:not(.admin-body) .practice-skeleton-head span::after,
  body:not(.admin-body) .practice-skeleton-card i::after,
  body:not(.admin-body) .practice-skeleton-card b::after,
  body:not(.admin-body) .practice-skeleton-card small::after{animation:none}
}

/* =========================================================
   v52 — One fixed background layer for the entire STUDENT app
   VISUAL ONLY: the same optimized texture is pinned to the viewport
   while views/routes/content swap above it. No DOM/JS/API behavior changes.
   ========================================================= */
html{
  background-color:#003f4b;
}
body.student-app{
  position:relative!important;
  min-height:100vh!important;
  background-color:transparent!important;
  background-image:none!important;
  background-repeat:no-repeat!important;
}
body.student-app::before{
  content:"";
  position:fixed;
  inset:0;
  width:100vw;
  height:100dvh;
  z-index:-1;
  pointer-events:none;
  background-color:#003f4b;
  background-image:url('../img/student/section_deep_teal.webp');
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  transform:translateZ(0);
  -webkit-transform:translateZ(0);
}
/* Every student view becomes a transparent content layer above the one fixed canvas. */
body.student-app .shell,
body.student-app .content,
body.student-app:has(.collection-block-card) .shell,
body.student-app:has(.collection-block-card) .content{
  background-color:transparent!important;
  background-image:none!important;
}
/* Explicitly neutralize the older per-page background rules (v42/v45). */
body.student-app:has(.collection-block-card),
body.student-app:not(:has(.collection-block-card)){
  background-color:transparent!important;
  background-image:none!important;
  background-position:initial!important;
  background-size:auto!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
}
@supports not (height:100dvh){
  body.student-app::before{height:100vh}
}


/* =========================================================
   v53 — Dashboard + Results skeleton loading
   VISUAL ONLY: replaces text-only loaders while existing API/render
   flow remains unchanged.
   ========================================================= */
@media (max-width:900px){
  body:not(.admin-body) .home-loading-skeleton,
  body:not(.admin-body) .results-loading-skeleton{
    width:100%;
    box-sizing:border-box;
    padding:10px 20px 28px;
    display:grid;
    gap:16px;
  }

  body:not(.admin-body) .home-skeleton-level,
  body:not(.admin-body) .home-skeleton-quiz,
  body:not(.admin-body) .results-skeleton-summary,
  body:not(.admin-body) .results-skeleton-ranking{
    background:rgba(247,251,252,.92);
    border:1px solid rgba(255,255,255,.9);
    box-shadow:0 10px 28px rgba(0,34,42,.12);
    border-radius:24px;
  }

  body:not(.admin-body) .home-skeleton-level{
    min-height:118px;
    padding:18px;
    display:grid;
    grid-template-columns:66px 1fr 18px;
    gap:14px;
    align-items:center;
  }
  body:not(.admin-body) .home-skeleton-level>i{
    width:62px;height:62px;border-radius:18px;
  }
  body:not(.admin-body) .home-skeleton-level>div{display:grid;gap:11px;min-width:0}
  body:not(.admin-body) .home-skeleton-level>div>b{width:34%;height:19px;border-radius:8px}
  body:not(.admin-body) .home-skeleton-level>div>span{width:86%;height:10px;border-radius:6px}
  body:not(.admin-body) .home-skeleton-level>div>small{width:58%;height:12px;border-radius:6px}
  body:not(.admin-body) .home-skeleton-level>em{width:14px;height:14px;border-radius:50%}

  body:not(.admin-body) .home-skeleton-quiz{
    min-height:174px;
    padding:24px;
    display:grid;
    gap:13px;
    align-content:start;
  }
  body:not(.admin-body) .home-skeleton-quiz>small{width:30%;height:14px;border-radius:7px}
  body:not(.admin-body) .home-skeleton-quiz>b{width:62%;height:28px;border-radius:10px}
  body:not(.admin-body) .home-skeleton-quiz>span:nth-of-type(1){width:88%;height:14px;border-radius:7px}
  body:not(.admin-body) .home-skeleton-quiz>span:nth-of-type(2){width:66%;height:14px;border-radius:7px}

  body:not(.admin-body) .results-skeleton-head{display:grid;gap:10px;padding:2px 2px 0}
  body:not(.admin-body) .results-skeleton-head>b{width:48%;height:30px;border-radius:10px}
  body:not(.admin-body) .results-skeleton-head>span{width:66%;height:13px;border-radius:7px}

  body:not(.admin-body) .results-skeleton-summary{
    min-height:118px;
    padding:18px;
    display:grid;
    grid-template-columns:56px 1fr 32%;
    gap:14px;
    align-items:center;
  }
  body:not(.admin-body) .results-skeleton-summary>i{width:54px;height:54px;border-radius:50%}
  body:not(.admin-body) .results-skeleton-summary>div{display:grid;gap:10px}
  body:not(.admin-body) .results-skeleton-summary>div>small{width:42%;height:11px;border-radius:6px}
  body:not(.admin-body) .results-skeleton-summary>div>b{width:58%;height:23px;border-radius:8px}
  body:not(.admin-body) .results-skeleton-summary>em{width:100%;height:10px;border-radius:6px}

  body:not(.admin-body) .results-skeleton-ranking{padding:16px;display:grid;gap:12px}
  body:not(.admin-body) .results-skeleton-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:2px}
  body:not(.admin-body) .results-skeleton-tabs>span{height:38px;border-radius:14px}
  body:not(.admin-body) .results-skeleton-row{
    min-height:54px;
    padding:8px 10px;
    display:grid;
    grid-template-columns:30px 1fr 72px;
    gap:11px;
    align-items:center;
    border-radius:16px;
    background:rgba(255,255,255,.42);
  }
  body:not(.admin-body) .results-skeleton-row>i{width:27px;height:27px;border-radius:50%}
  body:not(.admin-body) .results-skeleton-row>b{width:70%;height:13px;border-radius:7px}
  body:not(.admin-body) .results-skeleton-row>small{width:100%;height:12px;border-radius:6px}

  body:not(.admin-body) .home-skeleton-level>i,
  body:not(.admin-body) .home-skeleton-level>div>b,
  body:not(.admin-body) .home-skeleton-level>div>span,
  body:not(.admin-body) .home-skeleton-level>div>small,
  body:not(.admin-body) .home-skeleton-level>em,
  body:not(.admin-body) .home-skeleton-quiz>small,
  body:not(.admin-body) .home-skeleton-quiz>b,
  body:not(.admin-body) .home-skeleton-quiz>span,
  body:not(.admin-body) .results-skeleton-head>b,
  body:not(.admin-body) .results-skeleton-head>span,
  body:not(.admin-body) .results-skeleton-summary>i,
  body:not(.admin-body) .results-skeleton-summary>div>small,
  body:not(.admin-body) .results-skeleton-summary>div>b,
  body:not(.admin-body) .results-skeleton-summary>em,
  body:not(.admin-body) .results-skeleton-tabs>span,
  body:not(.admin-body) .results-skeleton-row>i,
  body:not(.admin-body) .results-skeleton-row>b,
  body:not(.admin-body) .results-skeleton-row>small{
    position:relative;
    overflow:hidden;
    background:rgba(213,229,233,.56);
    border:1px solid rgba(221,240,243,.36);
  }

  body:not(.admin-body) .home-skeleton-level>i::after,
  body:not(.admin-body) .home-skeleton-level>div>b::after,
  body:not(.admin-body) .home-skeleton-level>div>span::after,
  body:not(.admin-body) .home-skeleton-level>div>small::after,
  body:not(.admin-body) .home-skeleton-level>em::after,
  body:not(.admin-body) .home-skeleton-quiz>small::after,
  body:not(.admin-body) .home-skeleton-quiz>b::after,
  body:not(.admin-body) .home-skeleton-quiz>span::after,
  body:not(.admin-body) .results-skeleton-head>b::after,
  body:not(.admin-body) .results-skeleton-head>span::after,
  body:not(.admin-body) .results-skeleton-summary>i::after,
  body:not(.admin-body) .results-skeleton-summary>div>small::after,
  body:not(.admin-body) .results-skeleton-summary>div>b::after,
  body:not(.admin-body) .results-skeleton-summary>em::after,
  body:not(.admin-body) .results-skeleton-tabs>span::after,
  body:not(.admin-body) .results-skeleton-row>i::after,
  body:not(.admin-body) .results-skeleton-row>b::after,
  body:not(.admin-body) .results-skeleton-row>small::after{
    content:"";
    position:absolute;
    inset:0;
    transform:translateX(-120%);
    background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.62) 50%,transparent 80%);
    animation:v53SkeletonShimmer 1.15s ease-in-out infinite;
  }
  @keyframes v53SkeletonShimmer{to{transform:translateX(120%)}}
}
@media (max-width:560px){
  body:not(.admin-body) .home-loading-skeleton,
  body:not(.admin-body) .results-loading-skeleton{padding:10px 20px 24px;gap:14px}
  body:not(.admin-body) .home-skeleton-level,
  body:not(.admin-body) .results-skeleton-summary{border-radius:22px}
  body:not(.admin-body) .home-skeleton-quiz,
  body:not(.admin-body) .results-skeleton-ranking{border-radius:22px}
}
@media (prefers-reduced-motion:reduce){
  body:not(.admin-body) .home-loading-skeleton *,
  body:not(.admin-body) .results-loading-skeleton *{animation:none!important}
}

/* =========================================================
   v54 — Student dictionary modal polish
   VISUAL ONLY: keep the floating bottom dock out of the dictionary
   overlay and prevent Uzbek words from breaking mid-word.
   ========================================================= */

/* Dictionary is a focused overlay: the persistent student bottom dock
   must stay behind it / out of view while the modal is open. */
html body.student-app:has(.student-dictionary-modal) .sidebar{
  display:none!important;
}

/* Let dictionary text wrap at natural word boundaries instead of
   splitting the last letter (e.g. salomlashmo + q). */
body.student-app .student-dictionary-side b,
body.student-app .student-dictionary-side span{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Give the Uzbek translation a little more horizontal room while
   keeping Korean phrases readable and both audio buttons intact. */
body.student-app .student-dictionary-row{
  grid-template-columns:minmax(0,.95fr) 42px 20px minmax(0,1.22fr) 42px;
}
body.student-app .student-dictionary-side.uz span{
  line-height:1.25;
}

@media(max-width:390px){
  body.student-app .student-dictionary-row{
    grid-template-columns:minmax(0,.9fr) 38px 14px minmax(0,1.28fr) 38px;
    gap:4px;
  }
}

/* =========================================================
   v55 — Section picker heading alignment
   VISUAL ONLY: no DOM, JS, routes, handlers, API or behavior changes.
   - Move "Bo‘limni tanlang" to the same left-aligned heading position
     used by regular collection pages such as "SEULTE".
   - Remove the decorative divider under this heading.
   ========================================================= */
body.student-app:has(.collection-block-card) .content{
  padding-top:24px!important;
}
body.student-app:has(.collection-block-card) .page-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:var(--content-max)!important;
  margin:0 auto 22px!important;
  text-align:left!important;
}
body.student-app:has(.collection-block-card) .page-head>div:first-child{
  width:100%!important;
  text-align:left!important;
}
body.student-app:has(.collection-block-card) .page-head h1{
  margin:0!important;
  color:#f8ffff!important;
  font-size:clamp(30px,7.2vw,40px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  font-weight:850!important;
  text-align:left!important;
  text-shadow:0 2px 12px rgba(0,18,25,.18)!important;
}
body.student-app:has(.collection-block-card) .page-head::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

@media(max-width:600px){
  body.student-app:has(.collection-block-card) .content{
    padding-top:20px!important;
  }
  body.student-app:has(.collection-block-card) .page-head{
    margin-bottom:20px!important;
  }
  body.student-app:has(.collection-block-card) .page-head h1{
    font-size:clamp(30px,8.5vw,36px)!important;
  }
}

/* =========================================================
   v56 — Sticky student subpage header + title rail
   LAYOUT/VISUAL ONLY: no DOM, JS, API, routes or click behavior changes.
   - Keeps 한 + Back + Home visible while scrolling student subpages.
   - Keeps the current page title (Bo‘limni tanlang / SEULTE / SEULTE 1A / etc.)
     directly beneath that navigation.
   - The content list scrolls underneath an invisible visual boundary.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:72px;
  }

  /* Navigation row stays pinned at the top of the Mini App viewport. */
  html body.student-app:not(.student-name-visible) .topbar.student-topbar{
    position:sticky!important;
    top:0!important;
    z-index:120!important;
    isolation:isolate;
  }
  /* A very soft glass veil prevents scrolling cards from showing through,
     without introducing a visible separator line. */
  html body.student-app:not(.student-name-visible) .topbar.student-topbar::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:0!important;
    z-index:-1!important;
    pointer-events:none!important;
    background:rgba(0,47,57,.72)!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:blur(14px) saturate(112%)!important;
    -webkit-backdrop-filter:blur(14px) saturate(112%)!important;
  }

  /* The first page heading becomes the second fixed rail. */
  html body.student-app:not(.student-name-visible) .content>.page-head{
    position:sticky!important;
    top:var(--student-sticky-nav-h)!important;
    z-index:110!important;
    isolation:isolate!important;
  }
  html body.student-app:not(.student-name-visible) .content>.page-head::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:-10px!important;
    bottom:-10px!important;
    left:50%!important;
    width:100vw!important;
    transform:translateX(-50%)!important;
    z-index:-1!important;
    pointer-events:none!important;
    background:rgba(0,47,57,.78)!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:blur(12px) saturate(110%)!important;
    -webkit-backdrop-filter:blur(12px) saturate(110%)!important;
  }

  /* No visible dividing line: the boundary exists only as the sticky rail edge. */
  html body.student-app:not(.student-name-visible) .content>.page-head{
    border-bottom:0!important;
    box-shadow:none!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:66px;
  }
}

/* =========================================================
   v57 — Stable fixed student subpage navigation, no veil
   LAYOUT/VISUAL ONLY: no DOM, JS, API, routes or click behavior changes.
   - The top navigation is fixed to the Mini App viewport so it cannot
     scroll away on iOS/Telegram rubber-band scrolling.
   - Removes the translucent backing veil from the navigation and title rail.
   - Keeps the existing page heading sticky below the fixed navigation.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:72px;
  }

  /* Robust against iOS/Telegram body scrolling: keep the nav itself fixed. */
  html body.student-app:not(.student-name-visible) .topbar.student-topbar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:140!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transform:translateZ(0);
    -webkit-transform:translateZ(0);
  }

  /* v56's soft teal veil is intentionally removed. */
  html body.student-app:not(.student-name-visible) .topbar.student-topbar::before,
  html body.student-app:not(.student-name-visible) .topbar.student-topbar::after{
    content:none!important;
    display:none!important;
    background:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
  }

  /* Fixed nav is removed from document flow, so reserve exactly its height. */
  html body.student-app:not(.student-name-visible) .content{
    margin-top:var(--student-sticky-nav-h)!important;
  }

  /* Keep the current page heading pinned directly below the fixed nav. */
  html body.student-app:not(.student-name-visible) .content>.page-head{
    position:sticky!important;
    top:var(--student-sticky-nav-h)!important;
    z-index:120!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* No hazy/colored strip behind the heading either. */
  html body.student-app:not(.student-name-visible) .content>.page-head::before,
  html body.student-app:not(.student-name-visible) .content>.page-head::after{
    content:none!important;
    display:none!important;
    background:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:66px;
  }
}

/* =========================================================
   v58 — Fixed subpage title + invisible scroll cutoff
   LAYOUT/VISUAL ONLY: no DOM, JS, API, routes or click behavior changes.
   - Keeps the current section/page title visible together with the fixed nav.
   - Scrolling cards disappear exactly at the bottom of the title rail instead
     of travelling behind/above it.
   - The cutoff has NO tinted/blurred panel: it redraws the exact same fixed
     deep-teal background, so the boundary stays visually invisible.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:72px;
    --student-sticky-title-h:96px;
  }

  /* Both rails are now truly viewport-fixed. */
  html body.student-app:not(.student-name-visible) .content>.page-head{
    position:fixed!important;
    top:var(--student-sticky-nav-h)!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:calc(100% - 40px)!important;
    max-width:var(--content-max)!important;
    min-height:var(--student-sticky-title-h)!important;
    margin:0!important;
    padding:14px 0 12px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    z-index:130!important;
    isolation:isolate!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  /* Exact-background mask: visually invisible, but it prevents cards from
     showing through the fixed title area while they continue to scroll. */
  html body.student-app:not(.student-name-visible) .content>.page-head::before{
    content:""!important;
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:-1!important;
    pointer-events:none!important;
    background-color:#003f4b!important;
    background-image:url('../img/student/section_deep_teal.webp')!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:cover!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    clip-path:inset(
      var(--student-sticky-nav-h)
      0
      calc(100% - var(--student-sticky-nav-h) - var(--student-sticky-title-h))
      0
    )!important;
    -webkit-clip-path:inset(
      var(--student-sticky-nav-h)
      0
      calc(100% - var(--student-sticky-nav-h) - var(--student-sticky-title-h))
      0
    )!important;
  }
  html body.student-app:not(.student-name-visible) .content>.page-head::after{
    content:none!important;
    display:none!important;
  }

  /* Nav + title are outside normal flow; reserve both heights so the first
     card begins below the invisible cutoff. */
  html body.student-app:not(.student-name-visible) .content{
    margin-top:calc(var(--student-sticky-nav-h) + var(--student-sticky-title-h))!important;
  }

  /* The top-level section picker should use the same fixed-title geometry. */
  body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head{
    margin:0!important;
    padding:14px 0 12px!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:66px;
    --student-sticky-title-h:92px;
  }
  html body.student-app:not(.student-name-visible) .content>.page-head{
    width:calc(100% - 40px)!important;
    padding:12px 0 10px!important;
  }
}

/* =========================================================
   v59 — Stable fixed title + clean invisible cutoff
   LAYOUT/VISUAL ONLY: no DOM, JS, API, routes or behavior changes.
   - Fixes v58 clipping/overlap artifacts.
   - Keeps nav and current section title visible.
   - Scrolling cards disappear cleanly at the bottom of the title rail.
   - No haze, tint, blur strip or visible separator is added.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:72px;
    --student-sticky-title-h:96px;
  }

  /* Disable the v58 pseudo-element mask that could clip cards/title. */
  html body.student-app:not(.student-name-visible) .content>.page-head::before,
  html body.student-app:not(.student-name-visible) .content>.page-head::after{
    content:none!important;
    display:none!important;
    clip-path:none!important;
    -webkit-clip-path:none!important;
  }

  /* Keep the page/section title truly fixed below the navigation. */
  html body.student-app:not(.student-name-visible) .content>.page-head{
    position:fixed!important;
    top:var(--student-sticky-nav-h)!important;
    left:20px!important;
    right:20px!important;
    width:auto!important;
    max-width:none!important;
    transform:none!important;
    min-height:var(--student-sticky-title-h)!important;
    margin:0!important;
    padding:14px 0 12px!important;
    z-index:135!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    isolation:auto!important;
  }

  /* One clean viewport-fixed mask. It redraws the SAME global texture only
     over the fixed nav+title zone, so content vanishes underneath without
     any visible line or translucent veil. */
  html body.student-app:not(.student-name-visible)::after{
    content:""!important;
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:calc(var(--student-sticky-nav-h) + var(--student-sticky-title-h))!important;
    z-index:125!important;
    pointer-events:none!important;
    background-color:#003f4b!important;
    background-image:url('../img/student/section_deep_teal.webp')!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:cover!important;
    border:0!important;
    box-shadow:none!important;
    opacity:1!important;
  }

  /* Nav and title stay above the invisible mask. */
  html body.student-app:not(.student-name-visible) .topbar.student-topbar{
    z-index:145!important;
  }
  html body.student-app:not(.student-name-visible) .content>.page-head{
    z-index:140!important;
  }

  /* Reserve exactly the two fixed rails in document flow. */
  html body.student-app:not(.student-name-visible) .content{
    margin-top:calc(var(--student-sticky-nav-h) + var(--student-sticky-title-h))!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible){
    --student-sticky-nav-h:66px;
    --student-sticky-title-h:92px;
  }
  html body.student-app:not(.student-name-visible) .content>.page-head{
    left:20px!important;
    right:20px!important;
    padding:12px 0 10px!important;
  }
}

/* =========================================================
   v60 — Seamless fixed cutoff using a full-viewport clipped layer
   VISUAL ONLY: no DOM, JS, API, routes or behavior changes.
   - Keeps the v59 fixed nav/title behavior.
   - Uses a full-viewport copy of the SAME global background, then clips only
     the nav+title zone. Because both layers have identical viewport geometry,
     background-size:cover resolves identically and no texture seam appears.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible)::after{
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    height:100dvh!important;
    background-color:#003f4b!important;
    background-image:url('../img/student/section_deep_teal.webp')!important;
    background-repeat:no-repeat!important;
    background-position:center center!important;
    background-size:cover!important;
    clip-path:inset(
      0 0
      calc(100% - var(--student-sticky-nav-h) - var(--student-sticky-title-h))
      0
    )!important;
    -webkit-clip-path:inset(
      0 0
      calc(100% - var(--student-sticky-nav-h) - var(--student-sticky-title-h))
      0
    )!important;
  }
}
@supports not (height:100dvh){
  @media(max-width:900px){
    html body.student-app:not(.student-name-visible)::after{height:100vh!important}
  }
}

/* =========================================================
   v61 — Unified student picker geometry
   LAYOUT ONLY: no DOM, JS, API, route or click behavior changes.
   - Bo‘lim / To‘plam / Mavzu / Mashq usullari use the same outer card geometry.
   - Their first card starts from the same horizontal coordinate.
   - Their page heading uses the same coordinate/rail geometry.
   - Existing inner card artwork/content is intentionally preserved for the next design pass.
   ========================================================= */
body.student-app:not(.student-name-visible) .collection-access-grid,
body.student-app:not(.student-name-visible) .study-mode-grid{
  width:100%!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

body.student-app:not(.student-name-visible) .collection-access-grid > .collection-access-card,
body.student-app:not(.student-name-visible) .collection-access-grid > .collection-block-card,
body.student-app:not(.student-name-visible) .study-mode-grid > .mode-visual-card{
  width:100%!important;
  min-width:0!important;
  min-height:124px!important;
  height:100%!important;
  margin:0!important;
}

/* The old Bo‘lim-only layout must not move its title/grid to a different axis. */
body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-access-grid{
  width:100%!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}

/* Keep all four picker headings on exactly the same title rail. */
body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head,
body.student-app:not(.student-name-visible) .content>.practice-methods-head{
  box-sizing:border-box!important;
}

@media(max-width:900px){
  html body.student-app:not(.student-name-visible) .content>.page-head,
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head,
  html body.student-app:not(.student-name-visible) .content>.practice-methods-head{
    top:var(--student-sticky-nav-h)!important;
    left:20px!important;
    right:20px!important;
    width:auto!important;
    max-width:none!important;
    min-height:var(--student-sticky-title-h)!important;
    margin:0!important;
    padding:14px 0 12px!important;
    transform:none!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }

  body.student-app:not(.student-name-visible) .collection-access-grid,
  body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-access-grid,
  body.student-app:not(.student-name-visible) .study-mode-grid{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  body.student-app:not(.student-name-visible) .collection-access-grid > .collection-access-card,
  body.student-app:not(.student-name-visible) .collection-access-grid > .collection-block-card,
  body.student-app:not(.student-name-visible) .study-mode-grid > .mode-visual-card{
    min-height:124px!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible) .content>.page-head,
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head,
  html body.student-app:not(.student-name-visible) .content>.practice-methods-head{
    left:20px!important;
    right:20px!important;
    padding:12px 0 10px!important;
  }
}

/* =========================================================
   v62 — Top-level Bo‘lim picker geometry match
   LAYOUT ONLY: no DOM, JS, API, route, click or state changes.
   - Only the Bo‘lim page outer card rail is aligned with To‘plam/Mavzu/Mashq.
   - Existing inner artwork, labels, icons and behavior remain unchanged.
   ========================================================= */
@media(max-width:900px){
  /* v44 had a Bo‘lim-only 22px side inset. Regular picker pages use the
     standard mobile 16px content rail, so remove only that old difference. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  /* Keep the same one-column capsule rail and spacing as the other pickers. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-access-grid{
    width:100%!important;
    max-width:760px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  html body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-block-card{
    width:100%!important;
    min-width:0!important;
    min-height:124px!important;
    height:auto!important;
    margin:0!important;
  }
}

/* =========================================================
   v63 — Bo‘lim picker: exact outer geometry/title match
   VISUAL/LAYOUT ONLY. No DOM, JS, API, navigation or state changes.
   - Top-level Bo‘lim cards use the same outer mobile capsule geometry/rail
     as the regular collection cards (e.g. SEULTE 1A).
   - "Bo‘limni tanlang" uses the same heading position and typography
     as regular page titles such as "SEULTE".
   - Inner Bo‘lim artwork/content remains untouched for the next design pass.
   ========================================================= */
@media(max-width:900px){
  /* Same content rail/top padding as the regular picker pages. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content{
    padding-left:16px!important;
    padding-right:16px!important;
    padding-top:16px!important;
  }

  /* Same grid rail and vertical rhythm as the regular collection picker. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-access-grid{
    width:100%!important;
    max-width:760px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  /* Copy the regular mobile collection capsule's OUTER geometry. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .collection-block-card{
    width:100%!important;
    min-width:0!important;
    min-height:124px!important;
    height:auto!important;
    margin:0!important;
    border-radius:22px!important;
  }

  /* Same fixed title rail coordinates as every regular collection page. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head{
    top:var(--student-sticky-nav-h)!important;
    left:20px!important;
    right:20px!important;
    width:auto!important;
    max-width:none!important;
    min-height:var(--student-sticky-title-h)!important;
    margin:0!important;
    padding:14px 0 12px!important;
    transform:none!important;
    align-items:flex-start!important;
    justify-content:center!important;
    text-align:left!important;
  }

  /* Neutralize the old Bo‘lim-only display typography and match normal h1. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head h1{
    margin:0!important;
    font-size:clamp(26px,4.2vw,38px)!important;
    line-height:1.12!important;
    font-weight:700!important;
    letter-spacing:normal!important;
    text-align:left!important;
    text-shadow:none!important;
  }
}

@media(max-width:640px){
  /* This is the exact mobile title size rule already used by SEULTE pages. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head h1{
    font-size:clamp(26px,8vw,34px)!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head{
    left:20px!important;
    right:20px!important;
    padding:12px 0 10px!important;
  }
}

/* =========================================================
   v64 — Picker geometry uses ONE shared source of truth
   STUDENT LAYOUT ONLY. Admin block creation / admin collection editor untouched.
   - Bo‘lim and regular To‘plam cards now receive the exact same OUTER capsule
     geometry from one shared rule instead of separate page-specific guesses.
   - Bo‘limni tanlang and SEULTE-style picker headings now receive the same
     coordinates and typography from one shared picker-heading rule.
   - Existing Bo‘lim inner artwork/icons/copy remain unchanged for the later
     inner-design pass.
   ========================================================= */

/* One shared outer capsule geometry for BOTH top-level blocks and regular
   collection cards. This intentionally overrides the old v42/v44 Bo‘lim-only
   geometry while leaving each card's inner artwork untouched. */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .collection-access-grid{
    width:100%!important;
    max-width:760px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    align-items:stretch!important;
  }

  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .collection-access-grid > .collection-showcase-card{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:132px!important;
    height:auto!important;
    margin:0!important;
    border-radius:20px!important;
  }

  /* All collection-picker titles share exactly one rail and one type scale. */
  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .content>.page-head{
    top:var(--student-sticky-nav-h)!important;
    left:20px!important;
    right:20px!important;
    width:auto!important;
    max-width:none!important;
    min-height:var(--student-sticky-title-h)!important;
    margin:0!important;
    padding:14px 0 12px!important;
    transform:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    text-align:left!important;
  }

  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .content>.page-head>div:first-child{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
  }

  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .content>.page-head h1{
    margin:0!important;
    color:#f8ffff!important;
    font-size:clamp(26px,4.2vw,38px)!important;
    line-height:1.12!important;
    font-weight:700!important;
    letter-spacing:normal!important;
    text-align:left!important;
    text-shadow:none!important;
  }

  /* Kill the old Bo‘lim-only decorative divider completely. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content>.page-head::after{
    content:none!important;
    display:none!important;
  }

  /* Same document/content rail as regular picker pages. */
  html body.student-app:not(.student-name-visible):has(.collection-block-card) .content{
    padding-left:16px!important;
    padding-right:16px!important;
    padding-top:16px!important;
  }
}

@media(max-width:640px){
  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .content>.page-head h1{
    font-size:clamp(26px,8vw,34px)!important;
  }
}

/* This is the exact compact capsule size already used by regular SEULTE cards
   on phone widths. Because the selector targets both card types, Bo‘lim cannot
   drift to a different height/radius later through an older override. */
@media(max-width:480px){
  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .collection-access-grid > .collection-showcase-card{
    min-height:124px!important;
    border-radius:20px!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible):has(.collection-access-grid) .content>.page-head{
    left:20px!important;
    right:20px!important;
    padding:12px 0 10px!important;
  }
}

/* =========================================================
   v65 — Practice progress rail directly under fixed student nav
   LAYOUT ONLY. Keeps the existing live progress element/state intact.
   Applies to Flashcard / Quiz / Matching / Typing / Anagram only.
   ========================================================= */
@media(max-width:900px){
  html body.student-app:not(.student-name-visible) .quiz-wrap > .progress,
  html body.student-app:not(.student-name-visible) .matching-wrap > .progress,
  html body.student-app:not(.student-name-visible) .typing-wrap > .progress,
  html body.student-app:not(.student-name-visible) .anagram-wrap > .progress,
  html body.student-app:not(.student-name-visible) .flashcard-study-wrap > .progress{
    position:fixed!important;
    top:calc(var(--student-sticky-nav-h) + 2px)!important;
    left:50%!important;
    right:auto!important;
    width:min(calc(100% - 32px),760px)!important;
    height:9px!important;
    margin:0!important;
    transform:translateX(-50%)!important;
    z-index:136!important;
    border-radius:999px!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }

  /* The live progress rail is now fixed; preserve the former 9px + 16px
     document-flow space so exercise cards/toolbars do not jump upward. */
  html body.student-app:not(.student-name-visible) .quiz-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .matching-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .typing-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .anagram-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .flashcard-study-wrap > .progress + *{
    margin-top:25px!important;
  }
}

@media(max-width:420px){
  html body.student-app:not(.student-name-visible) .quiz-wrap > .progress,
  html body.student-app:not(.student-name-visible) .matching-wrap > .progress,
  html body.student-app:not(.student-name-visible) .typing-wrap > .progress,
  html body.student-app:not(.student-name-visible) .anagram-wrap > .progress,
  html body.student-app:not(.student-name-visible) .flashcard-study-wrap > .progress{
    width:calc(100% - 24px)!important;
  }
}

/* =========================================================
   v66 — Practice/words pages must NOT inherit picker title-rail space
   LAYOUT ONLY. Picker pages keep their fixed title rail unchanged.
   - Removes the extra reserved picker-title height from Words + all exercises.
   - Restores practice/words headings to normal document flow below the nav.
   - Removes the v65 practice progress rail completely (user does not want it).
   ========================================================= */
@media(max-width:900px){
  /* These are content pages, not Bo‘lim/To‘plam/Mavzu/Mashq-usullari pickers. */
  html body.student-app:not(.student-name-visible):has(.words-header),
  html body.student-app:not(.student-name-visible):has(.practice-page-head),
  html body.student-app:not(.student-name-visible):has(.quiz-wrap),
  html body.student-app:not(.student-name-visible):has(.matching-wrap),
  html body.student-app:not(.student-name-visible):has(.typing-wrap),
  html body.student-app:not(.student-name-visible):has(.anagram-wrap),
  html body.student-app:not(.student-name-visible):has(.flashcard-study-wrap){
    --student-sticky-title-h:0px!important;
  }

  /* Fixed top navigation still needs its own reserved height, but nothing more. */
  html body.student-app:not(.student-name-visible):has(.words-header) .content,
  html body.student-app:not(.student-name-visible):has(.practice-page-head) .content,
  html body.student-app:not(.student-name-visible):has(.quiz-wrap) .content,
  html body.student-app:not(.student-name-visible):has(.matching-wrap) .content,
  html body.student-app:not(.student-name-visible):has(.typing-wrap) .content,
  html body.student-app:not(.student-name-visible):has(.anagram-wrap) .content,
  html body.student-app:not(.student-name-visible):has(.flashcard-study-wrap) .content{
    margin-top:var(--student-sticky-nav-h)!important;
  }

  /* If a practice/words heading also carries .page-head, do not turn it into
     the picker fixed-title rail. Keep it in the normal content flow. */
  html body.student-app:not(.student-name-visible) .content>.page-head.practice-page-head,
  html body.student-app:not(.student-name-visible) .content>.page-head.words-header{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    transform:none!important;
    z-index:auto!important;
    margin-top:0!important;
    padding-top:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* v65 progress rail is intentionally removed on every practice method. */
  html body.student-app:not(.student-name-visible) .quiz-wrap > .progress,
  html body.student-app:not(.student-name-visible) .matching-wrap > .progress,
  html body.student-app:not(.student-name-visible) .typing-wrap > .progress,
  html body.student-app:not(.student-name-visible) .anagram-wrap > .progress,
  html body.student-app:not(.student-name-visible) .flashcard-study-wrap > .progress{
    display:none!important;
    position:static!important;
    width:0!important;
    height:0!important;
    margin:0!important;
    transform:none!important;
  }

  /* Cancel v65's compensating 25px gap after the now-hidden progress element. */
  html body.student-app:not(.student-name-visible) .quiz-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .matching-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .typing-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .anagram-wrap > .progress + *,
  html body.student-app:not(.student-name-visible) .flashcard-study-wrap > .progress + *{
    margin-top:0!important;
  }
}

/* =========================================================
   v68 — top-level block cards: add real background photos only
   Fixes v67 regression by keeping original JS/layout and applying
   image backgrounds through CSS only.
   ========================================================= */
body.student-app:has(.collection-block-card) .collection-block-card{
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.92) 42%,rgba(255,255,255,.52) 66%,rgba(255,255,255,.14) 100%),
    url('../img/student/block-seulte-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.92) 42%,rgba(255,255,255,.50) 66%,rgba(255,255,255,.14) 100%),
    url('../img/student/block-topik-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.86) 36%,rgba(255,255,255,.42) 60%,rgba(255,255,255,.12) 100%),
    url('../img/student/block-yonse-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.88) 38%,rgba(255,255,255,.46) 62%,rgba(255,255,255,.12) 100%),
    url('../img/student/block-eps-topik-bg.png')!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
    background-position:center center!important;
    background-size:cover!important;
  }
}

/* v69 — remove small subtitles under SEULTE and TOPIK only */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1) .collection-showcase-copy h3::after,
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2) .collection-showcase-copy h3::after{
  content:none!important;
  display:none!important;
}


/* v70 — tune block background images: smaller, cleaner, better balanced */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-repeat:no-repeat,no-repeat!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.975) 0%,rgba(255,255,255,.95) 44%,rgba(255,255,255,.68) 58%,rgba(255,255,255,.18) 76%,rgba(255,255,255,.04) 100%),
    url('../img/student/block-seulte-bg.png')!important;
  background-size:100% 100%,52% auto!important;
  background-position:center center,right 12px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.975) 0%,rgba(255,255,255,.95) 44%,rgba(255,255,255,.66) 58%,rgba(255,255,255,.16) 76%,rgba(255,255,255,.04) 100%),
    url('../img/student/block-topik-bg.png')!important;
  background-size:100% 100%,51% auto!important;
  background-position:center center,right 10px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.975) 0%,rgba(255,255,255,.95) 42%,rgba(255,255,255,.72) 57%,rgba(255,255,255,.22) 75%,rgba(255,255,255,.05) 100%),
    url('../img/student/block-yonse-bg.png')!important;
  background-size:100% 100%,56% auto!important;
  background-position:center center,right 8px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.978) 0%,rgba(255,255,255,.955) 42%,rgba(255,255,255,.74) 57%,rgba(255,255,255,.24) 75%,rgba(255,255,255,.05) 100%),
    url('../img/student/block-eps-topik-bg.png')!important;
  background-size:100% 100%,54% auto!important;
  background-position:center center,right 6px center!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
    background-size:100% 100%,54% auto!important;
    background-position:center center,right 8px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
    background-size:100% 100%,53% auto!important;
    background-position:center center,right 8px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
    background-size:100% 100%,58% auto!important;
    background-position:center center,right 6px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
    background-size:100% 100%,56% auto!important;
    background-position:center center,right 4px center!important;
  }
}
@media(max-width:390px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
    background-size:100% 100%,58% auto!important;
  }
}

/* =========================================================
   v71 — fix v70 background sizing regression.
   Full-bleed image backgrounds; only the left reading area is faded.
   ========================================================= */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3),
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-size:100% 100%,cover!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:center center,right center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.97) 37%,rgba(255,255,255,.88) 48%,rgba(255,255,255,.52) 61%,rgba(255,255,255,.18) 75%,rgba(255,255,255,.04) 100%),
    url('../img/student/block-seulte-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.97) 37%,rgba(255,255,255,.88) 48%,rgba(255,255,255,.50) 61%,rgba(255,255,255,.16) 75%,rgba(255,255,255,.04) 100%),
    url('../img/student/block-topik-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.965) 36%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.46) 60%,rgba(255,255,255,.14) 74%,rgba(255,255,255,.03) 100%),
    url('../img/student/block-yonse-bg.png')!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.965) 36%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.46) 60%,rgba(255,255,255,.14) 74%,rgba(255,255,255,.03) 100%),
    url('../img/student/block-eps-topik-bg.png')!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3),
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
    background-size:100% 100%,cover!important;
    background-position:center center,right center!important;
  }
}


/* =========================================================
   v72 — sharper and larger block images.
   Crop away more of the source white margins and reduce washout.
   ========================================================= */
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 34%,rgba(255,255,255,.82) 44%,rgba(255,255,255,.38) 56%,rgba(255,255,255,.10) 71%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-seulte-bg.png')!important;
  background-size:100% 100%,122% auto!important;
  background-position:center center,right -18px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 34%,rgba(255,255,255,.82) 44%,rgba(255,255,255,.38) 56%,rgba(255,255,255,.10) 71%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-topik-bg.png')!important;
  background-size:100% 100%,118% auto!important;
  background-position:center center,right -10px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 33%,rgba(255,255,255,.80) 43%,rgba(255,255,255,.36) 55%,rgba(255,255,255,.10) 70%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-yonse-bg.png')!important;
  background-size:100% 100%,126% auto!important;
  background-position:center center,right -18px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 33%,rgba(255,255,255,.80) 43%,rgba(255,255,255,.36) 55%,rgba(255,255,255,.10) 70%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-eps-topik-bg.png')!important;
  background-size:100% 100%,122% auto!important;
  background-position:center center,right -14px center!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){
    background-size:100% 100%,132% auto!important;
    background-position:center center,right -24px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){
    background-size:100% 100%,126% auto!important;
    background-position:center center,right -16px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){
    background-size:100% 100%,136% auto!important;
    background-position:center center,right -24px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){
    background-size:100% 100%,130% auto!important;
    background-position:center center,right -20px center!important;
  }
}
@media(max-width:390px){
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(1){background-size:100% 100%,138% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(2){background-size:100% 100%,132% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(3){background-size:100% 100%,142% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card:nth-child(4){background-size:100% 100%,136% auto!important}
}

/* =========================================================
   v73 — top-level block visuals by semantic key, not list order.
   This updates icons for YONSE and EPS-TOPIK and gives future
   unknown blocks the same default icon style as the first block.
   ========================================================= */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual]{
  background-repeat:no-repeat,no-repeat!important;
}

/* Default/new blocks => use first icon style automatically */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="default"]{
  background-image:linear-gradient(135deg,rgba(255,255,255,.995),rgba(246,250,252,.985))!important;
  background-size:auto!important;
  background-position:center center!important;
}

/* Icon system */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="default"]::after,
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]::after{
  background-color:#e9f7fc!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23105e72'/%3E%3Cstop offset='1' stop-color='%2303293a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M8 34 48 15l40 19-40 19L8 34Zm15 11v20c0 8 11 15 25 15s25-7 25-15V45L48 57 23 45Z'/%3E%3Cpath d='M82 39v25' stroke='%2303293a' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='82' cy='68' r='5' fill='%23e4aa2d'/%3E%3C/svg%3E")!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]::after{
  background-color:#e8faf5!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23168b83'/%3E%3Cstop offset='1' stop-color='%23033d4b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='17' y='13' width='54' height='69' rx='9' fill='url(%23g2)'/%3E%3Cpath d='M29 30h30M29 43h25M29 56h18' stroke='%23dffaf3' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='m55 70 24-24 9 9-24 24-13 4 4-13Z' fill='%230b6770'/%3E%3Cpath d='m76 49 7 7' stroke='%23baf3e8' stroke-width='4'/%3E%3C/svg%3E")!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]::after{
  background-color:#eef4ff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g3' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2330649a'/%3E%3Cstop offset='1' stop-color='%23193c69'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g3)' d='M48 18 15 33v7h66v-7L48 18Zm-24 27h10v24H24V45Zm19 0h10v24H43V45Zm19 0h10v24H62V45ZM17 73h62v8H17v-8Z'/%3E%3Ccircle cx='48' cy='27' r='4.5' fill='%23f2f7ff'/%3E%3C/svg%3E")!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]::after{
  background-color:#fff6ea!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cdefs%3E%3ClinearGradient id='g4' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ffbf2f'/%3E%3Cstop offset='1' stop-color='%23f09c16'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g4)' d='M48 18c-14 0-25 11-25 25v8h50v-8c0-14-11-25-25-25Zm-28 37h56a6 6 0 0 1 0 12H20a6 6 0 0 1 0-12Zm20-32h8v20h-8V23Z'/%3E%3Cpath fill='%233b5166' d='M69 56a15 15 0 1 0 0 30 15 15 0 0 0 0-30Zm0 7 2.8 4.1 4.9-.4-.9 4.8 3.5 3.3-4.4 2.1-.5 4.9-4.4-2.1-4.4 2.1-.5-4.9-4.4-2.1 3.5-3.3-.9-4.8 4.9.4L69 63Z'/%3E%3C/svg%3E")!important;
}

/* Backgrounds independent of order */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 34%,rgba(255,255,255,.82) 44%,rgba(255,255,255,.38) 56%,rgba(255,255,255,.10) 71%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-seulte-bg.png')!important;
  background-size:100% 100%,122% auto!important;
  background-position:center center,right -18px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 34%,rgba(255,255,255,.82) 44%,rgba(255,255,255,.38) 56%,rgba(255,255,255,.10) 71%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-topik-bg.png')!important;
  background-size:100% 100%,118% auto!important;
  background-position:center center,right -10px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 33%,rgba(255,255,255,.80) 43%,rgba(255,255,255,.36) 55%,rgba(255,255,255,.10) 70%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-yonse-bg.png')!important;
  background-size:100% 100%,126% auto!important;
  background-position:center center,right -18px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.972) 33%,rgba(255,255,255,.80) 43%,rgba(255,255,255,.36) 55%,rgba(255,255,255,.10) 70%,rgba(255,255,255,.02) 100%),
    url('../img/student/block-eps-topik-bg.png')!important;
  background-size:100% 100%,122% auto!important;
  background-position:center center,right -14px center!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{
    background-size:100% 100%,132% auto!important;
    background-position:center center,right -24px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{
    background-size:100% 100%,126% auto!important;
    background-position:center center,right -16px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{
    background-size:100% 100%,136% auto!important;
    background-position:center center,right -24px center!important;
  }
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{
    background-size:100% 100%,130% auto!important;
    background-position:center center,right -20px center!important;
  }
}
@media(max-width:390px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{background-size:100% 100%,138% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{background-size:100% 100%,132% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{background-size:100% 100%,142% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{background-size:100% 100%,136% auto!important}
}

/* =========================================================
   v74 — SEULTE inner collection cards get matching cover art.
   Covers are cropped/cleaned images placed on the right side.
   Also enlarge the top-level block art to hide white bands.
   ========================================================= */

/* SEULTE book cards */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  background-repeat:no-repeat,no-repeat!important;
  background-origin:border-box!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern{
  opacity:0!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
  z-index:2!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
  z-index:2!important;
}
body.student-app .collection-source[data-group-visual="seulte-1a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-1a.png')!important;
  background-size:100% 100%,auto 150%!important;
  background-position:center center,right 10px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-1b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-1b.png')!important;
  background-size:100% 100%,auto 150%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-2a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-2a.png')!important;
  background-size:100% 100%,auto 154%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-2b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-2b.png')!important;
  background-size:100% 100%,auto 152%!important;
  background-position:center center,right 6px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-3a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-3a.png')!important;
  background-size:100% 100%,auto 153%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-3b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-3b.png')!important;
  background-size:100% 100%,auto 152%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-4a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-4a.png')!important;
  background-size:100% 100%,auto 151%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-4b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-4b.png')!important;
  background-size:100% 100%,auto 151%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-5a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-5a.png')!important;
  background-size:100% 100%,auto 150%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-5b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-5b.png')!important;
  background-size:100% 100%,auto 151%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-6a"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-6a.png')!important;
  background-size:100% 100%,auto 152%!important;
  background-position:center center,right 8px center!important;
}
body.student-app .collection-source[data-group-visual="seulte-6b"]{
  background-image:linear-gradient(90deg,rgba(255,255,255,.988) 0%,rgba(255,255,255,.975) 34%,rgba(255,255,255,.88) 45%,rgba(255,255,255,.44) 58%,rgba(255,255,255,.10) 73%,rgba(255,255,255,.00) 100%),url('../img/student/seulte-covers/seulte-6b.png')!important;
  background-size:100% 100%,auto 151%!important;
  background-position:center center,right 8px center!important;
}
@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:100% 100%,auto 165%!important;
    background-position:center center,right 2px center!important;
  }
}
@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:100% 100%,auto 170%!important;
    background-position:center center,right 0 center!important;
  }
}

/* Top-level block cards: zoom images further to hide source white margins */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{
  background-size:100% 100%,132% auto!important;
  background-position:center center,right -26px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{
  background-size:100% 100%,128% auto!important;
  background-position:center center,right -18px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{
  background-size:100% 100%,136% auto!important;
  background-position:center center,right -24px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{
  background-size:100% 100%,132% auto!important;
  background-position:center center,right -18px center!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{background-size:100% 100%,145% auto!important;background-position:center center,right -34px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{background-size:100% 100%,138% auto!important;background-position:center center,right -24px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{background-size:100% 100%,148% auto!important;background-position:center center,right -34px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{background-size:100% 100%,144% auto!important;background-position:center center,right -28px center!important}
}
@media(max-width:390px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{background-size:100% 100%,152% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{background-size:100% 100%,144% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{background-size:100% 100%,156% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{background-size:100% 100%,150% auto!important}
}

/* =========================================================
   v75 — refine SEULTE collection cards.
   Show each book as a clean preview on the right with a matching
   decorative background panel, without splitting the card harshly.
   ========================================================= */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  --seulte-accent: 255, 199, 56;
  --seulte-accent-2: 245, 163, 49;
  --seulte-book: url('../img/student/seulte-covers/seulte-1a.png');
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.992) 0%,rgba(255,255,255,.986) 46%,rgba(255,255,255,.93) 58%,rgba(255,255,255,.72) 68%,rgba(255,255,255,.22) 84%,rgba(255,255,255,.05) 100%),
    radial-gradient(circle at 83% 50%, rgba(var(--seulte-accent),.26) 0%, rgba(var(--seulte-accent),.14) 36%, rgba(var(--seulte-accent),0) 62%),
    linear-gradient(135deg, rgba(var(--seulte-accent),.24), rgba(var(--seulte-accent-2),.42)),
    var(--seulte-book)!important;
  background-size:100% 100%, 34% 100%, 40% 100%, auto 82%!important;
  background-position:center center, right center, right center, right 58px center!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-color:#fbfdff!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
  right:14px!important;
  bottom:14px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3,
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
  text-shadow:none!important;
}
body.student-app .collection-source[data-group-visual="seulte-1a"]{--seulte-accent:255,205,60;--seulte-accent-2:247,171,67;--seulte-book:url('../img/student/seulte-covers/seulte-1a.png')}
body.student-app .collection-source[data-group-visual="seulte-1b"]{--seulte-accent:244,211,70;--seulte-accent-2:235,173,58;--seulte-book:url('../img/student/seulte-covers/seulte-1b.png')}
body.student-app .collection-source[data-group-visual="seulte-2a"]{--seulte-accent:120,197,54;--seulte-accent-2:80,156,42;--seulte-book:url('../img/student/seulte-covers/seulte-2a.png')}
body.student-app .collection-source[data-group-visual="seulte-2b"]{--seulte-accent:133,206,66;--seulte-accent-2:87,161,44;--seulte-book:url('../img/student/seulte-covers/seulte-2b.png')}
body.student-app .collection-source[data-group-visual="seulte-3a"]{--seulte-accent:246,167,54;--seulte-accent-2:224,128,31;--seulte-book:url('../img/student/seulte-covers/seulte-3a.png')}
body.student-app .collection-source[data-group-visual="seulte-3b"]{--seulte-accent:248,172,60;--seulte-accent-2:220,128,35;--seulte-book:url('../img/student/seulte-covers/seulte-3b.png')}
body.student-app .collection-source[data-group-visual="seulte-4a"]{--seulte-accent:72,168,244;--seulte-accent-2:42,126,206;--seulte-book:url('../img/student/seulte-covers/seulte-4a.png')}
body.student-app .collection-source[data-group-visual="seulte-4b"]{--seulte-accent:82,176,247;--seulte-accent-2:48,132,211;--seulte-book:url('../img/student/seulte-covers/seulte-4b.png')}
body.student-app .collection-source[data-group-visual="seulte-5a"]{--seulte-accent:60,183,154;--seulte-accent-2:35,133,116;--seulte-book:url('../img/student/seulte-covers/seulte-5a.png')}
body.student-app .collection-source[data-group-visual="seulte-5b"]{--seulte-accent:42,182,176;--seulte-accent-2:24,127,124;--seulte-book:url('../img/student/seulte-covers/seulte-5b.png')}
body.student-app .collection-source[data-group-visual="seulte-6a"]{--seulte-accent:165,106,191;--seulte-accent-2:116,69,160;--seulte-book:url('../img/student/seulte-covers/seulte-6a.png')}
body.student-app .collection-source[data-group-visual="seulte-6b"]{--seulte-accent:176,109,198;--seulte-accent-2:123,74,166;--seulte-book:url('../img/student/seulte-covers/seulte-6b.png')}
@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:100% 100%, 36% 100%, 42% 100%, auto 84%!important;
    background-position:center center, right center, right center, right 54px center!important;
  }
}
@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:100% 100%, 37% 100%, 44% 100%, auto 84%!important;
    background-position:center center, right center, right center, right 50px center!important;
  }
}

/* Top-level block cards: zoom a bit more to hide white top/bottom source edges */
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{
  background-size:100% 100%,138% auto!important;
  background-position:center center,right -34px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{
  background-size:100% 100%,132% auto!important;
  background-position:center center,right -24px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{
  background-size:100% 100%,142% auto!important;
  background-position:center center,right -30px center!important;
}
body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{
  background-size:100% 100%,138% auto!important;
  background-position:center center,right -24px center!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{background-size:100% 100%,154% auto!important;background-position:center center,right -42px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{background-size:100% 100%,144% auto!important;background-position:center center,right -28px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{background-size:100% 100%,156% auto!important;background-position:center center,right -40px center!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{background-size:100% 100%,150% auto!important;background-position:center center,right -34px center!important}
}
@media(max-width:390px){
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="seulte"]{background-size:100% 100%,160% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="topik"]{background-size:100% 100%,149% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="yonse"]{background-size:100% 100%,162% auto!important}
  body.student-app:has(.collection-block-card) .collection-block-card[data-block-visual="eps-topik"]{background-size:100% 100%,156% auto!important}
}

/* =========================================================
   v76 — premium SEULTE set cards based on approved mockup.
   Keep behavior intact; only restyle the inner SEULTE cards.
   ========================================================= */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  --seulte-accent:255,205,60;
  --seulte-accent-2:247,171,67;
  --seulte-book:url('../img/student/seulte-covers/seulte-1a.png');
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:24px 196px 22px 28px!important;
  border-radius:28px!important;
  border:1px solid rgba(255,255,255,.38)!important;
  background:
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.30) 0 11%, transparent 12%),
    radial-gradient(90% 62% at 82% 100%, rgba(255,255,255,.20) 0 28%, transparent 29%),
    linear-gradient(135deg, rgba(var(--seulte-accent),.94), rgba(var(--seulte-accent-2),.80)),
    var(--seulte-book)!important;
  background-size:14% 26%, 36% 44%, 42% 100%, auto 82%!important;
  background-position:96% 10%, 84% 100%, right center, right 64px center!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-color:#fdfefe!important;
  box-shadow:0 16px 34px rgba(6,43,76,.18), inset 0 1px 0 rgba(255,255,255,.58)!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"]::before{
  content:'';
  position:absolute;
  inset:0 34% 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.998),rgba(252,254,255,.985));
  clip-path:polygon(0 0,100% 0,84% 100%,0 100%);
  z-index:0;
}
body.student-app .collection-source[data-group-visual^="seulte-"]::after{
  left:14px!important;
  top:22px!important;
  bottom:22px!important;
  width:8px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg, rgba(var(--seulte-accent),.98), rgba(var(--seulte-accent-2),.92))!important;
  opacity:1!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern{
  position:absolute!important;
  inset:0 0 0 auto!important;
  width:44%!important;
  height:100%!important;
  right:0!important;
  top:0!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
  border-radius:0 28px 28px 0!important;
  background:none!important;
  overflow:hidden!important;
  z-index:1!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::before{
  content:'';
  position:absolute;
  inset:12% 10% 10% 8%;
  background:
    radial-gradient(90% 90% at 0% 100%, rgba(255,255,255,.34) 0 18%, transparent 19%),
    radial-gradient(110% 110% at 100% 0%, rgba(255,255,255,.22) 0 17%, transparent 18%),
    linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  border-radius:24px;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::after{
  content:'한';
  position:absolute;
  right:30px;
  top:16px;
  font-size:58px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  color:rgba(255,255,255,.34);
  text-shadow:0 1px 0 rgba(255,255,255,.12);
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
  position:relative;
  z-index:2!important;
  gap:10px!important;
  max-width:calc(100% - 150px);
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  font-size:23px!important;
  line-height:1.04!important;
  letter-spacing:-.5px!important;
  color:#091c4a!important;
  text-shadow:none!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3::before{
  content:'SEULTE';
  display:block;
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.28em;
  color:#6a82b3;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  font-size:15px!important;
  font-weight:800!important;
  color:#5b76a8!important;
  text-shadow:none!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted::before{
  content:'';
  width:24px;
  height:24px;
  flex:0 0 24px;
  background:no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23627bad' d='M3.2 6.8A2.8 2.8 0 0 1 6 4h5.2c1.1 0 2.1.47 2.8 1.22A3.7 3.7 0 0 1 16.8 4H18a2.8 2.8 0 0 1 2.8 2.8v10.9c0 .9-.73 1.63-1.63 1.63H14.4c-.73 0-1.44.2-2.06.58l-.34.2-.34-.2a4 4 0 0 0-2.06-.58H4.83c-.9 0-1.63-.73-1.63-1.63V6.8Zm9.1.56A2.16 2.16 0 0 0 10.15 5H6a1.8 1.8 0 0 0-1.8 1.8v9.6h4.44c1.32 0 2.6.35 3.66 1V7.36Zm1 10.04a7.02 7.02 0 0 1 3.66-1h2.84V6.8A1.8 1.8 0 0 0 18 5h-1.16a2.84 2.84 0 0 0-2.84 2.84v9.56Z'/%3E%3C/svg%3E");
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
  z-index:3!important;
  right:16px!important;
  bottom:16px!important;
  width:56px!important;
  height:56px!important;
  border-radius:50%!important;
  border:1px solid rgba(100,155,219,.18)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 26px rgba(17,93,150,.16)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:#0a83de!important;
  font-size:30px!important;
}
body.student-app .collection-source[data-group-visual="seulte-1a"]{--seulte-accent:255,208,74;--seulte-accent-2:240,185,62;--seulte-book:url('../img/student/seulte-covers/seulte-1a.png')}
body.student-app .collection-source[data-group-visual="seulte-1b"]{--seulte-accent:245,216,88;--seulte-accent-2:206,227,110;--seulte-book:url('../img/student/seulte-covers/seulte-1b.png')}
body.student-app .collection-source[data-group-visual="seulte-2a"]{--seulte-accent:104,223,66;--seulte-accent-2:64,184,63;--seulte-book:url('../img/student/seulte-covers/seulte-2a.png')}
body.student-app .collection-source[data-group-visual="seulte-2b"]{--seulte-accent:120,229,86;--seulte-accent-2:76,194,72;--seulte-book:url('../img/student/seulte-covers/seulte-2b.png')}
body.student-app .collection-source[data-group-visual="seulte-3a"]{--seulte-accent:255,183,76;--seulte-accent-2:236,138,39;--seulte-book:url('../img/student/seulte-covers/seulte-3a.png')}
body.student-app .collection-source[data-group-visual="seulte-3b"]{--seulte-accent:255,191,90;--seulte-accent-2:243,150,54;--seulte-book:url('../img/student/seulte-covers/seulte-3b.png')}
body.student-app .collection-source[data-group-visual="seulte-4a"]{--seulte-accent:91,188,255;--seulte-accent-2:56,145,232;--seulte-book:url('../img/student/seulte-covers/seulte-4a.png')}
body.student-app .collection-source[data-group-visual="seulte-4b"]{--seulte-accent:100,199,255;--seulte-accent-2:62,155,238;--seulte-book:url('../img/student/seulte-covers/seulte-4b.png')}
body.student-app .collection-source[data-group-visual="seulte-5a"]{--seulte-accent:74,210,176;--seulte-accent-2:44,159,134;--seulte-book:url('../img/student/seulte-covers/seulte-5a.png')}
body.student-app .collection-source[data-group-visual="seulte-5b"]{--seulte-accent:64,214,199;--seulte-accent-2:37,155,149;--seulte-book:url('../img/student/seulte-covers/seulte-5b.png')}
body.student-app .collection-source[data-group-visual="seulte-6a"]{--seulte-accent:179,117,214;--seulte-accent-2:132,80,187;--seulte-book:url('../img/student/seulte-covers/seulte-6a.png')}
body.student-app .collection-source[data-group-visual="seulte-6b"]{--seulte-accent:188,126,220;--seulte-accent-2:140,86,193;--seulte-book:url('../img/student/seulte-covers/seulte-6b.png')}
@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    padding:22px 184px 20px 26px!important;
    background-size:13% 24%, 38% 46%, 44% 100%, auto 83%!important;
    background-position:96% 10%, 84% 100%, right center, right 56px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"]::before{inset:0 33% 0 0;clip-path:polygon(0 0,100% 0,82% 100%,0 100%)}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{max-width:calc(100% - 138px)}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{font-size:22px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{width:52px!important;height:52px!important;font-size:28px!important;right:14px!important;bottom:14px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::after{font-size:54px;right:28px}
}
@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    padding:20px 174px 18px 24px!important;
    background-size:13% 23%, 40% 47%, 45% 100%, auto 82%!important;
    background-position:96% 10%, 84% 100%, right center, right 52px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{font-size:20px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{font-size:14px!important;gap:10px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted::before{width:22px;height:22px;flex-basis:22px}
}

/* =========================================================
   v77 — tighten SEULTE premium cards to match approved mockup.
   Keep previous button size feel, make right-side book clearer,
   and avoid title wrapping on mobile.
   ========================================================= */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  min-height:128px!important;
  padding:18px 152px 18px 22px!important;
  border-radius:26px!important;
  background:
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.22) 0 10%, transparent 11%),
    radial-gradient(92% 64% at 82% 100%, rgba(255,255,255,.18) 0 24%, transparent 25%),
    linear-gradient(135deg, rgba(var(--seulte-accent),.92), rgba(var(--seulte-accent-2),.78)),
    var(--seulte-book)!important;
  background-size:12% 24%, 30% 42%, 38% 100%, auto 88%!important;
  background-position:96% 10%, 84% 100%, right center, right 52px center!important;
  box-shadow:0 12px 26px rgba(6,43,76,.16), inset 0 1px 0 rgba(255,255,255,.55)!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"]::before{
  inset:0 40% 0 0!important;
  background:linear-gradient(180deg,rgba(255,255,255,.998),rgba(252,254,255,.99))!important;
  clip-path:polygon(0 0,100% 0,86% 100%,0 100%)!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"]::after{
  left:12px!important;
  top:16px!important;
  bottom:16px!important;
  width:6px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern{
  width:40%!important;
  border-radius:0 26px 26px 0!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::before{
  inset:14% 8% 12% 10%!important;
  border-radius:20px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::after{
  top:20px!important;
  right:26px!important;
  font-size:52px!important;
  color:rgba(255,255,255,.28)!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
  max-width:calc(100% - 120px)!important;
  gap:7px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{
  gap:6px!important;
  font-size:19px!important;
  line-height:1.05!important;
  letter-spacing:-.38px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3::before{
  font-size:11px!important;
  letter-spacing:.24em!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
  gap:9px!important;
  font-size:13px!important;
  line-height:1.2!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted::before{
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
  width:46px!important;
  height:46px!important;
  right:12px!important;
  bottom:12px!important;
  font-size:26px!important;
  box-shadow:0 10px 20px rgba(17,93,150,.13)!important;
}

@media(min-width:700px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    min-height:140px!important;
    padding:20px 166px 20px 24px!important;
    background-size:12% 24%, 31% 44%, 39% 100%, auto 90%!important;
    background-position:96% 10%, 84% 100%, right center, right 56px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{font-size:22px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{font-size:14px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{width:50px!important;height:50px!important;font-size:28px!important}
}

@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    min-height:122px!important;
    padding:17px 144px 17px 20px!important;
    background-size:11% 22%, 31% 42%, 39% 100%, auto 86%!important;
    background-position:96% 10%, 84% 100%, right center, right 48px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"]::before{inset:0 39% 0 0!important;clip-path:polygon(0 0,100% 0,85% 100%,0 100%)!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{max-width:calc(100% - 112px)!important}
}

@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    min-height:118px!important;
    padding:16px 136px 16px 18px!important;
    background-size:10% 20%, 32% 42%, 40% 100%, auto 84%!important;
    background-position:96% 10%, 84% 100%, right center, right 46px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{max-width:calc(100% - 106px)!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{font-size:17px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3::before{font-size:10px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{font-size:12px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{width:42px!important;height:42px!important;font-size:24px!important;right:10px!important;bottom:10px!important}
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::after{font-size:46px!important;right:22px!important}
}


/* =========================================================
   v78 — match approved SEULTE card mockup more closely.
   Removes the extra small "SEULTE" eyebrow above the main title.
   Keeps the original card size and all existing functionality.
   ========================================================= */

/* Remove the extra small SEULTE label above SEULTE 1A/1B/... */
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3::before{
  content:none!important;
  display:none!important;
}

/* Approved compact card proportions */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  min-height:124px!important;
  padding:20px 154px 18px 24px!important;
  border-radius:24px!important;
  background:
    radial-gradient(85% 72% at 87% 100%, rgba(255,255,255,.20) 0 25%, transparent 26%),
    linear-gradient(138deg, rgba(var(--seulte-accent),.92), rgba(var(--seulte-accent-2),.80)),
    var(--seulte-book)!important;
  background-size:32% 50%, 41% 100%, auto 90%!important;
  background-position:84% 100%, right center, right 54px center!important;
  background-repeat:no-repeat,no-repeat,no-repeat!important;
  box-shadow:0 12px 28px rgba(5,43,76,.16), inset 0 1px 0 rgba(255,255,255,.62)!important;
}

/* Clean white reading panel with the same diagonal transition as the reference */
body.student-app .collection-source[data-group-visual^="seulte-"]::before{
  inset:0 39% 0 0!important;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;
  clip-path:polygon(0 0,100% 0,84% 100%,0 100%)!important;
}

/* Slim accent line */
body.student-app .collection-source[data-group-visual^="seulte-"]::after{
  left:12px!important;
  top:18px!important;
  bottom:18px!important;
  width:5px!important;
  border-radius:999px!important;
}

/* No duplicate decorative label; keep only subtle background shapes */
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-card-pattern::after{
  content:'한'!important;
  top:18px!important;
  right:24px!important;
  font-size:48px!important;
  color:rgba(255,255,255,.24)!important;
}

/* Main title + topic count */
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
  max-width:calc(100% - 112px)!important;
  gap:11px!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{
  margin:0!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:850!important;
  letter-spacing:-.5px!important;
  color:#081a46!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#5d78aa!important;
}
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted::before{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
}

/* Round Korean badge */
body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
  width:46px!important;
  height:46px!important;
  right:12px!important;
  bottom:12px!important;
  border-radius:50%!important;
  font-size:26px!important;
  background:rgba(255,255,255,.96)!important;
}

/* Phone tuning: keep original compact button height */
@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    min-height:120px!important;
    padding:18px 146px 17px 22px!important;
    background-size:31% 48%, 41% 100%, auto 88%!important;
    background-position:84% 100%, right center, right 50px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"]::before{
    inset:0 38% 0 0!important;
    clip-path:polygon(0 0,100% 0,83% 100%,0 100%)!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
    max-width:calc(100% - 106px)!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{
    font-size:20px!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
    font-size:13px!important;
  }
}

@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    min-height:118px!important;
    padding:17px 138px 16px 20px!important;
    background-size:30% 46%, 42% 100%, auto 86%!important;
    background-position:84% 100%, right center, right 46px center!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy{
    max-width:calc(100% - 100px)!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy h3{
    font-size:18px!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-showcase-copy .muted{
    font-size:12px!important;
  }
  body.student-app .collection-source[data-group-visual^="seulte-"] .collection-korean-badge{
    width:42px!important;
    height:42px!important;
    font-size:24px!important;
    right:10px!important;
    bottom:10px!important;
  }
}


/* =========================================================
   v81 — restore the original uploaded SEULTE capsule styling,
   then place the new user-supplied 12 images into those capsules
   without editing the image content itself. Images fill the capsule
   width, may crop top/bottom, and stay aligned so the book remains visible.
   ========================================================= */
body.student-app .collection-source[data-group-visual^="seulte-"]{
  background-repeat:no-repeat!important;
  background-size:102% auto!important;
  background-position:right center!important;
}
body.student-app .collection-source[data-group-visual="seulte-1a"]{background-image:url('../img/student/seulte-covers/seulte-1a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-1b"]{background-image:url('../img/student/seulte-covers/seulte-1b.png')!important}
body.student-app .collection-source[data-group-visual="seulte-2a"]{background-image:url('../img/student/seulte-covers/seulte-2a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-2b"]{background-image:url('../img/student/seulte-covers/seulte-2b.png')!important}
body.student-app .collection-source[data-group-visual="seulte-3a"]{background-image:url('../img/student/seulte-covers/seulte-3a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-3b"]{background-image:url('../img/student/seulte-covers/seulte-3b.png')!important}
body.student-app .collection-source[data-group-visual="seulte-4a"]{background-image:url('../img/student/seulte-covers/seulte-4a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-4b"]{background-image:url('../img/student/seulte-covers/seulte-4b.png')!important}
body.student-app .collection-source[data-group-visual="seulte-5a"]{background-image:url('../img/student/seulte-covers/seulte-5a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-5b"]{background-image:url('../img/student/seulte-covers/seulte-5b.png')!important}
body.student-app .collection-source[data-group-visual="seulte-6a"]{background-image:url('../img/student/seulte-covers/seulte-6a.png')!important}
body.student-app .collection-source[data-group-visual="seulte-6b"]{background-image:url('../img/student/seulte-covers/seulte-6b.png')!important}
@media(max-width:600px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:104% auto!important;
  }
}
@media(max-width:390px){
  body.student-app .collection-source[data-group-visual^="seulte-"]{
    background-size:106% auto!important;
  }
}

/* =========================================================
   v83 — Admin-manageable capsule images for blocks + collections.
   Custom images sit behind the existing title/count and do not change clicks.
   ========================================================= */
body.student-app .collection-showcase-card.has-custom-capsule-image{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:var(--student-surface-strong)!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-custom-capsule-image{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background-image:var(--capsule-image)!important;
  background-repeat:no-repeat!important;
  background-position:var(--capsule-x,50%) var(--capsule-y,50%)!important;
  background-size:var(--capsule-fit,cover)!important;
  transform:scale(var(--capsule-zoom,1))!important;
  transform-origin:center!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-showcase-copy{
  position:relative!important;
  z-index:3!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-card-pattern,
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-korean-badge{
  display:none!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image::after{
  display:none!important;
  content:none!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-lock-mark,
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-block-enter{
  z-index:4!important;
}
/* Top-level block's legacy icon pseudo-element must not cover an uploaded image. */
body.student-app:has(.collection-block-card) .collection-block-card.has-custom-capsule-image::after{
  display:none!important;
  content:none!important;
}

/* Admin capsule image editor */
.capsule-visual-editor{display:grid;gap:16px}
.capsule-visual-preview{
  position:relative;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:3.35/1;
  min-height:150px;border-radius:26px;border:1px solid var(--line);background:#eef3f8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 12px 28px rgba(20,48,80,.10);
}
.capsule-visual-preview-image{
  position:absolute;inset:0;z-index:0;background-repeat:no-repeat;background-position:50% 50%;background-size:cover;
  transform:scale(1);transform-origin:center;transition:transform .08s linear,background-position .08s linear;
}
.capsule-visual-preview-copy{
  position:absolute;z-index:2;left:24px;top:50%;transform:translateY(-50%);display:grid;gap:8px;
  max-width:46%;padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.82);backdrop-filter:blur(4px);
  box-shadow:0 6px 18px rgba(20,40,70,.08);
}
.capsule-visual-preview-copy b{font-size:22px;color:#0b2144}.capsule-visual-preview-copy small{font-weight:800;color:#60789b}
.capsule-file-picker{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border-radius:14px;background:#eef7ff;border:1px dashed #72b9e8;color:#075f9e;font-weight:900;cursor:pointer}
.capsule-file-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.capsule-file-info{font-size:12px;line-height:1.45}
.capsule-visual-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.capsule-visual-controls label{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f8fbff;font-size:12px;font-weight:800;color:var(--muted)}
.capsule-visual-controls label span{justify-self:end;color:var(--text);font-weight:900}
.capsule-visual-controls input[type="range"]{width:100%;accent-color:#168bd1}
.capsule-visual-controls select{width:100%;min-height:42px}
.capsule-visual-actions{display:flex;gap:10px;flex-wrap:wrap}.capsule-visual-actions .btn{flex:1;min-width:170px}
@media(max-width:600px){
  .capsule-visual-preview{aspect-ratio:2.9/1;min-height:128px;border-radius:22px}
  .capsule-visual-preview-copy{left:14px;max-width:50%;padding:8px 10px}.capsule-visual-preview-copy b{font-size:17px}
  .capsule-visual-controls{grid-template-columns:1fr}
}

/* =========================================================
   v85 — Clean collection capsules + reliable admin image layer.
   - No built-in artwork on collection cards when no admin image exists.
   - Only collection title + topic count remain (plus functional lock/soon state).
   - Admin image is rendered as a real <img> so Telegram WebView shows it
     reliably, with the saved position / zoom / cover-contain settings.
   ========================================================= */

/* Clean every collection capsule back to a neutral white card. */
body.student-app .collection-source.collection-showcase-card{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#fff!important;
  background-image:none!important;
  border-color:rgba(204,216,228,.92)!important;
  box-shadow:0 10px 24px rgba(20,61,96,.10)!important;
}
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card{
  background:#fff!important;
  background-image:none!important;
  border-color:rgba(204,216,228,.92)!important;
}

/* Remove all legacy decorative SEULTE / collection artwork. */
body.student-app .collection-source.collection-showcase-card::before,
body.student-app .collection-source.collection-showcase-card::after{
  content:none!important;
  display:none!important;
}
body.student-app .collection-source.collection-showcase-card .collection-card-pattern,
body.student-app .collection-source.collection-showcase-card .collection-korean-badge{
  display:none!important;
}

/* Keep only the real title / count readable on the blank capsule. */
body.student-app .collection-source.collection-showcase-card .collection-showcase-copy{
  position:relative!important;
  z-index:3!important;
  display:grid!important;
  gap:9px!important;
  max-width:none!important;
}
body.student-app .collection-source.collection-showcase-card .collection-showcase-copy h3{
  margin:0!important;
  color:#0b2144!important;
  text-shadow:none!important;
}
body.student-app .collection-source.collection-showcase-card .collection-showcase-copy h3::before{
  content:none!important;
  display:none!important;
}
body.student-app .collection-source.collection-showcase-card .collection-showcase-copy .muted{
  margin:0!important;
  color:#60789b!important;
  text-shadow:none!important;
}
body.student-app .collection-source.collection-showcase-card .collection-showcase-copy .muted::before{
  content:none!important;
  display:none!important;
}

/* Uploaded admin image: use an actual image element, never a CSS url(). */
body.student-app .collection-showcase-card.has-custom-capsule-image{
  background:#fff!important;
  background-image:none!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-custom-capsule-image{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  overflow:hidden!important;
  pointer-events:none!important;
  background:none!important;
  transform:none!important;
}
body.student-app .collection-showcase-card.has-custom-capsule-image .collection-custom-capsule-image img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:var(--capsule-fit,cover)!important;
  object-position:var(--capsule-x,50%) var(--capsule-y,50%)!important;
  transform:scale(var(--capsule-zoom,1))!important;
  transform-origin:center!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}

/* Title/count stay above an uploaded image. A tiny text shadow is enough to
   keep them readable without adding another decorative panel. */
body.student-app .collection-source.collection-showcase-card.has-custom-capsule-image .collection-showcase-copy h3,
body.student-app .collection-source.collection-showcase-card.has-custom-capsule-image .collection-showcase-copy .muted{
  position:relative!important;
  z-index:3!important;
  text-shadow:0 1px 2px rgba(255,255,255,.86),0 0 6px rgba(255,255,255,.72)!important;
}

/* Preserve functional state markers only. */
body.student-app .collection-source.collection-showcase-card .collection-lock-mark,
body.student-app .collection-source.collection-showcase-card .student-coming-soon-badge{
  position:relative;
  z-index:4!important;
}


/* =========================================================
   v88 — Profile popover only: milky glass / frosted profile panel
   No XP, quiz, results or other capsule styles are changed here.
   ========================================================= */
body.student-app .student-profile-menu,
html[data-theme="dark"] body.student-app .student-profile-menu{
  padding:18px!important;
  border-radius:28px!important;
  color:#102342!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.66),rgba(226,242,252,.48))!important;
  border:1px solid rgba(235,248,255,.88)!important;
  box-shadow:
    0 22px 48px rgba(0,30,55,.28),
    0 4px 14px rgba(57,157,220,.12),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(143,215,255,.24)!important;
  backdrop-filter:blur(28px) saturate(145%) brightness(1.08)!important;
  -webkit-backdrop-filter:blur(28px) saturate(145%) brightness(1.08)!important;
}
body.student-app .student-profile-menu::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(120% 70% at 8% -8%,rgba(255,255,255,.70),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.18),transparent 30%,rgba(70,180,235,.05));
  box-shadow:inset 0 0 24px rgba(255,255,255,.20);
  z-index:0;
}
body.student-app .student-profile-menu>*{position:relative;z-index:1}

body.student-app .student-profile-menu-head{
  gap:14px!important;
  padding:4px 4px 17px!important;
  border-bottom:1px solid rgba(255,255,255,.42)!important;
}
body.student-app .student-profile-menu-avatar{
  width:58px!important;
  height:58px!important;
  flex-basis:58px!important;
  border:2px solid rgba(242,251,255,.98)!important;
  box-shadow:
    0 0 0 2px rgba(80,178,255,.42),
    0 8px 18px rgba(11,62,104,.18)!important;
}
body.student-app .student-profile-menu-head div{gap:4px!important}
body.student-app .student-profile-menu-head b{
  color:#102342!important;
  font-size:20px!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
}
body.student-app .student-profile-menu-head small,
html[data-theme="dark"] body.student-app .student-profile-menu-head small{
  color:#607a9d!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.student-app .student-profile-menu-label,
html[data-theme="dark"] body.student-app .student-profile-menu-label{
  padding:16px 4px 9px!important;
  color:#57769a!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
}

body.student-app .student-theme-switch,
html[data-theme="dark"] body.student-app .student-theme-switch{
  gap:5px!important;
  padding:6px!important;
  border-radius:18px!important;
  background:rgba(226,241,251,.48)!important;
  border:1px solid rgba(216,238,250,.82)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 0 12px rgba(76,164,220,.08)!important;
}
body.student-app .student-theme-choice,
html[data-theme="dark"] body.student-app .student-theme-choice{
  height:46px!important;
  border-radius:14px!important;
  color:#173152!important;
  font-size:15px!important;
  font-weight:800!important;
}
body.student-app .student-theme-choice.active,
html[data-theme="dark"] body.student-app .student-theme-choice.active{
  color:#0e62d4!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(213,235,255,.88))!important;
  border:1px solid rgba(186,224,255,.95)!important;
  box-shadow:
    0 7px 18px rgba(56,134,205,.16),
    inset 0 1px 0 #fff,
    inset 0 0 14px rgba(84,163,255,.10)!important;
}

body.student-app .student-profile-menu-action,
html[data-theme="dark"] body.student-app .student-profile-menu-action{
  width:100%!important;
  margin-top:8px!important;
  padding:9px 10px!important;
  min-height:60px!important;
  grid-template-columns:38px minmax(0,1fr) 22px!important;
  gap:10px!important;
  border:1px solid rgba(222,241,251,.72)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.43),rgba(229,242,251,.28))!important;
  color:#102342!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 5px 14px rgba(19,65,105,.06)!important;
}
body.student-app .student-profile-menu-action:hover,
html[data-theme="dark"] body.student-app .student-profile-menu-action:hover{
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(224,242,253,.40))!important;
  border-color:rgba(189,225,247,.88)!important;
}
body.student-app .student-profile-menu-action-icon{
  width:38px!important;
  height:38px!important;
  border-radius:13px!important;
  color:#176ee7!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(221,239,252,.88))!important;
  border:1px solid rgba(255,255,255,.80)!important;
  box-shadow:
    0 7px 16px rgba(40,111,170,.13),
    inset 0 1px 0 #fff!important;
}
body.student-app .student-profile-menu-action span:nth-child(2){gap:3px!important}
body.student-app .student-profile-menu-action b{
  color:#102342!important;
  font-size:15px!important;
  font-weight:850!important;
}
body.student-app .student-profile-menu-action small,
html[data-theme="dark"] body.student-app .student-profile-menu-action small{
  color:#66809f!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.student-app .student-profile-menu-chevron,
html[data-theme="dark"] body.student-app .student-profile-menu-chevron{
  color:#557494!important;
  font-size:26px!important;
  font-weight:700!important;
}

@media(max-width:480px){
  body.student-app .student-profile-menu,
  html[data-theme="dark"] body.student-app .student-profile-menu{
    padding:14px!important;
    border-radius:24px!important;
  }
  body.student-app .student-profile-menu-avatar{
    width:52px!important;
    height:52px!important;
    flex-basis:52px!important;
  }
  body.student-app .student-profile-menu-head b{font-size:18px!important}
  body.student-app .student-profile-menu-action,
  html[data-theme="dark"] body.student-app .student-profile-menu-action{
    min-height:58px!important;
    padding:8px 10px!important;
    border-radius:16px!important;
  }
}


/* v137 — Profile menu only: compact action rows; no other components affected. */

/* v138 — Profile menu only: keep header/theme fixed and scroll only action rows on short screens. */
body.student-app .student-profile-menu,
html[data-theme="dark"] body.student-app .student-profile-menu{
  display:flex!important;
  flex-direction:column!important;
  max-height:calc(100vh - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.student-app .student-profile-menu-actions{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(85,116,148,.42) transparent;
}
body.student-app .student-profile-menu-actions::-webkit-scrollbar{width:4px}
body.student-app .student-profile-menu-actions::-webkit-scrollbar-track{background:transparent}
body.student-app .student-profile-menu-actions::-webkit-scrollbar-thumb{
  background:rgba(85,116,148,.36);
  border-radius:999px;
}


/* =========================================================
   v89 — Extend milky glass style to dashboard XP / Live Quiz /
   results cards. Live Quiz gets a soft gold accent.
   Profile glass from v88 remains unchanged.
   ========================================================= */
body.student-app .public-level-shell.card,
html[data-theme="dark"] body.student-app .public-level-shell.card,
body.student-app .public-my-result.card,
html[data-theme="dark"] body.student-app .public-my-result.card,
body.student-app .public-ranking-card.card,
html[data-theme="dark"] body.student-app .public-ranking-card.card,
body.student-app .public-hero-quiz.card,
html[data-theme="dark"] body.student-app .public-hero-quiz.card{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(234,243,250,.60))!important;
  border:1px solid rgba(233,246,255,.92)!important;
  box-shadow:
    0 18px 40px rgba(6,34,63,.18),
    0 3px 12px rgba(85,165,219,.10),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(163,213,246,.18)!important;
  backdrop-filter:blur(24px) saturate(138%) brightness(1.05)!important;
  -webkit-backdrop-filter:blur(24px) saturate(138%) brightness(1.05)!important;
}
body.student-app .public-level-shell.card::before,
body.student-app .public-my-result.card::before,
body.student-app .public-ranking-card.card::before,
body.student-app .public-hero-quiz.card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(120% 78% at 12% -8%,rgba(255,255,255,.68),transparent 45%),
    linear-gradient(180deg,rgba(255,255,255,.12),transparent 32%,rgba(90,167,218,.05));
  z-index:0;
}
body.student-app .public-level-shell.card > *,
body.student-app .public-my-result.card > *,
body.student-app .public-ranking-card.card > *,
body.student-app .public-hero-quiz.card > *{position:relative;z-index:1}

/* Dashboard XP card */
body.student-app .public-level-shell.card{border-radius:28px!important;padding:0!important}
body.student-app .public-level-toggle{padding:16px 17px!important;min-height:104px!important}
body.student-app .public-level-badge,
html[data-theme="dark"] body.student-app .public-level-badge{
  background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(221,240,251,.88))!important;
  border:1px solid rgba(186,224,245,.96)!important;
  box-shadow:0 10px 22px rgba(36,105,159,.11),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
body.student-app .public-level-badge small{color:#62809c!important}
body.student-app .public-level-badge b{color:#0a88cf!important}
body.student-app .public-level-topline strong,
body.student-app .public-my-result h2{color:#102342!important;font-weight:950!important}
body.student-app .public-level-topline em,
body.student-app .public-level-main.compact small{color:#5d7898!important;font-weight:800!important}
body.student-app .public-level-chevron{color:#7290ae!important}
body.student-app .public-level-shell .public-level-track,
body.student-app .public-my-result .public-level-track{
  height:8px!important;
  background:rgba(223,234,242,.92)!important;
  box-shadow:inset 0 1px 2px rgba(40,77,114,.08)!important;
}
body.student-app .public-level-shell .public-level-track i,
body.student-app .public-my-result .public-level-track i{
  background:linear-gradient(90deg,#24a9eb,#5fd6bf)!important;
  box-shadow:0 0 14px rgba(36,169,235,.18)!important;
}
body.student-app .public-goals-panel{border-top:1px solid rgba(255,255,255,.36)!important}
body.student-app .public-goals-inner{padding:0 16px 16px!important}
body.student-app .public-task{
  margin-top:10px!important;
  padding:12px 14px!important;
  border:1px solid rgba(219,238,250,.75)!important;
  border-radius:17px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.46),rgba(228,241,250,.30))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74),0 5px 14px rgba(18,62,101,.05)!important;
}
body.student-app .public-task:last-child{border-bottom:1px solid rgba(219,238,250,.75)!important}
body.student-app .public-task-title{color:#102342!important}
body.student-app .public-task-progress{color:#5d7898!important}
body.student-app .public-task-reward>b{color:#0a84c5!important}
body.student-app .public-xp-info{
  background:rgba(241,248,253,.88)!important;
  border:1px solid rgba(197,223,240,.62)!important;
  color:#51677c!important;
}

/* Live quiz card — same glass + soft gold */
body.student-app .public-hero-quiz.card,
html[data-theme="dark"] body.student-app .public-hero-quiz.card{
  padding:22px!important;
  border-radius:26px!important;
  background:
    linear-gradient(145deg,rgba(255,251,238,.82),rgba(238,246,250,.68))!important;
  border-color:rgba(250,236,187,.94)!important;
  box-shadow:
    0 18px 42px rgba(44,32,8,.16),
    0 3px 12px rgba(214,171,59,.11),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(245,215,122,.20)!important;
}
body.student-app .public-hero-quiz.card::before{
  background:
    radial-gradient(135% 84% at 0% 0%,rgba(255,255,255,.78),transparent 46%),
    linear-gradient(115deg,rgba(255,230,156,.24),rgba(255,255,255,.03) 42%,rgba(255,210,75,.16) 100%)!important;
}
body.student-app .public-hero-glow{
  width:260px!important;
  height:260px!important;
  right:-78px!important;
  top:-118px!important;
  background:radial-gradient(circle,rgba(255,215,92,.46),rgba(255,255,255,0) 70%)!important;
}
body.student-app .public-hero-quiz.is-idle{opacity:1!important}
body.student-app .public-quiz-eyebrow{color:#9b6b00!important;text-shadow:0 1px 0 rgba(255,255,255,.42)}
body.student-app .public-hero-quiz h2{color:#274157!important;font-size:24px!important;margin:8px 0 10px!important}
body.student-app .public-hero-quiz p{color:#61778f!important;line-height:1.55!important}
body.student-app .public-quiz-meta span{
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,245,212,.72))!important;
  border:1px solid rgba(245,220,152,.76)!important;
  color:#7a6231!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94)!important;
}
body.student-app .public-prize{color:#8d6510!important}
body.student-app .public-quiz-cta{
  background:linear-gradient(145deg,#f3c653,#dd9e10)!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(190,134,10,.24)!important;
}
body.student-app .public-quiz-cta:hover{filter:brightness(.98)}

/* Results page cards */
body.student-app .public-my-result.card{
  grid-template-columns:auto 1fr!important;
  gap:16px!important;
  border-radius:28px!important;
}
body.student-app .public-my-rank-icon{
  width:74px!important;
  height:74px!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(255,249,222,.96),rgba(255,243,202,.88))!important;
  border:1px solid rgba(246,227,153,.92)!important;
  box-shadow:0 10px 24px rgba(181,136,22,.10),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
body.student-app .public-my-result small{color:#5d7898!important;font-weight:900!important;letter-spacing:.04em!important}
body.student-app .public-ranking-card.card{border-radius:28px!important;gap:16px!important}
body.student-app .public-ranking-tabs{
  padding:6px!important;
  border-radius:18px!important;
  background:rgba(228,239,246,.66)!important;
  border:1px solid rgba(214,232,242,.86)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88)!important;
}
body.student-app .public-ranking-tab{
  min-height:46px!important;
  border-radius:14px!important;
  color:#203555!important;
  font-weight:850!important;
}
body.student-app .public-ranking-tab.active{
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(217,236,249,.86))!important;
  color:#0c84ca!important;
  box-shadow:0 7px 18px rgba(40,111,170,.12),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
body.student-app .public-ranking-summary,
body.student-app .public-xp-history-row,
body.student-app .public-rank-row{
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(229,241,249,.34))!important;
  border:1px solid rgba(219,238,249,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 5px 14px rgba(17,61,98,.05)!important;
}
body.student-app .public-ranking-summary{
  border-radius:18px!important;
  padding:14px 15px!important;
}
body.student-app .public-ranking-summary span,
body.student-app .public-ranking-note,
body.student-app .public-top10-label,
body.student-app .public-rank-xp{color:#657f9c!important}
body.student-app .public-ranking-summary b,
body.student-app .public-rank-name{color:#102342!important}
body.student-app .public-ranking-summary em{color:#0b86cc!important}
body.student-app .public-rank-row{
  min-height:62px!important;
  border-radius:18px!important;
  padding:12px 13px!important;
}
body.student-app .public-rank-row.is-me{
  background:linear-gradient(145deg,rgba(232,246,255,.88),rgba(220,240,252,.68))!important;
  border-color:rgba(151,210,242,.90)!important;
  box-shadow:0 8px 18px rgba(41,125,182,.10),inset 0 1px 0 rgba(255,255,255,.82)!important;
}
body.student-app .public-own-rank-outside{
  border-color:rgba(151,210,242,.90)!important;
  background:linear-gradient(145deg,rgba(232,246,255,.88),rgba(220,240,252,.68))!important;
}
body.student-app .public-rank-pos{color:#4f6785!important}
body.student-app .public-own-rank-separator{color:#6e84a0!important}
body.student-app .public-own-rank-separator:before{background:rgba(208,225,238,.92)!important}
body.student-app .public-own-rank-separator span{background:rgba(248,251,253,.90)!important;border-radius:999px}

@media(max-width:480px){
  body.student-app .public-level-shell.card,
  body.student-app .public-my-result.card,
  body.student-app .public-ranking-card.card,
  body.student-app .public-hero-quiz.card{border-radius:24px!important}
  body.student-app .public-level-toggle{padding:14px 14px!important;min-height:96px!important}
  body.student-app .public-hero-quiz.card{padding:18px!important}
  body.student-app .public-my-rank-icon{width:68px!important;height:68px!important;border-radius:21px!important}
  body.student-app .public-ranking-tabs{padding:5px!important;border-radius:16px!important}
  body.student-app .public-ranking-tab{min-height:42px!important;font-size:13px!important}
  body.student-app .public-rank-row{padding:11px 12px!important;border-radius:16px!important}
}

/* =========================================================
   v91 — Live Quiz: restore the last agreed UX on the current 10.09 code
   ========================================================= */
body.student-app .public-hero-quiz{position:relative}
body.student-app .public-quiz-state{
  position:absolute;right:18px;top:16px;z-index:3;
  padding:6px 10px;border-radius:999px;
  font-size:11px;font-weight:950;letter-spacing:.02em;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.82);
  color:#6f5b25;box-shadow:0 5px 14px rgba(85,60,8,.08);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
body.student-app .public-quiz-state.is-live{color:#166b46;background:rgba(231,255,243,.78);border-color:rgba(174,233,202,.9)}
body.student-app .public-quiz-state.is-finished{color:#59697a;background:rgba(244,248,251,.8);border-color:rgba(220,230,239,.9)}

body.student-app .public-question-card{position:relative}
body.student-app .public-aggregate-capsule{
  width:100%;margin:2px 0 16px;padding:11px 14px;border-radius:16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid rgba(202,222,236,.86);
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(233,243,250,.68));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 5px 14px rgba(17,61,98,.05);
  color:#173352
}
body.student-app .public-aggregate-capsule>b{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:950;min-width:0}
body.student-app .public-aggregate-capsule>b i{width:1px;height:18px;background:rgba(120,145,166,.35);display:inline-block}
body.student-app .public-aggregate-capsule>small{color:#6b8197;font-size:11px;font-weight:800;white-space:nowrap}
body.student-app .public-aggregate-capsule.is-waiting>b{color:#71859a;font-weight:850}
body.student-app .public-aggregate-capsule.is-ready{border-color:rgba(148,205,231,.9);background:linear-gradient(145deg,rgba(246,252,255,.92),rgba(225,242,250,.78))}

body.student-app .public-choice{position:relative;padding-right:96px!important;min-width:0}
body.student-app .public-choice>b{min-width:0;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
body.student-app .public-choice-letter{flex:0 0 34px}
body.student-app .public-choice-feedback{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  min-width:64px;height:30px;padding:0 9px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  font-size:11px;font-weight:950;white-space:nowrap;
  border:1px solid transparent;box-shadow:0 4px 10px rgba(21,56,85,.06)
}
body.student-app .public-choice-feedback.is-correct{color:#147348;background:#eafaf1;border-color:#9fdabb}
body.student-app .public-choice-feedback.is-wrong{color:#a93939;background:#fff0f0;border-color:#efb1b1}
body.student-app .public-choice-feedback-symbol{display:none;font-size:15px;line-height:1}

body.student-app .public-live-status{
  justify-self:end;padding:5px 9px;border-radius:999px;
  background:rgba(228,249,239,.92);border:1px solid rgba(159,220,190,.9);
  color:#176b49;font-size:11px;font-weight:950
}
body.student-app .public-combo-mini{
  position:absolute;right:10px;top:48px;z-index:30;
  padding:7px 11px;border-radius:999px;
  color:#7b4d00;background:linear-gradient(145deg,rgba(255,249,218,.97),rgba(255,221,116,.94));
  border:1px solid rgba(243,194,67,.92);
  box-shadow:0 10px 22px rgba(152,102,8,.18),inset 0 1px 0 rgba(255,255,255,.85);
  font-size:13px;font-weight:900;pointer-events:none;
  animation:publicComboMiniIn .18s ease-out
}
body.student-app .public-combo-mini b{font-size:15px}
body.student-app .public-combo-mini.is-hiding{opacity:0;transform:translateY(-5px);transition:opacity .28s ease,transform .28s ease}
@keyframes publicComboMiniIn{from{opacity:0;transform:translateY(-5px) scale(.95)}to{opacity:1;transform:none}}

body.student-app .public-finish-card-v5{position:relative;text-align:center;overflow:hidden}
body.student-app .public-final-status{
  position:absolute;right:16px;top:16px;padding:6px 10px;border-radius:999px;
  color:#5c6f82;background:rgba(240,246,250,.86);border:1px solid rgba(211,226,237,.92);
  font-size:11px;font-weight:950
}
body.student-app .public-final-rank{
  margin:18px auto 12px;max-width:280px;padding:16px;border-radius:20px;
  background:linear-gradient(145deg,rgba(240,250,255,.96),rgba(221,241,251,.84));
  border:1px solid rgba(157,211,239,.88);box-shadow:0 8px 20px rgba(43,121,173,.08)
}
body.student-app .public-final-rank small{display:block;color:#698199;font-weight:850;margin-bottom:4px}
body.student-app .public-final-rank b{display:block;color:#0c7fbc;font-size:30px;font-weight:1000}
body.student-app .public-final-rank.is-empty b{font-size:20px;color:#718396}
body.student-app .public-final-prize{
  margin:12px auto;max-width:320px;padding:13px 16px;border-radius:18px;
  background:linear-gradient(145deg,rgba(255,250,229,.96),rgba(255,235,173,.88));
  border:1px solid rgba(242,206,103,.92);box-shadow:0 8px 20px rgba(155,106,16,.09)
}
body.student-app .public-final-prize small{display:block;color:#8c6b1d;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}
body.student-app .public-final-prize b{color:#7a5300;font-size:17px}
body.student-app .public-final-participants{margin:10px 0 18px;color:#647d95;font-size:12px;font-weight:850}
body.student-app .public-quiz-confetti{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:hidden}
body.student-app .public-quiz-confetti i{position:absolute;left:50%;top:18%;width:7px;height:12px;border-radius:2px;background:hsl(calc(var(--i)*41deg) 78% 58%);animation:publicQuizConfettiFall 2.8s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i)*.035s)}
body.student-app .public-quiz-confetti i:nth-child(3n){width:9px;height:9px;border-radius:50%}
@keyframes publicQuizConfettiFall{0%{opacity:0;transform:translate(calc((var(--i) - 11)*3px),-18px) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translate(calc((var(--i) - 11)*22px),420px) rotate(620deg)}}

@media(max-width:430px){
  body.student-app .public-choice{padding-right:50px!important}
  body.student-app .public-choice-feedback{right:9px;min-width:30px;width:30px;height:30px;padding:0}
  body.student-app .public-choice-feedback-word{display:none}
  body.student-app .public-choice-feedback-symbol{display:inline}
  body.student-app .public-aggregate-capsule{padding:10px 12px;gap:8px}
  body.student-app .public-aggregate-capsule>b{font-size:13px;gap:8px}
  body.student-app .public-aggregate-capsule>small{font-size:10px}
  body.student-app .public-combo-mini{right:6px;top:44px}
}


/* =========================================================
   v92 — Live Quiz dashboard card layout fix
   Fixes decorative/absolute children being forced into normal flow by the
   v89 glass child rule. This keeps the existing glass/gold design and quiz
   logic, while making the card content-height/compact again.
   ========================================================= */
body.student-app .public-hero-quiz.card{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  padding:22px!important;
}
body.student-app .public-hero-quiz.card > .public-hero-glow{
  position:absolute!important;
  z-index:0!important;
  pointer-events:none!important;
}
body.student-app .public-hero-quiz.card > .public-quiz-state{
  position:absolute!important;
  right:18px!important;
  top:16px!important;
  width:auto!important;
  max-width:44%!important;
  z-index:3!important;
  white-space:nowrap!important;
}
body.student-app .public-hero-quiz.card > .public-quiz-eyebrow,
body.student-app .public-hero-quiz.card > h2,
body.student-app .public-hero-quiz.card > p,
body.student-app .public-hero-quiz.card > .public-quiz-meta,
body.student-app .public-hero-quiz.card > .public-prize,
body.student-app .public-hero-quiz.card > .public-quiz-cta{
  position:relative!important;
  z-index:2!important;
}
body.student-app .public-hero-quiz.card > .public-quiz-eyebrow{
  padding-right:112px!important;
  min-height:24px!important;
  display:flex!important;
  align-items:center!important;
}
body.student-app .public-hero-quiz.card h2{
  margin:6px 0 8px!important;
  line-height:1.16!important;
}
body.student-app .public-hero-quiz.card p{
  margin:0 0 14px!important;
}
body.student-app .public-hero-quiz.card .public-quiz-meta{
  margin:0 0 10px!important;
  gap:8px!important;
}
body.student-app .public-hero-quiz.card .public-prize{
  margin:8px 0 12px!important;
}
body.student-app .public-hero-quiz.card .public-quiz-cta{
  min-width:0!important;
  width:auto!important;
  min-height:42px!important;
  padding:10px 18px!important;
}
@media(max-width:480px){
  body.student-app .public-hero-quiz.card{padding:18px!important}
  body.student-app .public-hero-quiz.card > .public-quiz-state{
    right:14px!important;
    top:14px!important;
    max-width:48%!important;
    padding:5px 9px!important;
    font-size:10px!important;
  }
  body.student-app .public-hero-quiz.card > .public-quiz-eyebrow{
    padding-right:100px!important;
    min-height:22px!important;
  }
  body.student-app .public-hero-quiz.card h2{font-size:22px!important}
  body.student-app .public-hero-quiz.card .public-quiz-meta span{
    padding:7px 9px!important;
    font-size:12px!important;
  }
}

/* =========================================================
   v93 — restore agreed Live Quiz runtime/UI parameters on v92
   ========================================================= */
body.student-app .public-live-top{
  grid-template-columns:minmax(0,1fr) auto minmax(64px,1fr)!important;
}
body.student-app .public-live-top .public-live-status{
  justify-self:center!important;
}
body.student-app .public-live-top #publicQuestionTimer{
  justify-self:end!important;
  text-align:right!important;
  min-width:64px!important;
  font-variant-numeric:tabular-nums!important;
}
body.student-app .public-quiz-preparing{
  min-height:220px;
}
body.student-app .public-quiz-preparing-card{
  min-height:220px;
  border-radius:26px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(231,242,249,.46))!important;
  border:1px solid rgba(234,246,255,.86)!important;
  box-shadow:0 16px 38px rgba(7,38,66,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;
  backdrop-filter:blur(20px) saturate(130%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(130%)!important;
}
body.student-app .public-question-progress i{
  transition:width .22s ease!important;
}
body.student-app .public-quiz-lobby .public-prize,
body.student-app .public-final-prize b{
  white-space:normal;
}
@media(max-width:430px){
  body.student-app .public-live-top{
    grid-template-columns:minmax(0,1fr) auto minmax(58px,auto)!important;
    gap:6px!important;
  }
  body.student-app .public-live-top #publicQuestionTimer{
    min-width:58px!important;
    font-size:13px!important;
  }
  body.student-app .public-live-top .public-live-status{
    padding:4px 7px!important;
    font-size:10px!important;
  }
}

/* =========================================================
   v94 — Live Quiz lobby cleanup + compact scheduled countdown
   ========================================================= */
body.student-app .public-quiz-state.is-scheduled{
  font-variant-numeric:tabular-nums!important;
  letter-spacing:.01em!important;
  min-width:54px!important;
  text-align:center!important;
}
body.student-app .public-quiz-lobby > .public-quiz-eyebrow{
  margin:0 auto 8px!important;
  color:#9a6700!important;
}
body.student-app .public-quiz-lobby > h1{
  margin:8px 0 10px!important;
}
body.student-app .public-quiz-lobby > p{
  margin:0 auto 16px!important;
}
body.student-app .public-quiz-lobby .public-live-presence{
  margin:4px auto 2px!important;
}
body.student-app .public-quiz-lobby .public-big-countdown{
  margin:20px 0 2px!important;
}

/* =========================================================
   v95 — Live Quiz subpage top-gap fix
   The generic fixed-title layout reserves a title rail on student subpages.
   Live Quiz screens do not render a .page-head, so reserve only the fixed nav.
   Applies to lobby, live questions, preparing state and final results only.
   ========================================================= */
@media(max-width:900px){
  html body.student-app.public-quiz-screen-active:not(.student-name-visible) .content{
    margin-top:var(--student-sticky-nav-h)!important;
    position:relative!important;
  }

  html body.student-app.public-quiz-screen-active:not(.student-name-visible)::after{
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:auto!important;
    width:100vw!important;
    height:100dvh!important;
    clip-path:inset(
      0 0
      calc(100% - var(--student-sticky-nav-h))
      0
    )!important;
    -webkit-clip-path:inset(
      0 0
      calc(100% - var(--student-sticky-nav-h))
      0
    )!important;
  }

  html body.student-app.public-quiz-screen-active:not(.student-name-visible) .public-quiz-shell{
    margin-top:0!important;
    padding-top:0!important;
  }

  html body.student-app.public-quiz-screen-active:not(.student-name-visible) .public-quiz-shell > *:first-child{
    margin-top:0!important;
  }
}
@supports not (height:100dvh){
  @media(max-width:900px){
    html body.student-app.public-quiz-screen-active:not(.student-name-visible)::after{height:100vh!important}
  }
}

/* =========================================================
   v99 — Live Quiz compact glass summary bar
   - Removes the separate "Boshlandi" label.
   - Combines question number, aggregate result and timer into one glass capsule.
   - Keeps the existing progress bar directly underneath.
   - No quiz timing / answer / server logic changes.
   ========================================================= */
body.student-app .public-live-summary{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:52px!important;
  margin:0 0 8px!important;
  padding:8px 10px 8px 12px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(229,241,249,.60))!important;
  border:1px solid rgba(227,243,253,.92)!important;
  box-shadow:0 10px 24px rgba(7,42,72,.12),inset 0 1px 0 rgba(255,255,255,.92)!important;
  backdrop-filter:blur(20px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(135%)!important;
  color:#102342!important;
}
body.student-app .public-live-question{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  font-size:13px!important;
  font-weight:950!important;
  color:#284867!important;
  font-variant-numeric:tabular-nums!important;
}
body.student-app .public-live-aggregate{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:5px 10px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.40)!important;
  border:1px solid rgba(204,229,244,.62)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72)!important;
  overflow:hidden!important;
}
body.student-app .public-live-aggregate>b{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin:0!important;
  color:#526f8d!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.student-app .public-live-aggregate>b i{
  width:1px!important;
  height:15px!important;
  flex:0 0 1px!important;
  background:rgba(102,132,159,.30)!important;
}
body.student-app .public-live-aggregate>small{
  flex:0 0 auto!important;
  color:#6a829a!important;
  font-size:10px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.student-app .public-live-aggregate.is-ready{
  background:linear-gradient(145deg,rgba(246,252,255,.88),rgba(224,242,250,.70))!important;
  border-color:rgba(148,205,231,.82)!important;
}
body.student-app .public-live-aggregate.is-ready>b{
  color:#173c5e!important;
}
body.student-app .public-live-timer{
  min-width:48px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  text-align:right!important;
  white-space:nowrap!important;
  color:#102342!important;
  font-size:14px!important;
  font-weight:1000!important;
  font-variant-numeric:tabular-nums!important;
}
body.student-app .public-live-timer.is-urgent{
  color:#d63d4a!important;
  animation:publicTimerPulse .48s ease-in-out infinite alternate!important;
}
body.student-app .public-live-summary + .public-question-progress{
  margin-top:0!important;
  margin-bottom:12px!important;
}
body.student-app .public-question-card > h1{
  margin-bottom:22px!important;
}

@media(max-width:520px){
  body.student-app .public-live-summary{
    grid-template-columns:auto minmax(0,1fr) auto!important;
    gap:7px!important;
    min-height:48px!important;
    padding:7px 8px 7px 10px!important;
    border-radius:16px!important;
  }
  body.student-app .public-live-question{
    font-size:11px!important;
  }
  body.student-app .public-live-aggregate{
    gap:5px!important;
    padding:5px 7px!important;
  }
  body.student-app .public-live-aggregate>b{
    font-size:10px!important;
    gap:5px!important;
  }
  body.student-app .public-live-aggregate>small{
    font-size:9px!important;
  }
  body.student-app .public-live-timer{
    min-width:42px!important;
    font-size:12px!important;
  }
}
@media(max-width:390px){
  body.student-app .public-live-aggregate>small{display:none!important}
  body.student-app .public-live-question{font-size:10px!important}
  body.student-app .public-live-aggregate>b{font-size:10px!important}
  body.student-app .public-live-timer{min-width:38px!important;font-size:11px!important}
}


/* =========================================================
   v100 — Live Quiz question card: milky glass only
   Scope: public Live Quiz (.public-question-card) only.
   Practice / Mashq qilish variantli test is untouched.
   ========================================================= */
body.student-app.public-quiz-screen-active .public-question-card{
  background:
    linear-gradient(145deg,rgba(255,255,255,.82),rgba(235,245,250,.68))!important;
  border:1px solid rgba(232,246,255,.92)!important;
  box-shadow:
    0 18px 38px rgba(5,35,62,.16),
    0 3px 12px rgba(77,160,215,.08),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(159,208,239,.14)!important;
  backdrop-filter:blur(22px) saturate(135%) brightness(1.04)!important;
  -webkit-backdrop-filter:blur(22px) saturate(135%) brightness(1.04)!important;
}
body.student-app.public-quiz-screen-active .public-question-card::before{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:
    radial-gradient(125% 72% at 12% -8%,rgba(255,255,255,.72),transparent 47%),
    linear-gradient(180deg,rgba(255,255,255,.08),transparent 34%,rgba(71,157,214,.04))!important;
}
body.student-app.public-quiz-screen-active .public-question-card > *{
  position:relative!important;
  z-index:1!important;
}
body.student-app.public-quiz-screen-active .public-question-card > h1{
  color:#102342!important;
  text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
}

/* Keep answers more opaque than the parent glass for maximum readability. */
body.student-app.public-quiz-screen-active .public-question-card .public-choice{
  background:rgba(255,255,255,.90)!important;
  border-color:rgba(206,223,237,.96)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 5px 14px rgba(21,64,101,.04)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
body.student-app.public-quiz-screen-active .public-question-card .public-choice.correct{
  background:rgba(235,255,244,.92)!important;
  border-color:#64c892!important;
  box-shadow:0 0 0 2px rgba(56,180,110,.10),inset 0 1px 0 rgba(255,255,255,.86)!important;
}
body.student-app.public-quiz-screen-active .public-question-card .public-choice.wrong{
  background:rgba(255,240,240,.92)!important;
  border-color:#ef8e8e!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86)!important;
}


/* =========================================================
   v101 — Live Quiz answer focus
   Scope: public Live Quiz only. Practice quiz is untouched.
   ========================================================= */
body.student-app.public-quiz-screen-active .public-question-card .public-choice.is-dimmed{
  opacity:.36!important;
  filter:saturate(.55) grayscale(.10)!important;
  transform:scale(.992)!important;
  box-shadow:none!important;
  transition:opacity .20s ease,filter .20s ease,transform .20s ease!important;
}
body.student-app.public-quiz-screen-active .public-question-card .public-choice.is-dimmed:hover{
  transform:scale(.992)!important;
}

/* =========================================================
   v102 — Live Quiz lobby + final result premium glass refresh
   Scope: public Live Quiz pre-start lobby and final result screens only.
   No quiz logic changes.
   ========================================================= */
body.student-app .public-panel-glow{
  position:absolute!important;
  pointer-events:none!important;
  z-index:0!important;
  inset:auto!important;
  border-radius:50%!important;
  filter:blur(6px)!important;
}
body.student-app .public-panel-glow--gold{
  width:260px!important;
  height:260px!important;
  top:-118px!important;
  right:-56px!important;
  background:radial-gradient(circle,rgba(255,216,92,.44),rgba(255,216,92,.14) 42%,rgba(255,255,255,0) 72%)!important;
}
body.student-app .public-panel-glow--blue{
  width:240px!important;
  height:240px!important;
  top:-110px!important;
  right:-42px!important;
  background:radial-gradient(circle,rgba(117,183,255,.28),rgba(117,183,255,.10) 40%,rgba(255,255,255,0) 72%)!important;
}

body.student-app .public-quiz-lobby.public-quiz-lobby-v2,
body.student-app .public-finish-card-v6{
  position:relative!important;
  display:block!important;
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  overflow:hidden!important;
  border-radius:28px!important;
  border:1px solid rgba(233,244,252,.94)!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.78),rgba(234,244,249,.62))!important;
  box-shadow:
    0 18px 42px rgba(8,34,61,.15),
    0 4px 16px rgba(85,156,208,.08),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(161,211,239,.12)!important;
  backdrop-filter:blur(24px) saturate(138%) brightness(1.03)!important;
  -webkit-backdrop-filter:blur(24px) saturate(138%) brightness(1.03)!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2::before,
body.student-app .public-finish-card-v6::before{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:
    radial-gradient(120% 68% at 10% -6%,rgba(255,255,255,.74),transparent 45%),
    linear-gradient(180deg,rgba(255,255,255,.10),transparent 38%,rgba(78,158,213,.04))!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > .public-panel-glow,
body.student-app .public-finish-card-v6 > .public-panel-glow{
  position:absolute!important;
  z-index:0!important;
  pointer-events:none!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > :not(.public-panel-glow),
body.student-app .public-finish-card-v6 > :not(.public-panel-glow):not(.public-final-status){
  position:relative!important;
  z-index:1!important;
}
body.student-app .public-finish-card-v6 > .public-final-status{
  position:absolute!important;
  z-index:3!important;
}

body.student-app .public-quiz-lobby.public-quiz-lobby-v2{
  padding:30px 24px 28px!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-ready-ring{
  width:84px!important;
  height:84px!important;
  margin:0 auto 16px!important;
  background:linear-gradient(145deg,rgba(233,255,242,.94),rgba(218,247,231,.86))!important;
  border:1px solid rgba(159,224,188,.98)!important;
  box-shadow:0 14px 34px rgba(37,167,105,.14),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-ready-ring span{
  font-size:42px!important;
  color:#2aa565!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > .public-quiz-eyebrow{
  color:#a06b00!important;
  letter-spacing:.10em!important;
  font-size:12px!important;
  margin:0 auto 10px!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > h1{
  margin:0 0 10px!important;
  color:#0f2240!important;
  font-size:clamp(34px,5vw,46px)!important;
  line-height:1.04!important;
  letter-spacing:-.03em!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > p{
  margin:0 auto 14px!important;
  max-width:520px!important;
  color:#617890!important;
  line-height:1.55!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence{
  margin:2px auto 14px!important;
  background:rgba(244,251,255,.64)!important;
  border:1px solid rgba(194,224,241,.88)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94)!important;
  color:#355670!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence b{
  color:#187fb0!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-width:170px!important;
  margin:6px auto 10px!important;
  padding:12px 18px 14px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(248,252,255,.88),rgba(233,243,249,.68))!important;
  border:1px solid rgba(211,233,246,.94)!important;
  box-shadow:0 10px 24px rgba(11,54,88,.08),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill small{
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  color:#6f8297!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-big-countdown{
  margin:0!important;
  line-height:1!important;
  font-size:54px!important;
  font-weight:1000!important;
  color:#071b40!important;
  font-variant-numeric:tabular-nums!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-quiz-lobby-prize,
body.student-app .public-finish-card-v6 .public-final-prize{
  max-width:320px!important;
  margin:14px auto 0!important;
  background:linear-gradient(145deg,rgba(255,250,229,.92),rgba(255,237,182,.84))!important;
  border:1px solid rgba(241,205,103,.96)!important;
  box-shadow:0 10px 24px rgba(162,110,18,.08),inset 0 1px 0 rgba(255,255,255,.95)!important;
}

body.student-app .public-finish-card-v6{
  padding:28px 24px 24px!important;
}
body.student-app .public-finish-card-v6 .public-final-status{
  top:14px!important;
  right:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:calc(100% - 28px)!important;
  white-space:nowrap!important;
  padding:7px 11px!important;
  background:rgba(243,248,251,.78)!important;
  border:1px solid rgba(210,226,237,.94)!important;
  color:#5c6f82!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94)!important;
}
body.student-app .public-finish-card-v6 .public-finish-trophy{
  font-size:64px!important;
  line-height:1!important;
  margin-top:4px!important;
  margin-bottom:10px!important;
}
body.student-app .public-finish-card-v6 > h1{
  margin:0 0 10px!important;
  color:#0f2240!important;
  font-size:clamp(34px,5vw,46px)!important;
  line-height:1.05!important;
  letter-spacing:-.03em!important;
}
body.student-app .public-finish-card-v6 .public-final-subtitle{
  margin:0 auto 12px!important;
  max-width:520px!important;
  color:#61788f!important;
  font-weight:700!important;
}
body.student-app .public-finish-card-v6 .public-final-rank{
  margin:18px auto 10px!important;
  max-width:290px!important;
  padding:18px 18px 16px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(244,251,255,.92),rgba(225,242,250,.76))!important;
  border:1px solid rgba(160,213,239,.92)!important;
  box-shadow:0 10px 26px rgba(44,121,173,.08),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
body.student-app .public-finish-card-v6 .public-final-rank small{
  color:#6a8298!important;
  text-transform:none!important;
}
body.student-app .public-finish-card-v6 .public-final-rank b{
  color:#117db7!important;
  font-size:32px!important;
}
body.student-app .public-finish-card-v6 .public-final-rank.is-empty b{
  font-size:21px!important;
  color:#667b92!important;
}
body.student-app .public-finish-card-v6 .public-final-participants{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:12px auto 18px!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  background:rgba(244,250,255,.62)!important;
  border:1px solid rgba(193,222,241,.86)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92)!important;
  color:#537089!important;
  font-size:13px!important;
  font-weight:900!important;
}
body.student-app .public-finish-card-v6 h2{
  margin:6px 0 12px!important;
  color:#132848!important;
}
body.student-app .public-finish-card-v6 .public-rank-list{
  gap:10px!important;
  margin-bottom:16px!important;
}
body.student-app .public-finish-card-v6 .public-rank-row{
  background:rgba(248,252,255,.70)!important;
  border:1px solid rgba(196,223,240,.86)!important;
  box-shadow:0 6px 16px rgba(16,60,95,.05),inset 0 1px 0 rgba(255,255,255,.94)!important;
}
body.student-app .public-finish-card-v6 .public-rank-row.is-me{
  background:linear-gradient(145deg,rgba(241,250,255,.86),rgba(228,244,252,.80))!important;
  box-shadow:0 6px 18px rgba(29,102,156,.07),inset 0 0 0 1px rgba(154,211,241,.92)!important;
}
body.student-app .public-finish-card-v6 #publicQuizDone{
  min-height:52px!important;
  box-shadow:0 12px 24px rgba(37,98,227,.20)!important;
}

@media(max-width:520px){
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2,
  body.student-app .public-finish-card-v6{
    border-radius:24px!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2{
    padding:24px 18px 22px!important;
  }
  body.student-app .public-finish-card-v6{
    padding:24px 18px 20px!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-ready-ring{
    width:76px!important;
    height:76px!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > h1,
  body.student-app .public-finish-card-v6 > h1{
    font-size:clamp(28px,8.6vw,38px)!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill{
    min-width:154px!important;
    padding:11px 16px 12px!important;
    border-radius:20px!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-big-countdown{
    font-size:46px!important;
  }
  body.student-app .public-finish-card-v6 .public-final-rank{
    max-width:100%!important;
  }
  body.student-app .public-finish-card-v6 .public-finish-trophy{
    font-size:58px!important;
  }
}

/* =========================================================
   v105 — Live Quiz safe exit / temporary pause chooser
   Scope: live quiz exit dialog only.
   ========================================================= */
body.student-app .public-quiz-exit-modal-bg{
  z-index:10040!important;
  background:rgba(3,12,24,.54)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
body.student-app .public-quiz-exit-modal{
  width:min(460px,calc(100vw - 28px))!important;
  padding:22px!important;
  border-radius:26px!important;
  border:1px solid rgba(231,243,251,.94)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(235,245,250,.90))!important;
  box-shadow:0 24px 60px rgba(2,22,43,.28),inset 0 1px 0 rgba(255,255,255,.98)!important;
  text-align:center!important;
}
body.student-app .public-quiz-exit-icon{
  width:62px;height:62px;margin:0 auto 12px;border-radius:20px;
  display:grid;place-items:center;font-size:28px;
  background:linear-gradient(145deg,rgba(235,247,255,.98),rgba(218,239,250,.90));
  border:1px solid rgba(181,221,242,.94);
  box-shadow:0 10px 24px rgba(27,101,148,.10),inset 0 1px 0 rgba(255,255,255,.98);
}
body.student-app .public-quiz-exit-modal h2{margin:0 0 7px!important;color:#10213f!important;font-size:25px!important}
body.student-app .public-quiz-exit-modal>p{margin:0 0 16px!important;color:#62788f!important;font-weight:700!important;line-height:1.45!important}
body.student-app .public-quiz-exit-option{
  width:100%;display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center;
  text-align:left;border-radius:18px;padding:14px;margin:0 0 10px;cursor:pointer;
  border:1px solid rgba(197,220,235,.94);background:rgba(247,251,254,.86);color:#13233f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96);transition:transform .14s ease,border-color .14s ease,background .14s ease;
}
body.student-app .public-quiz-exit-option:hover:not(:disabled){transform:translateY(-1px);border-color:#8dc9e9}
body.student-app .public-quiz-exit-option:disabled{opacity:.62;cursor:wait}
body.student-app .public-quiz-exit-option-icon{
  width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:21px;font-weight:1000;
  background:rgba(234,246,253,.94);border:1px solid rgba(193,222,239,.92)
}
body.student-app .public-quiz-exit-option b{display:block;font-size:16px;margin-bottom:4px}
body.student-app .public-quiz-exit-option small{display:block;color:#61788f;font-size:12px;line-height:1.45;font-weight:700}
body.student-app .public-quiz-exit-option.is-pause{border-color:rgba(151,204,232,.94);background:linear-gradient(145deg,rgba(244,251,255,.94),rgba(231,244,251,.86))}
body.student-app .public-quiz-exit-option.is-quit{border-color:rgba(239,185,185,.94);background:linear-gradient(145deg,rgba(255,249,249,.95),rgba(255,238,238,.87))}
body.student-app .public-quiz-exit-option.is-quit .public-quiz-exit-option-icon{background:#fff0f0;border-color:#f1c3c3;color:#b83232}
body.student-app .public-quiz-exit-cancel{margin-top:4px!important;min-height:46px!important}
body.student-app .public-quiz-exit-error{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff0f0;color:#a52525;font-size:12px;font-weight:800}
@media(max-width:520px){
  body.student-app .public-quiz-exit-modal{padding:18px!important;border-radius:22px!important}
  body.student-app .public-quiz-exit-option{grid-template-columns:42px minmax(0,1fr);padding:12px;gap:10px}
  body.student-app .public-quiz-exit-option-icon{width:42px;height:42px;border-radius:13px}
}

/* =========================================================
   v106 — targeted Live Quiz cleanup
   1) restore v104 pre-start timer/ready vertical layout
   2) simplify exit chooser without touching exit logic
   ========================================================= */
body.student-app .public-quiz-lobby.public-quiz-lobby-v2{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > .public-ready-ring{order:1!important}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > .public-quiz-eyebrow{order:2!important}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > h1{order:3!important;margin:0 0 12px!important;text-align:center!important}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 > p{order:4!important;text-align:center!important}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill{
  order:5!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(190px,100%)!important;
  min-width:190px!important;
  margin:10px auto 0!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence{
  order:6!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:10px auto 0!important;
}
body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-quiz-lobby-prize{order:7!important}

body.student-app .public-quiz-exit-modal-compact{
  padding:22px!important;
}
body.student-app .public-quiz-exit-modal-compact h2{
  margin:0 0 18px!important;
}
body.student-app .public-quiz-exit-modal-compact .public-quiz-exit-option{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:58px!important;
  grid-template-columns:none!important;
  gap:0!important;
  padding:14px 18px!important;
  text-align:center!important;
}
body.student-app .public-quiz-exit-modal-compact .public-quiz-exit-option b{
  margin:0!important;
  font-size:16px!important;
  line-height:1.2!important;
}
body.student-app .public-quiz-exit-modal-compact .public-quiz-exit-cancel{
  margin-top:4px!important;
}

@media(max-width:520px){
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill{
    width:min(170px,100%)!important;
    min-width:170px!important;
    margin:10px auto 0!important;
  }
  body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence{
    margin:9px auto 0!important;
  }
  body.student-app .public-quiz-exit-modal-compact{
    padding:18px!important;
  }
}

/* =========================================================
   v111 — Results leaderboard podium + public profile avatars
   Scope: Natijalarim page only. Ranking/XP calculations unchanged.
   ========================================================= */
body.student-app .public-results-head{margin-bottom:14px!important}
body.student-app .public-ranking-card.public-ranking-card-v2{
  padding:16px!important;
  gap:14px!important;
}
body.student-app .public-ranking-body-v2{display:grid;gap:14px;min-width:0}

body.student-app .public-podium{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);
  align-items:end;
  gap:8px;
  min-height:250px;
  padding:28px 4px 0;
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 12%,rgba(255,221,122,.18),transparent 32%),
    linear-gradient(180deg,rgba(255,255,255,.18),rgba(220,237,247,.10));
  border:1px solid rgba(220,238,249,.60);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62);
  overflow:hidden;
}
body.student-app .public-podium-place{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  text-align:center;
  position:relative;
}
body.student-app .public-podium-place strong{
  width:100%;
  margin-top:8px;
  padding:0 3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#102342;
  font-size:13px;
  font-weight:950;
}
body.student-app .public-podium-place small{
  margin-top:3px;
  color:#65809c;
  font-size:11px;
  font-weight:900;
}
body.student-app .public-podium-avatar-wrap{position:relative;display:grid;place-items:center}
body.student-app .public-rank-avatar{
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(221,239,249,.90));
  border:1px solid rgba(193,224,242,.96);
  color:#367396;
  font-weight:1000;
  box-shadow:0 7px 18px rgba(24,76,115,.10),inset 0 1px 0 rgba(255,255,255,.96);
}
body.student-app .public-rank-avatar img{width:100%;height:100%;display:block;object-fit:cover}
body.student-app .public-rank-avatar-podium{width:58px;height:58px;border-radius:50%;font-size:20px}
body.student-app .public-podium-place.is-1 .public-rank-avatar-podium{
  width:72px;height:72px;
  border:2px solid rgba(248,199,66,.98);
  box-shadow:0 10px 26px rgba(190,132,16,.20),0 0 0 4px rgba(255,239,183,.36);
}
body.student-app .public-podium-place.is-2 .public-rank-avatar-podium{border-color:rgba(172,199,219,.98)}
body.student-app .public-podium-place.is-3 .public-rank-avatar-podium{border-color:rgba(213,151,104,.92)}
body.student-app .public-podium-medal{
  position:absolute;
  right:-4px;
  bottom:-5px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.95);
  box-shadow:0 5px 12px rgba(21,55,83,.14);
  font-size:15px;
}
body.student-app .public-podium-place.is-1 .public-podium-medal{width:29px;height:29px;font-size:18px;right:-5px}
body.student-app .public-podium-step{
  width:100%;
  margin-top:10px;
  display:grid;
  place-items:center;
  border-radius:17px 17px 0 0;
  border:1px solid rgba(255,255,255,.74);
  border-bottom:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 -5px 18px rgba(36,79,112,.06);
}
body.student-app .public-podium-step b{
  color:#fff;
  font-size:34px;
  line-height:1;
  text-shadow:0 2px 8px rgba(29,55,78,.14);
}
body.student-app .public-podium-place.is-1 .public-podium-step{
  height:104px;
  background:linear-gradient(180deg,rgba(247,199,74,.80),rgba(220,157,31,.70));
}
body.student-app .public-podium-place.is-2 .public-podium-step{
  height:76px;
  background:linear-gradient(180deg,rgba(164,196,219,.80),rgba(115,158,190,.70));
}
body.student-app .public-podium-place.is-3 .public-podium-step{
  height:62px;
  background:linear-gradient(180deg,rgba(215,158,111,.78),rgba(178,117,74,.70));
}
body.student-app .public-podium-place.is-me strong{color:#087fc1}
body.student-app .public-podium-place.is-me .public-rank-avatar-podium{box-shadow:0 8px 22px rgba(35,141,204,.18),0 0 0 4px rgba(150,218,251,.28)}
body.student-app .public-podium-place.is-1.is-me .public-rank-avatar-podium{box-shadow:0 10px 26px rgba(190,132,16,.20),0 0 0 4px rgba(255,239,183,.38),0 0 0 7px rgba(137,214,249,.18)}
body.student-app .public-podium-place.is-empty{opacity:.34}

body.student-app .public-rank-list-with-avatars{gap:8px!important}
body.student-app .public-rank-row.public-rank-row-avatar{
  grid-template-columns:34px 40px minmax(0,1fr) auto!important;
  gap:9px!important;
  min-height:58px!important;
  padding:8px 11px!important;
}
body.student-app .public-rank-avatar-list{width:40px;height:40px;border-radius:50%;font-size:14px}
body.student-app .public-rank-row-avatar .public-rank-pos{
  text-align:center;
  font-size:12px;
  font-weight:950;
  color:#607996!important;
}
body.student-app .public-rank-row-avatar .public-rank-name{font-size:14px!important;min-width:0}
body.student-app .public-rank-row-avatar .public-rank-xp{white-space:nowrap;font-size:11px!important}
body.student-app .public-ranking-empty{
  padding:18px 12px;
  border-radius:16px;
  text-align:center;
  color:#70879e;
  font-size:12px;
  font-weight:800;
  background:rgba(255,255,255,.35);
  border:1px dashed rgba(195,220,237,.78);
}
body.student-app .public-ranking-card-v2 .public-own-rank-outside{margin-top:0!important}
body.student-app .public-ranking-card-v2 .public-own-rank-separator{margin:2px 0 0!important}

@media(max-width:480px){
  body.student-app .public-ranking-card.public-ranking-card-v2{padding:13px!important}
  body.student-app .public-podium{min-height:224px;gap:5px;padding:24px 2px 0;border-radius:19px}
  body.student-app .public-rank-avatar-podium{width:50px;height:50px;font-size:17px}
  body.student-app .public-podium-place.is-1 .public-rank-avatar-podium{width:62px;height:62px}
  body.student-app .public-podium-place strong{font-size:11px;margin-top:7px}
  body.student-app .public-podium-place small{font-size:9px}
  body.student-app .public-podium-medal{width:22px;height:22px;font-size:13px}
  body.student-app .public-podium-place.is-1 .public-podium-medal{width:25px;height:25px;font-size:15px}
  body.student-app .public-podium-place.is-1 .public-podium-step{height:90px}
  body.student-app .public-podium-place.is-2 .public-podium-step{height:67px}
  body.student-app .public-podium-place.is-3 .public-podium-step{height:55px}
  body.student-app .public-podium-step b{font-size:29px}
  body.student-app .public-rank-row.public-rank-row-avatar{grid-template-columns:28px 36px minmax(0,1fr) auto!important;gap:7px!important;min-height:54px!important;padding:7px 9px!important}
  body.student-app .public-rank-avatar-list{width:36px;height:36px}
  body.student-app .public-rank-row-avatar .public-rank-name{font-size:12px!important}
  body.student-app .public-rank-row-avatar .public-rank-xp{font-size:10px!important}
}

/* v112 — Admin Live Quiz virtual test participants */
.admin-quiz-test-modal{min-width:min(560px,88vw)}
.admin-quiz-test-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.admin-quiz-test-grid label{display:grid;gap:7px;font-weight:800;color:#475569;position:relative}
.admin-quiz-test-grid label small{position:absolute;right:14px;bottom:13px;color:#64748b;font-weight:900}
.admin-quiz-test-current{padding:12px 14px;border-radius:14px;background:#eef7ff;border:1px solid #cfe5f4;color:#365a73;margin-bottom:14px}
.admin-quiz-test-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:640px){.admin-quiz-test-grid{grid-template-columns:1fr}.admin-quiz-test-actions{display:grid;grid-template-columns:1fr}.admin-quiz-test-modal{min-width:0}}

/* =========================================================
   v115 — Topic capsule surface refresh
   VISUAL ONLY: Mavzu cards keep the exact existing geometry/content/behavior.
   Only the capsule surface/background is refreshed with a soft frosted texture.
   ========================================================= */
body.student-app .collection-access-card:not(.collection-showcase-card){
  background:
    linear-gradient(118deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,0) 26%,rgba(255,255,255,.11) 58%,rgba(255,255,255,.34) 100%),
    radial-gradient(ellipse at 78% 26%,rgba(255,255,255,.38) 0%,rgba(255,255,255,0) 36%),
    radial-gradient(ellipse at 24% 82%,rgba(206,233,242,.34) 0%,rgba(206,233,242,0) 42%),
    linear-gradient(145deg,rgba(244,250,252,.98) 0%,rgba(226,239,244,.96) 52%,rgba(240,248,251,.98) 100%)!important;
}

html[data-theme="dark"] body.student-app .collection-access-card:not(.collection-showcase-card){
  background:
    linear-gradient(118deg,rgba(255,255,255,.055) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.035) 60%,rgba(255,255,255,.07) 100%),
    radial-gradient(ellipse at 78% 24%,rgba(92,159,181,.10) 0%,rgba(92,159,181,0) 38%),
    linear-gradient(145deg,rgba(13,34,48,.96) 0%,rgba(8,27,41,.96) 54%,rgba(12,32,46,.97) 100%)!important;
}

/* Preserve the existing coming-soon state tint while keeping the new texture. */
body.student-app .collection-access-card:not(.collection-showcase-card).is-coming-soon{
  background:
    linear-gradient(118deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 26%,rgba(255,255,255,.10) 58%,rgba(255,255,255,.30) 100%),
    radial-gradient(ellipse at 78% 26%,rgba(241,238,255,.42) 0%,rgba(241,238,255,0) 38%),
    linear-gradient(145deg,rgba(248,248,252,.98) 0%,rgba(235,237,247,.96) 52%,rgba(245,246,251,.98) 100%)!important;
}

/* =========================================================
   v116 — Mavzu + Mashq usullari visual pass
   VISUAL ONLY: no DOM, JS, API, routes, click handlers or geometry changes.
   - Mavzu capsules use the approved multicolor EdTech surface.
   - Left accent rail gets a short 2-pass top-to-bottom light sweep,
     then rests before repeating.
   - Mashq usullari capsules/icons receive matching soft color accents.
   - Existing widths/heights/padding/spacing/coordinates are untouched.
   ========================================================= */

/* ---------- Mavzu capsules: approved multicolor surface ---------- */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){
  --topic-accent:#55bfff;
  --topic-a:rgba(228,244,255,.98);
  --topic-b:rgba(190,225,255,.96);
  --topic-c:rgba(224,241,255,.98);
  isolation:isolate;
  overflow:hidden!important;
  border-color:rgba(255,255,255,.82)!important;
  background:
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.62) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.12) 58%,rgba(255,255,255,.32) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
  box-shadow:0 10px 26px rgba(12,56,91,.11),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+1){
  --topic-accent:#38bdf8;
  --topic-a:rgba(236,248,255,.99);
  --topic-b:rgba(195,226,255,.97);
  --topic-c:rgba(218,238,255,.99);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+2){
  --topic-accent:#8b5cf6;
  --topic-a:rgba(248,244,255,.99);
  --topic-b:rgba(224,211,255,.97);
  --topic-c:rgba(238,228,255,.99);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+3){
  --topic-accent:#20d39b;
  --topic-a:rgba(239,255,251,.99);
  --topic-b:rgba(194,244,229,.97);
  --topic-c:rgba(219,250,241,.99);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+4){
  --topic-accent:#f6ad28;
  --topic-a:rgba(255,250,239,.99);
  --topic-b:rgba(255,224,177,.97);
  --topic-c:rgba(255,239,210,.99);
}

/* Keep text/content above decorative rails. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > *{
  position:relative;
  z-index:3;
}

/* Static left rail — decorative only, never changes capsule geometry. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card)::before{
  content:"";
  position:absolute;
  z-index:2;
  left:14px;
  top:16px;
  bottom:16px;
  width:5px;
  border-radius:999px;
  pointer-events:none;
  background:linear-gradient(180deg,
    color-mix(in srgb,var(--topic-accent) 72%,#fff 28%) 0%,
    var(--topic-accent) 48%,
    color-mix(in srgb,var(--topic-accent) 78%,#fff 22%) 100%);
  box-shadow:0 0 8px color-mix(in srgb,var(--topic-accent) 30%,transparent),inset 0 1px 0 rgba(255,255,255,.76);
  opacity:.96;
}

/* Moving light segment: two quick passes, then ~3s rest. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card)::after{
  content:"";
  position:absolute;
  z-index:4;
  left:13px;
  top:11px;
  width:7px;
  height:28px;
  border-radius:999px;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.98) 42%,rgba(255,255,255,.68) 62%,rgba(255,255,255,0));
  filter:blur(.15px);
  box-shadow:
    0 0 8px rgba(255,255,255,.92),
    0 0 14px color-mix(in srgb,var(--topic-accent) 72%,transparent),
    0 0 22px color-mix(in srgb,var(--topic-accent) 34%,transparent);
  animation:topicAccentSweepV116 4.8s cubic-bezier(.24,.68,.28,1) infinite;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+2)::after{animation-delay:.10s}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+3)::after{animation-delay:.20s}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+4)::after{animation-delay:.30s}

@keyframes topicAccentSweepV116{
  0%{transform:translateY(-18px) scaleY(.72);opacity:0}
  3%{opacity:1}
  13%{transform:translateY(82px) scaleY(1);opacity:1}
  17%{transform:translateY(106px) scaleY(.74);opacity:0}
  22%{transform:translateY(-18px) scaleY(.72);opacity:0}
  25%{opacity:1}
  35%{transform:translateY(82px) scaleY(1);opacity:1}
  39%{transform:translateY(106px) scaleY(.74);opacity:0}
  100%{transform:translateY(106px) scaleY(.74);opacity:0}
}

/* Coming-soon cards retain their state/badge while using the same visual family. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon{
  filter:saturate(.82)!important;
}

/* ---------- Mashq usullari: matching multicolor surfaces ---------- */
body.student-app .study-mode-grid > .mode-visual-card{
  --mode-accent:#3aa9ff;
  --mode-a:rgba(245,251,255,.99);
  --mode-b:rgba(213,235,255,.96);
  border-color:rgba(255,255,255,.84)!important;
  background:
    radial-gradient(ellipse at 92% 18%,rgba(255,255,255,.58) 0%,rgba(255,255,255,0) 35%),
    linear-gradient(122deg,rgba(255,255,255,.28),rgba(255,255,255,0) 32%,rgba(255,255,255,.18) 72%),
    linear-gradient(145deg,var(--mode-a) 0%,var(--mode-b) 100%)!important;
  box-shadow:0 10px 26px rgba(12,56,91,.10),inset 0 1px 0 rgba(255,255,255,.90)!important;
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+1){--mode-accent:#2f9cff;--mode-a:rgba(244,251,255,.99);--mode-b:rgba(207,231,255,.96)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+2){--mode-accent:#20c997;--mode-a:rgba(244,255,252,.99);--mode-b:rgba(202,244,232,.96)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+3){--mode-accent:#8b5cf6;--mode-a:rgba(250,247,255,.99);--mode-b:rgba(226,214,255,.96)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+4){--mode-accent:#ff8a3d;--mode-a:rgba(255,250,245,.99);--mode-b:rgba(255,224,201,.96)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+5){--mode-accent:#f05fa8;--mode-a:rgba(255,247,252,.99);--mode-b:rgba(250,215,235,.96)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+6){--mode-accent:#5f75ff;--mode-a:rgba(247,248,255,.99);--mode-b:rgba(215,220,255,.96)}

body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon{
  border:1px solid rgba(255,255,255,.90)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.92),color-mix(in srgb,var(--mode-accent) 15%,#fff 85%))!important;
  box-shadow:0 8px 18px color-mix(in srgb,var(--mode-accent) 14%,transparent),inset 0 1px 0 rgba(255,255,255,.98)!important;
}

/* Dark theme remains readable while preserving the same color identity. */
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){
  border-color:color-mix(in srgb,var(--topic-accent) 22%,rgba(255,255,255,.10))!important;
  background:
    radial-gradient(ellipse at 84% 18%,color-mix(in srgb,var(--topic-accent) 10%,transparent) 0%,transparent 36%),
    linear-gradient(118deg,rgba(255,255,255,.055) 0%,rgba(255,255,255,0) 30%,rgba(255,255,255,.035) 64%,rgba(255,255,255,.07) 100%),
    linear-gradient(145deg,rgba(18,34,49,.97) 0%,color-mix(in srgb,var(--topic-accent) 12%,rgba(8,25,39,.97)) 100%)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card{
  border-color:color-mix(in srgb,var(--mode-accent) 20%,rgba(255,255,255,.10))!important;
  background:
    radial-gradient(ellipse at 90% 18%,color-mix(in srgb,var(--mode-accent) 9%,transparent) 0%,transparent 38%),
    linear-gradient(145deg,rgba(18,34,49,.97) 0%,color-mix(in srgb,var(--mode-accent) 11%,rgba(8,25,39,.97)) 100%)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon{
  background:linear-gradient(145deg,color-mix(in srgb,var(--mode-accent) 23%,rgba(36,31,58,.96)),rgba(25,25,45,.96))!important;
  border-color:color-mix(in srgb,var(--mode-accent) 20%,rgba(255,255,255,.10))!important;
}

/* Respect users who request reduced motion: keep the rail, stop only the sweep. */
@media(prefers-reduced-motion:reduce){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card)::after{animation:none!important;display:none!important}
}


/* =========================================================
   v117 — Mavzu + Mashq usullari visual refinement ONLY
   Scope intentionally limited to topic/method capsule decoration.
   Geometry, spacing, coordinates, DOM, JS and interactions stay untouched.
   ========================================================= */

/* --- Topic cards: Concept D decorative watermark while preserving v116 colors. --- */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){
  --topic-watermark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.42' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 15c9-3 16-1 22 5v31c-6-6-13-8-22-5z'/%3E%3Cpath d='M54 15c-9-3-16-1-22 5v31c6-6 13-8 22-5z'/%3E%3C/g%3E%3C/svg%3E");
  background-image:
    var(--topic-watermark),
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.62) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.12) 58%,rgba(255,255,255,.32) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-size:76px 76px,auto,auto,auto!important;
  background-position:calc(100% - 22px) 50%,center,center,center!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+2){
  --topic-watermark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.40' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 24 32 11l25 13-25 13z'/%3E%3Cpath d='M16 31v12c9 7 23 7 32 0V31'/%3E%3Cpath d='M57 24v17'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+3){
  --topic-watermark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.40' stroke-width='3.5' stroke-linecap='round'%3E%3Crect x='13' y='9' width='38' height='46' rx='7'/%3E%3Cpath d='M22 22h20M22 32h20M22 42h14'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+4){
  --topic-watermark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='m32 8 7.2 14.7 16.2 2.4-11.7 11.4 2.8 16.1L32 45l-14.5 7.6 2.8-16.1L8.6 25.1l16.2-2.4z' fill='none' stroke='%23ffffff' stroke-opacity='.40' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Topic rail: two closely spaced light pulses flow from card 1 to the last card. --- */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){--topic-flow-index:0}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(1){--topic-flow-index:0}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(2){--topic-flow-index:1}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(3){--topic-flow-index:2}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4){--topic-flow-index:3}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(5){--topic-flow-index:4}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(6){--topic-flow-index:5}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(7){--topic-flow-index:6}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(8){--topic-flow-index:7}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(9){--topic-flow-index:8}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(10){--topic-flow-index:9}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(11){--topic-flow-index:10}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(12){--topic-flow-index:11}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(13){--topic-flow-index:12}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(14){--topic-flow-index:13}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(15){--topic-flow-index:14}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(16){--topic-flow-index:15}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(17){--topic-flow-index:16}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(18){--topic-flow-index:17}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(19){--topic-flow-index:18}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(20){--topic-flow-index:19}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card)::after{
  animation-name:topicAccentFlowV117!important;
  animation-duration:6.2s!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  animation-delay:calc(var(--topic-flow-index) * .16s)!important;
}
@keyframes topicAccentFlowV117{
  0%{transform:translateY(-20px) scaleY(.70);opacity:0}
  1.6%{opacity:1}
  6.4%{transform:translateY(104px) scaleY(1);opacity:1}
  8.2%{transform:translateY(112px) scaleY(.72);opacity:0}
  10.1%{transform:translateY(-20px) scaleY(.70);opacity:0}
  11.7%{opacity:1}
  16.5%{transform:translateY(104px) scaleY(1);opacity:1}
  18.3%{transform:translateY(112px) scaleY(.72);opacity:0}
  100%{transform:translateY(112px) scaleY(.72);opacity:0}
}

/* --- Coming-soon: larger, softer and vertically centered on the right side. --- */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  right:20px!important;
  top:50%!important;
  left:auto!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  padding:7px 13px!important;
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:.085em!important;
  font-weight:900!important;
  color:rgba(65,62,137,.58)!important;
  background:rgba(242,240,255,.34)!important;
  border-color:rgba(119,108,219,.22)!important;
  box-shadow:0 4px 12px rgba(71,61,163,.05)!important;
  opacity:.92!important;
  z-index:4!important;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  color:rgba(218,214,255,.62)!important;
  background:rgba(124,110,255,.10)!important;
  border-color:rgba(154,143,255,.20)!important;
}

/* --- Method cards: Concept D large, very faint right-side watermark icons. --- */
body.student-app .study-mode-grid > .mode-visual-card{
  isolation:isolate;
}
body.student-app .study-mode-grid > .mode-visual-card > *{
  position:relative;
  z-index:2;
}
body.student-app .study-mode-grid > .mode-visual-card::after{
  content:""!important;
  display:block!important;
  position:absolute;
  z-index:1;
  right:18px;
  top:50%;
  width:92px;
  height:92px;
  transform:translateY(-50%);
  pointer-events:none;
  opacity:.075;
  background:var(--mode-accent);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+1)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14c9-3 17-1 23 6v31c-6-6-14-8-23-5z'/%3E%3Cpath d='M55 14c-9-3-17-1-23 6v31c6-6 14-8 23-5z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14c9-3 17-1 23 6v31c-6-6-14-8-23-5z'/%3E%3Cpath d='M55 14c-9-3-17-1-23 6v31c6-6 14-8 23-5z'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+2)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='14' width='32' height='38' rx='6'/%3E%3Crect x='22' y='8' width='32' height='38' rx='6'/%3E%3Cpath d='m29 27 7 7 12-14'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='14' width='32' height='38' rx='6'/%3E%3Crect x='22' y='8' width='32' height='38' rx='6'/%3E%3Cpath d='m29 27 7 7 12-14'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+3)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='8' width='38' height='48' rx='7'/%3E%3Cpath d='M22 22h20M22 32h13M22 42h10'/%3E%3Ccircle cx='43' cy='40' r='6'/%3E%3Cpath d='m40 40 2 2 4-5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='8' width='38' height='48' rx='7'/%3E%3Cpath d='M22 22h20M22 32h13M22 42h10'/%3E%3Ccircle cx='43' cy='40' r='6'/%3E%3Cpath d='m40 40 2 2 4-5'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+4)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Ccircle cx='46' cy='18' r='7'/%3E%3Ccircle cx='44' cy='46' r='7'/%3E%3Cpath d='m24 20 15-2M23 25l16 16'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Ccircle cx='18' cy='20' r='7'/%3E%3Ccircle cx='46' cy='18' r='7'/%3E%3Ccircle cx='44' cy='46' r='7'/%3E%3Cpath d='m24 20 15-2M23 25l16 16'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+5)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 50 19 35 43 11l10 10-24 24z'/%3E%3Cpath d='m19 35 10 10M40 14l10 10'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 50 19 35 43 11l10 10-24 24z'/%3E%3Cpath d='m19 35 10 10M40 14l10 10'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+6)::after{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='13' width='18' height='18' rx='4'/%3E%3Crect x='36' y='13' width='18' height='18' rx='4'/%3E%3Crect x='23' y='36' width='18' height='18' rx='4'/%3E%3Cpath d='M19 22h26M32 31v5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='13' width='18' height='18' rx='4'/%3E%3Crect x='36' y='13' width='18' height='18' rx='4'/%3E%3Crect x='23' y='36' width='18' height='18' rx='4'/%3E%3Cpath d='M19 22h26M32 31v5'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card::after{opacity:.10}

@media(prefers-reduced-motion:reduce){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card)::after{animation:none!important;display:none!important}
}

/* =========================================================
   v118 — Mavzu/Mashq visual polish ONLY
   Built on v117. Capsule geometry, coordinates, spacing,
   navigation and all behavior stay untouched.
   - Topic copy gets clearer hierarchy without moving the capsule.
   - Coming-soon card gets the approved faded state + corner ribbon.
   - Method icon artwork is replaced visually with Concept-D tiles.
   ========================================================= */

/* Topic text: improve hierarchy/placement without changing card geometry. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > h3{
  margin:0 0 10px 0!important;
  font-size:20px!important;
  line-height:1.08!important;
  font-weight:800!important;
  letter-spacing:-.018em!important;
  transform:translateX(8px);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > span:not(.student-coming-soon-badge):not(.collection-lock-mark){
  display:inline-block;
  font-size:16.5px!important;
  line-height:1.18!important;
  font-weight:500!important;
  letter-spacing:-.01em!important;
  transform:translateX(8px);
}

/* Approved coming-soon state: card is softly faded, ribbon remains crisp. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled{
  opacity:1!important;
  filter:none!important;
  cursor:default!important;
  box-shadow:
    inset 0 0 0 999px rgba(255,255,255,.20),
    0 10px 26px rgba(12,56,91,.09),
    inset 0 1px 0 rgba(255,255,255,.92)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon > h3,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon > span:not(.student-coming-soon-badge):not(.collection-lock-mark){
  opacity:.52!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon::before{
  opacity:.48!important;
}

/* Approved "TEZ ORADA" corner ribbon. Absolute-only: no capsule size/position change. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  position:absolute!important;
  z-index:8!important;
  top:18px!important;
  right:-38px!important;
  left:auto!important;
  width:154px!important;
  height:38px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(125,113,235,.26)!important;
  border-radius:3px!important;
  transform:rotate(45deg)!important;
  transform-origin:center!important;
  color:#4f4bb8!important;
  background:
    linear-gradient(180deg,rgba(248,247,255,.94),rgba(192,188,255,.92) 58%,rgba(151,145,246,.92))!important;
  box-shadow:
    0 5px 14px rgba(73,67,174,.18),
    inset 0 1px 0 rgba(255,255,255,.92)!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.075em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  opacity:1!important;
  pointer-events:none!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  inset:4px 0 auto 0;
  height:1px;
  background:rgba(255,255,255,.62);
  pointer-events:none;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon{
  box-shadow:
    inset 0 0 0 999px rgba(255,255,255,.055),
    0 10px 26px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  color:#e1defe!important;
  background:linear-gradient(180deg,rgba(117,105,221,.94),rgba(79,67,180,.96))!important;
  border-color:rgba(208,203,255,.24)!important;
}

/* Concept-D method icon tiles: replace old artwork visually, preserve tile geometry. */
body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon{
  --mode-icon-mask:none;
  position:relative!important;
  overflow:hidden!important;
  padding:0!important;
  border-color:rgba(255,255,255,.90)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--mode-accent) 58%,#8be7ff 42%),var(--mode-accent))!important;
  box-shadow:
    0 9px 20px color-mix(in srgb,var(--mode-accent) 24%,transparent),
    inset 0 1px 0 rgba(255,255,255,.72)!important;
}
body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon .soft3d-icon{
  opacity:0!important;
}
body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon::before{
  content:"";
  position:absolute;
  inset:17%;
  z-index:2;
  background:#fff;
  opacity:.94;
  -webkit-mask-image:var(--mode-icon-mask);
  mask-image:var(--mode-icon-mask);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
  filter:drop-shadow(0 2px 3px rgba(16,42,67,.16));
}
body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon::after{
  content:"";
  position:absolute;
  left:8%;right:8%;top:5%;height:38%;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.48),rgba(255,255,255,0));
  transform:rotate(-8deg);
  pointer-events:none;
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+1) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14c9-3 17-1 23 6v31c-6-6-14-8-23-5z'/%3E%3Cpath d='M55 14c-9-3-17-1-23 6v31c6-6 14-8 23-5z'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+2) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='m13 33 12 12 26-29' fill='none' stroke='%23000' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+3) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='8' width='38' height='48' rx='7'/%3E%3Cpath d='M22 22h20M22 32h13M22 42h9'/%3E%3Ccircle cx='44' cy='42' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+4) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'%3E%3Ccircle cx='17' cy='21' r='7'/%3E%3Ccircle cx='47' cy='18' r='7'/%3E%3Ccircle cx='45' cy='47' r='7'/%3E%3Cpath d='m24 21 16-2M22 27l18 15'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+5) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 50 19 35 43 11l10 10-24 24z'/%3E%3Cpath d='m19 35 10 10M40 14l10 10'/%3E%3C/g%3E%3C/svg%3E");
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+6) .mode-card-icon{
  --mode-icon-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='13' width='18' height='18' rx='4'/%3E%3Crect x='36' y='13' width='18' height='18' rx='4'/%3E%3Crect x='23' y='36' width='18' height='18' rx='4'/%3E%3Cpath d='M19 22h26M32 31v5'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon{
  background:linear-gradient(145deg,color-mix(in srgb,var(--mode-accent) 76%,#9da7ff 24%),color-mix(in srgb,var(--mode-accent) 72%,#17172b 28%))!important;
  border-color:color-mix(in srgb,var(--mode-accent) 35%,rgba(255,255,255,.16))!important;
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > h3{font-size:19px!important}
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > span:not(.student-coming-soon-badge):not(.collection-lock-mark){font-size:15.5px!important}
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{width:144px!important;right:-38px!important;top:17px!important;font-size:11.5px!important}
}

/* =========================================================
   v119 — final capsule micro-polish ONLY
   Built on v118. No capsule geometry, coordinates, spacing,
   DOM, JS, routing or interaction behavior is changed.
   ========================================================= */

/* Topic copy: tiny optical alignment/readability refinement only. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > h3{
  margin-bottom:8px!important;
  transform:translate(8px,-1px)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) > span:not(.student-coming-soon-badge):not(.collection-lock-mark){
  transform:translate(8px,1px)!important;
  font-weight:550!important;
}

/* Coming-soon card stays softly disabled, but its copy remains comfortably readable. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon > h3{
  opacity:.64!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon > span:not(.student-coming-soon-badge):not(.collection-lock-mark){
  opacity:.61!important;
}

/* Corner ribbon: same approved placement/size, with a more integrated fold + softer depth. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  border-color:rgba(125,113,235,.22)!important;
  background:linear-gradient(180deg,rgba(250,249,255,.96),rgba(204,200,255,.94) 57%,rgba(158,151,247,.93))!important;
  box-shadow:
    0 3px 9px rgba(67,61,164,.14),
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 -1px 0 rgba(85,75,190,.10)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.38)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
  height:5px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(87,76,184,0),rgba(87,76,184,.10));
  pointer-events:none;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  box-shadow:
    0 3px 10px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.12)!important;
  text-shadow:none!important;
}

/* Method helper copy: a touch more contrast, without moving or resizing anything. */
body.student-app .study-mode-grid > .mode-visual-card .mode-card-content p{
  color:#4e6f9f!important;
  font-weight:500!important;
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card .mode-card-content p{
  color:rgba(211,221,243,.78)!important;
}

/* =========================================================
   v120 — TEZ ORADA ribbon lift ONLY
   Built on v119. No capsule geometry/coordinates/spacing,
   DOM, JS, routing, navigation or interaction changes.
   The approved corner ribbon is allowed to project naturally
   outside only the coming-soon topic capsule.
   ========================================================= */

/* Let only the coming-soon topic expose its decorative ribbon.
   The card box itself keeps the exact same dimensions/position. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled{
  overflow:visible!important;
  z-index:6!important;
}

/* Larger, more dimensional corner ribbon that visibly clears the card edge. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  z-index:12!important;
  top:15px!important;
  right:-48px!important;
  width:180px!important;
  height:42px!important;
  border-radius:4px!important;
  font-size:12.5px!important;
  letter-spacing:.085em!important;
  background:linear-gradient(180deg,rgba(251,250,255,.98) 0%,rgba(221,217,255,.97) 38%,rgba(181,175,252,.96) 70%,rgba(144,137,241,.96) 100%)!important;
  border-color:rgba(117,104,224,.28)!important;
  box-shadow:
    0 8px 18px rgba(63,56,153,.22),
    0 2px 5px rgba(63,56,153,.14),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(76,65,181,.13)!important;
}

/* A brighter upper fold and a soft lower fold make the ribbon feel physical. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  left:7px;
  right:7px;
  top:4px;
  height:1px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:0 1px 0 rgba(255,255,255,.20);
  pointer-events:none;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(71,60,171,0),rgba(71,60,171,.14));
  filter:blur(.2px);
  pointer-events:none;
}

html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  background:linear-gradient(180deg,rgba(128,116,231,.98),rgba(91,78,196,.98))!important;
  border-color:rgba(218,213,255,.28)!important;
  box-shadow:
    0 9px 20px rgba(0,0,0,.28),
    0 2px 6px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.13)!important;
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
    width:168px!important;
    height:40px!important;
    right:-45px!important;
    top:15px!important;
    font-size:11.8px!important;
  }
}

/* =========================================================
   v121 — TEZ ORADA ribbon realism polish ONLY
   Built on v120. Ribbon visual treatment only.
   No capsule geometry/coordinates/spacing, DOM, JS, routing,
   navigation, exercise logic or interaction behavior changed.
   ========================================================= */

/* Give the diagonal label a more fabric-like, physical ribbon silhouette. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  transform:rotate(43deg) skewY(-1.2deg)!important;
  transform-origin:50% 50%!important;
  border-radius:7px 3px 8px 2px!important;
  background:
    linear-gradient(104deg,rgba(255,255,255,.34) 0 14%,rgba(255,255,255,0) 29% 63%,rgba(83,70,194,.12) 78%,rgba(83,70,194,.20) 100%),
    linear-gradient(180deg,rgba(252,251,255,.99) 0%,rgba(226,222,255,.98) 34%,rgba(184,177,252,.97) 70%,rgba(142,134,239,.97) 100%)!important;
  box-shadow:
    2px 12px 21px rgba(54,47,139,.24),
    -2px 3px 7px rgba(255,255,255,.24),
    inset 0 2px 0 rgba(255,255,255,.90),
    inset 0 -2px 0 rgba(77,64,177,.14)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.45)!important;
}

/* Top crease/highlight: intentionally slightly diagonal so it feels bent, not flat. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  left:8px;
  right:10px;
  top:5px;
  height:7px;
  border-radius:70% 30% 65% 35% / 55% 60% 40% 45%;
  background:
    linear-gradient(96deg,rgba(255,255,255,.64),rgba(255,255,255,.20) 45%,rgba(255,255,255,0) 72%);
  transform:skewX(-8deg) rotate(-.8deg);
  opacity:.82;
  pointer-events:none;
}

/* Lower crease + tiny folded-end shadow for a more real ribbon edge. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  left:7px;
  right:5px;
  bottom:3px;
  height:11px;
  border-radius:35% 65% 22% 78% / 44% 34% 66% 56%;
  background:
    linear-gradient(103deg,rgba(68,55,166,0) 0 22%,rgba(68,55,166,.06) 42%,rgba(68,55,166,.18) 77%,rgba(52,42,145,.25) 100%);
  transform:skewX(9deg) rotate(.7deg);
  filter:blur(.15px);
  opacity:.88;
  pointer-events:none;
}

html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  background:
    linear-gradient(104deg,rgba(255,255,255,.13) 0 14%,rgba(255,255,255,0) 29% 62%,rgba(28,19,105,.16) 78%,rgba(18,12,77,.24) 100%),
    linear-gradient(180deg,rgba(134,122,235,.99),rgba(100,87,208,.99) 55%,rgba(76,63,181,.99))!important;
  box-shadow:
    2px 12px 22px rgba(0,0,0,.34),
    -1px 3px 7px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.18)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.14)!important;
}

/* =========================================================
   v122 — TEZ ORADA ribbon compact sizing ONLY
   Built on v121. Ribbon dimensions/offset only.
   No capsule geometry, spacing, DOM, JS or behavior changed.
   ========================================================= */

/* Slightly smaller ribbon so its exposed diagonal body stays comfortably
   within the visual gap between neighboring topic capsules. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  width:164px!important;
  height:36px!important;
  right:-42px!important;
  top:14px!important;
  font-size:11.8px!important;
  letter-spacing:.08em!important;
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
    width:154px!important;
    height:34px!important;
    right:-39px!important;
    top:14px!important;
    font-size:11.2px!important;
  }
}

/* =========================================================
   v123 — TEZ ORADA ribbon selector isolation ONLY
   Built on v122. Ribbon visibility selector only.
   No capsule geometry, spacing, colors, DOM, JS or behavior changed.
   ========================================================= */

/* Hide any stray/pre-rendered coming-soon badge unless its own topic card
   is explicitly marked as coming soon. This prevents the ribbon from
   appearing on the next normal topic while preserving the approved ribbon
   exactly on the real coming-soon card. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card) .student-coming-soon-badge{
  display:none!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  display:flex!important;
}


/* =========================================================
   v124 — TEZ ORADA outline stamp ONLY
   Built on v123. Replaces the diagonal ribbon with the
   approved in-card outline stamp. No other card styling,
   geometry, spacing, DOM, JS or behavior is changed.
   ========================================================= */

/* Replace only the coming-soon badge visual: no ribbon, use an in-card stamp. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  top:22px!important;
  right:24px!important;
  left:auto!important;
  width:166px!important;
  height:62px!important;
  padding:0 18px!important;
  border:2px solid rgba(108,132,170,.52)!important;
  border-radius:24px!important;
  transform:rotate(-8deg)!important;
  transform-origin:center!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  color:rgba(81,107,148,.95)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(232,240,250,.12))!important;
  box-shadow:
    0 8px 18px rgba(70,94,132,.10),
    inset 0 1px 0 rgba(255,255,255,.44)!important;
  font-size:11.4px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-shadow:none!important;
  backdrop-filter:blur(.4px)!important;
  -webkit-backdrop-filter:blur(.4px)!important;
  clip-path:none!important;
}

/* Inner outline and tiny stars, to emulate the approved stamp. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  inset:5px;
  border:1.5px solid rgba(108,132,170,.52);
  border-radius:19px;
  background:
    radial-gradient(circle at 22% 46%, rgba(108,132,170,.88) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 46%, rgba(108,132,170,.88) 0 1px, transparent 1.6px);
  pointer-events:none;
}

/* Small clock mark near the top-center of the stamp. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  top:11px;
  left:50%;
  width:16px;
  height:16px;
  margin-left:-8px;
  border:2px solid rgba(81,107,148,.92);
  border-radius:50%;
  box-sizing:border-box;
  background:
    linear-gradient(rgba(81,107,148,.92),rgba(81,107,148,.92)) center 4px/2px 5px no-repeat,
    linear-gradient(rgba(81,107,148,.92),rgba(81,107,148,.92)) calc(50% + 3px) calc(50% + 2px)/5px 2px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(81,107,148,.92) 0 1.3px, transparent 1.4px);
  pointer-events:none;
}

html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  border-color:rgba(180,198,228,.34)!important;
  color:rgba(200,214,238,.92)!important;
  background:linear-gradient(180deg,rgba(160,181,213,.10),rgba(94,117,154,.10))!important;
  box-shadow:
    0 8px 20px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10)!important;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  border-color:rgba(180,198,228,.28);
  background:
    radial-gradient(circle at 22% 46%, rgba(200,214,238,.82) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 46%, rgba(200,214,238,.82) 0 1px, transparent 1.6px);
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  border-color:rgba(200,214,238,.88);
  background:
    linear-gradient(rgba(200,214,238,.88),rgba(200,214,238,.88)) center 4px/2px 5px no-repeat,
    linear-gradient(rgba(200,214,238,.88),rgba(200,214,238,.88)) calc(50% + 3px) calc(50% + 2px)/5px 2px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(200,214,238,.88) 0 1.3px, transparent 1.4px);
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
    width:152px!important;
    height:58px!important;
    right:20px!important;
    top:20px!important;
    font-size:10.8px!important;
  }
}


/* =========================================================
   v125 — TEZ ORADA stamp polish ONLY
   Built on v124. Visual-only refinement of the badge.
   No other card, layout, spacing, DOM, JS or behavior changes.
   ========================================================= */

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  top:26px!important;
  right:26px!important;
  width:150px!important;
  height:50px!important;
  padding:0 16px 8px!important;
  border:1.6px solid rgba(92,116,154,.44)!important;
  border-radius:18px!important;
  transform:rotate(-7deg)!important;
  align-items:flex-end!important;
  justify-content:center!important;
  color:rgba(74,97,135,.92)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(237,243,251,.08))!important;
  box-shadow:0 4px 10px rgba(68,89,121,.07)!important;
  font-size:11.2px!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  inset:4px;
  border:1px solid rgba(92,116,154,.36);
  border-radius:14px;
  background:none!important;
  pointer-events:none;
}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  content:"◷";
  position:absolute;
  top:7px;
  left:50%;
  width:auto;
  height:auto;
  margin:0;
  transform:translateX(-50%);
  border:0!important;
  border-radius:0;
  background:none!important;
  color:rgba(74,97,135,.84);
  font-size:15px;
  line-height:1;
  font-weight:700;
  box-sizing:border-box;
  pointer-events:none;
}

html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  border-color:rgba(185,202,229,.30)!important;
  color:rgba(209,220,239,.88)!important;
  background:rgba(124,145,178,.06)!important;
  box-shadow:0 4px 12px rgba(0,0,0,.10)!important;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  border-color:rgba(185,202,229,.22);
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  color:rgba(209,220,239,.80);
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
    width:140px!important;
    height:48px!important;
    right:22px!important;
    top:24px!important;
    font-size:10.6px!important;
  }
}


/* =========================================================
   v126 — Large Soft Glass Pill + gentle sheen animation ONLY
   Built on v125. Replaces the TEZ ORADA stamp with the
   approved large soft glass pill and a subtle periodic
   left-to-right shimmer. No other card/layout/JS changes.
   ========================================================= */

@keyframes studentComingSoonGlassSweep{
  0%,12%,100%{transform:translateX(-165%) skewX(-22deg);opacity:0}
  16%{opacity:0}
  22%{opacity:.72}
  34%{transform:translateX(185%) skewX(-22deg);opacity:0}
  35%,100%{opacity:0}
}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  top:22px!important;
  right:18px!important;
  width:214px!important;
  height:58px!important;
  padding:0 22px 0 72px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  border:1.5px solid rgba(255,255,255,.42)!important;
  border-radius:999px!important;
  transform:none!important;
  overflow:hidden!important;
  color:#4666da!important;
  background:
    radial-gradient(circle at 36px 50%, transparent 0 9px, rgba(76,103,221,.92) 9px 11px, transparent 11.6px),
    radial-gradient(circle at 36px 50%, rgba(76,103,221,.92) 0 1.35px, transparent 1.55px),
    linear-gradient(rgba(76,103,221,.92),rgba(76,103,221,.92)) 36px 18px/2px 10px no-repeat,
    linear-gradient(rgba(76,103,221,.92),rgba(76,103,221,.92)) 40px 28px/7px 2px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,.20) 36%, rgba(205,216,255,.34) 100%),
    linear-gradient(135deg, rgba(205,214,255,.30), rgba(244,247,255,.18) 58%, rgba(183,197,255,.26));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -10px 24px rgba(146,164,255,.10),
    0 10px 24px rgba(110,135,255,.16),
    0 2px 8px rgba(110,135,255,.12)!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  text-shadow:0 1px 0 rgba(255,255,255,.38)!important;
  backdrop-filter:blur(7px) saturate(1.06)!important;
  -webkit-backdrop-filter:blur(7px) saturate(1.06)!important;
}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.26);
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%),
    radial-gradient(120% 130% at 18% 18%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 42%);
  pointer-events:none;
}

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  top:-18%;
  left:-20%;
  width:34%;
  height:136%;
  border-radius:40px;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 14%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.10) 86%, rgba(255,255,255,0) 100%);
  filter:blur(1px);
  mix-blend-mode:screen;
  pointer-events:none;
  animation:studentComingSoonGlassSweep 4.8s ease-in-out infinite;
}

html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
  border-color:rgba(255,255,255,.28)!important;
  color:#8ea4ff!important;
  background:
    radial-gradient(circle at 36px 50%, transparent 0 9px, rgba(139,162,255,.96) 9px 11px, transparent 11.6px),
    radial-gradient(circle at 36px 50%, rgba(139,162,255,.96) 0 1.35px, transparent 1.55px),
    linear-gradient(rgba(139,162,255,.96),rgba(139,162,255,.96)) 36px 18px/2px 10px no-repeat,
    linear-gradient(rgba(139,162,255,.96),rgba(139,162,255,.96)) 40px 28px/7px 2px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 38%, rgba(118,133,196,.13) 100%),
    linear-gradient(135deg, rgba(177,190,255,.12), rgba(255,255,255,.04) 58%, rgba(141,159,255,.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -10px 22px rgba(119,138,224,.08),
    0 8px 20px rgba(0,0,0,.18),
    0 2px 8px rgba(0,0,0,.12)!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::before,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::before{
  border-color:rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%),
    radial-gradient(120% 130% at 18% 18%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 42%);
}

@media(max-width:390px){
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
  body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
    width:196px!important;
    height:54px!important;
    right:16px!important;
    top:20px!important;
    padding-left:66px!important;
    font-size:13.8px!important;
    background:
      radial-gradient(circle at 33px 50%, transparent 0 8px, rgba(76,103,221,.92) 8px 10px, transparent 10.6px),
      radial-gradient(circle at 33px 50%, rgba(76,103,221,.92) 0 1.3px, transparent 1.5px),
      linear-gradient(rgba(76,103,221,.92),rgba(76,103,221,.92)) 33px 17px/2px 9px no-repeat,
      linear-gradient(rgba(76,103,221,.92),rgba(76,103,221,.92)) 37px 26px/6px 2px no-repeat,
      linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,.20) 36%, rgba(205,216,255,.34) 100%),
      linear-gradient(135deg, rgba(205,214,255,.30), rgba(244,247,255,.18) 58%, rgba(183,197,255,.26));
  }
  html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge,
  html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge{
    background:
      radial-gradient(circle at 33px 50%, transparent 0 8px, rgba(139,162,255,.96) 8px 10px, transparent 10.6px),
      radial-gradient(circle at 33px 50%, rgba(139,162,255,.96) 0 1.3px, transparent 1.5px),
      linear-gradient(rgba(139,162,255,.96),rgba(139,162,255,.96)) 33px 17px/2px 9px no-repeat,
      linear-gradient(rgba(139,162,255,.96),rgba(139,162,255,.96)) 37px 26px/6px 2px no-repeat,
      linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 38%, rgba(118,133,196,.13) 100%),
      linear-gradient(135deg, rgba(177,190,255,.12), rgba(255,255,255,.04) 58%, rgba(141,159,255,.12));
  }
}


/* =========================================================
   v127 — TEZ ORADA shimmer visibility fix ONLY
   Built on v126. The previous v125 stamp layer left
   background:none!important on ::after, which suppressed the
   v126 sheen. This override changes only that shimmer layer.
   ========================================================= */

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card).is-coming-soon:disabled .student-coming-soon-badge::after{
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 14%,
    rgba(255,255,255,.68) 50%,
    rgba(255,255,255,.10) 86%,
    rgba(255,255,255,0) 100%
  )!important;
  animation:studentComingSoonGlassSweep 4.8s ease-in-out infinite!important;
  will-change:transform,opacity;
}


/* =========================================================
   v128 — Crystal Pastel color refresh ONLY
   Built on v127. Only topic/method capsule colors are made
   slightly clearer, brighter and cleaner based on the approved
   concept image. No geometry, spacing, text, TEZ ORADA badge,
   animation, DOM, JS or behavior changes.
   ========================================================= */

/* Mavzu cards: a cleaner crystal pastel palette. */
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){
  --topic-a:rgba(244,251,255,.995);
  --topic-b:rgba(210,232,255,.978);
  --topic-c:rgba(234,245,255,.992);
  background:
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.40) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.16) 58%,rgba(255,255,255,.36) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+1){
  --topic-accent:#38bdf8;
  --topic-a:rgba(246,252,255,.997);
  --topic-b:rgba(208,232,255,.982);
  --topic-c:rgba(232,244,255,.995);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+2){
  --topic-accent:#a16bff;
  --topic-a:rgba(251,247,255,.997);
  --topic-b:rgba(233,220,255,.982);
  --topic-c:rgba(244,236,255,.995);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+3){
  --topic-accent:#23d7a0;
  --topic-a:rgba(245,255,251,.997);
  --topic-b:rgba(206,246,231,.982);
  --topic-c:rgba(229,252,243,.995);
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+4){
  --topic-accent:#f7b43a;
  --topic-a:rgba(255,251,243,.997);
  --topic-b:rgba(255,231,194,.982);
  --topic-c:rgba(255,244,221,.995);
}

/* Mashq usullari cards: match the same brighter crystal pastel family. */
body.student-app .study-mode-grid > .mode-visual-card{
  --mode-a:rgba(246,252,255,.995);
  --mode-b:rgba(216,237,255,.976);
  background:
    radial-gradient(ellipse at 92% 18%,rgba(255,255,255,.68) 0%,rgba(255,255,255,0) 35%),
    linear-gradient(122deg,rgba(255,255,255,.34),rgba(255,255,255,0) 32%,rgba(255,255,255,.20) 72%),
    linear-gradient(145deg,var(--mode-a) 0%,var(--mode-b) 100%)!important;
}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+1){--mode-accent:#2f9cff;--mode-a:rgba(246,252,255,.997);--mode-b:rgba(214,236,255,.982)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+2){--mode-accent:#20c997;--mode-a:rgba(245,255,252,.997);--mode-b:rgba(208,247,233,.982)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+3){--mode-accent:#8f63ff;--mode-a:rgba(251,248,255,.997);--mode-b:rgba(233,221,255,.982)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+4){--mode-accent:#ff9448;--mode-a:rgba(255,250,245,.997);--mode-b:rgba(255,228,205,.982)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+5){--mode-accent:#f567b0;--mode-a:rgba(255,248,252,.997);--mode-b:rgba(251,218,237,.982)}
body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+6){--mode-accent:#5f75ff;--mode-a:rgba(248,249,255,.997);--mode-b:rgba(219,224,255,.982)}


/* =========================================================
   v129 — Topic right-side decor restore ONLY
   Built on v128. Restore the faint right-side decorative icons
   on Mavzu cards without changing TEZ ORADA, geometry, text,
   animations, spacing, or method cards.
   ========================================================= */

body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card){
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.72' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14c9-3 17-1 23 6v31c-6-6-14-8-23-5z'/%3E%3Cpath d='M55 14c-9-3-17-1-23 6v31c6-6 14-8 23-5z'/%3E%3C/g%3E%3C/svg%3E") right 22px center / 78px 78px no-repeat,
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.40) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.16) 58%,rgba(255,255,255,.36) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+2){
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.72' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 24 32 13l22 11-22 11z'/%3E%3Cpath d='M18 28v9c0 3 7 7 14 7s14-4 14-7v-9'/%3E%3Cpath d='M54 24v12'/%3E%3C/g%3E%3C/svg%3E") right 22px center / 78px 78px no-repeat,
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.40) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.16) 58%,rgba(255,255,255,.36) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+3){
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.72' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='16' y='11' width='32' height='42' rx='8'/%3E%3Cpath d='M24 24h16M24 32h16M24 40h12'/%3E%3C/g%3E%3C/svg%3E") right 22px center / 74px 74px no-repeat,
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.40) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.16) 58%,rgba(255,255,255,.36) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
}
body.student-app .collection-access-grid > .collection-access-card:not(.collection-showcase-card):nth-child(4n+4){
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.72' stroke-width='3.8' stroke-linecap='round' stroke-linejoin='round' d='m32 11 6.8 13.8 15.2 2.2-11 10.7 2.6 15.1L32 45.6 18.4 53l2.6-15.1L10 27l15.2-2.2z'/%3E%3C/svg%3E") right 22px center / 76px 76px no-repeat,
    radial-gradient(ellipse at 86% 18%,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 34%),
    linear-gradient(118deg,rgba(255,255,255,.40) 0%,rgba(255,255,255,0) 28%,rgba(255,255,255,.16) 58%,rgba(255,255,255,.36) 100%),
    linear-gradient(145deg,var(--topic-a) 0%,var(--topic-b) 58%,var(--topic-c) 100%)!important;
}


/* =========================================================
   v130 — Bo‘lim / To‘plam TEZ ORADA badge swap ONLY
   Built on v129. Copy the approved Mavzu glass-pill TEZ ORADA
   look onto Bo‘lim and To‘plam cards, without touching any other
   layout, card geometry, text system, or topic badge styles.
   ========================================================= */

body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:168px!important;
  height:44px!important;
  padding:0 24px!important;
  margin:14px 0 0!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.48),rgba(232,237,255,.36))!important;
  border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:
    0 10px 24px rgba(100,112,194,.12),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(126,137,226,.08)!important;
  color:#4f67de!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
  overflow:hidden!important;
  isolation:isolate!important;
  backdrop-filter:blur(12px) saturate(116%) brightness(1.02)!important;
  -webkit-backdrop-filter:blur(12px) saturate(116%) brightness(1.02)!important;
}
body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.06));
  pointer-events:none;
  z-index:-2;
}
body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge::after{
  content:"";
  position:absolute;
  top:-55%;
  bottom:-55%;
  left:-34%;
  width:34%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.50),rgba(255,255,255,0));
  opacity:0;
  transform:translateX(0) skewX(-24deg);
  pointer-events:none;
  animation:comingSoonGlassShineV130 4.8s ease-in-out infinite;
}
@keyframes comingSoonGlassShineV130{
  0%,12%,100%{opacity:0;transform:translateX(0) skewX(-24deg)}
  18%{opacity:.0;transform:translateX(0) skewX(-24deg)}
  31%{opacity:.95;transform:translateX(470%) skewX(-24deg)}
  36%{opacity:0;transform:translateX(540%) skewX(-24deg)}
}
html[data-theme="dark"] body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
  background:linear-gradient(180deg,rgba(182,191,255,.18),rgba(118,128,206,.12))!important;
  border-color:rgba(205,214,255,.20)!important;
  box-shadow:
    0 10px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.10)!important;
  color:#c9d4ff!important;
}
@media(max-width:600px){
  body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
  body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
  body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
    min-width:156px!important;
    height:40px!important;
    padding:0 21px!important;
    margin-top:12px!important;
    font-size:12.5px!important;
  }
}


/* =========================================================
   v131 — Bo‘lim / To‘plam TEZ ORADA clarity boost ONLY
   Built on v130. Make the coming-soon pill on Bo‘lim and
   To‘plam cards clearer/brighter without touching topic pills,
   geometry, layout, or other card styles.
   ========================================================= */

body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
  background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(245,248,255,.62))!important;
  border-color:rgba(255,255,255,.58)!important;
  box-shadow:
    0 10px 24px rgba(90,108,220,.18),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(104,121,233,.10)!important;
  color:#3f5fe4!important;
  text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
  filter:saturate(1.08) brightness(1.06)!important;
}
body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge::before,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge::before{
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.10))!important;
}
body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge::after,
body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge::after{
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.68),rgba(255,255,255,0))!important;
}
html[data-theme="dark"] body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
  background:linear-gradient(180deg,rgba(217,225,255,.28),rgba(144,159,234,.20))!important;
  border-color:rgba(225,232,255,.30)!important;
  box-shadow:
    0 10px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.10)!important;
  color:#dce4ff!important;
  text-shadow:none!important;
  filter:saturate(1.06) brightness(1.04)!important;
}


/* =========================================================
   v133 — Student PREMIUM badge position + shimmer only
   Move PREMIUM badge to top-left on Bo'lim / To'plam / Mavzu
   cards and add a soft left-to-right shine animation.
   No geometry or other card systems are changed.
   ========================================================= */

body.student-app .collection-access-card.is-premium,
body.student-app .collection-showcase-card.is-premium{
  position:relative!important;
}

/* Showcase cards: Bo'limlar + To'plamlar */
body.student-app .collection-showcase-card.is-premium .collection-showcase-copy{
  padding-top:22px!important;
}
body.student-app .collection-showcase-card.is-premium .student-premium-badge{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:auto!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:82px!important;
  height:24px!important;
  padding:0 11px!important;
  margin:0!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,243,199,.98),rgba(243,219,142,.93))!important;
  border:1px solid rgba(221,182,72,.88)!important;
  color:#7a5600!important;
  font-size:9.5px!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
  line-height:1!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(159,126,29,.16), inset 0 1px 0 rgba(255,255,255,.88)!important;
  z-index:7!important;
  overflow:hidden!important;
  isolation:isolate!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}

/* Topic cards: Mavzular */
body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) > h3{
  padding-top:24px!important;
}
body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) .student-premium-badge{
  position:absolute!important;
  top:12px!important;
  left:16px!important;
  right:auto!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:82px!important;
  height:24px!important;
  padding:0 11px!important;
  margin:0!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,243,199,.98),rgba(243,219,142,.93))!important;
  border:1px solid rgba(221,182,72,.88)!important;
  color:#7a5600!important;
  font-size:9.5px!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
  line-height:1!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  box-shadow:0 8px 18px rgba(159,126,29,.16), inset 0 1px 0 rgba(255,255,255,.88)!important;
  z-index:7!important;
  overflow:hidden!important;
  isolation:isolate!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}

/* Soft shine animation for all student PREMIUM pills */
body.student-app .collection-access-card.is-premium .student-premium-badge::after{
  content:"";
  position:absolute;
  top:-48%;
  bottom:-48%;
  left:-34%;
  width:30%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.72),rgba(255,255,255,0));
  opacity:0;
  transform:translateX(0) skewX(-22deg);
  pointer-events:none;
  animation:studentPremiumShineV133 4.8s ease-in-out infinite;
}
@keyframes studentPremiumShineV133{
  0%,14%,100%{opacity:0;transform:translateX(0) skewX(-22deg)}
  22%{opacity:0}
  34%{opacity:.95;transform:translateX(440%) skewX(-22deg)}
  39%{opacity:0;transform:translateX(520%) skewX(-22deg)}
}

html[data-theme="dark"] body.student-app .collection-showcase-card.is-premium .student-premium-badge,
html[data-theme="dark"] body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) .student-premium-badge{
  background:linear-gradient(180deg,rgba(255,232,170,.95),rgba(213,172,68,.90))!important;
  border-color:rgba(233,194,91,.88)!important;
  color:#5a3f00!important;
  box-shadow:0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.34)!important;
}

@media(max-width:600px){
  body.student-app .collection-showcase-card.is-premium .collection-showcase-copy{padding-top:20px!important}
  body.student-app .collection-showcase-card.is-premium .student-premium-badge,
  body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) .student-premium-badge{
    min-width:78px!important;
    height:23px!important;
    padding:0 10px!important;
    font-size:9px!important;
  }
  body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) > h3{
    padding-top:22px!important;
  }
}


/* =========================================================
   v134 — PREMIUM badge placement correction ONLY
   Badge is now a direct card overlay, so it no longer collides
   with Bo‘lim / To‘plam / Mavzu titles. The existing shimmer
   and premium styling are preserved. Locked premium cards keep
   the badge crisp while the underlying content stays subdued.
   ========================================================= */

/* Undo v133 title offsets: PREMIUM no longer lives inside the title. */
body.student-app .collection-showcase-card.is-premium .collection-showcase-copy{
  padding-top:0!important;
}
body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) > h3{
  padding-top:0!important;
}

/* One stable top-left coordinate relative to the capsule itself. */
body.student-app .collection-showcase-card.is-premium > .student-premium-badge,
body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) > .student-premium-badge{
  position:absolute!important;
  top:10px!important;
  left:12px!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  z-index:12!important;
}

/* Keep the PREMIUM pill readable on locked premium content without
   changing non-premium locked cards. */
body.student-app .collection-access-card.is-premium.is-locked{
  opacity:1!important;
  filter:none!important;
}
body.student-app .collection-showcase-card.is-premium.is-locked .collection-custom-capsule-image,
body.student-app .collection-showcase-card.is-premium.is-locked .collection-card-pattern,
body.student-app .collection-showcase-card.is-premium.is-locked .collection-korean-badge,
body.student-app .collection-showcase-card.is-premium.is-locked .collection-showcase-copy{
  opacity:.46!important;
  filter:grayscale(.28) saturate(.48)!important;
}
body.student-app .collection-access-grid > .collection-access-card.is-premium.is-locked:not(.collection-showcase-card) > h3,
body.student-app .collection-access-grid > .collection-access-card.is-premium.is-locked:not(.collection-showcase-card) > span:not(.student-premium-badge):not(.collection-lock-mark){
  opacity:.46!important;
}

@media(max-width:600px){
  body.student-app .collection-showcase-card.is-premium > .student-premium-badge,
  body.student-app .collection-access-grid > .collection-access-card.is-premium:not(.collection-showcase-card) > .student-premium-badge{
    top:9px!important;
    left:10px!important;
  }
}


/* =========================================================
   v135 — PREMIUM shimmer visibility fix ONLY
   Keep the existing premium badge placement and styling, but
   make the left-to-right shine clearly visible on the badge.
   No other card/title/layout logic is changed.
   ========================================================= */

body.student-app .collection-access-card.is-premium .student-premium-badge::after{
  top:-42%!important;
  bottom:-42%!important;
  left:-42%!important;
  width:38%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.18) 18%,rgba(255,255,255,.88) 50%,rgba(255,255,255,.18) 82%,rgba(255,255,255,0) 100%)!important;
  opacity:0!important;
  transform:translateX(0) skewX(-22deg)!important;
  mix-blend-mode:screen;
  filter:blur(.2px);
  z-index:1;
  pointer-events:none!important;
  animation:studentPremiumShineV135 4.25s ease-in-out infinite!important;
}
@keyframes studentPremiumShineV135{
  0%,16%,100%{opacity:0;transform:translateX(0) skewX(-22deg)}
  22%{opacity:.18;transform:translateX(35%) skewX(-22deg)}
  31%{opacity:.98;transform:translateX(305%) skewX(-22deg)}
  37%{opacity:0;transform:translateX(390%) skewX(-22deg)}
}
html[data-theme="dark"] body.student-app .collection-access-card.is-premium .student-premium-badge::after{
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.12) 18%,rgba(255,250,232,.70) 50%,rgba(255,255,255,.12) 82%,rgba(255,255,255,0) 100%)!important;
}

/* V32 — Admin Students CRM overview (Stage 2, read-only) */
.admin-crm-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}
.admin-crm-summary-card{appearance:none;border:1px solid #d9e7f2;border-radius:17px;background:#fff;padding:14px 15px;text-align:left;display:grid;gap:3px;min-width:0;cursor:pointer;box-shadow:0 7px 20px rgba(31,65,105,.04);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.admin-crm-summary-card:hover{border-color:#bcd9e9;box-shadow:0 10px 24px rgba(31,65,105,.07);transform:translateY(-1px)}
.admin-crm-summary-card.is-active{border-color:#65bde8;box-shadow:0 0 0 3px rgba(21,155,211,.08),0 10px 24px rgba(31,65,105,.06)}
.admin-crm-summary-card small{font-size:10px;font-weight:1000;letter-spacing:.08em;color:#7b91a8}
.admin-crm-summary-card b{font-size:25px;line-height:1.05;color:#102e5c}
.admin-crm-summary-card span{font-size:11px;font-weight:700;color:#8092a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-crm-filter-row{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:0 0 13px;margin-bottom:13px;border-bottom:1px solid #e5edf5;scrollbar-width:thin}
.admin-crm-filter{appearance:none;flex:0 0 auto;border:1px solid #d7e4ef;border-radius:999px;background:#f8fbfe;color:#5e748d;padding:8px 12px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;transition:.15s ease}
.admin-crm-filter:hover{background:#f0f8fd;border-color:#bcd9e9;color:#25557a}
.admin-crm-filter.is-active{background:#e9f7ff;border-color:#8fd0ee;color:#0876aa;box-shadow:inset 0 0 0 1px rgba(21,155,211,.06)}
.admin-student-crm-metrics{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.admin-student-crm-metrics span{display:inline-flex;align-items:center;gap:3px;padding:5px 8px;border:1px solid #dce8f2;border-radius:999px;background:#f8fbfe;color:#708499;font-size:11px;font-weight:800;white-space:nowrap}
.admin-student-crm-metrics b{color:#244f72;font-size:11px}
@media(max-width:1180px){.admin-crm-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.admin-crm-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-crm-summary-card{padding:12px}.admin-crm-summary-card b{font-size:22px}.admin-crm-filter-row{margin-left:-2px;margin-right:-2px}.admin-student-crm-metrics{gap:5px}}

/* =========================================================
   v33 — Results word mastery summary
   Scope: Natijalarim only. Learning/XP engines stay separate.
   ========================================================= */
body.student-app .public-learning-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
body.student-app .public-learning-stat{
  min-width:0;
  padding:15px 16px;
  border:1px solid rgba(205,225,239,.92);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  box-shadow:0 9px 24px rgba(31,76,108,.07),inset 0 1px 0 rgba(255,255,255,.95);
}
body.student-app .public-learning-stat span{
  display:block;
  color:#607b95;
  font-size:11px;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
}
body.student-app .public-learning-stat b{
  display:block;
  margin-top:5px;
  color:#102342;
  font-size:27px;
  line-height:1;
  font-weight:1000;
}
body.student-app .public-learning-stat small{
  display:block;
  margin-top:7px;
  color:#7790a7;
  font-size:11px;
  line-height:1.35;
  font-weight:750;
}
body.student-app .public-learning-stat.is-learned{
  border-color:rgba(92,186,136,.34);
  background:linear-gradient(145deg,rgba(244,255,249,.92),rgba(255,255,255,.82));
}
body.student-app .public-learning-stat.is-mastered{
  border-color:rgba(111,146,214,.32);
  background:linear-gradient(145deg,rgba(245,249,255,.94),rgba(255,255,255,.82));
}
@media(max-width:680px){
  body.student-app .public-learning-summary{grid-template-columns:1fr 1fr;gap:8px}
  body.student-app .public-learning-stat{padding:13px 14px}
  body.student-app .public-learning-stat.is-learning{grid-column:1/-1}
  body.student-app .public-learning-stat b{font-size:24px}
}

/* =========================================================
   V34 — Admin Students lifecycle segment + course potential
   Scope: Admin > O‘quvchilar only.
   ========================================================= */
.admin-student-crm-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.admin-crm-status-badge,.admin-crm-potential-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;border:1px solid #d8e5ef;background:#f7fafc;color:#62788e;font-size:10px;font-weight:1000;line-height:1;white-space:nowrap}
.admin-crm-status-badge.is-new{background:#eef8ff;border-color:#b9dff5;color:#1778aa}
.admin-crm-status-badge.is-very_active{background:#edfbf3;border-color:#b8e8ca;color:#187747}
.admin-crm-status-badge.is-active{background:#f1fbf5;border-color:#cbe9d5;color:#2a7750}
.admin-crm-status-badge.is-low_activity{background:#f7f9fb;border-color:#dde5ec;color:#68798a}
.admin-crm-status-badge.is-declining{background:#fff8e8;border-color:#f0d9a0;color:#9a6812}
.admin-crm-status-badge.is-returned{background:#f4f0ff;border-color:#d8caf7;color:#6850a4}
.admin-crm-status-badge.is-inactive{background:#fff1f1;border-color:#efc7c7;color:#a64a4a}
.admin-crm-potential-badge.is-high{background:#fff4df;border-color:#efce8f;color:#8d5c05}
.admin-crm-potential-badge.is-medium{background:#f3f4ff;border-color:#d6d8f6;color:#555b9c}
.admin-crm-potential-badge.is-low{background:#f7f9fb;border-color:#dde5ec;color:#748493}
.admin-crm-potential-badge.is-enrolled{background:#ebfaf0;border-color:#b8e5c6;color:#1b7540}
.admin-crm-potential-badge.is-not_interested{background:#f5f6f7;border-color:#dfe3e7;color:#777f87}
@media(max-width:700px){.admin-student-crm-badges{gap:5px}.admin-crm-status-badge,.admin-crm-potential-badge{font-size:9.5px;padding:4px 8px}}

/* V35 — Admin campaign management */
.admin-campaign-page-head{align-items:flex-start}
.admin-campaign-summary{margin-bottom:18px}
.admin-campaign-list{display:grid;gap:12px}
.admin-campaign-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;background:#fff;border:1px solid #d7e4ef;border-radius:18px;padding:16px 18px;box-shadow:0 10px 30px rgba(28,67,103,.05)}
.admin-campaign-card-main{display:flex;align-items:flex-start;gap:13px;min-width:0}
.admin-campaign-icon{width:46px;height:46px;border-radius:14px;background:#edf7ff;display:grid;place-items:center;font-size:23px;flex:0 0 auto;border:1px solid #d7e9f7}
.admin-campaign-copy{min-width:0}.admin-campaign-copy h3{margin:0;font-size:17px}.admin-campaign-copy p{margin:5px 0 0;color:#6e829d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:720px}
.admin-campaign-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-campaign-state{font-size:11px;font-weight:900;border-radius:999px;padding:5px 8px;background:#eef3f8;color:#60748c}.admin-campaign-state.is-active{background:#e9fbf2;color:#138153}.admin-campaign-state.is-scheduled{background:#eef7ff;color:#1781b7}.admin-campaign-state.is-expired{background:#fff3e8;color:#a45a18}.admin-campaign-state.is-paused{background:#fff4e8;color:#a45a18}.admin-campaign-state.is-draft{background:#f1f3f6;color:#697789}
.admin-campaign-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.admin-campaign-tags span{font-size:11px;font-weight:800;color:#60748c;background:#f4f8fb;border:1px solid #dde8f1;border-radius:999px;padding:4px 7px}
.admin-campaign-stats{display:grid;grid-template-columns:repeat(4,minmax(58px,1fr));gap:7px}.admin-campaign-stats>div{min-width:58px;text-align:center;background:#f8fbfd;border:1px solid #e1eaf2;border-radius:12px;padding:8px}.admin-campaign-stats small{display:block;color:#8191a5;font-size:10px;font-weight:800}.admin-campaign-stats b{display:block;margin-top:2px;font-size:15px;color:#102848}
.admin-campaign-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.admin-campaign-editor-head h2{margin:4px 0 5px}.admin-campaign-editor-head p{margin:0 0 14px}
.admin-campaign-form textarea{resize:vertical;min-height:96px}
.admin-campaign-audience-note{display:flex;align-items:center;min-height:67px;padding:10px 12px;background:#f8fbfd;border:1px dashed #cbdbe8;border-radius:12px;color:#718299;font-size:12px}
#campaignAudienceValueHost{min-width:0}
#campaignAudienceValueHost>label{display:flex;flex-direction:column;gap:6px}
@media(max-width:1100px){.admin-campaign-card{grid-template-columns:1fr}.admin-campaign-stats{justify-self:stretch}.admin-campaign-actions{justify-content:flex-start}}
@media(max-width:700px){.admin-campaign-card{padding:14px}.admin-campaign-stats{grid-template-columns:repeat(2,1fr)}.admin-campaign-actions .btn{flex:1}.admin-campaign-copy p{white-space:normal}.admin-campaign-page-head .admin-head-actions{width:100%}.admin-campaign-page-head .admin-head-actions .btn{flex:1}}

/* === V36 / ETAP 6: student campaign gate === */
body.student-campaign-open{overflow:hidden}
.student-campaign-gate{
  position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;
  padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
  background:rgba(5,16,31,.62);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  opacity:0;transition:opacity .2s ease;
}
.student-campaign-gate.is-visible{opacity:1}
.student-campaign-card{
  position:relative;width:min(440px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;
  border-radius:28px;background:rgba(249,252,255,.97);border:1px solid rgba(255,255,255,.75);
  box-shadow:0 28px 80px rgba(0,19,50,.28);transform:translateY(14px) scale(.985);
  transition:transform .22s ease;overscroll-behavior:contain;
}
.student-campaign-gate.is-visible .student-campaign-card{transform:translateY(0) scale(1)}
.student-campaign-close{
  position:absolute;top:12px;right:12px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;
  background:rgba(9,28,49,.68);color:#fff;font-size:28px;line-height:1;cursor:pointer;
  display:grid;place-items:center;box-shadow:0 5px 18px rgba(0,0,0,.16)
}
.student-campaign-media{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:28px 28px 0 0;background:#eaf2f8}
.student-campaign-media img{display:block;width:100%;height:100%;object-fit:cover}
.student-campaign-content{padding:26px 24px 24px}
.student-campaign-kicker{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#e6f4ff;color:#0875b9;font-size:11px;font-weight:900;letter-spacing:.08em}
.student-campaign-content h1{margin:13px 0 7px;color:#0b2340;font-size:clamp(27px,7vw,38px);line-height:1.08;letter-spacing:-.035em}
.student-campaign-subtitle{margin:0;color:#36536d;font-size:16px;font-weight:750;line-height:1.45}
.student-campaign-body{margin-top:15px;padding:15px 16px;border-radius:18px;background:rgba(229,240,248,.72);color:#29445d;font-size:14px;font-weight:650;line-height:1.6}
.student-campaign-actions{display:grid;gap:10px;margin-top:22px}
.student-campaign-actions .btn{width:100%;min-height:50px;border-radius:16px;font-weight:850;font-size:15px}
.student-campaign-later{background:transparent!important}
html[data-theme="dark"] .student-campaign-gate{background:rgba(1,8,18,.76)}
html[data-theme="dark"] .student-campaign-card{background:rgba(11,27,43,.98);border-color:rgba(255,255,255,.1);box-shadow:0 28px 80px rgba(0,0,0,.5)}
html[data-theme="dark"] .student-campaign-content h1{color:#f5f9ff}
html[data-theme="dark"] .student-campaign-subtitle{color:#c6d7e6}
html[data-theme="dark"] .student-campaign-body{background:rgba(255,255,255,.07);color:#d5e3ef}
html[data-theme="dark"] .student-campaign-kicker{background:rgba(35,157,230,.16);color:#7fd1ff}
@media(max-width:520px){
  .student-campaign-gate{align-items:flex-end;padding:10px 8px max(8px,env(safe-area-inset-bottom))}
  .student-campaign-card{width:100%;max-height:calc(100vh - 18px);border-radius:26px}
  .student-campaign-media{border-radius:26px 26px 0 0;aspect-ratio:1.7/1}
  .student-campaign-content{padding:22px 18px 20px}
  .student-campaign-content h1{font-size:30px}
}

/* v38 — student learning goal + level onboarding */
body.student-learning-profile-open{overflow:hidden}
.student-learning-profile-gate{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(5,18,31,.68);backdrop-filter:blur(10px);opacity:0;transition:opacity .2s ease}
.student-learning-profile-gate.is-visible{opacity:1}
.student-learning-profile-card{width:min(620px,100%);max-height:min(760px,calc(100vh - 36px));overflow:auto;border-radius:28px;padding:24px;background:rgba(248,252,255,.97);box-shadow:0 28px 80px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.72);color:#102845}
.student-learning-profile-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
.student-learning-profile-head h1{margin:6px 0 7px;font-size:clamp(25px,5vw,34px);line-height:1.08}
.student-learning-profile-head p{margin:0;color:#607792;line-height:1.48}
.student-learning-profile-kicker{display:inline-flex;padding:7px 10px;border-radius:999px;background:#e4f5ff;color:#0780bf;font-size:11px;font-weight:900;letter-spacing:.08em}
.student-learning-profile-close{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;background:#e8eef5;color:#2b4663;font-size:27px;line-height:1;cursor:pointer}
.student-learning-section{margin-top:18px}
.student-learning-section h2{margin:0 0 10px;font-size:16px;color:#28425f}
.student-learning-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.student-learning-choice-grid.is-level{grid-template-columns:repeat(4,minmax(0,1fr))}
.student-learning-choice{min-height:64px;border:1px solid #d6e2ee;border-radius:17px;background:#f5f9fc;color:#173450;padding:12px 13px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;transition:.16s ease;box-shadow:none}
.student-learning-choice:hover{transform:translateY(-1px);border-color:#9ccff0}
.student-learning-choice.is-selected{border-color:#229ae2;background:#e9f7ff;box-shadow:0 0 0 3px rgba(34,154,226,.12)}
.student-learning-choice-dot{width:16px;height:16px;border-radius:50%;border:2px solid #9bb0c5;background:#fff;flex:0 0 16px}
.student-learning-choice.is-selected .student-learning-choice-dot{border:5px solid #1b9adf}
.student-learning-choice b{font-size:14px;line-height:1.25}
.student-learning-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.student-learning-profile-actions .btn{min-height:48px;border-radius:15px}
.student-learning-profile-card .alert{margin-top:14px}
html[data-theme="dark"] .student-learning-profile-card{background:rgba(17,31,45,.98);color:#f2f7fb;border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .student-learning-profile-head p{color:#a9bbcc}
html[data-theme="dark"] .student-learning-section h2{color:#dce7f1}
html[data-theme="dark"] .student-learning-choice{background:#172c3e;border-color:#304a60;color:#eff7fd}
html[data-theme="dark"] .student-learning-choice.is-selected{background:#143d57;border-color:#42b4f0}
html[data-theme="dark"] .student-learning-profile-close{background:#243b4d;color:#eaf4fb}
@media(max-width:620px){.student-learning-profile-gate{align-items:flex-end;padding:10px}.student-learning-profile-card{border-radius:26px 26px 18px 18px;padding:20px 18px;max-height:calc(100vh - 20px)}.student-learning-choice-grid,.student-learning-choice-grid.is-level{grid-template-columns:1fr 1fr}.student-learning-choice{min-height:58px;padding:10px}.student-learning-profile-actions{grid-template-columns:1fr}.student-learning-profile-actions .student-learning-profile-save{order:0}.student-learning-profile-actions .student-learning-profile-later{order:1}}


/* V39 — Admin Telegram segmented broadcast queue */
.admin-broadcast-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.admin-broadcast-summary>div{background:rgba(255,255,255,.82);border:1px solid #d7e4f0;border-radius:20px;padding:17px 20px;box-shadow:0 10px 30px rgba(26,66,104,.05)}
.admin-broadcast-summary small{display:block;color:#6b809a;font-weight:900;font-size:11px;letter-spacing:.08em}.admin-broadcast-summary b{display:block;margin-top:5px;color:#09254a;font-size:28px}
.admin-broadcast-list{display:grid;gap:14px}.admin-broadcast-card{background:#fff;border:1px solid #d8e4ef;border-radius:20px;padding:18px;box-shadow:0 10px 28px rgba(28,61,95,.045)}
.admin-broadcast-main{display:flex;gap:13px;align-items:flex-start}.admin-broadcast-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#eef8ff;font-size:22px;flex:0 0 auto}.admin-broadcast-main>div:last-child{min-width:0;flex:1}
.admin-broadcast-title{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.admin-broadcast-title b{font-size:17px;color:#09254a}.admin-broadcast-status{padding:4px 8px;border-radius:999px;background:#edf3f8;color:#55708e;font-size:11px;font-weight:900}.admin-broadcast-status.is-sending{background:#e8f7ff;color:#087fb6}.admin-broadcast-status.is-completed{background:#e6f8ec;color:#138447}.admin-broadcast-status.is-paused{background:#fff4d9;color:#9a6800}.admin-broadcast-status.is-cancelled{background:#ffeaea;color:#aa3030}
.admin-broadcast-meta{margin-top:4px;color:#6d8198;font-size:12px}.admin-broadcast-message{margin-top:10px;color:#274461;white-space:pre-wrap;max-height:72px;overflow:hidden;line-height:1.45}
.admin-broadcast-progress{margin-top:15px}.admin-broadcast-progress>div:first-child{display:flex;gap:16px;flex-wrap:wrap;color:#637b94;font-size:12px}.admin-broadcast-progress-bar{height:9px;background:#edf3f8;border-radius:999px;overflow:hidden;margin-top:8px}.admin-broadcast-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#159bd5,#2d74ff);border-radius:inherit;transition:width .25s ease}
.admin-broadcast-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.admin-broadcast-audience-hint{border:1px dashed #ceddea;border-radius:12px;padding:14px;color:#6c8197;background:#f8fbfd}.admin-broadcast-preview-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #d9e6f0;border-radius:14px;background:#f7fbff}.admin-broadcast-preview-box span{color:#49647f;font-size:13px}
@media(max-width:900px){.admin-broadcast-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.admin-broadcast-summary{grid-template-columns:1fr 1fr;gap:9px}.admin-broadcast-summary>div{padding:13px}.admin-broadcast-card{padding:14px}.admin-broadcast-actions .btn{flex:1 1 140px}.admin-broadcast-preview-box{align-items:stretch}.admin-broadcast-preview-box .btn{width:100%}}


/* V40 referral */
.modal:has(.student-referral-modal){width:min(520px,calc(100vw - 28px));max-width:520px;overflow-x:hidden;padding:20px}.student-referral-modal{width:100%;max-width:100%;padding:2px;overflow:hidden}.student-referral-hero{display:flex;gap:12px;align-items:flex-start}.student-referral-hero h2{margin:0 0 6px;font-size:22px;line-height:1.2}.student-referral-hero p{margin:0;color:var(--muted,#66758a);line-height:1.45;font-size:14px}.student-referral-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(21,153,208,.12);font-size:25px;flex:0 0 auto}.student-referral-count{display:flex;align-items:center;gap:14px;margin:18px 0;padding:14px 16px;border:1px solid rgba(120,150,180,.22);border-radius:16px;background:rgba(245,250,255,.72)}.student-referral-count b{font-size:28px;line-height:1;color:#0c2b52}.student-referral-count span{font-size:13px;font-weight:800;line-height:1.35;color:#5f7690}.student-referral-link-field{display:block;font-weight:800}.student-referral-link-field>div{display:flex;gap:8px;margin-top:8px;min-width:0}.student-referral-link-field input{min-width:0;flex:1;border:1px solid #cbdceb;border-radius:13px;padding:12px;background:#f7fbff;color:#234}.student-referral-link-field .btn{flex:0 0 auto}.student-referral-actions{display:flex;gap:10px;margin-top:16px}.student-referral-actions .btn{flex:1;min-width:0}.student-referral-warning{margin-top:18px;padding:13px;border-radius:14px;background:#fff4e5;color:#8a5700}.theme-dark .student-referral-count{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}.theme-dark .student-referral-count b{color:#eef6ff}.theme-dark .student-referral-count span{color:#a8bdd2}.theme-dark .student-referral-link-field input{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:#fff}@media(max-width:430px){.modal:has(.student-referral-modal){width:calc(100vw - 20px);padding:16px 14px}.student-referral-hero{gap:10px}.student-referral-icon{width:44px;height:44px;font-size:23px}.student-referral-hero h2{font-size:20px}.student-referral-count{margin:14px 0;padding:12px}.student-referral-link-field>div{display:grid;grid-template-columns:minmax(0,1fr) auto}.student-referral-link-field input{width:100%;font-size:13px}.student-referral-actions{display:grid;grid-template-columns:1fr 1fr}.student-referral-actions .btn{padding-left:10px;padding-right:10px}}

/* V41 — Telegram channel membership */
.student-channel-modal{width:min(520px,92vw);padding:6px 2px 2px}.student-channel-hero{display:flex;gap:14px;align-items:flex-start}.student-channel-hero h2{margin:0 0 6px;font-size:24px}.student-channel-hero p{margin:0;color:var(--muted,#66758a);line-height:1.5}.student-channel-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(38,151,255,.12);font-size:27px;flex:0 0 auto}.student-channel-status{display:flex;gap:12px;align-items:center;margin:18px 0;padding:14px;border:1px solid #d7e4ef;border-radius:16px;background:#f7fbff}.student-channel-status>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e7eef6;color:#48627e;font-weight:900}.student-channel-status.is-member{background:#eefaf2;border-color:#bfe4ca}.student-channel-status.is-member>span{background:#d9f2e1;color:#118447}.student-channel-status b{display:block;color:#173655}.student-channel-status small{display:block;margin-top:3px;color:#6d8198;line-height:1.4}.student-channel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.student-channel-actions .btn,.student-channel-close{min-height:46px}.student-channel-note{margin-top:14px;color:#74879a;font-size:12px;line-height:1.45}.student-channel-close{width:100%;margin-top:12px}.admin-channel-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border:1px solid #d6e3ef;border-radius:14px;background:#f7fbff}.admin-channel-toggle input{width:22px;height:22px;margin:0}.theme-dark .student-channel-status{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}.theme-dark .student-channel-status.is-member{background:rgba(40,180,95,.09);border-color:rgba(90,210,130,.22)}.theme-dark .student-channel-status b{color:#eff7ff}.theme-dark .admin-channel-toggle{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}@media(max-width:430px){.student-channel-actions{grid-template-columns:1fr}.student-channel-modal{width:100%}}


/* === V45 / ETAP 10B.5: premium Telegram channel invite === */
.student-channel-invite-gate{background:rgba(2,11,21,.74);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.student-channel-invite-card{
  width:min(430px,calc(100% - 20px));overflow:hidden;border-radius:28px;background:#f7f9fc;
  border:1px solid rgba(255,255,255,.8);box-shadow:0 28px 85px rgba(0,0,0,.34);
  transform:translateY(14px) scale(.985);transition:transform .22s ease;
}
.student-channel-invite-gate.is-visible .student-channel-invite-card{transform:translateY(0) scale(1)}
.student-channel-invite-head{
  position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:24px 22px 22px;background:linear-gradient(180deg,#223246 0%,#1a2a3d 100%);color:#fff;
}
.student-channel-invite-avatar-wrap{
  width:92px;height:92px;border-radius:50%;padding:3px;background:rgba(255,255,255,.92);
  box-shadow:0 10px 30px rgba(0,0,0,.28);margin-bottom:15px;
}
.student-channel-invite-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.student-channel-invite-title{max-width:100%;font-size:18px;font-weight:900;line-height:1.3;letter-spacing:.01em;text-wrap:balance}
.student-channel-invite-body{padding:24px 22px 22px;text-align:center;color:#102845}
.student-channel-invite-kicker{
  display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 11px;margin-bottom:12px;
  border-radius:999px;background:#e8f5ff;color:#0879bd;font-size:11px;font-weight:900;letter-spacing:.08em;
}
.student-channel-invite-body p{margin:0 auto;color:#35516c;font-size:16px;font-weight:750;line-height:1.55;max-width:350px;text-wrap:balance}
.student-channel-invite-join{width:100%;min-height:52px;margin-top:22px;border-radius:16px;font-size:15px;font-weight:900;box-shadow:0 8px 20px rgba(27,111,235,.24)}
html[data-theme="dark"] .student-channel-invite-card{background:#f7f9fc;border-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .student-channel-invite-body{color:#102845}
html[data-theme="dark"] .student-channel-invite-body p{color:#35516c}
@media(max-width:520px){
  .student-channel-invite-gate{align-items:center;padding:16px 10px max(16px,env(safe-area-inset-bottom))}
  .student-channel-invite-card{width:min(430px,100%);border-radius:26px}
  .student-channel-invite-head{padding:22px 18px 20px}
  .student-channel-invite-avatar-wrap{width:86px;height:86px;margin-bottom:13px}
  .student-channel-invite-title{font-size:17px}
  .student-channel-invite-body{padding:22px 18px 20px}
  .student-channel-invite-body p{font-size:15px}
}


/* V142 — profile-menu Telegram invite reuses the premium channel card */
.student-channel-profile-invite .student-channel-invite-close{width:100%;min-height:48px;margin-top:10px;border-radius:16px;font-size:15px;font-weight:900}
.student-channel-profile-invite .student-channel-profile-unavailable{margin-top:22px;margin-bottom:0}

/* V46 Premium funnel analytics */
.premium-analytics-modal{min-width:min(760px,92vw)}
.premium-analytics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.premium-analytics-grid>div{border:1px solid rgba(22,52,84,.12);background:rgba(246,250,255,.92);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:5px;min-width:0}
.premium-analytics-grid small,.premium-analytics-revenue span,.premium-analytics-content-row small{color:#68809b;font-weight:700}
.premium-analytics-grid b{font-size:28px;line-height:1;color:#102b4e}
.premium-analytics-grid span{font-size:12px;color:#68809b;font-weight:700}
.premium-analytics-revenue{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-radius:18px;padding:16px 18px;background:linear-gradient(135deg,rgba(255,247,220,.95),rgba(255,255,255,.95));border:1px solid rgba(176,124,23,.15);margin-bottom:18px}
.premium-analytics-revenue b{font-size:24px;color:#102b4e;margin-right:auto}
.premium-analytics-revenue small{color:#7a6741;font-weight:800}
.premium-analytics-top{margin:0 0 18px}
.premium-analytics-top h3{margin:0 0 10px;color:#102b4e}
.premium-analytics-content-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 4px;border-bottom:1px solid rgba(22,52,84,.08)}
.premium-analytics-content-row>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eef5fb;color:#496984;font-weight:900}
.premium-analytics-content-row div{min-width:0;display:flex;flex-direction:column;gap:2px}
.premium-analytics-content-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102b4e}
.premium-analytics-content-row strong{color:#0f5fa8;white-space:nowrap}
@media(max-width:760px){.premium-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-analytics-modal{min-width:0}.premium-analytics-content-row{grid-template-columns:26px minmax(0,1fr)}.premium-analytics-content-row strong{grid-column:2}}


/* v47 Premium preview */
.premium-preview-modal{display:grid;gap:14px;min-width:0}
.premium-preview-kicker{display:inline-flex;width:max-content;max-width:100%;padding:7px 11px;border-radius:999px;background:rgba(14,165,233,.1);color:#0879b8;font-size:12px;font-weight:900;letter-spacing:.08em}
.premium-preview-modal h2{margin:0;font-size:26px;line-height:1.08}
.premium-preview-list{display:grid;gap:8px}
.premium-preview-word{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;border:1px solid rgba(95,125,155,.18);border-radius:15px;background:rgba(241,247,252,.72)}
.premium-preview-word>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(42,124,244,.1);font-size:12px;font-weight:900;color:#2563c9}
.premium-preview-word div{min-width:0;display:grid;gap:2px}
.premium-preview-word b{font-size:17px;overflow-wrap:anywhere}
.premium-preview-word small{color:#60758f;font-size:13px;overflow-wrap:anywhere}
.premium-preview-locked{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-radius:16px;background:linear-gradient(135deg,rgba(250,204,21,.13),rgba(59,130,246,.09));border:1px solid rgba(213,164,25,.2)}
.premium-preview-locked b{font-size:17px}.premium-preview-locked span{font-size:13px;color:#60758f;text-align:right}
.premium-analytics-modal{min-width:0;max-width:100%;overflow-x:hidden}
.premium-analytics-grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;min-width:0}
.premium-analytics-grid>div{min-width:0}
@media(max-width:520px){.premium-preview-modal h2{font-size:22px}.premium-preview-locked{align-items:flex-start;flex-direction:column}.premium-preview-locked span{text-align:left}}


/* v48 — Admin business dashboard */
.admin-business-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
.admin-business-kpi-grid>article{min-width:0;border:1px solid rgba(126,164,203,.28);border-radius:20px;background:rgba(255,255,255,.76);padding:18px;display:flex;flex-direction:column;gap:4px}
.admin-business-kpi-grid small,.admin-business-funnel-grid small,.admin-business-progress-numbers small{font-size:11px;font-weight:900;letter-spacing:.05em;color:#7185a1}
.admin-business-kpi-grid b{font-size:28px;line-height:1.05;color:#0d2c59}
.admin-business-kpi-grid span{font-size:12px;color:#6f829d}
.admin-business-panels{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.7fr);gap:14px;margin-bottom:14px}
.admin-business-funnel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.admin-business-funnel-grid>div{min-width:0;border:1px solid rgba(126,164,203,.22);border-radius:16px;background:rgba(241,247,253,.82);padding:14px;display:flex;flex-direction:column;gap:3px}
.admin-business-funnel-grid b{font-size:20px;color:#102e59;overflow-wrap:anywhere}
.admin-business-funnel-grid span{font-size:11px;color:#188553;font-weight:800}
.admin-business-progress-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.admin-business-progress-numbers>div{border-radius:18px;padding:20px 14px;background:rgba(241,247,253,.82);border:1px solid rgba(126,164,203,.22)}
.admin-business-progress-numbers b{display:block;margin-top:6px;font-size:27px;color:#102e59}
.admin-business-distributions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.admin-business-dist-row{margin:12px 0}
.admin-business-dist-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#324b69}
.admin-business-dist-row b{color:#102e59}
.admin-business-dist-bar{height:7px;background:#e7eff7;border-radius:999px;overflow:hidden;margin-top:6px}
.admin-business-dist-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1598d5,#2e72ff)}
.admin-section-divider{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:#6d819c;font-size:11px;font-weight:900;letter-spacing:.08em}
.admin-section-divider:before,.admin-section-divider:after{content:"";height:1px;background:rgba(126,164,203,.28);flex:1}
@media(max-width:1280px){.admin-business-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-business-funnel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.admin-business-panels,.admin-business-distributions{grid-template-columns:1fr}.admin-business-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.admin-business-kpi-grid{grid-template-columns:1fr 1fr}.admin-business-funnel-grid{grid-template-columns:1fr 1fr}.admin-business-kpi-grid>article{padding:14px}.admin-business-kpi-grid b{font-size:23px}}


/* v49 — Business dashboard period controls + acquisition source */
.admin-business-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 4px;padding:10px 12px;border:1px solid rgba(126,164,203,.22);border-radius:16px;background:rgba(255,255,255,.58)}
.admin-business-toolbar>div:first-child{display:flex;align-items:baseline;gap:9px;min-width:0}.admin-business-toolbar b{font-size:13px;color:#183a65}.admin-business-toolbar .muted{font-size:12px}
.admin-business-periods{display:flex;gap:6px;padding:4px;border-radius:13px;background:rgba(226,237,248,.75)}
.admin-business-periods button{border:0;background:transparent;color:#58718f;font-weight:900;font-size:12px;min-height:34px;padding:7px 13px;border-radius:10px;cursor:pointer}
.admin-business-periods button.active{background:#fff;color:#078cc9;box-shadow:0 2px 8px rgba(54,101,145,.11)}
.admin-business-distributions-four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1280px){.admin-business-distributions-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.admin-business-toolbar{align-items:flex-start;flex-direction:column}.admin-business-periods{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.admin-business-periods button{width:100%}.admin-business-distributions-four{grid-template-columns:1fr}}

/* v143 — Telegram kanal kartasi admin sozlamalari */
.admin-channel-card-editor{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #d6e3ef;border-radius:16px;background:#f7fbff}.admin-channel-avatar-preview{width:84px;height:84px;border-radius:50%;overflow:hidden;flex:0 0 84px;border:2px solid #fff;box-shadow:0 5px 16px rgba(20,55,90,.13);background:#eaf1f7}.admin-channel-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover}.admin-channel-avatar-controls{display:flex;flex-direction:column;gap:7px;min-width:0}.admin-channel-avatar-controls>b{color:#173655}.admin-channel-avatar-controls>small{line-height:1.4}.admin-channel-avatar-controls>div{display:flex;gap:8px;flex-wrap:wrap}.theme-dark .admin-channel-card-editor{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}.theme-dark .admin-channel-avatar-controls>b{color:#eff7ff}.theme-dark .admin-channel-avatar-preview{border-color:rgba(255,255,255,.72);background:rgba(255,255,255,.08)}
@media(max-width:560px){.admin-channel-card-editor{align-items:flex-start}.admin-channel-avatar-preview{width:72px;height:72px;flex-basis:72px}.admin-channel-avatar-controls>div{display:grid;grid-template-columns:1fr}.admin-channel-avatar-controls .btn{width:100%}}

/* === V147 — Profile menu course card === */
.modal:has(.student-course-modal){width:min(720px,calc(100vw - 24px));max-width:720px;max-height:calc(100vh - 24px);overflow:auto;padding:0;border-radius:26px}
.student-course-modal{padding:24px;background:linear-gradient(145deg,rgba(239,249,241,.96),rgba(255,246,237,.98));color:#17253a}
.student-course-head{margin-bottom:18px}.student-course-kicker{font-size:12px;font-weight:950;letter-spacing:.08em;color:#188a72}.student-course-head h2{margin:8px 0 0;font-size:28px;line-height:1.14;letter-spacing:-.03em}
.student-course-features{display:grid;grid-template-columns:1fr 1fr;gap:10px}.student-course-feature{display:flex;align-items:center;gap:11px;min-height:64px;padding:11px 13px;border-radius:17px;border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.72);box-shadow:0 8px 22px rgba(61,84,72,.05)}.student-course-feature-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:rgba(240,248,247,.96);font-size:18px}.student-course-feature b{font-size:13px;line-height:1.35;color:#2a3a38}
.student-course-actions{display:grid;gap:10px;margin-top:20px}.student-course-actions>.btn{width:100%;min-height:50px;border-radius:16px;font-weight:900}.student-course-actions>.btn.primary{background:linear-gradient(135deg,#2aae91,#178472);box-shadow:0 12px 24px rgba(23,132,114,.25)}
html[data-theme="dark"] .student-course-modal{background:linear-gradient(145deg,#152c2b,#2b2823);color:#f4f8f8}html[data-theme="dark"] .student-course-kicker{color:#66d4b9}html[data-theme="dark"] .student-course-feature{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1)}html[data-theme="dark"] .student-course-feature b{color:#e9f1f0}html[data-theme="dark"] .student-course-feature-icon{background:rgba(255,255,255,.08)}
@media(max-width:560px){.modal:has(.student-course-modal){width:calc(100vw - 16px);max-height:calc(100vh - 16px);border-radius:22px}.student-course-modal{padding:20px 16px 16px}.student-course-head{margin-bottom:14px}.student-course-head h2{font-size:24px}.student-course-features{grid-template-columns:1fr;gap:8px}.student-course-feature{min-height:54px;padding:9px 11px}.student-course-feature-icon{width:34px;height:34px;font-size:16px}.student-course-feature b{font-size:12px}.student-course-actions{margin-top:16px}}

/* =========================================================
   v148 — Student course modal visual refresh only
   Match the current student-app milky glass / blue premium UI.
   No course content, CRM or Telegram behavior changes.
   ========================================================= */
body.student-app .modal:has(.student-course-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-course-modal){
  width:min(700px,calc(100vw - 24px));
  max-width:700px;
  padding:0!important;
  overflow:auto;
  border-radius:28px!important;
  border:1px solid rgba(230,246,255,.90)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(220,239,250,.60))!important;
  box-shadow:
    0 26px 60px rgba(0,28,55,.30),
    0 7px 22px rgba(35,132,197,.13),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(132,207,249,.22)!important;
  backdrop-filter:blur(28px) saturate(150%) brightness(1.05)!important;
  -webkit-backdrop-filter:blur(28px) saturate(150%) brightness(1.05)!important;
}
body.student-app .student-course-modal,
html[data-theme="dark"] body.student-app .student-course-modal{
  position:relative;
  overflow:hidden;
  padding:24px!important;
  color:#102342!important;
  background:
    radial-gradient(115% 65% at 0% 0%,rgba(255,255,255,.68),transparent 43%),
    radial-gradient(85% 55% at 100% 100%,rgba(83,181,236,.10),transparent 60%),
    linear-gradient(145deg,rgba(255,255,255,.20),rgba(216,238,251,.10))!important;
}
body.student-app .student-course-modal::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.16),transparent 31%,rgba(43,150,218,.035));
  z-index:0;
}
body.student-app .student-course-modal>*{position:relative;z-index:1}
body.student-app .student-course-head{margin-bottom:18px!important}
body.student-app .student-course-kicker,
html[data-theme="dark"] body.student-app .student-course-kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  color:#0878c9!important;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(213,236,251,.68));
  border:1px solid rgba(202,233,252,.88);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.90),0 5px 13px rgba(40,116,173,.07);
  font-size:11px!important;
  font-weight:950!important;
  letter-spacing:.075em!important;
}
body.student-app .student-course-head h2,
html[data-theme="dark"] body.student-app .student-course-head h2{
  margin:10px 0 0!important;
  color:#102342!important;
  font-size:27px!important;
  line-height:1.16!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}
body.student-app .student-course-features{gap:9px!important}
body.student-app .student-course-feature,
html[data-theme="dark"] body.student-app .student-course-feature{
  min-height:62px!important;
  padding:10px 12px!important;
  border-radius:18px!important;
  border:1px solid rgba(226,242,252,.84)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.56),rgba(226,241,251,.36))!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 6px 16px rgba(17,70,112,.06)!important;
}
body.student-app .student-course-feature-icon,
html[data-theme="dark"] body.student-app .student-course-feature-icon{
  width:40px!important;
  height:40px!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(218,237,251,.88))!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 7px 15px rgba(38,105,159,.12),inset 0 1px 0 #fff!important;
  font-size:18px!important;
}
body.student-app .student-course-feature b,
html[data-theme="dark"] body.student-app .student-course-feature b{
  color:#173152!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.38!important;
}
body.student-app .student-course-actions{gap:10px!important;margin-top:18px!important}
body.student-app .student-course-actions>.btn{
  min-height:50px!important;
  border-radius:16px!important;
  font-size:15px!important;
  font-weight:900!important;
}
body.student-app .student-course-actions>.btn.primary{
  color:#fff!important;
  background:linear-gradient(180deg,#3f8cff,#176bea)!important;
  border:1px solid rgba(128,188,255,.72)!important;
  box-shadow:0 10px 22px rgba(24,103,224,.28),inset 0 1px 0 rgba(255,255,255,.34)!important;
}
body.student-app .student-course-actions>.btn.primary:hover{
  background:linear-gradient(180deg,#4a95ff,#1262dc)!important;
}
body.student-app .student-course-actions>.btn.ghost,
html[data-theme="dark"] body.student-app .student-course-actions>.btn.ghost{
  color:#173152!important;
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(222,239,251,.58))!important;
  border:1px solid rgba(218,239,252,.90)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 6px 14px rgba(22,69,108,.07)!important;
}
@media(max-width:560px){
  body.student-app .modal:has(.student-course-modal),
  html[data-theme="dark"] body.student-app .modal:has(.student-course-modal){
    width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    border-radius:25px!important;
  }
  body.student-app .student-course-modal,
  html[data-theme="dark"] body.student-app .student-course-modal{padding:18px 15px 15px!important}
  body.student-app .student-course-head{margin-bottom:14px!important}
  body.student-app .student-course-head h2,
  html[data-theme="dark"] body.student-app .student-course-head h2{font-size:23px!important}
  body.student-app .student-course-features{grid-template-columns:1fr!important;gap:8px!important}
  body.student-app .student-course-feature,
  html[data-theme="dark"] body.student-app .student-course-feature{min-height:54px!important;padding:8px 10px!important;border-radius:16px!important}
  body.student-app .student-course-feature-icon,
  html[data-theme="dark"] body.student-app .student-course-feature-icon{width:36px!important;height:36px!important;border-radius:12px!important;font-size:16px!important}
  body.student-app .student-course-feature b,
  html[data-theme="dark"] body.student-app .student-course-feature b{font-size:12px!important}
  body.student-app .student-course-actions{margin-top:14px!important}
}

/* =========================================================
   v149 — Student course modal: short-screen internal scroll
   Keep this isolated to the profile course modal only.
   ========================================================= */
body.student-app .modal:has(.student-course-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-course-modal){
  overflow:hidden!important;
}
body.student-app .student-course-modal,
html[data-theme="dark"] body.student-app .student-course-modal{
  max-height:min(760px,calc(100dvh - 140px));
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scroll-padding-bottom:24px;
}
body.student-app .student-course-modal::-webkit-scrollbar{width:5px}
body.student-app .student-course-modal::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(43,119,174,.34);
}
body.student-app .student-course-modal::-webkit-scrollbar-track{background:transparent}

@media(max-width:560px){
  body.student-app .student-course-modal,
  html[data-theme="dark"] body.student-app .student-course-modal{
    max-height:calc(100dvh - 150px)!important;
    padding-bottom:18px!important;
  }
}

@media(max-height:720px){
  body.student-app .student-course-modal,
  html[data-theme="dark"] body.student-app .student-course-modal{
    max-height:calc(100dvh - 128px)!important;
  }
}

/* =========================================================
   v150 — Profile utility modals visual refresh only
   Match the approved student course modal milky-glass / blue premium UI.
   Scope: name, phone, profile-photo and referral modals only.
   ========================================================= */
body.student-app .modal:has(.student-name-modal),
body.student-app .modal:has(.student-profile-modal),
body.student-app .modal:has(.student-referral-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-name-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-profile-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-referral-modal){
  width:min(520px,calc(100vw - 24px))!important;
  max-width:520px!important;
  padding:20px!important;
  border-radius:27px!important;
  border:1px solid rgba(230,246,255,.90)!important;
  color:#102342!important;
  background:
    radial-gradient(115% 75% at 0% 0%,rgba(255,255,255,.62),transparent 46%),
    radial-gradient(90% 65% at 100% 100%,rgba(74,174,235,.10),transparent 62%),
    linear-gradient(145deg,rgba(255,255,255,.74),rgba(219,238,249,.62))!important;
  box-shadow:
    0 26px 60px rgba(0,28,55,.30),
    0 7px 22px rgba(35,132,197,.13),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 0 0 1px rgba(132,207,249,.20)!important;
  backdrop-filter:blur(28px) saturate(150%) brightness(1.05)!important;
  -webkit-backdrop-filter:blur(28px) saturate(150%) brightness(1.05)!important;
  overflow-x:hidden!important;
}

/* Name + phone */
body.student-app .student-name-modal,
html[data-theme="dark"] body.student-app .student-name-modal{
  gap:15px!important;
  color:#102342!important;
}
body.student-app .student-name-modal h2,
html[data-theme="dark"] body.student-app .student-name-modal h2{
  margin:0!important;
  color:#102342!important;
  font-size:25px!important;
  line-height:1.18!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
}
body.student-app .student-name-field,
html[data-theme="dark"] body.student-app .student-name-field{
  gap:8px!important;
  color:#173152!important;
  font-size:14px!important;
  font-weight:850!important;
}
body.student-app .student-name-field input,
html[data-theme="dark"] body.student-app .student-name-field input{
  min-height:50px!important;
  padding:11px 13px!important;
  border-radius:16px!important;
  border:1px solid rgba(211,235,251,.92)!important;
  color:#102342!important;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(231,243,252,.70))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 6px 14px rgba(22,69,108,.07)!important;
}
body.student-app .student-name-field input:focus,
html[data-theme="dark"] body.student-app .student-name-field input:focus{
  border-color:rgba(68,151,255,.80)!important;
  box-shadow:0 0 0 3px rgba(55,139,255,.15),0 8px 18px rgba(22,91,174,.11),inset 0 1px 0 rgba(255,255,255,.98)!important;
}

/* Shared two-button rows in name / phone / profile-photo */
body.student-app .student-name-modal .student-profile-actions,
body.student-app .student-profile-modal .student-profile-actions{
  gap:10px!important;
}
body.student-app .student-name-modal .student-profile-actions>.btn,
body.student-app .student-profile-modal .student-profile-actions>.btn{
  min-height:48px!important;
  border-radius:15px!important;
  font-size:15px!important;
  font-weight:900!important;
}
body.student-app .student-name-modal .student-profile-actions>.btn.primary,
body.student-app .student-profile-modal .student-profile-actions>.btn.primary{
  color:#fff!important;
  background:linear-gradient(180deg,#3f8cff,#176bea)!important;
  border:1px solid rgba(128,188,255,.72)!important;
  box-shadow:0 10px 22px rgba(24,103,224,.27),inset 0 1px 0 rgba(255,255,255,.34)!important;
}
body.student-app .student-name-modal .student-profile-actions>.btn.ghost,
body.student-app .student-profile-modal .student-profile-actions>.btn.ghost,
html[data-theme="dark"] body.student-app .student-name-modal .student-profile-actions>.btn.ghost,
html[data-theme="dark"] body.student-app .student-profile-modal .student-profile-actions>.btn.ghost{
  color:#173152!important;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(222,239,251,.60))!important;
  border:1px solid rgba(218,239,252,.92)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 6px 14px rgba(22,69,108,.07)!important;
}

/* Profile photo */
body.student-app .student-profile-modal,
html[data-theme="dark"] body.student-app .student-profile-modal{
  color:#102342!important;
}
body.student-app .student-profile-modal .student-profile-photo-wrap{margin:1px 0 12px!important}
body.student-app .student-profile-modal .student-profile-photo,
html[data-theme="dark"] body.student-app .student-profile-modal .student-profile-photo{
  width:88px!important;
  height:88px!important;
  border:3px solid rgba(255,255,255,.92)!important;
  background:linear-gradient(145deg,#438cff,#665cff)!important;
  box-shadow:0 13px 28px rgba(32,101,194,.24),inset 0 1px 0 rgba(255,255,255,.32)!important;
}
body.student-app .student-profile-modal h2,
html[data-theme="dark"] body.student-app .student-profile-modal h2{
  margin:0 0 6px!important;
  color:#102342!important;
  font-size:24px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
body.student-app .student-profile-modal p,
html[data-theme="dark"] body.student-app .student-profile-modal p{
  margin:0 0 18px!important;
  color:#5e7898!important;
  font-size:14px!important;
  line-height:1.45!important;
}

/* Referral */
body.student-app .student-referral-modal,
html[data-theme="dark"] body.student-app .student-referral-modal{
  padding:0!important;
  color:#102342!important;
}
body.student-app .student-referral-hero{gap:12px!important;align-items:flex-start!important}
body.student-app .student-referral-icon,
html[data-theme="dark"] body.student-app .student-referral-icon{
  width:48px!important;
  height:48px!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(216,237,251,.86))!important;
  border:1px solid rgba(255,255,255,.94)!important;
  box-shadow:0 7px 15px rgba(38,105,159,.12),inset 0 1px 0 #fff!important;
}
body.student-app .student-referral-hero h2,
html[data-theme="dark"] body.student-app .student-referral-hero h2{
  margin:0 0 5px!important;
  color:#102342!important;
  font-size:23px!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
}
body.student-app .student-referral-hero p,
html[data-theme="dark"] body.student-app .student-referral-hero p{
  color:#5e7898!important;
  font-size:14px!important;
  line-height:1.45!important;
}
body.student-app .student-referral-count,
html[data-theme="dark"] body.student-app .student-referral-count{
  margin:16px 0!important;
  padding:14px 15px!important;
  border-radius:17px!important;
  border:1px solid rgba(218,239,252,.92)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(224,240,251,.45))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94),0 6px 14px rgba(22,69,108,.06)!important;
}
body.student-app .student-referral-count b,
html[data-theme="dark"] body.student-app .student-referral-count b{
  color:#102f59!important;
  font-size:29px!important;
}
body.student-app .student-referral-count span,
html[data-theme="dark"] body.student-app .student-referral-count span{
  color:#5e7898!important;
  font-weight:850!important;
}
body.student-app .student-referral-link-field,
html[data-theme="dark"] body.student-app .student-referral-link-field{
  color:#173152!important;
  font-size:14px!important;
  font-weight:900!important;
}
body.student-app .student-referral-link-field input,
html[data-theme="dark"] body.student-app .student-referral-link-field input{
  min-height:48px!important;
  border-radius:15px!important;
  border:1px solid rgba(211,235,251,.92)!important;
  color:#102342!important;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(231,243,252,.70))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 6px 14px rgba(22,69,108,.07)!important;
}
body.student-app .student-referral-link-field .btn,
body.student-app .student-referral-actions .btn{
  min-height:48px!important;
  border-radius:15px!important;
  font-size:15px!important;
  font-weight:900!important;
}
body.student-app .student-referral-link-field .btn.primary,
body.student-app .student-referral-actions .btn.primary{
  color:#fff!important;
  background:linear-gradient(180deg,#3f8cff,#176bea)!important;
  border:1px solid rgba(128,188,255,.72)!important;
  box-shadow:0 10px 22px rgba(24,103,224,.27),inset 0 1px 0 rgba(255,255,255,.34)!important;
}
body.student-app .student-referral-actions .btn.ghost,
html[data-theme="dark"] body.student-app .student-referral-actions .btn.ghost{
  color:#173152!important;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(222,239,251,.60))!important;
  border:1px solid rgba(218,239,252,.92)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 6px 14px rgba(22,69,108,.07)!important;
}

@media(max-width:560px){
  body.student-app .modal:has(.student-name-modal),
  body.student-app .modal:has(.student-profile-modal),
  body.student-app .modal:has(.student-referral-modal),
  html[data-theme="dark"] body.student-app .modal:has(.student-name-modal),
  html[data-theme="dark"] body.student-app .modal:has(.student-profile-modal),
  html[data-theme="dark"] body.student-app .modal:has(.student-referral-modal){
    width:calc(100vw - 20px)!important;
    padding:17px 15px!important;
    border-radius:24px!important;
  }
  body.student-app .student-name-modal h2,
  html[data-theme="dark"] body.student-app .student-name-modal h2{font-size:23px!important}
  body.student-app .student-profile-modal h2,
  html[data-theme="dark"] body.student-app .student-profile-modal h2{font-size:22px!important}
  body.student-app .student-referral-hero h2,
  html[data-theme="dark"] body.student-app .student-referral-hero h2{font-size:21px!important}
  body.student-app .student-referral-icon,
  html[data-theme="dark"] body.student-app .student-referral-icon{width:44px!important;height:44px!important}
  body.student-app .student-referral-count{margin:14px 0!important;padding:12px!important}
  body.student-app .student-profile-actions,
  body.student-app .student-referral-actions{gap:9px!important}
}

/* =========================================================
   v151 — Course feature cards: soft left-to-right light sweep
   Visual-only. Isolated to the 7 course information cards.
   ========================================================= */
body.student-app .student-course-feature,
html[data-theme="dark"] body.student-app .student-course-feature{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
body.student-app .student-course-feature::after,
html[data-theme="dark"] body.student-app .student-course-feature::after{
  content:'';
  position:absolute;
  z-index:0;
  top:-38%;
  bottom:-38%;
  left:-42%;
  width:32%;
  pointer-events:none;
  opacity:0;
  transform:translate3d(-185%,0,0) skewX(-18deg);
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 24%,
    rgba(232,248,255,.72) 50%,
    rgba(255,255,255,.18) 76%,
    rgba(255,255,255,0) 100%
  );
  filter:blur(1px);
  animation:studentCourseFeatureSweep 4.4s ease-in-out infinite;
  will-change:transform,opacity;
}
body.student-app .student-course-feature > *,
html[data-theme="dark"] body.student-app .student-course-feature > *{
  position:relative;
  z-index:1;
}
body.student-app .student-course-feature:nth-child(2)::after{animation-delay:.10s}
body.student-app .student-course-feature:nth-child(3)::after{animation-delay:.20s}
body.student-app .student-course-feature:nth-child(4)::after{animation-delay:.30s}
body.student-app .student-course-feature:nth-child(5)::after{animation-delay:.40s}
body.student-app .student-course-feature:nth-child(6)::after{animation-delay:.50s}
body.student-app .student-course-feature:nth-child(7)::after{animation-delay:.60s}

@keyframes studentCourseFeatureSweep{
  0%,8%{
    opacity:0;
    transform:translate3d(-185%,0,0) skewX(-18deg);
  }
  13%{opacity:.82}
  31%{
    opacity:.68;
    transform:translate3d(455%,0,0) skewX(-18deg);
  }
  36%,100%{
    opacity:0;
    transform:translate3d(455%,0,0) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce){
  body.student-app .student-course-feature::after,
  html[data-theme="dark"] body.student-app .student-course-feature::after{
    animation:none!important;
    opacity:0!important;
  }
}

/* v152 — per-topic Premium free-preview controls (admin only) */
.topic-premium-preview-settings{display:grid;gap:10px;padding:14px;border:1px solid #cddff0;border-radius:16px;background:linear-gradient(145deg,#f8fbff,#eef6fd);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.topic-premium-preview-settings[hidden]{display:none!important}
.topic-premium-preview-head{display:grid;gap:3px}.topic-premium-preview-head b{color:#17324f;font-size:14px}.topic-premium-preview-head small{color:#6b7f96;font-weight:700;font-size:12px}
.topic-premium-preview-option{display:grid!important;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:9px!important;padding:10px 12px;border:1px solid #d9e6f2;border-radius:13px;background:rgba(255,255,255,.72);color:#334b66!important}
.topic-premium-preview-option input[type="radio"]{width:17px!important;height:17px;margin:0;accent-color:var(--blue)}
.topic-premium-preview-option input[type="number"]{justify-self:end;max-width:110px;min-height:40px;padding:8px 10px!important;background:#fff}
.topic-premium-preview-option small{grid-column:3;color:#71849a;font-size:11px;line-height:1.4}
@media(max-width:600px){.topic-premium-preview-option{grid-template-columns:auto 1fr}.topic-premium-preview-option input[type="number"]{grid-column:1/-1;justify-self:stretch;max-width:none}.topic-premium-preview-option small{grid-column:1/-1}}

/* v153 — Premium modal viewport / scroll safety (Telegram iOS) */
body.student-app .modal-bg:has(.premium-preview-modal),
body.student-app .modal-bg:has(.premium-locked-modal),
body.student-app .modal-bg:has(.premium-flow-modal){
  place-items:start center;
  align-items:start;
  justify-items:center;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-top:max(12px,env(safe-area-inset-top));
  padding-bottom:max(12px,env(safe-area-inset-bottom));
}
body.student-app .modal:has(.premium-preview-modal),
body.student-app .modal:has(.premium-locked-modal),
body.student-app .modal:has(.premium-flow-modal){
  width:min(620px,100%);
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));
  margin:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;
}
@media(max-width:600px){
  body.student-app .modal-bg:has(.premium-preview-modal),
  body.student-app .modal-bg:has(.premium-locked-modal),
  body.student-app .modal-bg:has(.premium-flow-modal){
    padding-left:10px;
    padding-right:10px;
    padding-top:max(10px,env(safe-area-inset-top));
    padding-bottom:max(10px,env(safe-area-inset-bottom));
  }
  body.student-app .modal:has(.premium-preview-modal),
  body.student-app .modal:has(.premium-locked-modal),
  body.student-app .modal:has(.premium-flow-modal){
    width:100%;
    max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));
  }
}


/* v154 — Premium modal explicit viewport anchoring (Telegram iOS/WebView)
   Maxsus class JS orqali qo‘yiladi; :has() qo‘llab-quvvatlanishiga bog‘liq emas. */
body.student-app .modal-bg.premium-modal-bg{
  position:fixed!important;
  inset:0!important;
  z-index:20000!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  place-items:unset!important;
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
}
body.student-app .modal.premium-modal-shell{
  position:relative!important;
  flex:0 0 auto!important;
  align-self:center!important;
  width:min(620px,100%)!important;
  max-width:620px!important;
  max-height:none!important;
  min-height:0!important;
  margin:0!important;
  overflow:visible!important;
  transform:none!important;
}
/* Uzun Premium tarif/preview oynasini overlayning o‘zi scroll qiladi. */
body.student-app .modal.premium-modal-shell>.premium-preview-modal,
body.student-app .modal.premium-modal-shell>.premium-locked-modal,
body.student-app .modal.premium-modal-shell>.premium-flow-modal{
  min-height:0!important;
  margin:0!important;
}
@media(max-width:600px){
  body.student-app .modal-bg.premium-modal-bg{
    padding-top:max(8px,env(safe-area-inset-top))!important;
    padding-right:8px!important;
    padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
    padding-left:8px!important;
  }
  body.student-app .modal.premium-modal-shell{
    width:100%!important;
    padding:18px 16px!important;
    border-radius:22px!important;
  }
}

/* =========================================================
   v155 — Dark mode coherence, stage 1 (visual-only)
   Scope: global student dark palette, header/nav, dashboard,
   hierarchy support surfaces, study-mode cards, Flashcard.
   No geometry/DOM/JS/API/DB/interaction changes.
   ========================================================= */
html[data-theme="dark"] body.student-app{
  --student-bg:#06151f;
  --student-bg-2:#082330;
  --student-surface:rgba(8,37,50,.78);
  --student-surface-strong:rgba(7,31,44,.94);
  --student-surface-soft:rgba(10,45,59,.72);
  --student-text:#f5fbff;
  --student-muted:#a5bdc9;
  --student-line:rgba(91,211,222,.22);
  --student-blue:#38b9df;
  --student-blue-2:#1f93bd;
  --student-purple:#32c7cf;
  --student-cyan:#2ce0df;
  --student-green:#45dca8;
  --student-shadow-soft:0 9px 22px rgba(0,8,15,.30),inset 0 1px 0 rgba(255,255,255,.055);
  --student-shadow-card:0 16px 36px rgba(0,7,14,.34),inset 0 1px 0 rgba(255,255,255,.065);
  --student-shadow-float:0 22px 50px rgba(0,7,14,.44),0 0 0 1px rgba(65,215,224,.06),inset 0 1px 0 rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 8% 2%,rgba(27,151,181,.15),transparent 31%),
    radial-gradient(circle at 94% 12%,rgba(35,210,204,.10),transparent 29%),
    radial-gradient(circle at 50% 92%,rgba(10,106,137,.10),transparent 34%),
    linear-gradient(145deg,var(--student-bg),var(--student-bg-2));
}

/* Header, profile trigger and navigation: one navy/teal glass language. */
html[data-theme="dark"] body.student-app .student-topbar{
  background:linear-gradient(180deg,rgba(12,29,40,.96),rgba(8,23,34,.94))!important;
  border-bottom-color:rgba(80,210,219,.16)!important;
  box-shadow:0 10px 30px rgba(0,7,13,.28)!important;
}
html[data-theme="dark"] body.student-app .student-avatar{
  background:linear-gradient(145deg,#269fd0,#34d7d0)!important;
  border-color:rgba(141,241,241,.36)!important;
  box-shadow:0 8px 20px rgba(0,10,18,.38),0 0 0 1px rgba(60,217,224,.16),0 0 18px rgba(41,199,209,.12)!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 .words-direction-btn.active{
  background:linear-gradient(145deg,rgba(12,61,73,.94),rgba(7,34,48,.96))!important;
  border-color:rgba(74,211,221,.33)!important;
  color:#f4fdff!important;
  box-shadow:0 8px 18px rgba(0,8,15,.28),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .student-header-nav-btn:hover,
html[data-theme="dark"] body.student-app .btn.ghost:hover{
  border-color:rgba(81,229,235,.50)!important;
  background:linear-gradient(145deg,rgba(14,72,84,.98),rgba(8,41,55,.98))!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-launch{
  background:linear-gradient(145deg,rgba(16,75,91,.96),rgba(8,40,55,.96))!important;
  border-color:rgba(64,211,224,.32)!important;
  box-shadow:0 8px 20px rgba(0,8,15,.30),inset 0 1px 0 rgba(255,255,255,.07)!important;
}

/* Bottom navigation / sidebar on mobile. */
@media(max-width:900px){
  html[data-theme="dark"] body.student-app:not(.student-nav-hidden) .sidebar,
  html[data-theme="dark"] body.student-app .sidebar{
    background:linear-gradient(180deg,rgba(7,43,52,.96),rgba(5,29,40,.98))!important;
    border-color:rgba(65,208,219,.24)!important;
    box-shadow:0 -12px 30px rgba(0,7,14,.32),inset 0 1px 0 rgba(255,255,255,.045)!important;
  }
  html[data-theme="dark"] body.student-app:not(.student-nav-hidden) .sidebar .nav,
  html[data-theme="dark"] body.student-app .sidebar .nav{color:#9fbac6!important}
  html[data-theme="dark"] body.student-app:not(.student-nav-hidden) .sidebar .nav.active,
  html[data-theme="dark"] body.student-app .sidebar .nav.active{
    background:linear-gradient(145deg,rgba(220,247,249,.94),rgba(181,226,232,.90))!important;
    color:#083b4d!important;
    border-color:rgba(126,234,238,.70)!important;
    box-shadow:0 7px 16px rgba(0,10,16,.24),inset 0 1px 0 rgba(255,255,255,.76)!important;
  }
}

/* Dashboard cards: keep semantic rails, unify only the dark glass body. */
html[data-theme="dark"] body.student-app .plan-capsule,
html[data-theme="dark"] body.student-app .daily-plan-date,
html[data-theme="dark"] body.student-app .card,
html[data-theme="dark"] body.student-app .stat{
  background:
    radial-gradient(circle at 92% 8%,rgba(48,210,215,.07),transparent 30%),
    linear-gradient(145deg,rgba(9,48,61,.94),rgba(6,30,43,.96))!important;
  border-color:rgba(74,199,210,.23)!important;
  color:#f5fbff!important;
  box-shadow:0 14px 30px rgba(0,7,14,.30),inset 0 1px 0 rgba(255,255,255,.06)!important;
}

/* Study-mode cards: preserve individual identity, remove loud violet surfaces. */
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card{
  --mode-a:rgba(9,49,62,.98);
  --mode-b:rgba(5,29,42,.99);
  border-color:color-mix(in srgb,var(--mode-accent) 26%,rgba(91,211,222,.17))!important;
  background:
    radial-gradient(ellipse at 90% 15%,color-mix(in srgb,var(--mode-accent) 10%,transparent) 0%,transparent 38%),
    linear-gradient(118deg,rgba(255,255,255,.055),transparent 32%,rgba(255,255,255,.028) 70%),
    linear-gradient(145deg,var(--mode-a),color-mix(in srgb,var(--mode-accent) 8%,var(--mode-b)))!important;
  box-shadow:0 11px 27px rgba(0,8,14,.28),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+1){--mode-accent:#32b6e4}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+2){--mode-accent:#42d4ad}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+3){--mode-accent:#4fcad0}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+4){--mode-accent:#55b9d4}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+5){--mode-accent:#39c9bb}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card:nth-child(6n+6){--mode-accent:#49aee0}
html[data-theme="dark"] body.student-app .study-mode-grid > .mode-visual-card .mode-card-icon{
  background:linear-gradient(145deg,rgba(17,72,83,.96),rgba(8,39,53,.98))!important;
  border-color:color-mix(in srgb,var(--mode-accent) 34%,rgba(255,255,255,.10))!important;
  box-shadow:0 8px 18px rgba(0,8,14,.28),0 0 15px color-mix(in srgb,var(--mode-accent) 10%,transparent),inset 0 1px 0 rgba(255,255,255,.07)!important;
}

/* Flashcard — approved navy/teal concept, layout untouched. */
html[data-theme="dark"] body.student-app .flip-card{
  filter:drop-shadow(0 16px 25px rgba(0,7,13,.30))!important;
}
html[data-theme="dark"] body.student-app .flip-card-face,
html[data-theme="dark"] body.student-app .flip-card-front,
html[data-theme="dark"] body.student-app .flip-card-back{
  border-color:rgba(55,222,226,.46)!important;
  background:
    radial-gradient(circle at 88% 8%,rgba(41,220,219,.10),transparent 29%),
    radial-gradient(circle at 14% 88%,rgba(29,139,169,.10),transparent 34%),
    linear-gradient(150deg,rgba(8,61,78,.98) 0%,rgba(5,34,48,.99) 58%,rgba(4,27,40,.99) 100%)!important;
  box-shadow:0 22px 44px rgba(0,7,13,.46),0 0 26px rgba(36,210,215,.09),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .flip-card-face .ko{
  color:#f4fdff!important;
  text-shadow:0 0 18px rgba(43,215,220,.13)!important;
}
html[data-theme="dark"] body.student-app .flip-card-face .uz{color:#e8f8fb!important}
html[data-theme="dark"] body.student-app .flash-nav{
  background:linear-gradient(145deg,rgba(13,74,87,.94),rgba(6,39,53,.96))!important;
  border-color:rgba(55,222,226,.44)!important;
  color:#effeff!important;
  box-shadow:0 9px 20px rgba(0,8,14,.34),0 0 15px rgba(37,210,215,.09),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .flash-nav:hover{
  background:linear-gradient(145deg,rgba(17,91,101,.98),rgba(7,49,62,.98))!important;
  border-color:rgba(75,237,238,.62)!important;
}
html[data-theme="dark"] body.student-app .flash-settings-btn,
html[data-theme="dark"] body.student-app .flash-autoplay-btn{
  background:linear-gradient(145deg,rgba(14,73,84,.96),rgba(6,39,53,.97))!important;
  border-color:rgba(58,214,224,.38)!important;
  color:#eefdff!important;
  box-shadow:0 8px 19px rgba(0,8,14,.31),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .flash-autoplay-btn.is-playing,
html[data-theme="dark"] body.student-app .flash-settings-btn[aria-expanded="true"]{
  background:linear-gradient(145deg,rgba(14,100,105,.98),rgba(6,55,67,.98))!important;
  border-color:rgba(70,235,228,.62)!important;
  color:#cffff8!important;
  box-shadow:0 0 0 3px rgba(42,217,214,.08),0 9px 22px rgba(0,8,14,.34)!important;
}
html[data-theme="dark"] body.student-app .flashcard-direction-label{color:#a8c3cd!important}
html[data-theme="dark"] body.student-app .flash-settings-menu{
  background:linear-gradient(145deg,rgba(8,52,65,.98),rgba(5,31,44,.99))!important;
  border-color:rgba(66,207,219,.30)!important;
}

/* Primary controls in this dark visual family: blue -> cyan/teal, no violet. */
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,#238ec5 0%,#27c5ca 100%)!important;
  border-color:rgba(129,239,241,.34)!important;
  box-shadow:0 10px 24px rgba(0,85,110,.24),inset 0 1px 0 rgba(255,255,255,.24)!important;
}

/* =========================================================
   v156 — Dark mode coherence, stage 2 (visual-only)
   Scope: Words, Multiple Choice, Matching, Typing, Anagram,
   exercise feedback/result surfaces. No behavior changes.
   ========================================================= */

/* Shared practice shells */
html[data-theme="dark"] body.student-app .quiz-card,
html[data-theme="dark"] body.student-app .typing-card,
html[data-theme="dark"] body.student-app .anagram-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{
  background:
    radial-gradient(circle at 92% 8%,rgba(47,213,218,.065),transparent 30%),
    linear-gradient(145deg,rgba(8,48,61,.96),rgba(5,29,42,.98))!important;
  border-color:rgba(72,205,216,.24)!important;
  color:#f5fbff!important;
  box-shadow:0 14px 30px rgba(0,7,14,.31),inset 0 1px 0 rgba(255,255,255,.06)!important;
}

/* Oddiy so'zlar */
html[data-theme="dark"] body.student-app .words-count b,
html[data-theme="dark"] body.student-app .word-primary,
html[data-theme="dark"] body.student-app .word-primary.ko{color:#f5fbff!important}
html[data-theme="dark"] body.student-app .word-primary.uz{color:#71dce3!important}
html[data-theme="dark"] body.student-app .word-secondary,
html[data-theme="dark"] body.student-app .words-count span{color:#a8c3cd!important}
html[data-theme="dark"] body.student-app .word-entry-number{
  background:linear-gradient(145deg,rgba(20,100,116,.95),rgba(8,58,74,.98))!important;
  color:#d9feff!important;
  border:1px solid rgba(72,220,226,.30)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
html[data-theme="dark"] body.student-app .word-type{
  background:rgba(28,127,143,.18)!important;
  color:#a9d4db!important;
  border-color:rgba(72,205,216,.16)!important;
}
html[data-theme="dark"] body.student-app .words-search{
  background:linear-gradient(145deg,rgba(8,48,61,.95),rgba(5,29,42,.97))!important;
}
html[data-theme="dark"] body.student-app .words-search:focus-within{
  border-color:rgba(66,220,228,.52)!important;
  box-shadow:0 0 0 3px rgba(44,224,223,.08),0 10px 24px rgba(0,8,14,.28)!important;
}
html[data-theme="dark"] body.student-app .words-search input{color:#f4fcff!important}
html[data-theme="dark"] body.student-app .words-search input::placeholder{color:#7896a2!important}
html[data-theme="dark"] body.student-app .words-direction{
  background:rgba(5,29,42,.72)!important;
  border-color:rgba(72,205,216,.18)!important;
}
html[data-theme="dark"] body.student-app .words-direction-btn{color:#93adb8!important}
html[data-theme="dark"] body.student-app .words-direction-btn.active{
  background:linear-gradient(145deg,rgba(16,83,96,.98),rgba(7,46,60,.99))!important;
  color:#eaffff!important;
  border-color:rgba(64,220,226,.35)!important;
  box-shadow:0 7px 16px rgba(0,8,14,.27),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .words-empty{
  background:rgba(6,35,48,.84)!important;
  border-color:rgba(76,209,219,.25)!important;
  color:#9fb9c4!important;
}
html[data-theme="dark"] body.student-app .words-empty b{color:#f5fbff!important}

/* Varyantli test */
html[data-theme="dark"] body.student-app .quiz-counter,
html[data-theme="dark"] body.student-app .quiz-direction-label{color:#9fbac6!important}
html[data-theme="dark"] body.student-app .quiz-question{color:#f7fdff!important}
html[data-theme="dark"] body.student-app .quiz-option,
html[data-theme="dark"] body.student-app .option{
  background:linear-gradient(145deg,rgba(10,58,72,.95),rgba(6,35,49,.98))!important;
  border-color:rgba(76,203,214,.23)!important;
  color:#f5fbff!important;
  box-shadow:0 9px 21px rgba(0,7,14,.28),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .quiz-option:hover,
html[data-theme="dark"] body.student-app .option:hover{
  background:linear-gradient(145deg,rgba(13,76,88,.98),rgba(7,45,58,.99))!important;
  border-color:rgba(76,228,232,.45)!important;
}
html[data-theme="dark"] body.student-app .quiz-option-mark{
  background:rgba(6,37,50,.96)!important;
  border-color:rgba(88,205,215,.26)!important;
}
html[data-theme="dark"] body.student-app .quiz-option.is-correct{
  background:linear-gradient(145deg,rgba(9,72,64,.97),rgba(5,45,43,.99))!important;
  border-color:rgba(69,220,168,.58)!important;
  color:#eafff8!important;
  box-shadow:0 9px 22px rgba(0,16,12,.30),0 0 0 1px rgba(69,220,168,.07)!important;
}
html[data-theme="dark"] body.student-app .quiz-option.is-wrong{
  background:linear-gradient(145deg,rgba(78,31,44,.96),rgba(49,20,31,.99))!important;
  border-color:rgba(244,118,142,.54)!important;
  color:#fff1f4!important;
  box-shadow:0 9px 22px rgba(26,3,10,.31),0 0 0 1px rgba(244,118,142,.06)!important;
}
html[data-theme="dark"] body.student-app .quiz-feedback,
html[data-theme="dark"] body.student-app .quiz-feedback-compact{
  background:rgba(8,48,61,.94)!important;
  border-color:rgba(73,205,216,.23)!important;
  color:#eafcff!important;
}
html[data-theme="dark"] body.student-app .quiz-feedback.success,
html[data-theme="dark"] body.student-app .quiz-feedback-compact.success{
  background:rgba(7,68,58,.94)!important;
  border-color:rgba(69,220,168,.42)!important;
  color:#dffcf2!important;
}
html[data-theme="dark"] body.student-app .quiz-feedback.error,
html[data-theme="dark"] body.student-app .quiz-feedback-compact.error{
  background:rgba(73,29,41,.95)!important;
  border-color:rgba(244,118,142,.42)!important;
  color:#ffe8ee!important;
}
html[data-theme="dark"] body.student-app .quiz-feedback-icon{
  background:rgba(4,31,43,.68)!important;
  border-color:rgba(255,255,255,.08)!important;
}

/* Moslashtirish */
html[data-theme="dark"] body.student-app .matching-stage-info,
html[data-theme="dark"] body.student-app .matching-counter,
html[data-theme="dark"] body.student-app .matching-message{
  background:linear-gradient(145deg,rgba(9,54,68,.95),rgba(5,31,44,.98))!important;
  border-color:rgba(74,205,216,.23)!important;
  color:#eafcff!important;
  box-shadow:0 8px 18px rgba(0,7,14,.26),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .matching-stage-info span,
html[data-theme="dark"] body.student-app .matching-column-title,
html[data-theme="dark"] body.student-app .matching-header p{color:#9fb9c4!important}
html[data-theme="dark"] body.student-app .matching-card{
  background:linear-gradient(145deg,rgba(10,59,73,.96),rgba(5,34,48,.99))!important;
  border-color:rgba(75,205,216,.24)!important;
  color:#f5fbff!important;
  box-shadow:0 9px 20px rgba(0,7,14,.28),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .matching-card:hover{
  background:linear-gradient(145deg,rgba(14,79,91,.98),rgba(7,46,59,.99))!important;
  border-color:rgba(75,229,232,.47)!important;
}
html[data-theme="dark"] body.student-app .matching-card.selected{
  background:linear-gradient(145deg,rgba(13,90,103,.99),rgba(7,53,67,.99))!important;
  border-color:#35d5dd!important;
  box-shadow:0 0 0 3px rgba(53,213,221,.11),0 9px 21px rgba(0,7,14,.29)!important;
}
html[data-theme="dark"] body.student-app .matching-card.matched,
html[data-theme="dark"] body.student-app .matching-message.success{
  background:rgba(7,69,58,.94)!important;
  border-color:rgba(69,220,168,.46)!important;
  color:#dffcf2!important;
}
html[data-theme="dark"] body.student-app .matching-card.wrong,
html[data-theme="dark"] body.student-app .matching-message.error{
  background:rgba(74,29,42,.95)!important;
  border-color:rgba(244,118,142,.45)!important;
  color:#ffe8ee!important;
}
html[data-theme="dark"] body.student-app .matching-stage-complete{
  background:linear-gradient(145deg,rgba(9,69,77,.96),rgba(5,42,52,.98))!important;
  border-color:rgba(65,218,220,.30)!important;
  color:#effeff!important;
  box-shadow:0 9px 21px rgba(0,7,14,.27),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .matching-stage-complete span{color:#a8c4ce!important}

/* Yozib javob */
html[data-theme="dark"] body.student-app .typing-prompt,
html[data-theme="dark"] body.student-app .typing-counter{color:#a6c0cb!important}
html[data-theme="dark"] body.student-app .typing-question{color:#f7fdff!important}
html[data-theme="dark"] body.student-app .typing-form label{color:#b9d0d8!important}
html[data-theme="dark"] body.student-app .typing-form input{
  background:linear-gradient(145deg,rgba(10,59,72,.96),rgba(5,34,48,.99))!important;
  border-color:rgba(74,205,216,.26)!important;
  color:#f5fbff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .typing-form input:focus{
  border-color:rgba(62,224,229,.56)!important;
  box-shadow:0 0 0 3px rgba(44,224,223,.09),0 9px 20px rgba(0,7,14,.26)!important;
}
html[data-theme="dark"] body.student-app .typing-syllable-box{
  background:linear-gradient(145deg,rgba(12,66,79,.96),rgba(6,39,53,.98))!important;
  border-color:rgba(75,211,220,.28)!important;
  color:#f3fdff!important;
  box-shadow:0 7px 16px rgba(0,7,14,.24),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .typing-result{
  background:rgba(8,48,61,.94)!important;
  border-color:rgba(73,205,216,.23)!important;
  color:#eafcff!important;
}
html[data-theme="dark"] body.student-app .typing-result>span{background:rgba(4,31,43,.72)!important}
html[data-theme="dark"] body.student-app .typing-result.success{
  background:rgba(7,69,58,.94)!important;
  border-color:rgba(69,220,168,.46)!important;
  color:#dffcf2!important;
}
html[data-theme="dark"] body.student-app .typing-result.near{
  background:rgba(78,61,21,.92)!important;
  border-color:rgba(244,194,71,.48)!important;
  color:#fff3c5!important;
}
html[data-theme="dark"] body.student-app .typing-result.danger{
  background:rgba(74,29,42,.95)!important;
  border-color:rgba(244,118,142,.45)!important;
  color:#ffe8ee!important;
}

/* Anagramma */
html[data-theme="dark"] body.student-app .anagram-card{
  background:
    radial-gradient(circle at 90% 8%,rgba(48,212,217,.07),transparent 30%),
    linear-gradient(145deg,rgba(8,49,62,.97),rgba(5,29,42,.99))!important;
  border-color:rgba(74,205,216,.24)!important;
  color:#f5fbff!important;
  box-shadow:0 15px 32px rgba(0,7,14,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
html[data-theme="dark"] body.student-app .anagram-top,
html[data-theme="dark"] body.student-app .anagram-hint{color:#9fb9c4!important}
html[data-theme="dark"] body.student-app .anagram-meaning{color:#f6fdff!important}
html[data-theme="dark"] body.student-app .anagram-answer{
  background:rgba(5,34,48,.73)!important;
  border-color:rgba(75,205,216,.31)!important;
  color:#effeff!important;
}
html[data-theme="dark"] body.student-app .anagram-placeholder{color:#7898a4!important}
html[data-theme="dark"] body.student-app .anagram-piece,
html[data-theme="dark"] body.student-app .anagram-selected-piece{
  background:linear-gradient(145deg,rgba(12,67,80,.97),rgba(6,39,53,.99))!important;
  border-color:rgba(76,213,222,.31)!important;
  color:#f4fdff!important;
  box-shadow:0 8px 18px rgba(0,7,14,.28),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .anagram-piece:hover,
html[data-theme="dark"] body.student-app .anagram-selected-piece:hover{
  background:linear-gradient(145deg,rgba(15,84,96,.99),rgba(7,48,61,.99))!important;
  border-color:rgba(77,232,234,.49)!important;
}
html[data-theme="dark"] body.student-app .anagram-answer.is-correct,
html[data-theme="dark"] body.student-app .anagram-feedback.success{
  background:rgba(7,69,58,.94)!important;
  border-color:rgba(69,220,168,.46)!important;
  color:#dffcf2!important;
}
html[data-theme="dark"] body.student-app .anagram-answer.is-wrong,
html[data-theme="dark"] body.student-app .anagram-feedback.error{
  background:rgba(74,29,42,.95)!important;
  border-color:rgba(244,118,142,.45)!important;
  color:#ffe8ee!important;
}

/* Exercise result/summary surfaces that share the generic student cards. */
html[data-theme="dark"] body.student-app .result-title-with-icon,
html[data-theme="dark"] body.student-app .results-stats .stat{
  color:#f5fbff!important;
}
html[data-theme="dark"] body.student-app .results-stats .stat{
  background:linear-gradient(145deg,rgba(9,54,68,.95),rgba(5,31,44,.98))!important;
  border-color:rgba(74,205,216,.22)!important;
  box-shadow:0 10px 24px rgba(0,7,14,.28),inset 0 1px 0 rgba(255,255,255,.055)!important;
}

/* Avoid accidental violet accents inside stage-2 practice pages. */
html[data-theme="dark"] body.student-app .quiz-wrap .progress i,
html[data-theme="dark"] body.student-app .matching-wrap .progress i,
html[data-theme="dark"] body.student-app .typing-wrap .progress i,
html[data-theme="dark"] body.student-app .anagram-wrap .progress i,
html[data-theme="dark"] body.student-app .words-wrap .progress i{
  background:linear-gradient(90deg,#239bc7,#2ad2cf)!important;
}

/* =========================================================
   v157 — Dark mode stage 3: student utility modals / channel /
   course / campaign-onboarding / dictionary visual unification.
   VISUAL ONLY. No JS/API/DB/flow changes.
   ========================================================= */

/* Shared dark glass for profile utility modals created in v150. */
html[data-theme="dark"] body.student-app .modal:has(.student-name-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-profile-modal),
html[data-theme="dark"] body.student-app .modal:has(.student-referral-modal){
  color:#eefbff!important;
  border-color:rgba(91,218,226,.24)!important;
  background:
    radial-gradient(110% 75% at 0% 0%,rgba(47,205,213,.10),transparent 46%),
    radial-gradient(90% 70% at 100% 100%,rgba(37,145,196,.08),transparent 62%),
    linear-gradient(145deg,rgba(7,48,61,.97),rgba(4,29,42,.985))!important;
  box-shadow:0 28px 64px rgba(0,7,14,.52),inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(65,207,216,.055)!important;
  backdrop-filter:blur(28px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(135%)!important;
}
html[data-theme="dark"] body.student-app .student-name-modal,
html[data-theme="dark"] body.student-app .student-profile-modal,
html[data-theme="dark"] body.student-app .student-referral-modal{color:#eefbff!important}
html[data-theme="dark"] body.student-app .student-name-modal h2,
html[data-theme="dark"] body.student-app .student-profile-modal h2,
html[data-theme="dark"] body.student-app .student-referral-hero h2{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .student-name-field,
html[data-theme="dark"] body.student-app .student-referral-link-field{color:#c8e1e8!important}
html[data-theme="dark"] body.student-app .student-profile-modal p,
html[data-theme="dark"] body.student-app .student-referral-hero p,
html[data-theme="dark"] body.student-app .student-referral-count span{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .student-name-field input,
html[data-theme="dark"] body.student-app .student-referral-link-field input{
  color:#f2fcff!important;
  background:linear-gradient(145deg,rgba(10,62,75,.96),rgba(5,36,49,.985))!important;
  border-color:rgba(78,207,217,.25)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 16px rgba(0,7,14,.25)!important;
}
html[data-theme="dark"] body.student-app .student-name-field input:focus,
html[data-theme="dark"] body.student-app .student-referral-link-field input:focus{
  border-color:rgba(61,225,229,.55)!important;
  box-shadow:0 0 0 3px rgba(41,211,217,.10),0 9px 20px rgba(0,7,14,.28)!important;
}
html[data-theme="dark"] body.student-app .student-name-modal .student-profile-actions>.btn.primary,
html[data-theme="dark"] body.student-app .student-profile-modal .student-profile-actions>.btn.primary,
html[data-theme="dark"] body.student-app .student-referral-link-field .btn.primary,
html[data-theme="dark"] body.student-app .student-referral-actions .btn.primary{
  background:linear-gradient(135deg,#228fc0,#22c8c9)!important;
  border-color:rgba(97,231,231,.36)!important;
  box-shadow:0 10px 22px rgba(0,117,139,.25),inset 0 1px 0 rgba(255,255,255,.20)!important;
}
html[data-theme="dark"] body.student-app .student-name-modal .student-profile-actions>.btn.ghost,
html[data-theme="dark"] body.student-app .student-profile-modal .student-profile-actions>.btn.ghost,
html[data-theme="dark"] body.student-app .student-referral-actions .btn.ghost{
  color:#d8f0f5!important;
  background:linear-gradient(145deg,rgba(10,61,74,.86),rgba(5,35,48,.92))!important;
  border-color:rgba(75,205,215,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 16px rgba(0,7,14,.24)!important;
}
html[data-theme="dark"] body.student-app .student-profile-modal .student-profile-photo{
  border-color:rgba(135,242,239,.60)!important;
  background:linear-gradient(145deg,#167ea8,#20c5c4)!important;
  box-shadow:0 13px 28px rgba(0,108,129,.28),0 0 20px rgba(37,211,208,.08)!important;
}
html[data-theme="dark"] body.student-app .student-referral-icon{
  background:linear-gradient(145deg,rgba(13,80,92,.96),rgba(6,45,58,.98))!important;
  border-color:rgba(77,211,218,.24)!important;
  box-shadow:0 7px 16px rgba(0,7,14,.25),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .student-referral-count{
  background:linear-gradient(145deg,rgba(9,57,70,.90),rgba(5,34,47,.95))!important;
  border-color:rgba(74,205,216,.23)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 7px 16px rgba(0,7,14,.23)!important;
}
html[data-theme="dark"] body.student-app .student-referral-count b{color:#eafcff!important}

/* Telegram invite: remove the light body in dark mode. */
html[data-theme="dark"] body.student-app .student-channel-invite-gate{background:rgba(1,10,18,.80)!important}
html[data-theme="dark"] body.student-app .student-channel-invite-card{
  background:linear-gradient(145deg,rgba(7,47,60,.985),rgba(4,28,41,.995))!important;
  border-color:rgba(78,210,218,.22)!important;
  box-shadow:0 28px 78px rgba(0,5,12,.56),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-channel-invite-head{
  background:
    radial-gradient(circle at 50% 0%,rgba(43,210,211,.13),transparent 56%),
    linear-gradient(180deg,#0b4758 0%,#062f42 100%)!important;
  color:#f5fdff!important;
}
html[data-theme="dark"] body.student-app .student-channel-invite-avatar-wrap{
  background:linear-gradient(145deg,rgba(139,244,239,.92),rgba(60,183,201,.88))!important;
  box-shadow:0 10px 28px rgba(0,9,17,.39),0 0 22px rgba(41,210,208,.09)!important;
}
html[data-theme="dark"] body.student-app .student-channel-invite-body{color:#eefbff!important}
html[data-theme="dark"] body.student-app .student-channel-invite-kicker{
  color:#94eef0!important;
  background:rgba(29,193,199,.12)!important;
  border:1px solid rgba(86,224,226,.18)!important;
}
html[data-theme="dark"] body.student-app .student-channel-invite-body p{color:#b8d2da!important}
html[data-theme="dark"] body.student-app .student-channel-invite-join{
  background:linear-gradient(135deg,#218fbd,#20c6c5)!important;
  border-color:rgba(98,232,232,.34)!important;
  box-shadow:0 10px 22px rgba(0,118,139,.26)!important;
}
html[data-theme="dark"] body.student-app .student-channel-profile-invite .student-channel-invite-close{
  color:#d9f1f5!important;
  background:linear-gradient(145deg,rgba(10,62,75,.84),rgba(5,35,48,.91))!important;
  border-color:rgba(74,205,215,.22)!important;
}

/* Course modal: same approved navy / teal dark glass instead of light or brown-green. */
html[data-theme="dark"] body.student-app .modal:has(.student-course-modal){
  border-color:rgba(82,213,220,.23)!important;
  background:linear-gradient(145deg,rgba(7,47,60,.98),rgba(4,28,41,.99))!important;
  box-shadow:0 28px 66px rgba(0,6,13,.54),inset 0 1px 0 rgba(255,255,255,.055)!important;
  backdrop-filter:blur(28px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(135%)!important;
}
html[data-theme="dark"] body.student-app .student-course-modal{
  color:#eefbff!important;
  background:
    radial-gradient(115% 70% at 0% 0%,rgba(42,206,211,.095),transparent 44%),
    radial-gradient(90% 60% at 100% 100%,rgba(31,140,188,.075),transparent 62%),
    linear-gradient(145deg,rgba(8,50,63,.55),rgba(4,29,42,.60))!important;
}
html[data-theme="dark"] body.student-app .student-course-modal::before{
  background:linear-gradient(180deg,rgba(59,225,224,.035),transparent 34%,rgba(32,154,192,.025))!important;
}
html[data-theme="dark"] body.student-app .student-course-kicker{
  color:#8cebed!important;
  background:linear-gradient(145deg,rgba(16,87,99,.88),rgba(7,50,64,.91))!important;
  border-color:rgba(77,211,218,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 6px 14px rgba(0,7,14,.20)!important;
}
html[data-theme="dark"] body.student-app .student-course-head h2{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .student-course-feature{
  background:linear-gradient(145deg,rgba(10,61,74,.88),rgba(5,35,48,.94))!important;
  border-color:rgba(75,205,215,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.052),0 7px 17px rgba(0,7,14,.23)!important;
}
html[data-theme="dark"] body.student-app .student-course-feature-icon{
  background:linear-gradient(145deg,rgba(15,82,94,.97),rgba(7,46,59,.99))!important;
  border-color:rgba(77,211,218,.22)!important;
  box-shadow:0 7px 16px rgba(0,7,14,.24),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .student-course-feature b{color:#dff4f7!important}
html[data-theme="dark"] body.student-app .student-course-actions>.btn.primary{
  background:linear-gradient(135deg,#218fbd,#20c7c5)!important;
  border-color:rgba(101,233,232,.35)!important;
  box-shadow:0 10px 22px rgba(0,118,139,.25),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
html[data-theme="dark"] body.student-app .student-course-actions>.btn.primary:hover{background:linear-gradient(135deg,#27a2ca,#25d2ce)!important}
html[data-theme="dark"] body.student-app .student-course-actions>.btn.ghost{
  color:#d9f1f5!important;
  background:linear-gradient(145deg,rgba(10,62,75,.84),rgba(5,35,48,.91))!important;
  border-color:rgba(74,205,215,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 7px 16px rgba(0,7,14,.22)!important;
}

/* Campaign card dark mode: same palette, no blue-violet drift. */
html[data-theme="dark"] body.student-app .student-campaign-gate{background:rgba(1,9,17,.80)!important}
html[data-theme="dark"] body.student-app .student-campaign-card{
  background:linear-gradient(145deg,rgba(7,47,60,.985),rgba(4,28,41,.995))!important;
  border-color:rgba(78,210,218,.22)!important;
  box-shadow:0 30px 82px rgba(0,5,12,.56),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-campaign-media{background:#062f42!important}
html[data-theme="dark"] body.student-app .student-campaign-content h1{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .student-campaign-subtitle{color:#b9d3dc!important}
html[data-theme="dark"] body.student-app .student-campaign-body{
  color:#d8edf2!important;
  background:linear-gradient(145deg,rgba(10,62,75,.83),rgba(5,35,48,.91))!important;
  border:1px solid rgba(74,205,215,.18)!important;
}
html[data-theme="dark"] body.student-app .student-campaign-kicker{
  color:#91edef!important;
  background:rgba(29,193,199,.12)!important;
  border:1px solid rgba(83,222,224,.16)!important;
}
html[data-theme="dark"] body.student-app .student-campaign-actions .btn.primary{
  background:linear-gradient(135deg,#218fbd,#20c6c5)!important;
  border-color:rgba(97,231,231,.34)!important;
}

/* Learning goal/level onboarding dark mode. */
html[data-theme="dark"] body.student-app .student-learning-profile-gate{background:rgba(1,9,17,.80)!important}
html[data-theme="dark"] body.student-app .student-learning-profile-card{
  color:#eefbff!important;
  background:linear-gradient(145deg,rgba(7,47,60,.985),rgba(4,28,41,.995))!important;
  border-color:rgba(78,210,218,.22)!important;
  box-shadow:0 28px 76px rgba(0,5,12,.55),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-learning-profile-head h1{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .student-learning-profile-head p{color:#a8c5cf!important}
html[data-theme="dark"] body.student-app .student-learning-profile-kicker{
  color:#91edef!important;background:rgba(29,193,199,.12)!important;border:1px solid rgba(83,222,224,.16)!important;
}
html[data-theme="dark"] body.student-app .student-learning-profile-close{
  color:#d8f0f5!important;background:rgba(11,67,80,.90)!important;border:1px solid rgba(75,205,215,.20)!important;
}
html[data-theme="dark"] body.student-app .student-learning-section h2{color:#d7edf2!important}
html[data-theme="dark"] body.student-app .student-learning-choice{
  color:#e7f7fa!important;
  background:linear-gradient(145deg,rgba(10,61,74,.88),rgba(5,35,48,.94))!important;
  border-color:rgba(75,205,215,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .student-learning-choice:hover{border-color:rgba(75,231,231,.43)!important}
html[data-theme="dark"] body.student-app .student-learning-choice.is-selected{
  background:linear-gradient(145deg,rgba(13,91,102,.96),rgba(6,51,64,.98))!important;
  border-color:#34d6d8!important;
  box-shadow:0 0 0 3px rgba(52,214,216,.10),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-learning-choice-dot{background:#082f40!important;border-color:#688f9c!important}
html[data-theme="dark"] body.student-app .student-learning-choice.is-selected .student-learning-choice-dot{border-color:#31d0d3!important}
html[data-theme="dark"] body.student-app .student-learning-profile-actions .btn.primary{
  background:linear-gradient(135deg,#218fbd,#20c6c5)!important;border-color:rgba(97,231,231,.34)!important;
}

/* Dictionary dark surfaces. */
html[data-theme="dark"] body.student-app .student-dictionary-modal{color:#eefbff!important}
html[data-theme="dark"] body.student-app .student-dictionary-title h2{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .student-dictionary-title p,
html[data-theme="dark"] body.student-app .student-dictionary-status{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .student-dictionary-title-icon{
  color:#90edef!important;
  background:linear-gradient(145deg,rgba(14,80,93,.96),rgba(6,45,58,.99))!important;
  border:1px solid rgba(76,210,218,.22)!important;
  box-shadow:0 8px 18px rgba(0,7,14,.25),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-search{
  background:linear-gradient(145deg,rgba(10,61,74,.91),rgba(5,35,48,.96))!important;
  border-color:rgba(75,205,215,.23)!important;
  box-shadow:0 8px 18px rgba(0,7,14,.25),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-search input{color:#f3fcff!important}
html[data-theme="dark"] body.student-app .student-dictionary-search input::placeholder{color:#789aa6!important}
html[data-theme="dark"] body.student-app .student-dictionary-input-icon{color:#55dfe1!important}
html[data-theme="dark"] body.student-app .student-dictionary-row{
  color:#eaf9fc!important;
  background:linear-gradient(145deg,rgba(9,56,70,.93),rgba(5,33,46,.97))!important;
  border-color:rgba(74,205,216,.22)!important;
  box-shadow:0 7px 17px rgba(0,7,14,.25),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-side b{color:#f3fcff!important}
html[data-theme="dark"] body.student-app .student-dictionary-side span{color:#b5d0d8!important}
html[data-theme="dark"] body.student-app .student-dictionary-arrow{color:#69cbd2!important}
html[data-theme="dark"] body.student-app .student-dictionary-empty{
  color:#9fbcc7!important;background:rgba(5,35,48,.58)!important;border-color:rgba(74,205,216,.20)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-empty b{color:#edfaff!important}

/* =========================================================
   v158 — Student dark mode stage 4
   Premium/payment + Results/Ranking/XP only.
   Visual overrides only; no logic touched.
   ========================================================= */
html[data-theme="dark"] body.student-app .public-level-shell.card,
html[data-theme="dark"] body.student-app .public-my-result.card,
html[data-theme="dark"] body.student-app .public-ranking-card.card{
  color:#eefbff!important;
  background:linear-gradient(145deg,rgba(8,52,66,.94),rgba(4,29,42,.985))!important;
  border-color:rgba(77,211,220,.20)!important;
  box-shadow:0 18px 44px rgba(0,6,14,.40),inset 0 1px 0 rgba(255,255,255,.055)!important;
  backdrop-filter:blur(24px) saturate(128%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(128%)!important;
}
html[data-theme="dark"] body.student-app .public-level-shell.card::before,
html[data-theme="dark"] body.student-app .public-my-result.card::before,
html[data-theme="dark"] body.student-app .public-ranking-card.card::before{
  background:radial-gradient(120% 75% at 8% -10%,rgba(92,225,229,.09),transparent 48%),linear-gradient(180deg,rgba(255,255,255,.025),transparent 38%,rgba(0,0,0,.05))!important;
}
html[data-theme="dark"] body.student-app .public-level-badge{
  color:#eefbff!important;
  background:linear-gradient(145deg,rgba(12,77,90,.96),rgba(6,42,56,.98))!important;
  border-color:rgba(82,213,222,.22)!important;
  box-shadow:0 10px 24px rgba(0,8,17,.30),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .public-level-badge small{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .public-level-badge b{color:#66e6e7!important}
html[data-theme="dark"] body.student-app .public-level-topline strong,
html[data-theme="dark"] body.student-app .public-my-result h2,
html[data-theme="dark"] body.student-app .public-ranking-summary b,
html[data-theme="dark"] body.student-app .public-rank-name{color:#f3fcff!important}
html[data-theme="dark"] body.student-app .public-level-topline em,
html[data-theme="dark"] body.student-app .public-level-main.compact small,
html[data-theme="dark"] body.student-app .public-my-result small,
html[data-theme="dark"] body.student-app .public-ranking-summary span,
html[data-theme="dark"] body.student-app .public-ranking-note,
html[data-theme="dark"] body.student-app .public-top10-label,
html[data-theme="dark"] body.student-app .public-rank-xp,
html[data-theme="dark"] body.student-app .public-xp-history-row small{color:#9db9c4!important}
html[data-theme="dark"] body.student-app .public-level-chevron{color:#72d8dc!important}
html[data-theme="dark"] body.student-app .public-level-shell .public-level-track,
html[data-theme="dark"] body.student-app .public-my-result .public-level-track{
  background:rgba(8,36,49,.95)!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] body.student-app .public-level-shell .public-level-track i,
html[data-theme="dark"] body.student-app .public-my-result .public-level-track i{
  background:linear-gradient(90deg,#2c9ed0,#25d0c9)!important;
  box-shadow:0 0 14px rgba(37,208,201,.20)!important;
}
html[data-theme="dark"] body.student-app .public-goals-panel{border-top-color:rgba(83,206,214,.14)!important}
html[data-theme="dark"] body.student-app .public-task,
html[data-theme="dark"] body.student-app .public-ranking-summary,
html[data-theme="dark"] body.student-app .public-xp-history-row,
html[data-theme="dark"] body.student-app .public-rank-row{
  color:#eaf9fc!important;
  background:linear-gradient(145deg,rgba(10,62,75,.82),rgba(5,35,48,.91))!important;
  border-color:rgba(74,205,215,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 5px 14px rgba(0,7,14,.22)!important;
}
html[data-theme="dark"] body.student-app .public-task:last-child{border-bottom-color:rgba(74,205,215,.18)!important}
html[data-theme="dark"] body.student-app .public-task-title{color:#eefbff!important}
html[data-theme="dark"] body.student-app .public-task-progress{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .public-task-reward>b,
html[data-theme="dark"] body.student-app .public-ranking-summary em,
html[data-theme="dark"] body.student-app .public-xp-history-row strong{color:#63e1e4!important}
html[data-theme="dark"] body.student-app .public-xp-info{
  color:#a9c7cf!important;
  background:rgba(7,47,60,.76)!important;
  border-color:rgba(74,205,215,.18)!important;
}
html[data-theme="dark"] body.student-app .public-ranking-tabs{
  background:rgba(5,36,49,.88)!important;
  border-color:rgba(75,205,215,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-theme="dark"] body.student-app .public-ranking-tab{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .public-ranking-tab.active{
  color:#eefbff!important;
  background:linear-gradient(145deg,rgba(18,102,112,.96),rgba(7,58,72,.98))!important;
  box-shadow:0 7px 18px rgba(0,11,21,.28),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .public-rank-row.is-me,
html[data-theme="dark"] body.student-app .public-own-rank-outside{
  background:linear-gradient(145deg,rgba(13,91,102,.93),rgba(6,51,64,.97))!important;
  border-color:rgba(54,214,216,.43)!important;
  box-shadow:0 8px 18px rgba(0,10,18,.28),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .public-rank-pos{color:#80d6db!important}
html[data-theme="dark"] body.student-app .public-own-rank-separator{color:#8fb1bc!important}
html[data-theme="dark"] body.student-app .public-own-rank-separator:before{background:rgba(76,176,185,.24)!important}
html[data-theme="dark"] body.student-app .public-own-rank-separator span{background:#062a3a!important}
html[data-theme="dark"] body.student-app .public-my-rank-icon{
  background:linear-gradient(145deg,rgba(13,88,99,.96),rgba(6,48,61,.98))!important;
  border-color:rgba(78,211,219,.22)!important;
  box-shadow:0 10px 24px rgba(0,8,16,.30),inset 0 1px 0 rgba(255,255,255,.05)!important;
}

/* Premium preview / lock / plans — student side only. */
html[data-theme="dark"] body.student-app .premium-preview-modal,
html[data-theme="dark"] body.student-app .premium-locked-modal,
html[data-theme="dark"] body.student-app .premium-flow-modal{color:#eefbff!important}
html[data-theme="dark"] body.student-app .premium-preview-kicker{
  color:#91edef!important;
  background:rgba(29,193,199,.12)!important;
  border:1px solid rgba(83,222,224,.16)!important;
}
html[data-theme="dark"] body.student-app .premium-preview-modal h2,
html[data-theme="dark"] body.student-app .premium-locked-modal h2,
html[data-theme="dark"] body.student-app .premium-flow-modal h2{color:#f5fdff!important}
html[data-theme="dark"] body.student-app .premium-preview-word,
html[data-theme="dark"] body.student-app .premium-plan-choice{
  color:#eaf9fc!important;
  background:linear-gradient(145deg,rgba(10,62,75,.84),rgba(5,35,48,.92))!important;
  border-color:rgba(74,205,215,.20)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme="dark"] body.student-app .premium-preview-word>span{
  color:#7ce7e9!important;
  background:rgba(36,199,201,.12)!important;
}
html[data-theme="dark"] body.student-app .premium-preview-word b{color:#f3fcff!important}
html[data-theme="dark"] body.student-app .premium-preview-word small,
html[data-theme="dark"] body.student-app .premium-plan-choice span small{color:#9fbcc7!important}
html[data-theme="dark"] body.student-app .premium-preview-locked{
  background:linear-gradient(135deg,rgba(207,157,30,.14),rgba(16,118,130,.18))!important;
  border-color:rgba(224,183,66,.22)!important;
}
html[data-theme="dark"] body.student-app .premium-preview-locked b{color:#f5d66f!important}
html[data-theme="dark"] body.student-app .premium-preview-locked span{color:#aac4cc!important}
html[data-theme="dark"] body.student-app .premium-lock-big,
html[data-theme="dark"] body.student-app .premium-flow-icon{
  color:#f5d66f!important;
  background:linear-gradient(145deg,rgba(98,78,17,.80),rgba(42,42,20,.90))!important;
  border-color:rgba(228,190,74,.30)!important;
}
html[data-theme="dark"] body.student-app .premium-plan-choice.selected{
  background:linear-gradient(145deg,rgba(14,96,108,.96),rgba(6,53,66,.98))!important;
  border-color:#36d6d8!important;
  box-shadow:0 0 0 2px rgba(54,214,216,.10),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme="dark"] body.student-app .premium-plan-choice strong{color:#70e2e4!important}
html[data-theme="dark"] body.student-app .premium-modal-shell{
  color:#eefbff!important;
  background:linear-gradient(145deg,rgba(7,47,60,.985),rgba(4,28,41,.995))!important;
  border-color:rgba(78,210,218,.22)!important;
  box-shadow:0 28px 76px rgba(0,5,12,.55),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .premium-modal-shell .btn.primary{
  background:linear-gradient(135deg,#218fbd,#20c6c5)!important;
  border-color:rgba(97,231,231,.34)!important;
}
html[data-theme="dark"] body.student-app .premium-modal-shell .btn:not(.primary){
  color:#d8f0f5!important;
  background:rgba(10,62,75,.88)!important;
  border-color:rgba(75,205,215,.20)!important;
}

/* =========================================================
   v159 — Dark mode stage 5: Live Quiz unified navy/teal/cyan glass
   Visual-only. Scope: student Live Quiz surfaces in dark theme.
   ========================================================= */
html[data-theme="dark"] body.student-app .public-hero-quiz,
html[data-theme="dark"] body.student-app .public-quiz-lobby,
html[data-theme="dark"] body.student-app .public-question-card,
html[data-theme="dark"] body.student-app .public-reveal-card,
html[data-theme="dark"] body.student-app .public-finish-card,
html[data-theme="dark"] body.student-app .public-finish-card-v5,
html[data-theme="dark"] body.student-app .public-finish-card-v6,
html[data-theme="dark"] body.student-app .public-ranking-card,
html[data-theme="dark"] body.student-app .public-ranking-card-v2,
html[data-theme="dark"] body.student-app .public-ranking-body-v2,
html[data-theme="dark"] body.student-app .public-quiz-preparing-card,
html[data-theme="dark"] body.student-app .public-quiz-exit-modal,
html[data-theme="dark"] body.student-app .public-quiz-exit-modal-compact{
  background:
    linear-gradient(145deg,rgba(8,34,48,.93),rgba(7,27,40,.88))!important;
  border-color:rgba(91,190,216,.24)!important;
  color:#ecfaff!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 18px 46px rgba(0,10,19,.30)!important;
  backdrop-filter:blur(18px) saturate(1.12);
  -webkit-backdrop-filter:blur(18px) saturate(1.12)
}

html[data-theme="dark"] body.student-app .public-hero-quiz h1,
html[data-theme="dark"] body.student-app .public-hero-quiz h2,
html[data-theme="dark"] body.student-app .public-quiz-lobby h1,
html[data-theme="dark"] body.student-app .public-quiz-lobby h2,
html[data-theme="dark"] body.student-app .public-question-card h1,
html[data-theme="dark"] body.student-app .public-question-card h2,
html[data-theme="dark"] body.student-app .public-finish-card h1,
html[data-theme="dark"] body.student-app .public-finish-card h2,
html[data-theme="dark"] body.student-app .public-finish-card-v5 h1,
html[data-theme="dark"] body.student-app .public-finish-card-v5 h2,
html[data-theme="dark"] body.student-app .public-finish-card-v6 h1,
html[data-theme="dark"] body.student-app .public-finish-card-v6 h2,
html[data-theme="dark"] body.student-app .public-results-head,
html[data-theme="dark"] body.student-app .public-live-top{
  color:#f1fbff!important
}

html[data-theme="dark"] body.student-app .public-quiz-eyebrow,
html[data-theme="dark"] body.student-app .public-prize,
html[data-theme="dark"] body.student-app .public-final-prize{
  color:#7edff0!important
}

html[data-theme="dark"] body.student-app .public-hero-glow,
html[data-theme="dark"] body.student-app .public-panel-glow--gold{
  background:radial-gradient(circle,rgba(46,190,205,.18),rgba(11,35,49,0) 70%)!important
}
html[data-theme="dark"] body.student-app .public-panel-glow--blue{
  background:radial-gradient(circle,rgba(47,153,212,.20),rgba(11,35,49,0) 70%)!important
}

html[data-theme="dark"] body.student-app .public-quiz-state,
html[data-theme="dark"] body.student-app .public-quiz-state.is-scheduled,
html[data-theme="dark"] body.student-app .public-quiz-state.is-finished{
  background:linear-gradient(145deg,rgba(14,54,70,.90),rgba(10,39,55,.86))!important;
  border-color:rgba(98,190,215,.24)!important;
  color:#bcebf5!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,13,24,.20)!important
}
html[data-theme="dark"] body.student-app .public-quiz-state.is-live{
  background:linear-gradient(145deg,rgba(11,68,63,.92),rgba(8,48,48,.88))!important;
  border-color:rgba(71,204,176,.30)!important;
  color:#93f0d5!important
}

html[data-theme="dark"] body.student-app .public-ready-ring{
  background:radial-gradient(circle at 34% 28%,rgba(42,177,191,.20),rgba(8,52,58,.86))!important;
  border-color:rgba(91,211,194,.28)!important;
  box-shadow:0 14px 34px rgba(0,15,25,.30),inset 0 1px 0 rgba(255,255,255,.055)!important
}
html[data-theme="dark"] body.student-app .public-ready-ring span{color:#7ce7d3!important}
html[data-theme="dark"] body.student-app .public-preload-checks span,
html[data-theme="dark"] body.student-app .public-quiz-meta span,
html[data-theme="dark"] body.student-app .public-live-presence,
html[data-theme="dark"] body.student-app .public-countdown-pill{
  background:linear-gradient(145deg,rgba(16,54,70,.88),rgba(10,39,54,.82))!important;
  border:1px solid rgba(93,187,211,.20)!important;
  color:#d7f4fb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important
}
html[data-theme="dark"] body.student-app .public-big-countdown{color:#effcff!important;text-shadow:0 0 24px rgba(84,213,235,.12)}

html[data-theme="dark"] body.student-app .public-live-summary,
html[data-theme="dark"] body.student-app .public-aggregate-capsule,
html[data-theme="dark"] body.student-app .public-live-aggregate{
  background:linear-gradient(145deg,rgba(15,56,73,.92),rgba(9,40,56,.86))!important;
  border-color:rgba(91,190,216,.25)!important;
  color:#e6f8fd!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 8px 20px rgba(0,13,23,.20)!important
}
html[data-theme="dark"] body.student-app .public-aggregate-capsule>small,
html[data-theme="dark"] body.student-app .public-live-aggregate>small,
html[data-theme="dark"] body.student-app .public-live-question{color:#9fc7d2!important}
html[data-theme="dark"] body.student-app .public-aggregate-capsule>b i,
html[data-theme="dark"] body.student-app .public-live-aggregate>b i{background:rgba(131,208,226,.25)!important}
html[data-theme="dark"] body.student-app .public-aggregate-capsule.is-ready,
html[data-theme="dark"] body.student-app .public-live-aggregate.is-ready{
  background:linear-gradient(145deg,rgba(10,71,71,.90),rgba(8,52,58,.87))!important;
  border-color:rgba(83,208,188,.28)!important
}
html[data-theme="dark"] body.student-app .public-live-timer{
  color:#eafcff!important;
  background:rgba(15,55,70,.72)!important;
  border-color:rgba(100,196,219,.22)!important
}
html[data-theme="dark"] body.student-app .public-live-timer.is-urgent,
html[data-theme="dark"] body.student-app .public-live-top b.is-urgent{color:#ff8d98!important}

html[data-theme="dark"] body.student-app .public-question-progress,
html[data-theme="dark"] body.student-app .public-level-track,
html[data-theme="dark"] body.student-app .public-aggregate-bar{
  background:rgba(125,176,194,.16)!important
}
html[data-theme="dark"] body.student-app .public-question-progress i,
html[data-theme="dark"] body.student-app .public-level-track i,
html[data-theme="dark"] body.student-app .public-aggregate-bar i{
  background:linear-gradient(90deg,#299ed2,#36d0c2)!important;
  box-shadow:0 0 14px rgba(54,208,194,.20)
}

html[data-theme="dark"] body.student-app .public-choice{
  background:linear-gradient(145deg,rgba(16,53,69,.93),rgba(10,39,55,.88))!important;
  border-color:rgba(96,185,210,.22)!important;
  color:#eefbff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 20px rgba(0,12,21,.15)!important
}
html[data-theme="dark"] body.student-app .public-choice:hover:not(:disabled){
  background:linear-gradient(145deg,rgba(20,68,86,.96),rgba(11,48,64,.92))!important;
  border-color:rgba(91,207,224,.42)!important;
  box-shadow:0 12px 26px rgba(0,13,23,.22),0 0 0 1px rgba(60,203,220,.08)!important
}
html[data-theme="dark"] body.student-app .public-choice span,
html[data-theme="dark"] body.student-app .public-choice-letter{
  background:rgba(25,83,99,.68)!important;
  color:#bdebf4!important;
  border-color:rgba(105,202,220,.20)!important
}
html[data-theme="dark"] body.student-app .public-choice.correct{
  background:linear-gradient(145deg,rgba(12,81,67,.92),rgba(8,59,56,.90))!important;
  border-color:rgba(70,218,168,.40)!important;
  color:#dffff0!important
}
html[data-theme="dark"] body.student-app .public-choice.correct span,
html[data-theme="dark"] body.student-app .public-choice.correct .public-choice-letter{
  background:rgba(40,181,137,.24)!important;color:#a7f3d0!important
}
html[data-theme="dark"] body.student-app .public-choice.wrong{
  background:linear-gradient(145deg,rgba(86,34,47,.90),rgba(61,25,40,.88))!important;
  border-color:rgba(244,107,129,.36)!important;
  color:#ffe9ee!important
}
html[data-theme="dark"] body.student-app .public-choice.wrong span,
html[data-theme="dark"] body.student-app .public-choice.wrong .public-choice-letter{
  background:rgba(210,69,96,.20)!important;color:#ffadb9!important
}
html[data-theme="dark"] body.student-app .public-choice.is-muted{opacity:.48!important}

html[data-theme="dark"] body.student-app .public-answer-flash.correct{
  background:rgba(16,103,75,.80)!important;color:#b9f6dc!important;border:1px solid rgba(68,214,161,.22)
}
html[data-theme="dark"] body.student-app .public-answer-flash.wrong{
  background:rgba(101,37,52,.82)!important;color:#ffc3cc!important;border:1px solid rgba(240,102,125,.22)
}

html[data-theme="dark"] body.student-app .public-combo-pop,
html[data-theme="dark"] body.student-app .public-combo-mini{
  background:linear-gradient(145deg,rgba(15,58,70,.96),rgba(9,41,54,.94))!important;
  border-color:rgba(94,207,220,.28)!important;
  color:#dffaff!important;
  box-shadow:0 12px 30px rgba(0,13,23,.28),inset 0 1px 0 rgba(255,255,255,.05)!important
}
html[data-theme="dark"] body.student-app .public-combo-pop b,
html[data-theme="dark"] body.student-app .public-combo-mini b{color:#7ee6ef!important}

html[data-theme="dark"] body.student-app .public-reveal-icon,
html[data-theme="dark"] body.student-app .public-my-rank-icon{
  background:linear-gradient(145deg,rgba(21,78,94,.88),rgba(11,49,64,.84))!important;
  border:1px solid rgba(100,199,220,.20)!important;
  color:#76dff0!important
}
html[data-theme="dark"] body.student-app .public-aggregate>div,
html[data-theme="dark"] body.student-app .public-finish-stats>div{
  background:linear-gradient(145deg,rgba(16,55,72,.88),rgba(10,40,56,.82))!important;
  border:1px solid rgba(94,188,214,.18)!important;
  color:#eefbff!important
}
html[data-theme="dark"] body.student-app .public-aggregate span,
html[data-theme="dark"] body.student-app .public-finish-stats span{color:#9fc2ce!important}

html[data-theme="dark"] body.student-app .public-ranking-tab{
  background:rgba(17,55,70,.70)!important;
  border-color:rgba(93,184,208,.18)!important;
  color:#a9cbd5!important
}
html[data-theme="dark"] body.student-app .public-ranking-tab.is-active{
  background:linear-gradient(135deg,#167da8,#20b7b0)!important;
  border-color:rgba(89,219,218,.42)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(16,145,168,.22)!important
}
html[data-theme="dark"] body.student-app .public-rank-row,
html[data-theme="dark"] body.student-app .public-rank-row-avatar{
  background:linear-gradient(145deg,rgba(15,53,69,.90),rgba(9,39,55,.84))!important;
  border-color:rgba(91,184,210,.16)!important;
  color:#e9f9fd!important
}
html[data-theme="dark"] body.student-app .public-rank-row.is-me,
html[data-theme="dark"] body.student-app .public-rank-row-avatar.is-me{
  background:linear-gradient(145deg,rgba(13,72,82,.94),rgba(8,50,63,.90))!important;
  box-shadow:inset 0 0 0 1px rgba(70,205,218,.26),0 8px 20px rgba(0,13,23,.18)!important
}
html[data-theme="dark"] body.student-app .public-rank-xp{color:#91c8d7!important}
html[data-theme="dark"] body.student-app .public-ranking-empty{color:#8fb8c3!important}

html[data-theme="dark"] body.student-app .public-podium{
  background:linear-gradient(180deg,rgba(14,52,68,.84),rgba(8,34,49,.90))!important;
  border-color:rgba(92,188,214,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important
}
html[data-theme="dark"] body.student-app .public-podium-place strong{color:#eafaff!important}
html[data-theme="dark"] body.student-app .public-podium-place small{color:#92bdc8!important}
html[data-theme="dark"] body.student-app .public-podium-place.is-me strong{color:#7de5ef!important}
html[data-theme="dark"] body.student-app .public-podium-step{
  background:linear-gradient(180deg,rgba(29,94,109,.86),rgba(14,57,72,.92))!important;
  border-color:rgba(95,201,218,.20)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important
}
html[data-theme="dark"] body.student-app .public-podium-place.is-1 .public-podium-step{
  background:linear-gradient(180deg,rgba(36,116,124,.92),rgba(16,70,82,.96))!important
}
html[data-theme="dark"] body.student-app .public-podium-place.is-2 .public-podium-step{
  background:linear-gradient(180deg,rgba(26,86,104,.90),rgba(13,57,73,.94))!important
}
html[data-theme="dark"] body.student-app .public-podium-place.is-3 .public-podium-step{
  background:linear-gradient(180deg,rgba(24,76,91,.88),rgba(12,51,65,.94))!important
}
html[data-theme="dark"] body.student-app .public-podium-step b{color:#dff8fd!important}
html[data-theme="dark"] body.student-app .public-rank-avatar,
html[data-theme="dark"] body.student-app .public-rank-avatar-list,
html[data-theme="dark"] body.student-app .public-rank-avatar-podium{
  background:#103c50!important;
  border-color:rgba(113,207,225,.30)!important;
  color:#dff9ff!important
}

html[data-theme="dark"] body.student-app .public-final-status,
html[data-theme="dark"] body.student-app .public-final-rank,
html[data-theme="dark"] body.student-app .public-final-participants{
  background:rgba(17,57,72,.68)!important;
  border-color:rgba(92,184,208,.18)!important;
  color:#cdebf2!important
}

html[data-theme="dark"] body.student-app .public-quiz-exit-modal-bg{
  background:rgba(1,10,17,.64)!important;
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)
}
html[data-theme="dark"] body.student-app .public-quiz-exit-option{
  background:linear-gradient(145deg,rgba(17,58,74,.92),rgba(10,41,57,.88))!important;
  border-color:rgba(92,188,213,.20)!important;
  color:#eaf9fd!important
}
html[data-theme="dark"] body.student-app .public-quiz-exit-option:hover{
  border-color:rgba(77,210,219,.36)!important;
  background:linear-gradient(145deg,rgba(21,72,88,.95),rgba(11,49,65,.92))!important
}
html[data-theme="dark"] body.student-app .public-quiz-exit-icon{
  background:rgba(28,94,108,.54)!important;color:#8ae8ee!important
}
html[data-theme="dark"] body.student-app .public-quiz-exit-cancel{
  background:rgba(17,55,70,.72)!important;border-color:rgba(93,184,208,.18)!important;color:#cfeaf1!important
}
html[data-theme="dark"] body.student-app .public-quiz-exit-error{color:#ff9baa!important}

@media (prefers-reduced-motion: reduce){
  html[data-theme="dark"] body.student-app .public-combo-pop,
  html[data-theme="dark"] body.student-app .public-combo-mini{animation:none!important}
}

/* =========================================================
   v160 — Final student dark-mode audit
   VISUAL ONLY. Close remaining light/violet gaps without
   touching JS/API/DB or any functional behavior.
   ========================================================= */

/* Collection cards without an uploaded admin image were still forced white by v85. */
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card:not(.has-custom-capsule-image){
  background:
    radial-gradient(ellipse at 88% 16%,rgba(55,205,214,.08),transparent 36%),
    linear-gradient(145deg,rgba(15,40,55,.97),rgba(7,29,43,.97))!important;
  background-image:
    radial-gradient(ellipse at 88% 16%,rgba(55,205,214,.08),transparent 36%),
    linear-gradient(145deg,rgba(15,40,55,.97),rgba(7,29,43,.97))!important;
  border-color:rgba(91,191,211,.17)!important;
  box-shadow:0 12px 28px rgba(0,7,14,.30),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card:not(.has-custom-capsule-image) .collection-showcase-copy h3{
  color:#eefbff!important;
  text-shadow:none!important;
}
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card:not(.has-custom-capsule-image) .collection-showcase-copy .muted{
  color:#91b8c5!important;
  text-shadow:none!important;
}

/* Coming-soon pill: remove the remaining lavender/violet drift in dark mode. */
html[data-theme="dark"] body.student-app:has(.collection-block-card) .collection-block-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon .student-coming-soon-badge,
html[data-theme="dark"] body.student-app .collection-source.collection-showcase-card.is-coming-soon:disabled .student-coming-soon-badge{
  background:linear-gradient(180deg,rgba(46,135,151,.28),rgba(20,91,108,.20))!important;
  border-color:rgba(104,218,225,.25)!important;
  color:#b8f2f3!important;
  box-shadow:0 9px 24px rgba(0,9,16,.25),inset 0 1px 0 rgba(255,255,255,.10)!important;
  filter:none!important;
}

/* Small dictionary/word-note accent left from the old violet palette. */
html[data-theme="dark"] body.student-app .word-note{color:#6fdbe1!important}

/* Results: mastery summary tiles were still light. */
html[data-theme="dark"] body.student-app .public-learning-stat{
  background:linear-gradient(145deg,rgba(15,55,70,.90),rgba(9,39,54,.86))!important;
  border-color:rgba(91,188,211,.18)!important;
  box-shadow:0 9px 22px rgba(0,8,15,.25),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .public-learning-stat.is-learned{
  background:linear-gradient(145deg,rgba(12,72,63,.91),rgba(8,48,50,.88))!important;
  border-color:rgba(71,207,166,.24)!important;
}
html[data-theme="dark"] body.student-app .public-learning-stat.is-mastered{
  background:linear-gradient(145deg,rgba(15,62,82,.92),rgba(8,43,59,.88))!important;
  border-color:rgba(77,181,213,.24)!important;
}
html[data-theme="dark"] body.student-app .public-learning-stat span,
html[data-theme="dark"] body.student-app .public-learning-stat small{color:#90bac5!important}
html[data-theme="dark"] body.student-app .public-learning-stat b{color:#e9faff!important}

/* Older home/result micro-surfaces. */
html[data-theme="dark"] body.student-app .public-level-card>div:first-child{
  background:linear-gradient(145deg,rgba(18,68,84,.90),rgba(9,44,59,.88))!important;
  border-color:rgba(90,194,214,.20)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .public-level-card>div:first-child small{color:#99c3ce!important}
html[data-theme="dark"] body.student-app .public-level-card>div:first-child b{color:#63d5e1!important}
html[data-theme="dark"] body.student-app .public-finish-message{
  background:rgba(13,66,80,.82)!important;
  border-color:rgba(83,199,215,.22)!important;
  color:#c9f2f5!important;
}

/* Payment / receipt flow: stage-4 shell was dark but these inner panels stayed light. */
html[data-theme="dark"] body.student-app .public-payment-timer-wrap,
html[data-theme="dark"] body.student-app .public-payment-card-number,
html[data-theme="dark"] body.student-app .public-receipt-picker,
html[data-theme="dark"] body.student-app .public-payment-timing,
html[data-theme="dark"] body.student-app .public-payment-confirm-meta{
  background:linear-gradient(145deg,rgba(15,55,71,.90),rgba(9,39,55,.86))!important;
  border-color:rgba(92,188,214,.18)!important;
  color:#eaf9fd!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme="dark"] body.student-app .public-payment-hero.is-expired,
html[data-theme="dark"] body.student-app .public-payment-expired-note,
html[data-theme="dark"] body.student-app .public-payment-pending{
  background:linear-gradient(145deg,rgba(75,57,24,.75),rgba(53,43,23,.78))!important;
  border-color:rgba(226,184,92,.24)!important;
  color:#f6e7bd!important;
}
html[data-theme="dark"] body.student-app .public-payment-pending{
  background:linear-gradient(145deg,rgba(13,61,78,.86),rgba(8,43,59,.84))!important;
  border-color:rgba(91,185,213,.21)!important;
  color:#cbeef5!important;
}
html[data-theme="dark"] body.student-app .public-payment-timer-wrap small,
html[data-theme="dark"] body.student-app .public-receipt-picker small{color:#93bac6!important}
html[data-theme="dark"] body.student-app .public-payment-timer-wrap b{color:#ecfbff!important}
html[data-theme="dark"] body.student-app .public-payment-card-number span,
html[data-theme="dark"] body.student-app .public-payment-confirm-meta b{color:#67dbe6!important}
html[data-theme="dark"] body.student-app .public-receipt-picker.has-file{
  background:linear-gradient(145deg,rgba(12,72,61,.88),rgba(8,49,49,.85))!important;
  border-color:rgba(74,205,161,.28)!important;
}
html[data-theme="dark"] body.student-app .public-receipt-picker-icon,
html[data-theme="dark"] body.student-app .public-payment-confirm-icon{
  background:rgba(21,82,96,.80)!important;
  border-color:rgba(93,202,220,.22)!important;
  color:#70dce7!important;
}
html[data-theme="dark"] body.student-app .public-payment-confirm-icon{
  background:rgba(14,89,69,.76)!important;
  border-color:rgba(73,208,157,.25)!important;
  color:#91ecc2!important;
}
html[data-theme="dark"] body.student-app .public-info-btn{
  background:rgba(18,66,82,.82)!important;
  border-color:rgba(93,192,214,.22)!important;
  color:#8edfe9!important;
}
html[data-theme="dark"] body.student-app .public-info-btn:hover{
  background:rgba(22,82,98,.90)!important;
  border-color:rgba(96,218,225,.38)!important;
}

/* Live Quiz micro-elements missed by the main stage-5 pass. */
html[data-theme="dark"] body.student-app .public-choice-feedback{
  background:rgba(17,67,81,.86)!important;
  border-color:rgba(92,190,211,.20)!important;
  color:#c9eef4!important;
}
html[data-theme="dark"] body.student-app .public-choice-feedback.is-correct{
  background:rgba(13,91,67,.80)!important;
  border-color:rgba(71,210,155,.28)!important;
  color:#aef0cf!important;
}
html[data-theme="dark"] body.student-app .public-choice-feedback.is-wrong{
  background:rgba(100,37,51,.82)!important;
  border-color:rgba(239,104,125,.26)!important;
  color:#ffc0ca!important;
}
html[data-theme="dark"] body.student-app .public-live-status{
  background:rgba(13,76,67,.84)!important;
  border-color:rgba(72,205,164,.24)!important;
  color:#a9efd0!important;
}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-quiz-lobby-prize{
  background:linear-gradient(145deg,rgba(73,59,25,.82),rgba(49,43,24,.80))!important;
  border-color:rgba(220,184,87,.24)!important;
  color:#f3dda0!important;
}
html[data-theme="dark"] body.student-app .public-quiz-exit-option-icon{
  background:rgba(18,71,87,.84)!important;
  border-color:rgba(91,194,214,.22)!important;
  color:#83dfe8!important;
}
html[data-theme="dark"] body.student-app .public-quiz-exit-option.is-quit .public-quiz-exit-option-icon{
  background:rgba(94,34,48,.84)!important;
  border-color:rgba(239,102,123,.24)!important;
  color:#ffb1be!important;
}
html[data-theme="dark"] body.student-app .public-podium-medal{
  background:rgba(15,54,69,.96)!important;
  border-color:rgba(109,203,220,.24)!important;
  box-shadow:0 5px 12px rgba(0,8,14,.30)!important;
}

/* Keep any old active selected controls away from purple in dark mode. */
html[data-theme="dark"] body.student-app .btn.violet{
  background:linear-gradient(135deg,#218fbd,#20c7c5)!important;
  border-color:rgba(101,233,232,.30)!important;
  color:#fff!important;
  box-shadow:0 9px 21px rgba(0,106,128,.22)!important;
}

/* =========================================================
   v161 — Targeted dark-mode QA fixes from real-device screenshots
   VISUAL ONLY. Scope is intentionally limited to the conflict areas
   observed after the v160 audit. No functional behavior is touched.
   ========================================================= */

/* 1) Profile menu: v88 intentionally forced milky-light even in dark mode. */
html[data-theme="dark"] body.student-app .student-profile-menu{
  color:#ecfbff!important;
  background:
    radial-gradient(120% 70% at 8% -8%,rgba(71,213,220,.10),transparent 44%),
    linear-gradient(145deg,rgba(13,50,64,.96),rgba(7,31,45,.95))!important;
  border-color:rgba(94,203,218,.24)!important;
  box-shadow:0 22px 48px rgba(0,8,15,.36),inset 0 1px 0 rgba(255,255,255,.055)!important;
  backdrop-filter:blur(28px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(135%)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu::before{
  background:
    radial-gradient(105% 62% at 8% -8%,rgba(105,232,235,.10),transparent 44%),
    linear-gradient(180deg,rgba(255,255,255,.035),transparent 34%,rgba(31,159,178,.03))!important;
  box-shadow:inset 0 0 24px rgba(89,214,221,.025)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-head{
  border-bottom-color:rgba(112,206,219,.14)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-head b{color:#eefcff!important}
html[data-theme="dark"] body.student-app .student-profile-menu-head small{color:#91bac6!important}
html[data-theme="dark"] body.student-app .student-profile-menu-label{color:#7fb5c3!important}
html[data-theme="dark"] body.student-app .student-profile-menu-avatar{
  border-color:rgba(203,250,253,.88)!important;
  box-shadow:0 0 0 2px rgba(54,207,219,.34),0 8px 18px rgba(0,15,25,.28)!important;
}
html[data-theme="dark"] body.student-app .student-theme-switch{
  background:rgba(8,43,57,.70)!important;
  border-color:rgba(89,191,209,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme="dark"] body.student-app .student-theme-choice{
  color:#b8d6df!important;
}
html[data-theme="dark"] body.student-app .student-theme-choice.active{
  color:#ddfbff!important;
  background:linear-gradient(145deg,rgba(24,106,128,.92),rgba(12,72,91,.90))!important;
  border-color:rgba(89,220,227,.30)!important;
  box-shadow:0 8px 20px rgba(0,19,29,.28),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-action{
  background:linear-gradient(145deg,rgba(16,61,77,.86),rgba(9,43,58,.82))!important;
  border-color:rgba(91,190,211,.18)!important;
  color:#eaf9fd!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 6px 15px rgba(0,10,17,.17)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-action:hover{
  background:linear-gradient(145deg,rgba(19,74,90,.92),rgba(10,51,66,.89))!important;
  border-color:rgba(88,214,222,.34)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-action-icon{
  color:#8ae8ef!important;
  background:linear-gradient(145deg,rgba(21,81,96,.92),rgba(11,56,72,.88))!important;
  border-color:rgba(102,209,222,.22)!important;
  box-shadow:0 7px 16px rgba(0,13,22,.24),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-action b{color:#edfaff!important}
html[data-theme="dark"] body.student-app .student-profile-menu-action small{color:#8eb5c1!important}
html[data-theme="dark"] body.student-app .student-profile-menu-chevron{color:#75b8c8!important}
html[data-theme="dark"] body.student-app .student-profile-menu-actions{
  scrollbar-color:rgba(73,190,206,.42) transparent!important;
}
html[data-theme="dark"] body.student-app .student-profile-menu-actions::-webkit-scrollbar-thumb{
  background:rgba(73,190,206,.36)!important;
}

/* 2 & 4) Home Live Quiz card: override v89/v92 light-glass/gold shell. */
html[data-theme="dark"] body.student-app .public-hero-quiz.card{
  background:
    radial-gradient(ellipse at 88% 12%,rgba(61,200,211,.10),transparent 36%),
    linear-gradient(145deg,rgba(13,49,64,.95),rgba(7,31,45,.94))!important;
  border-color:rgba(91,190,214,.22)!important;
  box-shadow:0 16px 36px rgba(0,10,18,.28),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .public-hero-quiz.card::before{
  background:linear-gradient(120deg,rgba(57,202,212,.12),rgba(41,130,157,.03) 38%,transparent 72%)!important;
  opacity:.68!important;
}
html[data-theme="dark"] body.student-app .public-hero-quiz.card > .public-hero-glow{
  background:radial-gradient(circle,rgba(56,201,211,.17),rgba(7,31,45,0) 70%)!important;
}
html[data-theme="dark"] body.student-app .public-hero-quiz.card h2{color:#f0fbff!important}
html[data-theme="dark"] body.student-app .public-hero-quiz.card p{color:#91bac6!important}
html[data-theme="dark"] body.student-app .public-hero-quiz.card .public-quiz-meta span{
  background:rgba(16,61,77,.82)!important;
  border:1px solid rgba(89,188,210,.18)!important;
  color:#d7f3f8!important;
}
html[data-theme="dark"] body.student-app .public-hero-quiz.card .public-prize{
  color:#f2d47f!important;
}

/* 3) Dictionary shell: inner content was teal but outer modal retained old purple. */
html[data-theme="dark"] body.student-app .modal:has(.student-dictionary-modal){
  background:linear-gradient(145deg,rgba(11,45,60,.98),rgba(6,29,43,.98))!important;
  border:1px solid rgba(92,197,216,.22)!important;
  color:#eefbff!important;
  box-shadow:0 20px 48px rgba(0,8,15,.40),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-modal{
  color:#eefbff!important;
  background:transparent!important;
}

/* 4,7,8) Live Quiz choices: beat the stronger active-screen light rules. */
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice{
  background:linear-gradient(145deg,rgba(16,53,69,.96),rgba(9,38,54,.93))!important;
  border-color:rgba(93,190,213,.23)!important;
  color:#eefbff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 7px 18px rgba(0,10,18,.19)!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice:hover:not(:disabled){
  background:linear-gradient(145deg,rgba(20,69,86,.98),rgba(11,48,64,.95))!important;
  border-color:rgba(79,213,224,.40)!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice.correct{
  background:linear-gradient(145deg,rgba(11,82,67,.96),rgba(7,58,54,.94))!important;
  border-color:rgba(70,218,168,.43)!important;
  color:#dffff0!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice.wrong{
  background:linear-gradient(145deg,rgba(88,34,48,.95),rgba(61,25,40,.93))!important;
  border-color:rgba(244,107,129,.38)!important;
  color:#ffe8ed!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice.is-dimmed{
  background:linear-gradient(145deg,rgba(13,47,60,.88),rgba(8,34,48,.87))!important;
  border-color:rgba(79,143,160,.14)!important;
  color:#7898a3!important;
  opacity:.58!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card .public-choice.is-dimmed:hover{
  transform:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}

/* 5) Lobby countdown / ready / prize capsules: target the v2 selectors exactly. */
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence{
  background:linear-gradient(145deg,rgba(16,57,72,.91),rgba(9,41,56,.88))!important;
  border-color:rgba(91,190,213,.22)!important;
  color:#d8f2f7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-live-presence b{color:#73dfe9!important}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill{
  background:linear-gradient(145deg,rgba(17,62,78,.94),rgba(9,43,59,.91))!important;
  border-color:rgba(93,195,216,.24)!important;
  color:#eefbff!important;
  box-shadow:0 10px 24px rgba(0,9,17,.24),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-countdown-pill small{color:#94bdc8!important}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-big-countdown{color:#f0fbff!important}
html[data-theme="dark"] body.student-app .public-quiz-lobby.public-quiz-lobby-v2 .public-quiz-lobby-prize,
html[data-theme="dark"] body.student-app .public-finish-card-v6 .public-final-prize{
  background:linear-gradient(145deg,rgba(76,61,24,.88),rgba(49,42,22,.86))!important;
  border-color:rgba(225,185,82,.27)!important;
  color:#f3dda0!important;
  box-shadow:0 10px 24px rgba(0,8,14,.24),inset 0 1px 0 rgba(255,255,255,.04)!important;
}

/* 6) Premium benefits block was never dark-overridden. */
html[data-theme="dark"] body.student-app .premium-benefits{
  background:linear-gradient(145deg,rgba(16,56,72,.91),rgba(9,40,55,.88))!important;
  border-color:rgba(91,190,213,.20)!important;
  color:#d9f3f8!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
html[data-theme="dark"] body.student-app .premium-benefits b,
html[data-theme="dark"] body.student-app .premium-benefits strong{color:#effcff!important}

/* 7-9) Shared practice progress/direction capsule: remove final violet trace everywhere. */
html[data-theme="dark"] body.student-app .practice-page-badge,
html[data-theme="dark"] body.student-app .quiz-wrap .practice-page-badge{
  background:linear-gradient(145deg,rgba(18,67,84,.96),rgba(9,45,61,.94))!important;
  border-color:rgba(83,207,219,.27)!important;
  color:#f0fbff!important;
  box-shadow:0 9px 22px rgba(0,8,15,.28),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
html[data-theme="dark"] body.student-app .practice-page-badge b,
html[data-theme="dark"] body.student-app .quiz-wrap .practice-page-badge b{color:#f2fcff!important}
html[data-theme="dark"] body.student-app .practice-page-badge span,
html[data-theme="dark"] body.student-app .quiz-wrap .practice-page-badge span{color:#9bc4ce!important}

/* 10) Yozib javob: darken the input shell, not just the actual input. */
html[data-theme="dark"] body.student-app .typing-answer-input-shell{
  background:linear-gradient(145deg,rgba(12,58,72,.96),rgba(6,36,50,.97))!important;
  border:1px solid rgba(79,203,216,.25)!important;
  border-radius:16px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 19px rgba(0,8,15,.20)!important;
  color:#f2fcff!important;
}
html[data-theme="dark"] body.student-app .typing-answer-input-shell input{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* 11) Live Quiz question-card highlight: remove the white pseudo wash. */
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card::before{
  background:
    radial-gradient(125% 72% at 12% -8%,rgba(72,209,219,.10),transparent 48%),
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 35%,rgba(31,145,164,.025))!important;
}
html[data-theme="dark"] body.student-app.public-quiz-screen-active .public-question-card > h1{
  color:#f2fcff!important;
  text-shadow:0 1px 12px rgba(46,205,214,.06)!important;
}

/* 12) Header dictionary launcher: remove old blue/violet feel. */
html[data-theme="dark"] body.student-app .student-dictionary-header-btn{
  border-color:rgba(85,210,220,.30)!important;
  background:linear-gradient(145deg,rgba(21,91,108,.97),rgba(10,57,74,.96))!important;
  color:#9af0f2!important;
  box-shadow:0 8px 22px rgba(0,12,21,.29),0 0 18px rgba(42,206,215,.08),inset 0 1px 0 rgba(255,255,255,.055)!important;
}
html[data-theme="dark"] body.student-app .student-dictionary-header-btn:hover{
  background:linear-gradient(145deg,rgba(25,108,124,.98),rgba(12,69,86,.97))!important;
  border-color:rgba(89,228,231,.42)!important;
}

/* v164 — payment recipient emphasis (student dark mode only) */
html[data-theme="dark"] body.student-app .public-payment-holder{
  color:#f2fcff!important;
  font-size:17px!important;
  line-height:1.45!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
}
html[data-theme="dark"] body.student-app .public-payment-holder b{
  color:#ffffff!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1.4!important;
  text-shadow:0 1px 10px rgba(90,225,232,.10)!important;
}

/* v165 — payment recipient emphasis (student light mode only) */
html:not([data-theme="dark"]) body.student-app .public-payment-holder{
  color:#163153!important;
  font-size:17px!important;
  line-height:1.45!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
}
html:not([data-theme="dark"]) body.student-app .public-payment-holder b{
  color:#0b1f3a!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1.4!important;
}

/* v172 — Natijalarim TOP 3 podium: subtle left-to-right shimmer only. */
body.student-app .public-podium .public-podium-step{
  position:relative;
  overflow:hidden;
}
body.student-app .public-podium .public-podium-step::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-58%;
  width:42%;
  pointer-events:none;
  background:linear-gradient(105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.08) 30%,
    rgba(255,255,255,.48) 50%,
    rgba(255,255,255,.10) 70%,
    rgba(255,255,255,0) 100%
  );
  transform:skewX(-16deg);
  animation:publicPodiumShimmer 3.8s ease-in-out infinite;
}
@keyframes publicPodiumShimmer{
  0%,55%{left:-58%;opacity:0}
  60%{opacity:1}
  85%{left:118%;opacity:1}
  100%{left:118%;opacity:0}
}
@media (prefers-reduced-motion:reduce){
  body.student-app .public-podium .public-podium-step::after{animation:none}
}
