/* AI Ustoz — dizayn: qorong'i (asosiy) va yorug' mavzu, shishasimon kartalar,
 * yumshoq neomorf tugmalar, jonli avatar. Ranglar: #2563EB (asosiy),
 * #06B6D4 (ikkinchi), #8B5CF6 (urg'u), #22C55E (muvaffaqiyat), fon #0F172A. */

:root, [data-theme="dark"] {
  --p: #2563EB; --s: #06B6D4; --a: #8B5CF6; --ok: #22C55E; --warn: #F59E0B; --bad: #F43F5E;
  --bg: #0F172A; --bg2: #111C38; --glass: rgba(30, 41, 75, .55); --glass2: rgba(51, 65, 110, .45); --solid: #16213F;
  --text: #E8EEFC; --muted: #94A3C4; --line: rgba(148, 163, 184, .16); --line2: rgba(148, 163, 184, .3);
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, .7); --grad: linear-gradient(135deg, #2563EB, #8B5CF6);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F7FD; --bg2: #E9EEFB; --glass: rgba(255, 255, 255, .72); --glass2: rgba(232, 238, 252, .9); --solid: #FFFFFF;
  --text: #0F172A; --muted: #5B6886; --line: rgba(15, 23, 42, .08); --line2: rgba(15, 23, 42, .16);
  --shadow: 0 18px 40px -22px rgba(30, 41, 99, .35);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 500 1rem/1.55 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 500px at 0% 0%, rgba(37, 99, 235, .25), transparent 60%), radial-gradient(700px 500px at 100% 10%, rgba(139, 92, 246, .22), transparent 60%),
              radial-gradient(800px 600px at 50% 120%, rgba(6, 182, 212, .18), transparent 60%); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); } h2 { font-size: 1.05rem; margin-bottom: 12px; }
a { color: #93C5FD; } [data-theme="light"] a { color: var(--p); }
button, input, textarea { font: inherit; color: inherit; } button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--s); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.u-boot { display: grid; place-items: center; min-height: 100vh; font: 700 1.3rem "Space Grotesk", sans-serif; color: var(--s); }
.skip { position: fixed; top: -60px; left: 12px; z-index: 99; background: var(--p); color: #fff !important; padding: 10px 14px; border-radius: 12px; }
.skip:focus { top: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* yuqori panel */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text) !important; font: 600 1.15rem "Space Grotesk", sans-serif; flex-shrink: 0; }
.brand b { background: linear-gradient(90deg, var(--s), var(--a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--p); }
.subj { display: flex; padding: 3px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); flex-shrink: 0; }
.subj button { border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: .84rem; color: var(--muted); white-space: nowrap; }
.subj button[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px var(--p); }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 11px; text-decoration: none; color: var(--muted) !important; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.nav a:hover { background: var(--glass2); color: var(--text) !important; } .nav a.on { background: var(--glass2); color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--line2); }
.top-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chip { display: flex; gap: 6px; } .chip span { padding: 5px 9px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--line); font-weight: 800; font-size: .8rem; white-space: nowrap; }
.chip .ai-left { color: #A5F3FC; } .chip .ai-left.off { color: var(--muted); } [data-theme="light"] .chip .ai-left { color: #0E7490; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); flex-wrap: wrap; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; font-weight: 800; font-size: .8rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--text); box-shadow: var(--shadow); }
.seg-w { display: flex; } .seg-w button { flex: 1; }
.ibtn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass2); }
.site { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 12px; background: var(--grad); color: #fff !important; text-decoration: none; font-weight: 800; font-size: .86rem; white-space: nowrap; }
.switch { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--glass2); color: var(--text) !important; text-decoration: none; font-weight: 800; font-size: .84rem; white-space: nowrap; }
.closed { text-align: center; padding: 7px 12px; font-size: .84rem; font-weight: 700; color: #FDE68A; background: rgba(245, 158, 11, .14); border-bottom: 1px solid rgba(245, 158, 11, .3); }
[data-theme="light"] .closed { color: #92400E; }
main { outline: none; } .bnav { display: none; }

/* umumiy */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 18px 110px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card { padding: 20px; }
.eyebrow { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s); }
.lead { color: var(--muted); margin: 10px 0 0; font-size: 1.05rem; max-width: 760px; }
.ph { margin-bottom: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--glass2);
  color: var(--text) !important; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 16px -10px rgba(0, 0, 0, .6); }
.btn:hover { transform: translateY(-1px); } .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-p { background: var(--grad); border-color: transparent; color: #fff !important; box-shadow: 0 12px 26px -12px var(--p); }
.btn-s { padding: 8px 12px; font-size: .88rem; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.note { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--glass2); overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s), var(--ok)); transition: width .6s; }
.ring .ring-bg { fill: none; stroke: var(--glass2); stroke-width: 10; } .ring .ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring text { fill: var(--text); font: 700 1.2rem "Space Grotesk", sans-serif; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-top: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

/* bosh sahifa */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 24px 28px; }
.hero .lead { margin-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.kpi { padding: 16px 18px; display: grid; gap: 4px; }
.kpi small { color: var(--muted); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font: 700 2rem "Space Grotesk", sans-serif; background: linear-gradient(90deg, var(--text), var(--s)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.radar { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.rd-grid { fill: none; stroke: var(--line2); } .rd-shape { fill: rgba(6, 182, 212, .28); stroke: var(--s); stroke-width: 2.5; stroke-linejoin: round; }
.rd-lbl { fill: var(--muted); font: 700 9.5px "Plus Jakarta Sans", sans-serif; }
.line { width: 100%; height: auto; }
.ln-grid { stroke: var(--line); } .ln-ax { fill: var(--muted); font-size: 10px; } .ln-area { fill: rgba(37, 99, 235, .16); }
.ln-path { fill: none; stroke: var(--p); stroke-width: 3; stroke-linejoin: round; } .ln-dot { fill: var(--solid); stroke: var(--p); stroke-width: 2.5; }
.ln-proj { stroke: var(--a); stroke-width: 3; stroke-dasharray: 6 6; fill: none; } .ln-dot-p { fill: var(--a); } .ln-lbl { fill: var(--a); font: 800 11px "Plus Jakarta Sans", sans-serif; }
.pred { display: flex; gap: 18px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pred > div { display: grid; justify-items: center; text-align: center; gap: 4px; max-width: 130px; } .pred small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.pred ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tl li, .tl li a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; }
.tl li { padding: 8px 10px; border-radius: 12px; background: var(--glass2); } .tl b { margin-left: auto; font-variant-numeric: tabular-nums; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.bdg { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--glass2); font-size: 1.4rem; filter: grayscale(1); opacity: .45; }
.bdg.on { filter: none; opacity: 1; box-shadow: 0 0 0 2px var(--s), 0 8px 20px -8px var(--s); }

/* avatar */
.av { position: relative; width: 100%; max-width: 220px; aspect-ratio: 1 / 1.06; margin: 0 auto; }
.av-svg { position: relative; z-index: 1; width: 100%; height: 100%; animation: avFloat 5s ease-in-out infinite; }
.av-ring { position: absolute; inset: 6% 6% 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(37, 99, 235, .35), rgba(139, 92, 246, .18) 55%, transparent 70%); }
.av-eyes { animation: avBlink 5s infinite; transform-origin: 100px 94px; }
.av-wave { position: absolute; z-index: 2; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.av-wave i { width: 5px; height: 14px; border-radius: 3px; background: var(--s); animation: avWave .9s ease-in-out infinite; }
.av-wave i:nth-child(2) { animation-delay: .1s; } .av-wave i:nth-child(3) { animation-delay: .2s; } .av-wave i:nth-child(4) { animation-delay: .3s; } .av-wave i:nth-child(5) { animation-delay: .4s; }
.av[data-state="speaking"] .av-wave { opacity: 1; }
.av[data-state="listening"] .av-ring { animation: avPulse 1.2s ease-out infinite; background: radial-gradient(circle, rgba(6, 182, 212, .5), transparent 70%); }
.av[data-state="thinking"] .av-ring { animation: avSpin 2.4s linear infinite; background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, .55), transparent 60%); }
.av[data-state="happy"] .av-brows { transform: translateY(-3px); transition: transform .2s; }
@keyframes avFloat { 50% { transform: translateY(-5px); } }
@keyframes avBlink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes avWave { 50% { transform: scaleY(.35); } }
@keyframes avPulse { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.12); opacity: .2; } }
@keyframes avSpin { to { transform: rotate(360deg); } }

/* suhbat */
.chat-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
.teacher { padding: 18px; display: grid; gap: 12px; align-content: start; position: sticky; top: 80px; }
.t-name { text-align: center; font: 700 1.2rem "Space Grotesk", sans-serif; }
.t-name span { display: block; margin-top: 4px; font: 800 .72rem "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.t-name .live { color: var(--ok); } .t-name .lim { color: var(--warn); }
.sw { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.sw input { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line2); position: relative; flex-shrink: 0; transition: background .2s; }
.sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked { background: var(--ok); } .sw input:checked::after { transform: translateX(17px); }
.rate { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); } .rate input { accent-color: var(--s); }
.rate select { width: 100%; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line2); background: var(--solid); color: var(--text); font-size: .8rem; }
.vnote { margin: 0; padding: 8px 10px; border-radius: 12px; background: rgba(245, 158, 11, .12); color: var(--text); font-size: .78rem; line-height: 1.4; }
.score-live { display: grid; gap: 8px; } .score-live div { display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: 8px; font-size: .8rem; }
.score-live small { color: var(--muted); font-weight: 700; } .score-live b { text-align: right; }
.convo { display: flex; flex-direction: column; min-height: calc(100vh - 150px); padding: 14px; }
.topics { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.topics button { flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass2); font-weight: 700; font-size: .86rem; }
.topics button small { color: var(--muted); font-weight: 800; font-size: .7rem; } .topics button.on { border-color: var(--s); box-shadow: 0 0 0 2px rgba(6, 182, 212, .25); }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 4px; min-height: 300px; max-height: calc(100vh - 290px); }
.msg { position: relative; max-width: 82%; padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: var(--solid); border: 1px solid var(--line); animation: rise .25s; }
.msg.user { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; border: 0; }
.msg.assistant { padding-right: 44px; }
.msg .say { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 10px; border: 0; background: var(--glass2); }
.msg .off { display: block; margin-top: 6px; color: var(--warn); font-weight: 700; font-size: .74rem; }
.corr { margin-top: 10px; display: grid; gap: 6px; }
.corr div { padding: 8px 10px; border-radius: 12px; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .3); font-size: .9rem; }
.corr s { color: #FDA4AF; } .corr b { color: #86EFAC; } .corr small { display: block; color: var(--muted); margin-top: 3px; }
[data-theme="light"] .corr s { color: #BE123C; } [data-theme="light"] .corr b { color: #15803D; }
.sc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc span { padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--glass2); }
.sc .g { color: var(--ok); } .sc .m { color: var(--warn); } .sc .b { color: var(--bad); }
.tip { margin-top: 10px; padding: 8px 11px; border-radius: 12px; background: rgba(139, 92, 246, .14); font-size: .88rem; }
.typing { display: flex; gap: 5px; padding: 16px; } .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--s); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-radius: 18px; background: var(--solid); border: 1px solid var(--line2); }
.composer textarea { flex: 1; resize: none; border: 0; background: transparent; outline: none; padding: 9px 4px; max-height: 140px; min-height: 42px; }
.mic, .send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; border: 0; font-size: 1.15rem; }
.mic { background: var(--glass2); } .mic.on { background: var(--bad); color: #fff; animation: avPulse 1s infinite; }
.send { background: var(--grad); color: #fff; }
.hint { margin: 8px 4px 0; color: var(--muted); font-size: .8rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: .25; } }

/* darslar, testlar, mashqlar */
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--text) !important; transition: transform .15s; animation: rise .4s both; animation-delay: calc(var(--i, 0) * 30ms); }
.lesson:hover { transform: translateY(-3px); } .lesson div { flex: 1; display: grid; } .lesson small { color: var(--muted); font-weight: 700; }
.l-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--glass2); font-size: 1.4rem; }
.l-sc { font-weight: 800; color: var(--muted); } .l-sc.g { color: var(--ok); } .l-sc.m { color: var(--warn); } .l-sc.b { color: var(--bad); }
.lesson-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.rule h1 { font-size: 1.6rem; margin-bottom: 12px; } .rule-txt { font-size: 1.04rem; } .rule-txt strong { color: #93C5FD; } [data-theme="light"] .rule-txt strong { color: var(--p); }
.rule h3 { margin: 16px 0 8px; font-size: .95rem; }
.exs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.exs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--glass2); font-weight: 600; }
.exs .say, .say { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--solid); flex-shrink: 0; }
.q-top { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: .85rem; }
.q { font-size: 1.35rem; margin: 18px 0; }
.opts { display: grid; gap: 10px; }
.opts button { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 16px; border: 2px solid var(--line2); background: var(--solid); text-align: left; font-weight: 700; font-size: 1rem; transition: transform .15s, border-color .15s; }
.opts button:hover:not(:disabled) { transform: translateX(4px); border-color: var(--p); }
.opts i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--glass2); font-style: normal; font-weight: 900; color: var(--s); flex-shrink: 0; }
.opts .ok { border-color: var(--ok); background: rgba(34, 197, 94, .12); } .opts .bad { border-color: var(--bad); background: rgba(244, 63, 94, .1); }
.fb { min-height: 1.5em; margin-top: 12px; font-weight: 800; } .fb.good { color: var(--ok); } .fb.bad { color: var(--bad); }
.res { text-align: center; display: grid; justify-items: center; gap: 8px; } .res .cta { justify-content: center; }
.sp { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; margin-top: 14px; }
.target { font: 600 1.5rem/1.5 "Space Grotesk", sans-serif; margin: 0; }
.target .hit { color: var(--ok); } .target .miss { color: var(--bad); text-decoration: underline wavy; }
.said { color: var(--muted); font-style: italic; min-height: 1.5em; }
.sp-score { display: flex; align-items: center; gap: 16px; margin-top: 14px; } .sp-score .target { font-size: 1.1rem; }
#rec.on { background: var(--bad); animation: avPulse 1s infinite; }
.li textarea, #essay { width: 100%; margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--solid); resize: vertical; font-size: 1.02rem; }
.reading { font-size: 1.08rem; line-height: 1.75; margin: 14px 0; }
.rq { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; display: grid; gap: 6px; }
.rq legend { font-weight: 800; padding: 0 6px; } .rq label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.rq.ok { border-color: var(--ok); } .rq.bad { border-color: var(--bad); }
.prompt { font-weight: 700; font-size: 1.05rem; margin: 14px 0 0; }
.wr-res { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--glass2); } .wr-res .txt { margin-top: 10px; }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 24px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { padding: 10px 15px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 800; animation: rise .3s; transition: opacity .4s; }
.toast.out { opacity: 0; } .toast-xp { background: var(--grad); color: #fff; border: 0; } .toast-badge { background: linear-gradient(135deg, var(--warn), var(--bad)); color: #fff; border: 0; }
.toast-warn { border-color: var(--warn); }

/* moslashuvchanlik */
@media (max-width: 1560px) { .nav b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .nav a { font-size: 1.1rem; padding: 8px 9px; } }
@media (max-width: 980px) {
  .grid2, .grid3, .lesson-wrap, .chat-page { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; } .hero .cta { justify-content: center; } .hero-av .av { max-width: 170px; }
  .teacher { position: static; grid-template-columns: 120px 1fr; } .teacher > div:first-child { grid-row: span 3; }
  .msgs { max-height: 60vh; } .sp { grid-template-columns: 1fr; } .sp-av .av { max-width: 150px; }
}
@media (max-width: 760px) {
  .top { height: 58px; gap: 8px; padding: 0 10px; } .nav, .chip, .brand span:last-child { display: none; } .top-r { margin-left: auto; gap: 6px; }
  .site b { display: none; } .site { padding: 0 11px; } .switch { padding: 0 9px; } .subj button { padding: 6px 8px; font-size: .78rem; }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bnav a { display: grid; justify-items: center; gap: 1px; padding: 4px 8px; border-radius: 12px; text-decoration: none; color: var(--muted) !important; font-size: .64rem; font-weight: 800; }
  .bnav a span { font-size: 1.25rem; } .bnav a.on { color: var(--text) !important; background: var(--glass2); }
  .page { padding: 16px 12px 110px; } .toasts { bottom: 86px; }
  .teacher { grid-template-columns: 1fr; } .teacher > div:first-child { grid-row: auto; } .teacher .av { max-width: 140px; }
  .msg { max-width: 92%; }
}
@media (max-width: 420px) { .seg#langs button { padding: 5px 7px; } .ibtn { display: none; } }
