/* TestPro dizayn tizimi: tungi osmon foni, olovrang (amber) va moviy urg'ular, shisha kartochkalar, serif sarlavhalar */

/* ---------- Ranglar: tungi rejim (asosiy) ---------- */
:root, :root[data-theme="dark"] {
  --bg: #0a1222; --bg-glow-1: rgba(214, 120, 34, .22); --bg-glow-2: rgba(56, 152, 196, .16);
  --panel: rgba(23, 36, 62, .62); --panel-solid: #15223b; --panel-hi: rgba(32, 50, 84, .7);
  --well: rgba(255, 255, 255, .035); --raise: rgba(255, 255, 255, .08);
  --ink: #e6ebf4; --head: #ffffff; --soft: #c3cde0; --muted: #8a9ab8; --faint: #5f6f8e;
  --line: rgba(150, 175, 220, .14); --hair: rgba(150, 175, 220, .08); --edge2: rgba(150, 175, 220, .26);
  --accent: #f4a640; --accent-2: #e2731c; --accent-grad: linear-gradient(135deg, #f8bf5e 0%, #e8862a 55%, #d8691a 100%);
  --accent-ink: #1f1304; --accent-soft: rgba(244, 166, 64, .14); --accent-line: rgba(244, 166, 64, .45);
  --cyan: #5cc8ea; --cyan-soft: rgba(92, 200, 234, .14);
  --cream: #f6e3c4; --gold: #f4a640; --gold-soft: rgba(244, 166, 64, .14);
  --good: #4ade80; --good-soft: rgba(74, 222, 128, .12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
  --sh-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -18px rgba(0, 0, 0, .6);
  --sh-pop: 0 18px 50px -12px rgba(0, 0, 0, .65);
  --sh-btn: none;
  --hero: linear-gradient(110deg, rgba(168, 92, 26, .78) 0%, rgba(58, 52, 64, .7) 38%, rgba(30, 52, 88, .72) 70%, rgba(46, 102, 140, .7) 100%);
  color-scheme: dark;
}

/* ---------- Ranglar: yorug' rejim ---------- */
:root[data-theme="light"] {
  --bg: #f3efe7; --bg-glow-1: rgba(236, 150, 60, .2); --bg-glow-2: rgba(80, 160, 200, .14);
  --panel: rgba(255, 255, 255, .78); --panel-solid: #ffffff; --panel-hi: rgba(255, 255, 255, .95);
  --well: rgba(20, 30, 60, .035); --raise: #ffffff;
  --ink: #1b2333; --head: #0d1424; --soft: #3a4558; --muted: #6b778c; --faint: #a0a9b8;
  --line: rgba(30, 45, 80, .12); --hair: rgba(30, 45, 80, .07); --edge2: rgba(30, 45, 80, .22);
  --accent: #c96a12; --accent-2: #b4560c; --accent-grad: linear-gradient(135deg, #f3a94a 0%, #e0791f 55%, #c9600f 100%);
  --accent-ink: #ffffff; --accent-soft: rgba(217, 119, 6, .1); --accent-line: rgba(217, 119, 6, .38);
  --cyan: #1d8fb6; --cyan-soft: rgba(29, 143, 182, .1);
  --cream: #7a4a12; --gold: #c96a12; --gold-soft: rgba(217, 119, 6, .1);
  --good: #15803d; --good-soft: rgba(21, 128, 61, .1);
  --bad: #c62828; --bad-soft: rgba(198, 40, 40, .08);
  --sh-card: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px -18px rgba(16, 24, 40, .25);
  --sh-pop: 0 18px 50px -12px rgba(16, 24, 40, .3);
  --hero: linear-gradient(110deg, #b4651f 0%, #6b4a3a 38%, #24395f 70%, #2f6f96 100%);
  color-scheme: light;
}

:root {
  /* Shrift: asosiy — Manrope (matn) + Lora (sarlavhalar). Boshqalari Sozlamalar > Ko'rinish'dan tanlanadi */
  --f-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-disp: "Lora", Georgia, "Times New Roman", serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 18px; --r-in: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-spring: cubic-bezier(.3, 1.6, .5, 1);
}

/* ---------- Asos ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh; color: var(--ink); font-family: var(--f-ui); font-size: 14px; line-height: 1.5; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 8% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 700px at 105% 30%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--f-disp); color: var(--head); letter-spacing: -.02em; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 22px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
code { font-family: var(--f-mono); font-size: .84em; color: var(--soft); background: var(--well); border: 1px solid var(--hair); padding: 0 5px; border-radius: 5px; }
.sp { flex: 1; }

/* ---------- Shisha kartochka ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; min-width: 0;
  box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.narrow { width: 100%; max-width: 430px; }
.left { margin: 0; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }

/* ---------- Brend ---------- */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Logotip belgisi */
.logo {
  position: relative; width: 50px; height: 50px; flex: 0 0 50px; display: block; border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)) drop-shadow(0 0 10px rgba(244, 166, 64, .22));
}
.logo::after { /* sekin o'tuvchi yaltiroq nur */
  content: ""; position: absolute; inset: 6px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; animation: lg-shine 6s 1.2s ease-in-out infinite;
}
@keyframes lg-shine { 0%, 70% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.logo .lg-orbit { transform-origin: 24px 24px; animation: spin-slow 22s linear infinite; }
.logo .lg-t, .logo .lg-v { stroke-dasharray: 40; stroke-dashoffset: 40; animation: lg-draw .9s .2s var(--ease) forwards; }
.logo .lg-v { animation-delay: .45s; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
.logo .lg-spark { transform-box: fill-box; transform-origin: center; animation: lg-spark 3.2s 1.4s ease-in-out infinite; opacity: 0; }
@keyframes lg-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 40% { opacity: 1; transform: scale(1.1) rotate(45deg); } 60% { opacity: .9; transform: scale(.9) rotate(70deg); } }
.brand:hover .logo .lg-orbit { animation-duration: 4s; }
.brand:hover .logo { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)) drop-shadow(0 0 16px rgba(244, 166, 64, .45)); }
.logo { transition: filter .3s; }

/* Nom va izoh */
.brand-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.brand-t b { display: block; font: 700 21px/1 var(--f-disp); color: var(--head); letter-spacing: -.02em; white-space: nowrap; }
.brand-t b .pro {
  margin-left: 1px; background: linear-gradient(135deg, #ffd98a 0%, #f4a640 50%, #e2731c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
}
.brand-t small {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.brand-t small::before { content: ""; width: 14px; height: 1.5px; border-radius: 2px; background: var(--accent-grad); flex: 0 0 14px; }
:root[data-theme="light"] .brand-t b .pro { background: linear-gradient(135deg, #f0a53a, #c9600f); -webkit-background-clip: text; background-clip: text; }

/* ---------- Tugmalar ---------- */
button {
  font-family: var(--f-ui); font-weight: 500; font-size: 13.5px; line-height: 1.2; color: var(--ink);
  background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; min-height: 36px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .15s, border-color .15s, box-shadow .2s, color .15s, transform .12s var(--ease);
}
button:hover:not(:disabled) { background: var(--raise); border-color: var(--edge2); }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pri {
  background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -10px rgba(232, 134, 42, .8);
}
.pri:hover:not(:disabled) { background: var(--accent-grad); filter: brightness(1.07); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -8px rgba(232, 134, 42, .9); }
.ghost { background: transparent; }
.wide { width: 100%; min-height: 46px; font-size: 14.5px; border-radius: 12px; margin-top: 6px; }
.sm { padding: 6px 11px; min-height: 30px; font-size: 12.5px; border-radius: 8px; }
.danger { color: var(--bad); }
.danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); }
.danger.arm { background: var(--bad); color: #fff; border-color: var(--bad); }
.link { background: none; border: 0; padding: 4px 2px; min-height: 0; color: var(--cyan); font-weight: 600; }
.link:hover:not(:disabled) { background: none; color: var(--accent); }

.rip { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: rip .6s var(--ease) forwards; }
.pri .rip { background: #fff; opacity: .4; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

/* Segment */
.seg { display: flex; gap: 3px; padding: 4px; background: var(--well); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px 12px; min-height: 32px; border-radius: 8px; font-size: 13px; }
.seg button:hover:not(:disabled) { background: transparent; color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent-grad); color: var(--accent-ink); font-weight: 600; box-shadow: 0 6px 16px -8px rgba(232, 134, 42, .9); }
.seg.small { margin: 0; display: inline-flex; }
.seg.small button { flex: 0 0 auto; }

/* ---------- Maydonlar ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  font-family: var(--f-ui); font-size: 13.5px; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-in);
  padding: 9px 12px; min-height: 38px; min-width: 0;
  transition: border-color .16s var(--ease), box-shadow .2s var(--ease), background-color .16s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--edge2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); background-color: var(--raise); }
input:disabled { opacity: .6; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9ab8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px;
}
select option { background: var(--panel-solid); color: var(--ink); }
textarea { width: 100%; resize: vertical; line-height: 1.55; font-family: var(--f-mono); font-size: 13px; }
input[type=search] {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a9ab8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 15px;
}
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--soft); margin-bottom: 14px; }
.fld input { font-size: 14px; min-height: 42px; }

input[type=checkbox] {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex: 0 0 auto; border: 1.5px solid var(--edge2); border-radius: 6px;
  background: var(--well); display: inline-grid; place-content: center; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .12s var(--ease);
}
input[type=checkbox]::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .22s var(--ease-spring); }
input[type=checkbox]:hover { border-color: var(--accent); }
input[type=checkbox]:active { transform: scale(.86); }
input[type=checkbox]:checked { background: var(--accent-grad); border-color: transparent; }
input[type=checkbox]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type=radio] { accent-color: var(--good); width: 18px; height: 18px; margin: 0; }

.msg { font-size: 13.5px; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; animation: pg-in .25s var(--ease) both; }
.msg.ok { background: var(--good-soft); color: var(--good); }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); margin: -8px 0 14px; font-weight: 400; }

/* ---------- Kirish sahifasi ---------- */
.auth-card { padding: 30px; animation: card-in .5s var(--ease) both; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent-grad); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.auth-top .brand { flex: 1; }
.auth-card h1 { font-size: 30px; }
.auth-forgot { display: block; margin: -6px 0 12px auto; font-size: 12.5px; font-weight: 500; }
.auth-card.recovery .seg, .auth-card.recovery .auth-forgot, .auth-card.recovery .fld-email { display: none; }

/* ---------- Karkas ---------- */
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; max-width: 1560px; margin: 0 auto; }
.side {
  margin: 14px 0 14px 14px; padding: 22px 16px 18px; display: flex; flex-direction: column; position: sticky; top: 14px; height: calc(100vh - 28px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-card); overflow: hidden;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
/* Yon menyu pastidagi orbita chiziqlari */
.side::after {
  content: ""; position: absolute; left: -120px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--line); box-shadow: 0 0 0 40px transparent, inset 0 0 0 60px transparent;
  background: radial-gradient(circle, transparent 54%, var(--hair) 55%, transparent 56%, transparent 70%, var(--hair) 71%, transparent 72%);
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.side > * { position: relative; z-index: 1; }
.side-top { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.side-top .brand { flex: 1; }
.side-tools { display: flex; gap: 8px; padding: 0 4px 14px; }
.side-sub { font-size: 13px; line-height: 1.55; color: var(--cyan); opacity: .85; padding: 0 4px 16px; margin: 0; }
.side nav { display: flex; flex-direction: column; gap: 3px; flex: 1; border-top: 1px solid var(--line); padding-top: 12px; overflow-y: auto; overflow-x: hidden; }
.side nav::before { content: "Bo'limlar"; font-size: 12px; font-weight: 600; color: var(--cyan); opacity: .8; padding: 6px 12px 8px; }
.side nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 10px 14px; min-height: 44px;
  background: transparent; color: var(--soft); font-size: 14.5px; font-weight: 500; overflow: hidden;
  transition: background .2s, color .2s, box-shadow .25s, transform .2s var(--ease);
}
.side nav button::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; opacity: .85;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  transition: transform .3s var(--ease-spring);
}
.side nav button:hover:not(:disabled) { background: var(--well); color: var(--head); transform: translateX(3px); }
.side nav button:hover::before { transform: scale(1.15) rotate(-6deg); }
.side nav button[aria-current="page"] {
  background: var(--accent-grad); color: var(--accent-ink); font-weight: 600; transform: none;
  box-shadow: 0 10px 26px -10px rgba(232, 134, 42, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  animation: nav-on .35s var(--ease);
}
.side nav button[aria-current="page"]::before { opacity: 1; }
@keyframes nav-on { from { transform: scale(.96); filter: brightness(1.25); } }
.soon { margin-left: auto; font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: var(--well); border: 1px solid var(--line); color: var(--faint); font-weight: 500; }
[aria-current="page"] .soon { background: rgba(0, 0, 0, .12); color: var(--accent-ink); border-color: transparent; }
.side-year { margin-top: 12px; padding: 12px 12px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--cyan); opacity: .75; }
.me { margin-top: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); display: flex; align-items: center; gap: 8px; }
.me > div { flex: 1; min-width: 0; }
.me b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--head); }
.me small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.me small.admin { color: var(--accent); font-weight: 600; }
.me small.admin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* Menyu ikonlari */
[data-page="home"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
[data-page="bank"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7.5' ry='2.5'/%3E%3Cpath d='M4.5 5.5v13c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5v-13'/%3E%3Cpath d='M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5'/%3E%3C/svg%3E"); }
[data-page="build"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
[data-page="results"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='4' width='13' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1'/%3E%3Cpath d='m9 13 2 2 4-4'/%3E%3C/svg%3E"); }
[data-page="school"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V10l7-5 7 5v11'/%3E%3Cpath d='M10 21v-5h4v5'/%3E%3Cpath d='M12 5V2.5h3'/%3E%3C/svg%3E"); }
[data-page="admin"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.2 8 9 4.6-.8 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
[data-page="settings"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1'/%3E%3C/svg%3E"); }

:root {
  --ic-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7.5' ry='2.5'/%3E%3Cpath d='M4.5 5.5v13c0 1.4 3.4 2.5 7.5 2.5'/%3E%3Cpath d='M19.5 5.5V11'/%3E%3Cpath d='M18 15v6M15 18h6'/%3E%3C/svg%3E");
  --ic-build: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 7.5l9 4.5 9-4.5L12 3z'/%3E%3Cpath d='m3 12 9 4.5 9-4.5'/%3E%3Cpath d='m3 16.5 9 4.5 9-4.5'/%3E%3C/svg%3E");
  --ic-res: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E");
  --ic-school: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V10l7-5 7 5v11'/%3E%3Cpath d='M10 21v-5h4v5'/%3E%3Cpath d='M12 5V2.5h3'/%3E%3C/svg%3E");
  --ic-set: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.content { padding: 14px 22px 60px; min-width: 0; }
.content > section:not([hidden]) { animation: pg-in .4s var(--ease) both; }
.content > section { padding-top: 10px; }
@keyframes pg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Bosh sahifa: salomlashuv bloki ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 40px 40px 36px; margin-bottom: 18px;
  background: var(--hero); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--sh-pop);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; animation: card-in .55s var(--ease) both; color: #fff;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #f8bf5e, #e2731c 40%, transparent 85%); }
.hero-txt { position: relative; z-index: 1; flex: 1 1 380px; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #f6e3c4; margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); color: #fff; margin: 0 0 12px; animation: rise .7s .1s var(--ease) both; }
.hero p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 15.5px; animation: rise .7s .2s var(--ease) both; }
.hero p b { color: #fff; }
.hero p .hl { color: #8fdcf5; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; animation: rise .7s .3s var(--ease) both; }
.hero-pri { background: #f8e6c6; color: #2a1a06; border: 0; font-weight: 600; font-size: 15px; padding: 13px 20px; min-height: 48px; border-radius: 14px; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6); }
.hero-pri:hover:not(:disabled) { background: #fff3dd; transform: translateY(-2px); }
.hero-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .28); font-size: 15px; padding: 13px 20px; min-height: 48px; border-radius: 14px; }
.hero-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.hero-orbit { position: absolute; right: -60px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); pointer-events: none; opacity: .55; }
.hero-orbit circle { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.hero-orbit .o1 { animation: spin-slow 40s linear infinite; transform-origin: 210px 210px; }
.hero-orbit .o2 { animation: spin-slow 26s linear infinite reverse; transform-origin: 210px 210px; }
.hero-orbit .dot { fill: #fff; stroke: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3s ease-in-out infinite; }
.stars i:nth-child(1) { left: 52%; top: 18%; } .stars i:nth-child(2) { left: 68%; top: 30%; animation-delay: .8s; }
.stars i:nth-child(3) { left: 60%; top: 78%; animation-delay: 1.6s; } .stars i:nth-child(4) { left: 86%; top: 14%; animation-delay: .4s; }
.stars i:nth-child(5) { left: 42%; top: 64%; animation-delay: 2.2s; width: 2px; height: 2px; } .stars i:nth-child(6) { left: 77%; top: 70%; animation-delay: 1.2s; }
@keyframes twinkle { 50% { opacity: .1; transform: scale(.5); } }

/* ---------- Raqamli kartochkalar ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; padding: 22px 22px 20px; animation: card-in .5s var(--ease) both; }
.kpi:nth-child(2) { animation-delay: 70ms; } .kpi:nth-child(3) { animation-delay: 140ms; } .kpi:nth-child(4) { animation-delay: 210ms; }
.kpi::before { content: ""; display: block; width: 30px; height: 4px; border-radius: 4px; background: var(--c); margin-bottom: 16px; box-shadow: 0 0 14px var(--c); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .14; filter: blur(30px); transition: opacity .3s, transform .4s var(--ease); }
.kpi:hover { transform: translateY(-4px); border-color: var(--edge2); box-shadow: var(--sh-pop); }
.kpi:hover::after { opacity: .28; transform: scale(1.3); }
.kpi-l { display: block; font-size: 14px; color: var(--soft); margin-bottom: 6px; }
.num { display: block; font: 700 46px/1.05 var(--f-disp); color: var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Grafik va tezkor amallar ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.dash-grid > .card { padding: 24px; animation: card-in .55s .25s var(--ease) both; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 8px; height: 220px; padding-top: 18px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; min-width: 0; }
.bar-v {
  width: 100%; max-width: 30px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; position: relative;
  background: linear-gradient(180deg, #f8bf5e, #d8691a); box-shadow: 0 6px 18px -8px rgba(232, 134, 42, .9);
  transform-origin: bottom; animation: growy .9s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms + .35s);
}
.bar-v.zero { background: var(--line); box-shadow: none; }
.bar-v.today { background: linear-gradient(180deg, #8fdcf5, #3198c2); box-shadow: 0 6px 18px -8px rgba(92, 200, 234, .9); }
.bar-v[data-n]:not([data-n="0"])::after {
  content: attr(data-n); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--soft);
  opacity: 0; animation: fade-in .4s both; animation-delay: calc(var(--i) * 45ms + .9s);
}
@keyframes growy { from { transform: scaleY(0); } }
.bar span { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bar:hover .bar-v { filter: brightness(1.15); }
.chart-empty { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.qa {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i a" "t t"; align-items: start; gap: 14px 10px; text-align: left;
  padding: 16px; min-height: 120px; border-radius: 16px; background: var(--well); border: 1px solid var(--line);
}
.qa i { grid-area: i; }
.qa div { grid-area: t; }
.qa .arr { grid-area: a; justify-self: end; font-size: 18px; }
.qa:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--qc); background: var(--raise); box-shadow: 0 12px 28px -16px var(--qc); }
.qa i {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--qc);
  border: 1px solid var(--qc); background: color-mix(in srgb, var(--qc) 14%, transparent); box-shadow: 0 0 18px -6px var(--qc);
}
.qa i::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.qa div { flex: 1; min-width: 0; }
.qa b { display: block; font-size: 14.5px; color: var(--head); margin-bottom: 3px; }
.qa small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.qa .arr { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.qa:hover .arr { transform: translateX(4px); color: var(--qc); }

/* ---------- Rejim tugmasi ---------- */
/* Osmon ko'rinishidagi almashtirgich: chapda quyosh (kunduz), o'ngda oy (tun) */
.tgl {
  --w: 66px; --h: 34px; --k: 26px; --pad: 4px;
  position: relative; flex: 0 0 var(--w); width: var(--w); height: var(--h); min-height: var(--h); padding: 0;
  border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, #0c1530 0%, #1a2a52 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .03);
  transition: background .6s var(--ease), border-color .4s, box-shadow .3s;
}
.tgl:hover:not(:disabled) { border-color: var(--accent-line); background: linear-gradient(180deg, #0c1530 0%, #1a2a52 100%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 4px var(--accent-soft); }
.tgl:active:not(:disabled) { transform: none; }
:root[data-theme="light"] .tgl,
:root[data-theme="light"] .tgl:hover:not(:disabled) {
  background: linear-gradient(180deg, #6cc3f2 0%, #a8dcf7 100%); border-color: rgba(30, 110, 170, .25);
  box-shadow: inset 0 2px 5px rgba(20, 80, 130, .3), 0 0 0 4px rgba(108, 195, 242, .15);
}

/* Osmon: yulduzlar (tun) va bulutlar (kunduz) */
.tg-sky { position: absolute; inset: 0; pointer-events: none; }
.tg-sky .st { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; transition: opacity .5s, transform .6s var(--ease); animation: tw 2.4s ease-in-out infinite; }
.tg-sky .s1 { left: 10px; top: 9px; } .tg-sky .s2 { left: 20px; top: 21px; width: 1.5px; height: 1.5px; animation-delay: .7s; }
.tg-sky .s3 { left: 27px; top: 8px; width: 1.5px; height: 1.5px; animation-delay: 1.4s; } .tg-sky .s4 { left: 14px; top: 15px; width: 1px; height: 1px; animation-delay: .3s; }
@keyframes tw { 50% { opacity: .2; transform: scale(.5); } }
.tg-sky .cl { position: absolute; height: 9px; border-radius: 9px; background: #fff; opacity: 0; transform: translateX(14px); transition: opacity .5s, transform .7s var(--ease); }
.tg-sky .cl::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: inherit; left: 4px; top: -5px; }
.tg-sky .c1 { width: 20px; right: 9px; top: 15px; }
.tg-sky .c2 { width: 13px; right: 6px; top: 7px; opacity: 0; }
:root[data-theme="light"] .tg-sky .st { opacity: 0; transform: translateY(-6px); animation: none; }
:root[data-theme="light"] .tg-sky .c1 { opacity: .95; transform: none; }
:root[data-theme="light"] .tg-sky .c2 { opacity: .7; transform: none; transition-delay: .08s; }

/* Surilgich: kunduzi quyosh, kechasi oy */
.tg-knob {
  position: absolute; top: calc((var(--h) - 2px - var(--k)) / 2); left: var(--pad); width: var(--k); height: var(--k); border-radius: 50%;
  transform: translateX(calc(var(--w) - 2px - var(--k) - var(--pad) * 2)) rotate(0deg);
  background:
    radial-gradient(circle at 34% 36%, rgba(120, 100, 70, .28) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 64% 62%, rgba(120, 100, 70, .24) 0 3.6px, transparent 4.2px),
    radial-gradient(circle at 62% 26%, rgba(120, 100, 70, .2) 0 1.8px, transparent 2.4px),
    radial-gradient(circle at 35% 35%, #fffaf0, #e9dfc8 70%, #d3c6a8);
  box-shadow: 0 0 0 4px rgba(246, 227, 196, .08), 0 0 14px rgba(246, 227, 196, .45), inset -3px -3px 6px rgba(0, 0, 0, .18);
  transition: transform .6s var(--ease-spring), background .5s, box-shadow .5s, width .2s var(--ease);
}
.tgl:hover .tg-knob { box-shadow: 0 0 0 5px rgba(246, 227, 196, .12), 0 0 20px rgba(246, 227, 196, .6), inset -3px -3px 6px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .tg-knob {
  transform: translateX(0) rotate(-180deg);
  background: radial-gradient(circle at 38% 34%, #fffbe6 0%, #ffd75e 45%, #f7a21b 100%);
  box-shadow: 0 0 0 4px rgba(255, 214, 94, .28), 0 0 16px rgba(255, 190, 40, .85), inset -2px -3px 5px rgba(200, 110, 0, .35);
  animation: sun-glow 3s ease-in-out infinite;
}
@keyframes sun-glow { 50% { box-shadow: 0 0 0 7px rgba(255, 214, 94, .18), 0 0 22px rgba(255, 190, 40, .95), inset -2px -3px 5px rgba(200, 110, 0, .35); } }
.tg-knob .cr { display: none; }

/* Yon menyudagi yozuv */
.side-tools { align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--well); }
.tgl-lbl { display: flex; flex-direction: column; line-height: 1.2; cursor: pointer; min-width: 0; user-select: none; }
.tgl-lbl b { font-size: 13px; font-weight: 600; color: var(--head); }
.tgl-lbl small { font-size: 11.5px; color: var(--muted); }
.tgl-lbl .t-light { display: none; }
:root[data-theme="light"] .tgl-lbl .t-light { display: inline; }
:root[data-theme="light"] .tgl-lbl .t-dark { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Xabar ---------- */
#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px;
  background: var(--panel-solid); color: var(--head); border: 1px solid var(--line); padding: 11px 18px; border-radius: 14px; font-weight: 500; font-size: 13.5px;
  box-shadow: var(--sh-pop); max-width: calc(100% - 32px); animation: t-in .35s cubic-bezier(.2, .8, .2, 1);
}
#toast svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--good); }
#toast svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .45s .12s ease forwards; }
@keyframes t-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.95); } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Savollar bazasi ---------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.head-row .muted { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; margin-bottom: 16px; }
.filters input { flex: 1 1 240px; }
.filters select { flex: 0 1 auto; }

.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-card { padding: 20px 22px; animation: card-in .45s var(--ease) both; }
.q-card:hover { border-color: var(--edge2); transform: translateY(-2px); }
.q-card:nth-child(2) { animation-delay: 40ms; } .q-card:nth-child(3) { animation-delay: 80ms; }
.q-card:nth-child(4) { animation-delay: 120ms; } .q-card:nth-child(5) { animation-delay: 160ms; }
.q-card:nth-child(6) { animation-delay: 200ms; } .q-card:nth-child(n+7) { animation-delay: 240ms; }
.q-card.leaving { animation: li-out .32s var(--ease) forwards; }
@keyframes li-out { to { opacity: 0; transform: translateX(-16px) scale(.97); } }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 2px 9px; line-height: 1.6; border-radius: 99px; background: var(--well); border: 1px solid var(--line); color: var(--soft); font-weight: 500; }
.pill.d1, .pill.d2, .pill.d3 { border-color: transparent; }
.pill.d1 { background: var(--good-soft); color: var(--good); }
.pill.d2 { background: var(--accent-soft); color: var(--accent); }
.pill.d3 { background: var(--bad-soft); color: var(--bad); }
.pill.d1::before, .pill.d2::before, .pill.d3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pub { background: var(--cyan-soft); color: var(--cyan); border-color: transparent; font-weight: 600; }
.q-body { font-family: var(--f-disp); font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.q-body > b:first-child { color: var(--accent); }
.q-opts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-family: var(--f-disp); font-size: 16px; }
.q-opts li { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--hair); background: var(--well); overflow-x: auto; overflow-y: hidden; }
.q-opts li b { color: var(--muted); font-weight: 700; margin-right: .25em; }
.q-opts li.ok { background: var(--good-soft); border-color: rgba(74, 222, 128, .35); color: var(--good); }
.q-opts li.ok b { color: var(--good); }
.q-sol { margin-top: 12px; font-size: 13.5px; }
.q-sol summary { cursor: pointer; color: var(--cyan); font-weight: 600; width: max-content; }
.q-sol[open] > div { animation: pg-in .26s var(--ease) both; }
.q-sol div { padding: 6px 0 2px 12px; border-left: 2px solid var(--accent-line); margin-top: 6px; white-space: pre-line; font-family: var(--f-disp); font-size: 15.5px; color: var(--ink); }
.q-more { width: 100%; min-height: 48px; border-style: dashed; color: var(--accent); font-weight: 600; }
.q-more small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.empty-box { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--muted); padding: 48px 20px; border-style: dashed; font-size: 14px; }
.empty-box::before {
  content: ""; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--accent-line);
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a640' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7.5' ry='2.5'/%3E%3Cpath d='M4.5 5.5v13c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5v-13'/%3E%3Cpath d='M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 0 24px -6px rgba(244, 166, 64, .6); animation: floaty 3.4s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-5px); } }
.muted-i { color: var(--faint); font-style: italic; }
mjx-container { max-width: 100%; color: inherit; }
mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; }
body.no-scroll { overflow: hidden; }

/* ---------- Muharrir oynasi ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.drawer-bg { position: absolute; inset: 0; background: rgba(4, 8, 18, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .25s ease; }
.drawer-panel {
  position: relative; width: min(660px, calc(100% - 20px)); margin: 10px; height: calc(100% - 20px); border-radius: 24px; overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--sh-pop);
  animation: drawer-in .4s var(--ease) both;
}
@keyframes drawer-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--well); }
.drawer-foot .msg { flex: 1 1 100%; margin: 0; }
.drawer .fld select, .drawer .fld input { width: 100%; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opts-edit { border: 0; padding: 0; margin: 0 0 14px; }
.opts-edit legend { font-size: 12.5px; font-weight: 500; color: var(--soft); margin-bottom: 8px; }
.opts-edit legend .hint { margin: 0; }
.opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.opt-row b { width: 1.2em; color: var(--muted); font-family: var(--f-disp); font-size: 16px; }
.opt-row input[type=text] { flex: 1; }
.opt-row:has(input[type=radio]:checked) input[type=text] { border-color: rgba(74, 222, 128, .5); background: var(--good-soft); }
.opt-row:has(input[type=radio]:checked) b { color: var(--good); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); color: var(--soft); }
.preview-box { border: 1px dashed var(--edge2); border-radius: 14px; padding: 16px 18px; background: var(--well); }
.preview-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.q-sol-prev { margin-top: 10px; font-size: 14.5px; color: var(--muted); font-family: var(--f-disp); }

/* ---------- Test tuzish ---------- */
.build-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.build-side {
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; max-height: calc(100vh - 28px); min-width: 0;
  /* Ichki aylantirish oxiriga yetganda sahifa aylanishda davom etadi (overscroll "auto") */
  overflow-y: auto; overscroll-behavior: auto; padding: 0 6px 2px 0; margin-right: -6px;
  scrollbar-width: thin; scrollbar-color: var(--edge2) transparent;
}
.build-side > .card { flex: 0 0 auto; }
.b-box { padding: 18px; animation: card-in .45s var(--ease) both; }
.b-topics { display: flex; flex-direction: column; animation-delay: 80ms; }
.b-topics .topic-list { max-height: 420px; }
.b-topics .card-h { margin-bottom: 10px; gap: 6px; }
.b-topics h2 { font-size: 19px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.b-box .fld select, .b-box .fld input { width: 100%; }
.b-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.b-lbl { font-size: 12.5px; font-weight: 500; color: var(--soft); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); margin-bottom: 10px; cursor: pointer; }
.wide-sec { width: 100%; margin-top: 4px; }
.warn { color: var(--accent); }

.topic-list { list-style: none; margin: 0; padding: 0 2px 2px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.topic-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .2s; }
.topic-list li:hover { background: var(--well); }
.topic-list li.on { background: var(--accent-soft); border-color: var(--accent-line); }
.t-nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.t-nm small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.t-empty { color: var(--muted); font-size: 13.5px; padding: 14px 4px; }
.stp { display: flex; align-items: center; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--well); }
.stp button { width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 16px; line-height: 1; color: var(--soft); }
.stp button:hover:not(:disabled) { background: var(--raise); color: var(--head); }
.stp .n { min-width: 2em; text-align: center; font-weight: 700; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stp.big button { width: 34px; height: 34px; min-height: 34px; font-size: 18px; }
.stp.big input {
  width: 3.2em; min-height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center;
  font: 700 16px var(--f-ui); color: var(--accent); font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stp.big input::-webkit-inner-spin-button, .stp.big input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stp.big input:focus { box-shadow: none; background: transparent; }
.stp.big:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.b-note { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; line-height: 1.45; }
#b-vtabs { flex-wrap: wrap; max-width: 100%; }
.on .stp { border-color: var(--accent-line); }
.on .stp .n { color: var(--accent); }
.stp .n.bump.up { animation: numin .3s var(--ease); }
.stp .n.bump.dn { animation: numdn .3s var(--ease); }
@keyframes numin { from { opacity: 0; transform: translateY(60%); } }
@keyframes numdn { from { opacity: 0; transform: translateY(-60%); } }

.build-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 14px; }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sheet-bar .check-row { margin: 0; }

/* Test varag'i: ikkala rejimda ham oq qog'oz */
.sheet {
  background: #fffdf8; color: #1b1b1f; border-radius: 6px; padding: 44px 48px 36px; min-height: 420px; min-width: 0;
  font-family: var(--f-disp); font-size: 16.5px; line-height: 1.5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .06);
  animation: paper-in .5s var(--ease) both;
}
@keyframes paper-in { from { opacity: 0; transform: translateY(16px) rotate(-.4deg); } }
.sh-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; text-align: center; font-family: var(--f-ui); color: #7a7a85; }
.sh-empty b { font: 700 22px var(--f-disp); color: #2a2a30; }
.sh-head { text-align: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid #1b1b1f; }
.sh-title { font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.sh-meta { font-family: var(--f-ui); font-size: 13px; color: #55555e; margin-top: 4px; }
.sh-meta b { color: #b4560c; }
.sh-fields { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 16px; font-size: 15px; }
.sh-fields i { display: inline-block; width: 220px; border-bottom: 1px solid #1b1b1f; vertical-align: -3px; }
.sh-fields i.s { width: 90px; }
.sh-qs { list-style: none; margin: 0; padding: 0; }
.sh-q { padding: 14px 0; border-bottom: 1px dashed #d9d6cc; break-inside: avoid; animation: pg-in .35s var(--ease) both; animation-delay: var(--d); }
.sh-q:last-child { border-bottom: 0; }
.sh-qb { overflow-wrap: anywhere; white-space: pre-line; }
.sh-qb b { margin-right: .2em; }
.sh-opts { display: grid; gap: 4px 14px; margin: 8px 0 0 1.6em; }
.sh-opts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-opts.c1 { grid-template-columns: minmax(0, 1fr); }
.sh-opts span { padding: 2px 6px; border-radius: 6px; overflow-x: auto; overflow-y: hidden; transition: background .25s, color .25s; }
.sh-opts b { margin-right: .25em; }
.sheet.show-key .sh-opts .ok { background: #dcf3e3; color: #13652f; }
.sheet mjx-container { color: inherit; }

.key-card { padding: 20px; animation: card-in .45s .15s var(--ease) both; }
.key-card h2 { font-size: 19px; margin-bottom: 12px; }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.key-table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.key-table th, .key-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); white-space: nowrap; }
.key-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; background: var(--well); }
.key-table td { font-weight: 600; color: var(--ink); }
.key-table tr.cur td { background: var(--accent-soft); color: var(--accent); }
.key-table tbody tr:last-child td { border-bottom: 0; }

.my-tests { padding: 22px; animation: card-in .45s .2s var(--ease) both; }
.my-tests .card-h { margin-bottom: 12px; }
.t-list { display: flex; flex-direction: column; gap: 8px; }
.t-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); transition: border-color .2s, transform .2s var(--ease); animation: card-in .35s var(--ease) both; }
.t-row:hover { border-color: var(--edge2); transform: translateY(-2px); }
.t-row.leaving { animation: li-out .32s var(--ease) forwards; }
.t-info { flex: 1 1 280px; min-width: 0; }
.t-info > b { display: block; font-size: 15px; color: var(--head); margin-bottom: 6px; }
.t-info .q-meta { margin: 0; }
.t-date { font-size: 12px; color: var(--faint); margin-left: 4px; }

/* ================= 5-bosqich: onlayn yechish ================= */
.pill.on-pill { background: var(--good-soft); color: var(--good); border-color: transparent; font-weight: 600; }
.pill.r-late { background: var(--bad-soft); color: var(--bad); border-color: transparent; font-size: 10.5px; margin-left: 4px; }
.on-btn { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); }
.on-btn:hover:not(:disabled) { background: var(--cyan-soft); border-color: var(--cyan); }

/* --- O'qituvchi: onlayn sozlamalar oynasi --- */
.on-panel { width: min(520px, calc(100% - 20px)); }
.on-name { margin: 0 0 16px; display: flex; flex-direction: column; gap: 3px; }
.on-name b { font: 700 19px/1.25 var(--f-disp); color: var(--head); }
.on-name span { font-size: 12.5px; color: var(--muted); }
.sw.on-big { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); margin-bottom: 14px; }
.sw.on-big .sw-t b { font-size: 14.5px; }
.sw.on-big:has(input:checked) { border-color: rgba(74, 222, 128, .45); background: var(--good-soft); }
.sw.on-big:has(input:checked) .sw-ui { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 0 12px -2px rgba(74, 222, 128, .7); }
.sw.sw-mini { padding: 8px 0 0; background: none; }
.sw.sw-mini:hover { background: none; }
.on-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; margin-bottom: 14px; transition: opacity .3s, filter .3s; }
.on-share.off, #on-tg-box.off { opacity: .45; filter: grayscale(.6); }
.on-code-box {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; border-radius: 16px;
  background: var(--hero); color: #fff; border: 1px solid rgba(255, 255, 255, .12); position: relative; overflow: hidden;
}
.on-code-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.on-code-box small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f6e3c4; }
.on-code-box b { font: 700 30px/1 var(--f-mono); letter-spacing: .18em; }
.on-qr { width: 148px; height: 148px; padding: 8px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-card); }
.on-qr img, .on-qr canvas { display: block; width: 132px; height: 132px; }
.on-link { display: flex; gap: 8px; }
.on-link input { flex: 1; font-family: var(--f-mono); font-size: 12.5px; }
.on-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px dashed var(--edge2); margin: 4px 0 0; }
.on-note b { color: var(--accent); }
.on-tg-s { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin: 2px 0 4px; }

/* --- Sozlamalar: Telegram kartochkasi --- */
.tg-card { margin-top: 16px; }
.tg-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tg-h b { display: block; font-size: 15px; }
.tg-h small { font-size: 12.5px; color: var(--muted); }
.tg-h small.on { color: var(--good); font-weight: 600; }
.tg-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #37aee2, #1e96c8); box-shadow: 0 6px 18px rgba(30, 150, 200, .35); }
.tg-p { margin: 0 0 14px; line-height: 1.5; }
.tg-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tg-wait { font-size: 12.5px; line-height: 1.5; color: var(--soft); background: var(--well); border: 1px dashed var(--edge2); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; }
.tg-wait a { color: var(--cyan); }
.tg-code { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: var(--well); border: 1px solid var(--line); user-select: all; word-break: break-all; }

/* --- O'qituvchi: Natijalar bo'limi --- */
.r-filters .dd { flex: 1 1 320px; }
.r-filters input { flex: 1 1 220px; }
.r-kpis .num span { font: inherit; }
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 16px; align-items: start; }
.r-table-card { padding: 20px; animation: card-in .5s .2s var(--ease) both; }
.r-table-card .card-h { margin-bottom: 12px; }
.r-side { display: flex; flex-direction: column; gap: 16px; }
.r-side .card { padding: 20px; animation: card-in .5s .28s var(--ease) both; }
.r-side h2 { font-size: 19px; margin-bottom: 14px; }
.r-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.r-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; background: var(--well); border-bottom: 1px solid var(--line); white-space: nowrap; }
.r-table td { padding: 10px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; color: var(--soft); }
.r-table tbody tr { animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); transition: background .15s; }
.r-table tbody tr:hover td { background: var(--well); }
.r-table td.r-n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.r-table .r-name { color: var(--head); font-weight: 600; }
.r-empty { text-align: center; padding: 34px 16px !important; color: var(--muted) !important; white-space: normal !important; }
.r-score { display: flex; align-items: center; gap: 8px; }
.r-score b { min-width: 3.4em; color: var(--head); font-variant-numeric: tabular-nums; }
.r-score small { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.r-bar { width: 64px; height: 6px; border-radius: 6px; background: var(--well); overflow: hidden; }
.r-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; animation: growx .8s var(--ease) both; transform-origin: left; }
@keyframes growx { from { transform: scaleX(0); } }
.g5 { --gc: #4ade80; } .g4 { --gc: #5cc8ea; } .g3 { --gc: #f4a640; } .g2 { --gc: #f87171; }
.r-bar i { background: var(--gc); }
.r-grade { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 700; color: var(--gc); background: color-mix(in srgb, var(--gc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent); }
.r-dist { display: flex; flex-direction: column; gap: 10px; }
.rd-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.rd-row.b5 { --gc: #4ade80; } .rd-row.b4 { --gc: #5cc8ea; } .rd-row.b3 { --gc: #f4a640; } .rd-row.b2 { --gc: #f87171; }
.rd-l { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; color: var(--gc); background: color-mix(in srgb, var(--gc) 15%, transparent); }
.rd-bar { height: 10px; border-radius: 10px; background: var(--well); overflow: hidden; }
.rd-bar i { display: block; height: 100%; width: var(--w); background: var(--gc); border-radius: inherit; box-shadow: 0 0 10px -2px var(--gc); transform-origin: left; animation: growx .9s var(--ease-spring) both; animation-delay: calc(var(--i) * 80ms + .2s); }
.rd-n { text-align: right; font-weight: 700; color: var(--head); font-variant-numeric: tabular-nums; }
.r-hard { list-style: none; margin: 0; padding: 0; counter-reset: q; display: flex; flex-direction: column; gap: 8px; }
.r-hard li { counter-increment: q; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--hair); }
.r-hard li::before { content: counter(q); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--raise); }
.r-hard li.muted { display: block; }
.r-hard li.muted::before { display: none; }
.rh-b { font-family: var(--f-disp); font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-p { font-weight: 700; font-size: 12.5px; padding: 2px 8px; border-radius: 99px; }
.rh-p.low { color: var(--bad); background: var(--bad-soft); } .rh-p.mid { color: var(--accent); background: var(--accent-soft); } .rh-p.hi { color: var(--good); background: var(--good-soft); }
@media (max-width: 1180px) { .r-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- O'quvchi sahifasi --- */
.solve { min-height: 100vh; padding: 18px 14px 40px; }
.sx { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-width: 0; }
.sx-in { animation: card-in .5s var(--ease) both; }
.sx-brand { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.sx-brand .logo { width: 44px; height: 44px; flex-basis: 44px; }
.sx-brand .t { flex: 1; min-width: 0; }
.sx-brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sx-brand b { display: block; font: 700 18px/1.2 var(--f-disp); color: var(--head); }
.sx-h { font-size: clamp(26px, 6vw, 36px); margin: 0 0 8px; text-wrap: balance; }
.sx-h2 { font-size: 21px; margin: 0 0 10px; }
.sx-m { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.sx-m b { color: var(--head); }
.sx-hero { background: var(--hero); color: #fff; border-color: rgba(255, 255, 255, .12); position: relative; overflow: hidden; padding: 26px 24px; }
.sx-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 30px rgba(255, 255, 255, .03); }
.sx-hero .sx-h { color: #fff; }
.sx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f6e3c4; margin-bottom: 8px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 500; }
.sx-chip i { width: 7px; height: 7px; border-radius: 50%; background: #8fdcf5; }
.sx-chip.gold i { background: #f8bf5e; }
.sx-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--soft); margin: 14px 0 7px; }
.sx-lbl:first-child { margin-top: 0; }
.sx-field { width: 100%; font-size: 16px !important; min-height: 50px !important; border-radius: 14px !important; padding: 12px 14px !important; }
.sx-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.sx-row2 .dd { width: 100%; display: flex; }
.sx-row2 .dd-btn { min-height: 50px; border-radius: 14px; font-size: 15px; }
.sx-rules { margin: 18px 0 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); font-size: 13.5px; color: var(--soft); line-height: 1.6; }
.sx-rules b { color: var(--accent); }
.sx-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; animation: pg-in .25s var(--ease) both; }
.sx-btn { min-height: 50px; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.sx-go { width: 100%; margin-top: 16px; min-height: 54px; font-size: 16px; }
.sx-load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 20px; color: var(--muted); }
.sx-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin-slow .8s linear infinite; }
.sx-err { text-align: center; padding: 40px 24px; }
.sx-err-i { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font: 800 30px var(--f-ui); color: var(--bad); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }

/* Yechish */
.sx-top { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 85%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.sx-top-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sx-top-t b { font-size: 14.5px; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-top-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-timer { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); font: 700 17px var(--f-mono); color: var(--head); font-variant-numeric: tabular-nums; }
.sx-timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); animation: pulse 2s ease-in-out infinite; }
.sx-timer.warn { color: var(--accent); border-color: var(--accent-line); } .sx-timer.warn i { background: var(--accent); }
.sx-timer.danger { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); animation: shake .5s ease-in-out infinite alternate; } .sx-timer.danger i { background: var(--bad); }
@keyframes shake { to { transform: translateX(1.5px); } }
.sx-prog { height: 6px; border-radius: 6px; background: var(--well); overflow: hidden; margin: -4px 4px 0; }
.sx-prog i { display: block; height: 100%; width: 0; background: var(--accent-grad); border-radius: inherit; transition: width .5s var(--ease); box-shadow: 0 0 12px rgba(232, 134, 42, .7); }
.sx-q { padding: 24px; }
.sx-q.from-r { opacity: 0; transform: translateX(26px); }
.sx-q.from-l { opacity: 0; transform: translateX(-26px); }
.sx-q.in { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.sx-q-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sx-q-n { font: 700 34px/1 var(--f-disp); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-q-h small { font-size: 13px; color: var(--muted); }
.sx-q-b { font-family: var(--f-disp); font-size: 19px; line-height: 1.55; color: var(--head); overflow-wrap: anywhere; white-space: pre-line; }
.sx-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.sx-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; min-height: 58px; border-radius: 16px;
  background: var(--well); border: 1.5px solid var(--line); font-family: var(--f-disp); font-size: 17px; color: var(--ink);
  animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i) * 45ms + .05s);
}
.sx-opt b { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 700 14px var(--f-ui); color: var(--muted); background: var(--raise); border: 1px solid var(--line); transition: all .25s var(--ease-spring); }
.sx-opt span { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.sx-opt:hover:not(:disabled) { border-color: var(--edge2); background: var(--raise); transform: translateX(3px); }
.sx-opt.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--head); box-shadow: 0 10px 24px -16px rgba(232, 134, 42, .9); }
.sx-opt.sel b { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; transform: scale(1.08); }
.sx-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sx-map-card { padding: 18px; }
.sx-map-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sx-map-h b { color: var(--head); }
.sx-map-h span { font-size: 12.5px; color: var(--muted); }
.sx-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.sx-map button { min-height: 40px; padding: 0; border-radius: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.sx-map button.done { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.sx-map button.cur { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--head); }
.sx-finish { width: 100%; margin-top: 14px; border-color: var(--accent-line); color: var(--accent); }

/* Tasdiqlash oynasi */
.sx-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.sx-modal-bg { position: absolute; inset: 0; background: rgba(4, 8, 18, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .2s ease; }
.sx-modal-c { position: relative; width: min(420px, 100%); padding: 26px 22px 20px; border-radius: 24px; background: var(--panel-solid); border: 1px solid var(--line); text-align: center; box-shadow: var(--sh-pop); animation: card-in .35s var(--ease-spring) both; }
.sx-modal-i { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font: 800 26px var(--f-ui); color: var(--good); background: var(--good-soft); }
.sx-modal-i.warn { color: var(--accent); background: var(--accent-soft); }
.sx-modal-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* Natija */
.sx-result { text-align: center; padding: 28px 22px; position: relative; overflow: hidden; }
.sx-result.g5 { --gc: #4ade80; } .sx-result.g4 { --gc: #5cc8ea; } .sx-result.g3 { --gc: #f4a640; } .sx-result.g2 { --gc: #f87171; }
.sx-result::before { content: ""; position: absolute; left: 50%; top: -80px; width: 360px; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--gc) 22%, transparent), transparent); pointer-events: none; }
.sx-tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.sx-ring { position: relative; width: 168px; height: 168px; margin: 4px auto 14px; }
.sx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-ring circle { fill: none; stroke-width: 10; }
.sx-ring .bg { stroke: var(--well); }
.sx-ring .fg { stroke: var(--gc); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); filter: drop-shadow(0 0 8px var(--gc)); animation: ring 1.4s .25s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: var(--o); } }
.sx-ring-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.sx-ring-t b { font: 700 48px/1 var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; }
.sx-ring-t small { font-size: 18px; color: var(--muted); margin-top: 14px; }
.sx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.sx-stats div { padding: 12px 8px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); }
.sx-stats small { display: block; font-size: 11.5px; color: var(--muted); }
.sx-stats b { display: block; font: 700 22px/1.2 var(--f-disp); color: var(--head); margin-top: 2px; }
.sx-sent { color: var(--good); font-weight: 600; margin-top: 14px; }
.sx-review { display: flex; flex-direction: column; gap: 10px; }
.sx-rv { padding: 14px 16px; border-radius: 16px; background: var(--well); border: 1px solid var(--hair); border-left: 3px solid var(--rc); }
.sx-rv.ok { --rc: #4ade80; } .sx-rv.no { --rc: #f87171; }
.sx-rv-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sx-rv-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.sx-rv-s { font-size: 12.5px; font-weight: 600; color: var(--rc); }
.sx-rv-b { font-family: var(--f-disp); font-size: 15.5px; color: var(--head); white-space: pre-line; overflow-wrap: anywhere; }
.sx-rv-o { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sx-rv-o span { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--hair); font-family: var(--f-disp); font-size: 14.5px; color: var(--soft); overflow-x: auto; }
.sx-rv-o span b { font: 700 12px var(--f-ui); color: var(--muted); }
.sx-rv-o span.t { border-color: rgba(74, 222, 128, .5); background: var(--good-soft); color: var(--good); }
.sx-rv-o span.f { border-color: rgba(248, 113, 113, .5); background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.sx-rv-y { margin-top: 10px; padding: 8px 12px; border-left: 2px solid var(--accent-line); font-family: var(--f-disp); font-size: 14.5px; color: var(--soft); white-space: pre-line; }
.sx-rv-y b { font-family: var(--f-ui); font-size: 12.5px; color: var(--accent); }
.sx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.sx-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall 3.2s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .2; } }
@media (max-width: 520px) {
  .sx-card { padding: 18px; border-radius: 20px; }
  .sx-q { padding: 18px; }
  .sx-q-b { font-size: 17.5px; }
  .sx-opt { font-size: 16px; padding: 12px 14px; }
  .sx-rv-o { grid-template-columns: minmax(0, 1fr); }
  .on-share { grid-template-columns: minmax(0, 1fr); }
  .on-qr { margin: 0 auto; }
}

/* ---------- Ochiluvchi ro'yxat (select o'rniga) ---------- */
.dd { position: relative; display: inline-flex; min-width: 0; }
.dd > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.fld .dd, .drawer .fld .dd, .b-box .fld .dd { display: flex; width: 100%; }
.filters .dd { flex: 0 1 auto; }
.dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0;
  min-height: 40px; padding: 9px 12px 9px 14px; border-radius: var(--r-in); text-align: left;
  font: 500 13.5px var(--f-ui); color: var(--ink); background: var(--well); border: 1px solid var(--line);
}
.dd-btn:hover:not(:disabled) { background: var(--raise); border-color: var(--edge2); }
.dd-btn:active:not(:disabled) { transform: none; }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-val em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--raise); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.dd-btn svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); transition: transform .3s var(--ease-spring), color .2s; }
.dd.open .dd-btn { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--raise); }
.dd.open .dd-btn svg { transform: rotate(180deg); color: var(--accent); }
.dd.pulse .dd-btn { animation: dd-pulse .5s var(--ease); }
@keyframes dd-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Ochilgan ro'yxat */
.dd-pop {
  position: fixed; z-index: 90; max-width: min(340px, calc(100vw - 16px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 16px; border: 1px solid var(--edge2);
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform-origin: top center; animation: dd-in .26s var(--ease) both;
  scrollbar-width: thin; scrollbar-color: var(--edge2) transparent;
}
.dd-pop.up { transform-origin: bottom center; animation-name: dd-in-up; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px) scaleY(.92); } }
@keyframes dd-in-up { from { opacity: 0; transform: translateY(6px) scaleY(.92); } }
:root[data-theme="light"] .dd-pop { box-shadow: 0 24px 50px -18px rgba(16, 24, 40, .35); }
.dd-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 12px 8px 10px; border-radius: 10px;
  font-size: 13.5px; color: var(--soft); cursor: pointer; user-select: none; white-space: nowrap;
  animation: dd-opt-in .3s var(--ease) both; animation-delay: calc(var(--i) * 14ms);
  transition: background .12s, color .12s;
}
@keyframes dd-opt-in { from { opacity: 0; transform: translateX(-4px); } }
.dd-opt.act { background: var(--raise); color: var(--head); }
.dd-opt.sel { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.dd-opt.sel.act { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.dd-opt.dis { opacity: .4; cursor: default; }
.dd-tick { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; }
.dd-tick svg { width: 15px; height: 15px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease-spring); }
.dd-opt.sel .dd-tick svg { opacity: 1; transform: none; }
.dd-nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dd-son { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--well); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.dd-opt.sel .dd-son { color: var(--accent); border-color: var(--accent-line); background: transparent; }
/* Birinchi "Barcha ..." bandi ostida ajratuvchi chiziq */
.dd-opt.all { margin-bottom: 7px; }
.dd-opt.all::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -4px; height: 1px; background: var(--line); }

/* ---------- Eksport kartochkasi ---------- */
.b-export { animation-delay: 40ms; }
.b-export .card-h { margin-bottom: 14px; }
.b-export h2 { font-size: 19px; }
.ex-sum { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.ex-sum:empty { display: none; }

/* Format tanlash: ikki katta kartochka */
.ex-format { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ex-format button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 12px 12px 11px; min-height: 96px; border-radius: 14px;
  background: var(--well); border: 1.5px solid var(--line); overflow: hidden;
}
.ex-format button:hover:not(:disabled) { border-color: var(--edge2); transform: translateY(-1px); }
.ex-format button[aria-checked="true"] { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 10%, transparent); box-shadow: 0 10px 24px -16px var(--fc); }
.ex-format button::after { /* tanlangan belgisi */
  content: ""; position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--edge2); transition: all .25s var(--ease-spring);
}
.ex-format button[aria-checked="true"]::after {
  border-color: var(--fc); background: var(--fc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.ex-format [data-fmt="word"] { --fc: #3b82f6; }
.ex-format [data-fmt="pdf"] { --fc: #ef5350; }
.fi {
  position: relative; flex: 0 0 34px; width: 34px; height: 40px; border-radius: 5px 11px 5px 5px; display: grid; place-items: end center;
  padding-bottom: 6px; font-style: normal; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .7);
}
.fi::before { content: ""; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 0 0 0 4px; background: rgba(255, 255, 255, .35); }
.fi b { font: 800 9.5px/1 var(--f-ui); letter-spacing: .03em; color: #fff; }
.fi.w { background: linear-gradient(160deg, #5a9bff, #1d5bd0); }
.fi.p { background: linear-gradient(160deg, #ff7a6b, #c62828); }
.ex-format span { display: flex; flex-direction: column; min-width: 0; max-width: 100%; line-height: 1.3; }
.ex-format span b { font-size: 13.5px; color: var(--head); }
.ex-format span small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Almashtirgichlar (switch) */
.ex-sw { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); }
.sw { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.sw:hover { background: var(--raise); }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw-ui { position: relative; flex: 0 0 36px; width: 36px; height: 21px; border-radius: 99px; background: var(--edge2); transition: background .25s var(--ease); }
.sw-ui::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-spring), width .15s; }
.sw:active .sw-ui::after { width: 20px; }
.sw input:checked + .sw-ui { background: var(--accent-grad); box-shadow: 0 0 12px -2px rgba(232, 134, 42, .6); }
.sw input:checked + .sw-ui::after { transform: translateX(15px); }
.sw:active input:checked + .sw-ui::after { transform: translateX(11px); }
.sw input:focus-visible + .sw-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sw-t b { font-size: 13px; font-weight: 600; color: var(--head); }
.sw-t small { font-size: 11.5px; color: var(--muted); }

/* Asosiy tugma: yuklanish va tayyor holatlari */
.ex-go { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.ex-go[data-fmt="word"] { background: linear-gradient(135deg, #5a9bff 0%, #2f74e8 55%, #1d5bd0 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -12px rgba(47, 116, 232, .9); }
.ex-go[data-fmt="pdf"] { background: linear-gradient(135deg, #ff8a7a 0%, #e5534b 55%, #c62828 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 24px -12px rgba(229, 83, 75, .9); }
.ex-go:hover:not(:disabled) { background-size: 100%; filter: brightness(1.08); }
.ex-ic { width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; -webkit-mask: var(--exi) center / contain no-repeat; mask: var(--exi) center / contain no-repeat; }
.ex-go[data-fmt="word"] .ex-ic { --exi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ex-go[data-fmt="pdf"] .ex-ic { --exi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V3h10v6'/%3E%3Crect x='3' y='9' width='18' height='8' rx='2'/%3E%3Cpath d='M7 14h10v7H7z'/%3E%3C/svg%3E"); }
.ex-go.busy .ex-ic { -webkit-mask: none; mask: none; background: none; border: 2.2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin-slow .7s linear infinite; }
.ex-go.done { background: linear-gradient(135deg, #4ade80, #16a34a) !important; box-shadow: 0 10px 24px -12px rgba(22, 163, 74, .9) !important; }
.ex-go.done .ex-ic { --exi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); animation: pop .4s var(--ease-spring); }
@keyframes pop { from { transform: scale(.3); } }
.ex-file { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.ex-file b { color: var(--soft); font-weight: 600; }

/* ---------- Chop etish (PDF) ---------- */
#print-area { display: none; }
@media print {
  @page {
    size: A4; margin: 15mm 15mm 18mm;
    @bottom-right { content: "Sahifa " counter(page) " / " counter(pages); font: 8pt "Times New Roman", serif; color: #8a8a92; }
    @bottom-left { content: "TestPro"; font: 8pt "Times New Roman", serif; color: #8a8a92; }
  }
  :root, :root[data-theme="dark"], :root[data-theme="light"] { --bg: #fff; color-scheme: light !important; }
  html, body, body.printing { background: #fff !important; }
  /* Chop etishda animatsiya bo'lmasin: aks holda savollar shaffof (ko'rinmas) holatda qog'ozga tushadi */
  #print-area, #print-area * { animation: none !important; transition: none !important; opacity: 1 !important; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; color: #000; font-family: "Times New Roman", var(--f-disp); font-size: var(--pr-size, 13pt); line-height: 1.45; }
  #print-area .pr-page { break-after: page; page-break-after: always; }
  #print-area .pr-page:last-child { break-after: auto; page-break-after: auto; }
  #print-area .pr-head { text-align: center; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1.5pt solid #000; }
  #print-area .pr-school { font: 700 .72em var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: #6b6b73; margin-bottom: 4px; }
  #print-area .pr-teacher { color: #13652f; letter-spacing: .06em; }
  #print-area .pr-card { display: grid; grid-template-columns: 2.7fr 1fr 1fr 1fr; margin: 12px 0 0; border: .75pt solid #8a8a92; text-align: left; }
  #print-area .pr-card > div { min-height: 34px; padding: 4px 8px; border-left: .75pt solid #8a8a92; display: flex; align-items: flex-end; }
  #print-area .pr-card > div:first-child { border-left: 0; }
  #print-area .pr-card small { font: .72em var(--f-ui); color: #6b6b73; }
  #print-area .pr-note { margin-top: 8px; font-size: .78em; font-style: italic; color: #6b6b73; text-align: left; }
  #print-area .sh-opts .ok { font-weight: 700; color: #13652f; text-decoration: underline; text-underline-offset: 3px; }
  /* ===== DTM uslubidagi javoblar varaqasi ===== */
  #print-area .omr {
    --r: #c8343a; --p: #fbe4e4; --p2: #fdf2f2;
    position: relative; height: 262mm; padding: 9mm 7mm 8mm; display: flex; flex-direction: column; gap: 3.2mm;
    font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #1b1b1f;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; /* ranglar va qora belgilar albatta chiqsin */
  }
  #print-area .omr-c { position: absolute; width: 5mm; height: 5mm; background: #000; }
  #print-area .omr-c.tl { top: 0; left: 0; } #print-area .omr-c.tr { top: 0; right: 0; }
  #print-area .omr-c.bl { bottom: 0; left: 0; } #print-area .omr-c.br { bottom: 0; right: 0; }
  #print-area .omr-title { border: 1.4pt solid var(--r); color: var(--r); text-align: center; font-weight: 700; font-size: 15pt; letter-spacing: .32em; padding: 2.2mm 0; }
  #print-area .omr-title small { font-size: 8pt; letter-spacing: 0; }
  #print-area .pr-logo { display: block; height: 15mm; max-width: 45mm; object-fit: contain; margin: 0 auto 2mm; }
  #print-area .omr-school { display: flex; align-items: center; justify-content: center; gap: 2.5mm; margin: -2mm 0 0; font: 700 7.5pt var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #6b6b73; }
  #print-area .omr-school img { height: 7mm; max-width: 30mm; object-fit: contain; }
  #print-area .omr:has(.omr-school) { gap: 2.3mm; }
  #print-area .omr-top { display: grid; grid-template-columns: 1.15fr 1fr; border: 1pt solid var(--r); }
  #print-area .omr-info { padding: 2.5mm 3.5mm; border-right: 1pt solid var(--r); }
  #print-area .omr-h { text-align: center; color: var(--r); font-weight: 700; font-size: 9.5pt; margin-bottom: 1.2mm; }
  #print-area .omr-info ol { margin: 0; padding-left: 4.5mm; font-size: 7.6pt; line-height: 1.45; }
  #print-area .omr-ru { margin-top: 1.4mm; font-size: 6.8pt; font-style: italic; color: #6b6b73; }
  #print-area .omr-sample { margin-top: 2mm; padding-top: 1.6mm; border-top: .6pt solid var(--r); font-size: 7.6pt; display: flex; align-items: center; gap: 1.6mm; flex-wrap: wrap; }
  #print-area .omr-sample i { display: inline-grid; place-items: center; width: 3.8mm; height: 3.8mm; border-radius: 50%; border: .7pt solid var(--r); font-style: normal; font-size: 6pt; color: var(--r); }
  #print-area .omr-sample i.f { background: #111; border-color: #111; }
  #print-area .omr-stu { padding: 2.5mm 3.5mm; }
  #print-area .omr-h2 { font-weight: 700; font-size: 10pt; }
  #print-area .omr-stu .ln { border-bottom: .7pt solid #6b6b73; height: 6.5mm; }
  #print-area .omr-row { display: flex; gap: 6mm; margin-top: 3mm; font-size: 8.5pt; }
  #print-area .omr-row i { display: inline-block; width: 16mm; border-bottom: .7pt solid #6b6b73; }
  #print-area .omr-row i.w { width: 26mm; }
  #print-area .omr-var { display: flex; align-items: baseline; gap: 2.5mm; margin-top: 2.5mm; }
  #print-area .omr-var span { font-weight: 700; font-size: 10pt; }
  #print-area .omr-var b { font-size: 20pt; color: var(--r); line-height: 1; }
  #print-area .omr-var small { margin-left: auto; color: #6b6b73; font-size: 8pt; }

  #print-area .omr-body { flex: 1; display: flex; justify-content: center; gap: 2.6mm; align-items: flex-start; }
  #print-area .omr-track { display: flex; flex-direction: column; width: 3mm; }
  #print-area .omr-track b { height: 5.2mm; }
  #print-area .omr-track b.hd { height: 6mm; }
  #print-area .omr-track b.on { background: #000; margin: .9mm 0; height: 3.4mm; }
  #print-area .omr-g { width: min(46mm, calc((100% - 6mm - (var(--u) - 1) * 2.6mm) / var(--u))); border: 1pt solid var(--r); }
  #print-area .omr-gh { height: 6mm; display: grid; place-items: center; background: var(--p); color: var(--r); font-weight: 700; font-size: 8.5pt; border-bottom: 1pt solid var(--r); }
  #print-area .omr-r { height: 5.2mm; display: flex; align-items: center; border-bottom: .4pt solid #f1c6c6; }
  #print-area .omr-r:last-child { border-bottom: 0; }
  #print-area .omr-r.alt { background: var(--p2); }
  #print-area .omr-r b { width: 8mm; text-align: right; padding-right: 2mm; font-size: 8pt; border-right: .6pt solid var(--r); align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
  #print-area .omr-r span { flex: 1; display: flex; justify-content: space-evenly; align-items: center; }
  #print-area .omr-r i { display: grid; place-items: center; width: 3.9mm; height: 3.9mm; border-radius: 50%; border: .7pt solid var(--r); color: var(--r); font-style: normal; font-size: 5.6pt; font-weight: 700; }
  #print-area .omr-r i.f { background: #111; border-color: #111; color: #111; }
  /* Savol kam (10 qatorli) varaqada qatorlar va doirachalar kattaroq */
  #print-area .omr.katta .omr-r, #print-area .omr.katta .omr-track b { height: 8.6mm; }
  #print-area .omr.katta .omr-track b.on { height: 5.6mm; margin: 1.5mm 0; }
  #print-area .omr.katta .omr-track b.hd { height: 7mm; }
  #print-area .omr.katta .omr-gh { height: 7mm; font-size: 9.5pt; }
  #print-area .omr.katta .omr-g { width: min(56mm, calc((100% - 6mm - (var(--u) - 1) * 2.6mm) / var(--u))); }
  #print-area .omr.katta .omr-r b { font-size: 10pt; width: 10mm; }
  #print-area .omr.katta .omr-r i { width: 5.6mm; height: 5.6mm; font-size: 7.5pt; }

  #print-area .omr-res { display: grid; grid-template-columns: repeat(3, 1fr); border: 1pt solid var(--r); background: var(--p2); }
  #print-area .omr-res span { padding: 2.6mm 3mm; font-size: 8.5pt; border-left: 1pt solid var(--r); }
  #print-area .omr-res span:first-child { border-left: 0; }
  #print-area .omr-res i, #print-area .omr-foot i { display: inline-block; width: 16mm; border-bottom: .7pt solid #6b6b73; }
  #print-area .omr-foot { text-align: center; font-size: 7.2pt; color: #6b6b73; }
  #print-area .pr-key table + table { margin-top: 12px; }
  #print-area .sh-title { font-size: 1.35em; font-weight: 700; text-align: center; }
  #print-area .sh-meta { font-size: .8em; color: #444; text-align: center; margin-top: 2px; font-family: var(--f-ui); }
  #print-area .sh-meta b { color: #000; }
  #print-area .sh-fields { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
  #print-area .sh-fields i { display: inline-block; width: 200px; border-bottom: 1px solid #000; vertical-align: -3px; }
  #print-area .sh-fields i.s { width: 80px; }
  #print-area .sh-qs { list-style: none; margin: 0; padding: 0; }
  #print-area .sh-q { padding: 8px 0; border-bottom: .5pt dashed #bbb; break-inside: avoid; page-break-inside: avoid; }
  #print-area .sh-q:last-child { border-bottom: 0; }
  #print-area .sh-qb { white-space: pre-line; }
  #print-area .sh-opts { display: grid; gap: 2px 12px; margin: 5px 0 0 1.5em; }
  #print-area .sh-opts.c4 { grid-template-columns: repeat(4, 1fr); }
  #print-area .sh-opts.c2 { grid-template-columns: repeat(2, 1fr); }
  #print-area .sh-opts.c1 { grid-template-columns: 1fr; }
  #print-area .pr-key table { border-collapse: collapse; margin: 18px auto 0; font-size: .9em; }
  #print-area .pr-key th, #print-area .pr-key td { border: .75pt solid #777; padding: 4px 8px; text-align: center; }
  #print-area .pr-key th { background: #f1ede4; }
  #print-area h3 { font-size: 1.05em; margin: 14px 0 4px; }
  #print-area .pr-sol { margin: 0; padding-left: 1.6em; }
  #print-area .pr-sol li { padding: 2px 0; white-space: pre-line; }
  #print-area mjx-container { color: #000; }
}

/* ---------- Harakat kamaytirilgan ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Moslashuv ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .build-grid { grid-template-columns: minmax(0, 1fr); }
  /* O'rta va kichik ekranda ustun oddiy holatda: o'z ichida aylanmaydi, g'ildirak to'g'ridan-to'g'ri sahifani aylantiradi */
  .build-side { position: static; max-height: none; overflow: visible; padding: 0; margin-right: 0; }
  .topic-list { max-height: 360px; }
}
@media (max-width: 560px) {
  .sheet { padding: 24px 18px; font-size: 15.5px; }
  .sh-opts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-fields i { width: 150px; }
}
.side nav .ns { display: none; }

/* ---------- Telefon va planshet: yuqorida ixcham panel, pastda ilova uslubidagi menyu ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }

  /* Yuqori panel: logotip | rejim | chiqish */
  .side {
    position: sticky; top: 8px; z-index: 35; height: auto; margin: 8px 10px 0; padding: 10px 10px 10px 12px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    border-radius: 22px; overflow: visible;
    /* shisha effekti alohida qatlamda: aks holda pastki menyu joyidan siljib ketadi */
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    /* Diqqat: bu yerda transform/animation bo'lmasin, aks holda pastki menyu panel ichida qolib ketadi */
    animation: none; transform: none;
  }
  .side > :not(nav) { animation: fade-in .45s var(--ease) both; }
  .side::before {
    content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: color-mix(in srgb, var(--panel-solid) 78%, transparent); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .6);
    animation: bar-down .45s var(--ease) both;
  }
  @keyframes bar-down { from { opacity: 0; transform: translateY(-12px); } }
  .side::after, .side-sub, .side-year, .side nav::before, .tgl-lbl { display: none; }
  .side-top { padding: 0; min-width: 0; }
  .side-top .logo { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; }
  .side-top .brand-t b { font-size: 17px; }
  .side-tools { position: relative; padding: 0; margin: 0; border: 0; background: none; }
  .me { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .me > div { display: none; }
  .me button { min-height: 34px; padding: 7px 12px; font-size: 12.5px; border-radius: 99px; }

  /* Pastki menyu */
  .side nav {
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 560px; margin: 0 auto; padding: 6px; gap: 2px; overflow: visible;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); /* bo'limlar soniga moslashadi (bosh adminda 7 ta) */
    border: 1px solid var(--line); border-radius: 24px;
    background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    animation: bar-up .5s .1s var(--ease) both;
  }
  @keyframes bar-up { from { opacity: 0; transform: translateY(24px); } }
  .side nav button {
    position: relative; isolation: isolate; flex-direction: column; justify-content: center; gap: 4px; width: auto; min-width: 0;
    min-height: 60px; padding: 8px 2px 7px; border-radius: 18px; font-size: 11px; font-weight: 500; color: var(--muted);
    background: transparent; box-shadow: none; overflow: visible;
  }
  .side nav button:hover:not(:disabled) { transform: none; background: transparent; color: var(--ink); }
  .side nav button::before { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
  /* Faol bo'lim: ikonka ortida olovrang "tabletka" */
  .side nav button::after {
    content: ""; position: absolute; z-index: -1; top: 7px; left: 50%; width: 54px; height: 30px; border-radius: 99px;
    background: var(--accent-grad); box-shadow: 0 6px 16px -6px rgba(232, 134, 42, .9);
    transform: translateX(-50%) scale(.4); opacity: 0; transition: transform .45s var(--ease-spring), opacity .25s;
  }
  .side nav button[aria-current="page"] { background: transparent; box-shadow: none; color: var(--accent); font-weight: 600; animation: none; }
  .side nav button[aria-current="page"]::before { background: var(--accent-ink); }
  .side nav button[aria-current="page"]::after { transform: translateX(-50%) scale(1); opacity: 1; }
  .side nav .nl { display: none; }
  .side nav .ns { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Bosh adminda 7 ta bo'lim: yozuvlar biroz kichikroq */
  .side nav:has(#nav-admin:not([hidden])) .ns { font-size: 10px; letter-spacing: -.02em; }
  .side nav:has(#nav-admin:not([hidden])) button::after { width: 46px; }
  /* "tez orada" o'rniga kichik nuqta */
  .side nav .soon { position: absolute; top: 8px; left: calc(50% + 14px); width: 7px; height: 7px; padding: 0; margin: 0; font-size: 0; border: 0; border-radius: 50%; background: var(--faint); }
  [aria-current="page"] .soon { background: var(--accent-ink); }

  .content { padding: 14px 12px calc(100px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .hero-orbit { width: 300px; height: 300px; right: -120px; }
}
@media (max-width: 400px) {
  .side-top .brand-t small { display: none; }
  .me button { padding: 7px 10px; }
}
@media (max-width: 560px) {
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .num { font-size: 36px; }
  .q-opts { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .chart { gap: 4px; }
  .bar span { font-size: 10px; }
  .card { padding: 16px; }
}

/* ================= 7-bosqich: Maktab rejimi ================= */
.sc-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.sc-h2 { font-size: 19px; margin-bottom: 14px; }
.sc-chip { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 3px 10px; }
.pill.sc-adm { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); font-weight: 600; }
.pill.sc-pill { background: rgba(201, 184, 245, .14); color: #c9b8f5; border-color: transparent; font-weight: 600; }
:root[data-theme="light"] .pill.sc-pill { color: #6d4fc4; background: rgba(109, 79, 196, .1); }
.q-who { font-size: 11.5px; color: var(--muted); font-style: italic; }
.check-school { border-color: rgba(201, 184, 245, .45); background: rgba(201, 184, 245, .1); }
.check-school small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Maktabi yo'q: salomlashuv va ikki yo'l */
.sc-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px 36px; margin-bottom: 18px; color: #fff;
  background: var(--hero); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--sh-pop);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; animation: card-in .55s var(--ease) both;
}
.sc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #f8bf5e, #e2731c 40%, transparent 85%); }
.sc-hero .stars { position: absolute; inset: 0; pointer-events: none; }
.sc-hero-t { position: relative; z-index: 1; }
.sc-hero h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; margin: 0 0 10px; line-height: 1.1; animation: rise .7s .1s var(--ease) both; }
.sc-hero p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 15px; animation: rise .7s .2s var(--ease) both; }
.sc-feats { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-feats li {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 90ms + .25s);
}
.sc-feats i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(248, 230, 198, .16); color: #f8e6c6; }
.sc-feats svg { width: 21px; height: 21px; }
.sc-feats b { display: block; font-size: 14.5px; color: #fff; }
.sc-feats small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); line-height: 1.4; }
.sc-start { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sc-opt { position: relative; padding: 26px; display: flex; flex-direction: column; animation: card-in .5s .15s var(--ease) both; }
.sc-opt + .sc-or + .sc-opt { animation-delay: .25s; }
.sc-opt h2 { font-size: 22px; margin-bottom: 6px; padding-right: 40px; }
.sc-opt .muted { margin-bottom: 16px; }
.sc-opt .wide { margin-top: auto; }
.sc-opt .msg { margin-top: 4px; }
.sc-opt.glow { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), var(--sh-card); }
.sc-step { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-disp); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.sc-code-in { width: 100%; text-align: center; font: 700 26px/1 var(--f-mono) !important; letter-spacing: .2em; text-transform: uppercase; min-height: 60px !important; margin-bottom: 14px; }
.sc-or { display: grid; place-items: center; position: relative; }
.sc-or::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.sc-or span { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 8px 4px; border-radius: 99px; }

/* Maktab sarlavhasi */
.sc-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 16px; animation: card-in .5s var(--ease) both; }
.sc-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent-grad); }
.sc-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; overflow-wrap: anywhere; }
.sc-head .q-meta { margin: 0; }
.sc-head-t { flex: 1; min-width: 0; }
.sc-logo {
  flex: 0 0 84px; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6), 0 0 0 4px var(--accent-soft);
}
.sc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sc-logo span, .sc-drop-img span { font: 700 30px var(--f-disp); color: var(--accent-ink); }
.sc-logo:has(span), .sc-drop-img:has(span) { background: var(--accent-grad); }
.sc-logo.can { cursor: pointer; transition: transform .25s var(--ease-spring); }
.sc-logo.can:hover { transform: scale(1.05) rotate(-2deg); }
.sc-edit-btn { flex: 0 0 auto; }

/* Tahrirlash */
.sc-edit { margin-bottom: 16px; animation: card-in .35s var(--ease) both; }
.sc-edit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.sc-edit .fld input { width: 100%; }
.sc-drop { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1.5px dashed var(--edge2); border-radius: 16px; background: var(--well); cursor: pointer; transition: border-color .2s, background .2s; }
.sc-drop:hover, .sc-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.sc-drop-img { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.sc-drop-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sc-drop-t b { display: block; font-size: 14.5px; color: var(--head); margin-bottom: 4px; }
.sc-drop-t small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sc-drop-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-edit-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* Panelar */
.sc-kpis .num span { font: inherit; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.sc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.sc-grid > .card, .sc-grid2 > .card { padding: 22px; animation: card-in .5s .2s var(--ease) both; }
.sc-chart { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; height: 210px; }
.sc-chart .bar-v { max-width: 18px; border-radius: 6px 6px 2px 2px; }
.sc-chart .bar span { font-size: 10.5px; min-height: 1.2em; }
.sc-inv .on-share { margin-top: 10px; }
.sc-inv .on-code-box b { font-size: 26px; letter-spacing: .12em; }
.sc-exp { position: relative; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .8); }
.sc-inv-new { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; }
.sc-inv-new .fld { margin-bottom: 8px; }
.sc-inv-new select { width: 100%; }
.sc-inv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-more { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.sc-more summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: 13px; width: max-content; }
.sc-more[open] > *:not(summary) { animation: pg-in .25s var(--ease) both; }
.sc-bars { display: flex; flex-direction: column; gap: 12px; }
.sc-bar { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.sc-bl { font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-bl small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.sc-bar > b { text-align: right; font-variant-numeric: tabular-nums; color: var(--gc); }
.sc-bar .rd-bar { height: 12px; }
.sc-empty { margin: 0; }
.sc-list { margin: 10px 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sc-list li { position: relative; padding-left: 28px; font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.sc-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sc-list b { color: var(--head); }
.sc-teachers { padding: 22px; margin-bottom: 16px; animation: card-in .5s .3s var(--ease) both; }
.sc-teachers .muted { margin: 0 0 12px; }
.sc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-who b { display: block; color: var(--head); font-size: 13.5px; }
.sc-who small { display: block; color: var(--muted); font-size: 12px; }
.sc-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f-ui); color: var(--accent-ink); background: var(--accent-grad); }
.sc-acts { text-align: right; }
.sc-acts .sm + .sm { margin-left: 4px; }
.sc-danger { animation: card-in .5s .35s var(--ease) both; }
.sc-danger h2 { font-size: 19px; margin-bottom: 8px; }
.sc-danger .muted { margin-bottom: 14px; line-height: 1.55; }

/* Testlar oynasi */
.sc-d-panel { width: min(760px, calc(100% - 20px)); }
.sc-d-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-d-h h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ro { font-size: 12.5px; color: var(--cyan); background: var(--cyan-soft); border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; }
.sc-trow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--well); animation: card-in .35s var(--ease) both; }
.sc-trow:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--edge2); }
.sc-trow .t-info { flex: 1 1 auto; }
.sc-tstat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.sc-tstat b { font: 700 19px var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; }
.sc-tstat[class*="g"] b { color: var(--gc); }
.sc-tstat small { font-size: 11px; color: var(--muted); }
.sc-arr { font-size: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.sc-trow:hover .sc-arr { transform: translateX(4px); color: var(--accent); }
.sc-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sc-mini > div { padding: 12px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); text-align: center; }
.sc-mini b { display: block; font: 700 22px var(--f-disp); color: var(--head); }
.sc-mini > div[class*="g"] b { color: var(--gc); }
.sc-mini small { font-size: 11.5px; color: var(--muted); }

@media (max-width: 1180px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sc-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .sc-start { grid-template-columns: minmax(0, 1fr); }
  .sc-or::before { top: 50%; bottom: auto; left: 10%; right: 10%; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
  .sc-grid2 { grid-template-columns: minmax(0, 1fr); }
  .sc-edit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sc-head { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .sc-logo { flex-basis: 64px; width: 64px; height: 64px; border-radius: 18px; }
  .sc-logo span { font-size: 24px; }
  .sc-head-t { flex: 1 1 calc(100% - 80px); }
  .sc-edit-btn { width: 100%; }
  .sc-chart { gap: 2px; height: 170px; }
  .sc-chart .bar-v[data-n]::after { display: none; }
  .sc-bar { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 40px; gap: 8px; }
  .sc-opt { padding: 20px; }
  .sc-drop { flex-direction: column; text-align: center; }
  .sc-drop-btns { justify-content: center; }
  .sc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-trow { flex-wrap: wrap; }
  .sc-trow .t-info { flex-basis: 100%; }
  .sc-arr { margin-left: auto; }
}

/* --- 7b: Sozlamalar "Test sarlavhasi", yakka o'qituvchi --- */
.br-card { margin-top: 16px; }
.br-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-grad); box-shadow: 0 6px 18px -6px rgba(232, 134, 42, .7); }
.br-prev { background: #fffdf8; color: #1b1b1f; border-radius: 8px; padding: 18px 16px 14px; text-align: center; margin: 4px 0 14px; border-bottom: 3px solid #1b1b1f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 30px -20px rgba(0, 0, 0, .6); }
.br-logo img { display: block; height: 52px; max-width: 160px; object-fit: contain; margin: 0 auto 6px; }
.br-name { font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #6b6b73; margin-bottom: 4px; }
.br-name.bosh { color: #b9b9c0; font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; }
.br-title { font: 700 19px var(--f-disp); }
.br-meta { font-size: 12px; color: #55555e; margin-top: 2px; }
.br-meta b { color: #b4560c; }
.br-p { margin: 0 0 14px; line-height: 1.5; }
.sh-logo { display: block; height: 56px; max-width: 180px; object-fit: contain; margin: 0 auto 6px; }
.sh-school { font: 700 11.5px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #6b6b73; margin-bottom: 4px; }
.sc-solo { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 20px; border-style: dashed; animation: card-in .5s .35s var(--ease) both; }
.sc-solo > div { flex: 1; min-width: 0; }
.sc-solo b { display: block; color: var(--head); font-size: 15px; margin-bottom: 3px; }
.sc-solo small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sc-solo small b { display: inline; font-size: inherit; color: var(--soft); }
.sc-solo-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--cyan); background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); }
.sc-solo-ic svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .sc-solo { flex-wrap: wrap; }
  .sc-solo > div { flex-basis: calc(100% - 60px); }
  .sc-solo button { width: 100%; }
}

/* --- 7c: Bosh admin "Boshqaruv" --- */
.ad-give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; align-items: start; }
.ad-opt { padding: 24px; animation: card-in .5s var(--ease) both; }
.ad-opt + .ad-opt { animation-delay: .1s; }
.ad-opt-h { display: flex; align-items: center; }
.ad-opt-h h2 { font-size: 22px; }
.ad-opt-h small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ad-opt { --oc: var(--accent); --ocs: var(--accent-soft); --ocl: var(--accent-line); position: relative; }
.ad-opt-cy { --oc: var(--cyan); --ocs: var(--cyan-soft); --ocl: color-mix(in srgb, var(--cyan) 45%, transparent); }
.ad-opt::before { content: ""; position: absolute; inset: 0 24px auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--oc), transparent); opacity: .8; }
.ad-opt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px 200px at 0 0, var(--ocs), transparent 70%); pointer-events: none; }
.ad-opt > * { position: relative; z-index: 1; }
.ad-opt-h { gap: 16px; margin-bottom: 16px; }
.ad-ic { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; isolation: isolate;
  color: #2a1504; background: linear-gradient(145deg, #ffd27d 0%, #f4a640 45%, #df6c17 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 8px rgba(120,45,0,.25), 0 12px 26px -10px rgba(232,134,42,.85);
  animation: ai-float 4.2s ease-in-out infinite; }
.ad-ic.cy { color: #062234; background: linear-gradient(145deg, #a6ecff 0%, #5cc8ea 45%, #1f86b4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 8px rgba(0,50,90,.25), 0 12px 26px -10px rgba(92,200,234,.85); animation-delay: -2.1s; }
/* yaltiroq nur va atrofdagi to'lqin */
.ad-ic::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  animation: ai-shine 6s ease-in-out infinite; mix-blend-mode: soft-light; }
.ad-ic::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2; border: 2px solid currentColor; opacity: 0; pointer-events: none;
  color: #f4a640; animation: ai-ring 3.4s ease-out infinite; }
.ad-ic.cy::after { color: #5cc8ea; animation-delay: -1.7s; }
.ad-ic svg { width: 35px; height: 35px; overflow: visible; filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)); }
.ad-opt:hover .ad-ic { animation-play-state: paused; transform: translateY(-2px) scale(1.06) rotate(-3deg); transition: transform .35s var(--ease-spring); }

/* Maktab: bayroq hilpiraydi, derazalar navbat bilan yonadi */
.ai-flag { transform-origin: 16px 4.6px; transform-box: view-box; animation: ai-flag 1.8s ease-in-out infinite; }
.ai-w { animation: ai-win 4.8s ease-in-out infinite; }
.ai-w2 { animation-delay: 1.6s; }
.ai-w3 { animation-delay: 3.2s; }

/* O'qituvchi: qalpoq chayqaladi, popuk tebranadi, yulduzcha miltillaydi */
.ai-cap { transform-origin: 16px 9px; transform-box: view-box; animation: ai-cap 3.6s ease-in-out infinite; }
.ai-tassel { transform-origin: 23.4px 8.9px; transform-box: view-box; animation: ai-tassel 1.8s ease-in-out infinite; }
.ai-spark { transform-origin: 27px 20.3px; transform-box: view-box; animation: ai-spark 2.6s ease-in-out infinite; }

/* Qadam raqamlari karta rangida */
.ad-opt-cy .ad-steps li::before { color: var(--cyan); background: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }

@keyframes ai-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ai-shine { 0%, 55% { background-position: -150% 0; } 85%, 100% { background-position: 150% 0; } }
@keyframes ai-ring { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.32); } }
@keyframes ai-flag { 0%, 100% { transform: skewY(0) scaleX(1); } 25% { transform: skewY(-7deg) scaleX(.9); } 50% { transform: skewY(2deg) scaleX(1.04); } 75% { transform: skewY(6deg) scaleX(.93); } }
@keyframes ai-win { 0%, 100% { opacity: .35; } 12%, 40% { opacity: 1; } 55% { opacity: .35; } }
@keyframes ai-cap { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-.8px) rotate(-5deg); } 60% { transform: translateY(0) rotate(3deg); } }
@keyframes ai-tassel { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
@keyframes ai-spark { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .6; transform: scale(.9) rotate(80deg); } }
@media (prefers-reduced-motion: reduce) {
  .ad-ic, .ad-ic::before, .ad-ic::after, .ai-flag, .ai-w, .ai-cap, .ai-tassel, .ai-spark { animation: none; }
  .ai-w { opacity: 1; }
}
.ad-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.ad-steps li { counter-increment: s; position: relative; padding-left: 32px; font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.ad-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ad-steps b { color: var(--head); }
.ad-form-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.ad-form-row .fld input, .ad-form-row select { width: 100%; }
.ad-msg { width: 100%; font-family: var(--f-ui) !important; font-size: 13px !important; line-height: 1.55; resize: vertical; margin-bottom: 4px; }
.ad-res { animation: card-in .4s var(--ease) both; }
.ad-res-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ad-res-h b { font: 700 17px var(--f-disp); color: var(--head); }
.ad-res-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ad-note { margin: 0 0 18px; }
.ad-card { padding: 22px; margin-bottom: 16px; animation: card-in .5s .2s var(--ease) both; }
.ad-card .card-h { margin-bottom: 14px; flex-wrap: wrap; }
.ad-uh input { flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.ad-table select { min-height: 32px; padding-top: 5px; padding-bottom: 5px; font-size: 12.5px; }
.ad-table .dd { min-width: 150px; }
.pill.ad-solo { background: rgba(201, 184, 245, .12); color: #c9b8f5; border-color: transparent; font-weight: 600; }
:root[data-theme="light"] .pill.ad-solo { color: #6d4fc4; background: rgba(109, 79, 196, .1); }
.pill.ad-wait { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.ad-code { font-size: 12px; letter-spacing: .06em; }
.ad-av { overflow: hidden; background: #fff; }
.ad-av:not(:has(img)) { background: var(--accent-grad); }
.ad-av img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
@media (max-width: 1000px) { .ad-give { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ad-opt { padding: 18px; }
  .ad-form-row { grid-template-columns: minmax(0, 1fr); }
  .ad-uh input { max-width: none; margin-left: 0; }
}

/* --- 7d: o'qituvchi taklifi --- */
.tk-card { margin-top: 16px; }
.tk-card .fld { margin-bottom: 0; }
.tk-s { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin: 2px 0 4px; }
.tk-card input { font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.tk-card .msg { margin: 10px 0 0; }
.ad-who { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ad-more { margin-top: 16px; }
.ad-more .ad-msg { margin-top: 10px; }

/* --- 7e: tariflar --- */
.ad-plan { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; line-height: 1.6; border: 1px solid transparent; }
.ad-plan.p-free { background: var(--well); color: var(--muted); border-color: var(--line); }
.ad-plan.p-plus { background: var(--cyan-soft); color: var(--cyan); }
.ad-plan.p-pro { background: var(--accent-soft); color: var(--accent); }
.ad-plan.p-max { background: rgba(201, 184, 245, .16); color: #c9b8f5; }
:root[data-theme="light"] .ad-plan.p-max { color: #6d4fc4; background: rgba(109, 79, 196, .1); }
.ad-plan.off { opacity: .55; text-decoration: line-through; }
.ad-bad { color: var(--bad) !important; }
.ad-pcell { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ad-pcell .ad-who { margin-top: 0; }
.ad-pbtn { font-size: 12px; padding: 2px 0; }
.ad-pedit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-pedit .dd { min-width: 110px !important; }
.ad-row2 { margin-top: -4px; }
.pf-plan-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--line); font-size: 13px; }
.pf-plan-row span { color: var(--muted); }
.pf-plan-row b { color: var(--accent); text-align: right; }

/* --- 7f: tarif chegaralari --- */
.lim-card { margin-top: 16px; }
.lim-ic { background: linear-gradient(135deg, #c9b8f5, #8b6fe0); color: #fff; box-shadow: 0 6px 18px -6px rgba(139, 111, 224, .7); }
.lim-card #pf-plan { color: var(--accent); font-weight: 600; }
.lim-rows { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 14px; }
.lim-t { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 5px; font-size: 13px; color: var(--soft); }
.lim-t small { display: block; font-size: 11px; color: var(--faint); }
.lim-t b { font-variant-numeric: tabular-nums; color: var(--head); white-space: nowrap; }
.lim-t em { font-style: normal; font-weight: 500; color: var(--muted); }
.lim-row .rd-bar { height: 8px; }
.lim-row .rd-bar i { background: var(--gc); }
.lim-feats { list-style: none; margin: 0 0 10px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 7px; font-size: 13px; }
.lim-feats li { position: relative; padding-left: 26px; color: var(--soft); }
.lim-feats li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.lim-feats li.ok::before { content: "✓"; color: var(--good); background: var(--good-soft); }
.lim-feats li.no { color: var(--faint); }
.lim-feats li.no::before { content: "✕"; color: var(--faint); background: var(--well); }
.lim-feats b { color: var(--head); }
.lim-note { margin: 0; }
.sw.locked { opacity: .5; cursor: not-allowed; }
.sw.locked .sw-t small::after { content: " · Plus tarifidan"; color: var(--accent); }
button.locked { opacity: .55; }
.sc-lock { filter: grayscale(.8) blur(1.5px); opacity: .45; pointer-events: none; user-select: none; }
.sc-upsell { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; margin-bottom: 16px; border-color: var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel); }
.sc-upsell b { color: var(--head); font-size: 15px; }
.sc-upsell small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sc-upsell.in { border: 1px dashed var(--accent-line); border-radius: 14px; margin: 10px 0 0; }
.ad-lim td, .ad-lim th { text-align: center; }
.ad-lim td.r-name { text-align: left; white-space: normal; min-width: 200px; }
.ad-num { width: 96px; font: 600 13px var(--f-ui); color: var(--ink); text-align: center; background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-height: 34px; -moz-appearance: textfield; }
.ad-num::-webkit-inner-spin-button { opacity: .4; }
.ad-num:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ad-num::placeholder { color: var(--faint); font-weight: 400; }
.ad-chk { display: inline-grid; place-items: center; padding: 6px; cursor: pointer; }
.ad-lim-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ad-lim-foot .b-note { margin: 0; flex: 1 1 300px; }

/* --- Savollarni ommaviy yuklash --- */
.head-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.im-panel { width: min(860px, calc(100% - 20px)); }
.im-lead { margin: 0 0 14px; }
.im-src { display: flex; gap: 6px; margin-bottom: 12px; }
.im-tab { flex: 1; min-height: 42px; border-radius: 12px; color: var(--soft); }
.im-tab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.im-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: 22px; border: 2px dashed var(--edge2); border-radius: 18px; background: var(--well); cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.im-drop:hover, .im-drop.over, .im-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.im-drop.over { transform: scale(1.01); }
.im-drop.has { border-style: solid; border-color: var(--good); background: var(--good-soft); }
.im-drop-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--accent-ink); background: var(--accent-grad); box-shadow: 0 10px 24px -10px rgba(232, 134, 42, .9); animation: floaty 3.4s ease-in-out infinite; }
.im-drop.has .im-drop-ic { background: linear-gradient(135deg, #4ade80, #16a34a); }
.im-drop b { color: var(--head); font-size: 15px; word-break: break-all; }
.im-drop small { color: var(--muted); font-size: 12.5px; }
#im-text { min-height: 220px; font-family: var(--f-mono); font-size: 13px; }
.im-help { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--well); }
.im-help summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--cyan); font-size: 13.5px; }
.im-help-b { padding: 0 16px 14px; font-size: 13px; line-height: 1.6; color: var(--soft); }
.im-help-b p { margin: 0 0 8px; }
.im-help-b ul { margin: 0 0 8px; padding-left: 20px; }
.im-tpl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.im-def { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.im-def-h { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.im-def .fld { margin-bottom: 10px; }
.im-def .fld input, .im-def .fld select { width: 100%; }
.im-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.im-stat { flex: 1 1 110px; padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); }
.im-stat b { display: block; font: 700 24px var(--f-disp); color: var(--head); }
.im-stat[class*="g"] b { color: var(--gc); }
.im-stat small { color: var(--muted); font-size: 12px; }
.im-note { flex: 1 1 100%; margin: 0; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; }
.im-f { margin-bottom: 12px; flex-wrap: wrap; }
.im-list { display: flex; flex-direction: column; gap: 10px; }
.im-q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); border-left: 4px solid var(--good); animation: card-in .35s var(--ease) both; animation-delay: var(--d); transition: opacity .2s; }
.im-q.warn { border-left-color: var(--accent); }
.im-q.err { border-left-color: var(--bad); }
.im-q.off { opacity: .5; }
.im-chk { padding-top: 2px; }
.im-qb .q-meta { margin-bottom: 8px; }
.im-body { font-size: 15.5px; }
.im-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.im-o { display: flex; align-items: flex-start; gap: 8px; text-align: left; min-height: 38px; padding: 7px 10px; border-radius: 10px; font-family: var(--f-disp); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.im-o b { color: var(--muted); }
.im-o.ok { background: var(--good-soft); border-color: rgba(74, 222, 128, .45); color: var(--good); }
.im-o.ok b { color: var(--good); }
.im-q.warn .im-o:not(:disabled) { border-style: dashed; }
.im-q.warn .im-o:hover:not(:disabled) { border-color: var(--good); }
.im-sol { margin-top: 8px; font-size: 13px; color: var(--muted); }
.im-iss { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.im-iss li::before { content: "● "; }
.im-iss .e { color: var(--bad); }
.im-iss .w { color: var(--accent); }
.pill.im-wp { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.pill.im-ep { background: var(--bad-soft); color: var(--bad); border-color: transparent; font-weight: 600; }
.im-limit { flex: 1 1 260px; margin: 0; font-size: 13px; color: var(--soft); }
.im-limit .im-w { color: var(--accent); }
.im-limit .im-e { color: var(--bad); font-weight: 600; }
.im-share { margin: 0; }
@media (max-width: 560px) {
  .im-opts { grid-template-columns: minmax(0, 1fr); }
  .im-src { flex-direction: column; }
}
.im-fix { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--bad); background: var(--bad-soft); font-size: 13px; color: var(--soft); }
.im-fix b { color: var(--bad); }
.im-fix-r { display: flex; gap: 6px; flex: 1 1 240px; }
.im-fix-r input { flex: 1; min-width: 0; }

/* --- Rasmli savollar --- */
.qe-img { margin: -4px 0 14px; }
.qe-img-drop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--edge2); border-radius: 12px; background: var(--well); cursor: pointer; transition: border-color .2s, background .2s; }
.qe-img-drop:hover, .qe-img-drop.over, .qe-img-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.qe-img-drop b { color: var(--head); font-size: 13.5px; }
.qe-img-drop small { color: var(--muted); font-size: 12px; }
.qe-img-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
kbd { font-family: var(--f-mono); font-size: 11px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--edge2); background: var(--raise); color: var(--soft); }
.qe-img-has { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qe-img-has img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 6px; }
.qe-img-btns { display: flex; gap: 6px; margin-left: auto; }
.q-img { display: block; max-width: min(100%, 420px); max-height: 260px; object-fit: contain; margin: 10px 0 0; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.sh-img { display: block; max-width: min(100%, 340px); max-height: 240px; object-fit: contain; margin: 8px 0 4px 1.6em; }
.sx-q-img, .sx-rv-img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; margin: 12px auto 4px; padding: 6px; border-radius: 12px; background: #fff; cursor: zoom-in; }
.sx-rv-img { max-height: 200px; margin: 8px 0; }
.sx-zoom { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(4, 8, 18, .92); cursor: zoom-out; animation: fade-in .2s ease; }
.sx-zoom img { max-width: 100%; max-height: calc(100% - 50px); object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; }
.sx-zoom span { color: #fff; font-size: 14px; opacity: .8; }
@media print {
  #print-area .pr-qimg { display: block; max-width: 9cm; max-height: 6.5cm; object-fit: contain; margin: 2mm 0 1mm 1.6em; }
}
.im-note.ok { color: var(--good); background: var(--good-soft); }

/* --- Birinchi qadamlar (onboarding) --- */
.onb { position: relative; overflow: hidden; padding: 22px 24px; margin-bottom: 18px; border-color: var(--accent-line); animation: card-in .5s .1s var(--ease) both; }
.onb::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent-grad); }
.onb-h { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.onb-ht { flex: 1; min-width: 0; }
.onb-ht h2 { font-size: 22px; margin: 2px 0 2px; }
.onb-ht .muted { margin: 0; }
.onb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.onb-ring { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--well) 0); position: relative; }
.onb-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel-solid); }
.onb-ring b { position: relative; font: 700 20px var(--f-disp); color: var(--head); }
.onb-ring small { font-size: 12px; color: var(--muted); font-weight: 600; }
.onb-x { align-self: flex-start; color: var(--muted); }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onb-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--well);
  animation: card-in .4s var(--ease) both; animation-delay: calc(var(--i) * 50ms + .15s); transition: border-color .2s, background .2s; }
.onb-list li.cur { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.onb-list li.ok { opacity: .72; }
.onb-n { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--raise); border: 1px solid var(--line); }
.onb-list li.cur .onb-n { color: var(--accent-ink); background: var(--accent-grad); border-color: transparent; }
.onb-list li.ok .onb-n { color: var(--good); background: var(--good-soft); border-color: transparent; }
.onb-t { flex: 1; min-width: 0; }
.onb-t b { display: block; font-size: 14px; color: var(--head); }
.onb-list li.ok .onb-t b { text-decoration: line-through; text-decoration-color: var(--faint); }
.onb-t small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.onb-ok { font-size: 12px; font-weight: 600; color: var(--good); white-space: nowrap; }
.onb-list li button { flex: 0 0 auto; white-space: nowrap; }
.onb.done { border-color: rgba(74, 222, 128, .4); }
.onb-done { display: flex; align-items: center; gap: 16px; }
.onb-done > div { flex: 1; min-width: 0; }
.onb-done b { display: block; font: 700 19px var(--f-disp); color: var(--head); margin-bottom: 3px; }
.onb-done small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.onb-cup { font-size: 38px; animation: floaty 3s ease-in-out infinite; }
.onb-reset { display: block; margin-top: 10px; font-size: 12.5px; }
@media (max-width: 900px) { .onb-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .onb { padding: 18px 16px; }
  .onb-h { flex-wrap: wrap; gap: 12px; }
  .onb-ring { flex-basis: 52px; width: 52px; height: 52px; }
  .onb-ht { flex-basis: calc(100% - 140px); }
  .onb-ht h2 { font-size: 18px; }
  .onb-list li { flex-wrap: wrap; }
  .onb-list li:has(button) .onb-t { flex: 1 1 calc(100% - 42px); }
  .onb-list li button { margin-left: 42px; }
  .onb-done { flex-wrap: wrap; }
}

/* --- Tariflar sahifasi --- */
.tf { container-type: inline-size; --tf-c: var(--muted); --tf-cs: var(--well); }
.tf h2 { font-size: 21px; margin: 0; }

/* Sarlavha */
.tf-head { text-align: center; max-width: 640px; margin: 6px auto 14px; animation: pg-in .5s var(--ease) both; }
.tf-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tf-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin: 12px 0 10px; letter-spacing: -.02em; }
.tf-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tf-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 30px; padding: 0; }
.tf-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--soft); }
.tf-trust svg { color: var(--good); width: 16px; height: 16px; }

/* Kartalar */
.tf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 28px; }
.tf-free { --tf-c: var(--muted); --tf-cs: var(--well); }
.tf-plus { --tf-c: var(--cyan); --tf-cs: var(--cyan-soft); }
.tf-pro  { --tf-c: var(--accent); --tf-cs: var(--accent-soft); }
.tf-max  { --tf-c: #c9b8f5; --tf-cs: rgba(201, 184, 245, .14); }
:root[data-theme="light"] .tf-max { --tf-c: #6d4fc4; --tf-cs: rgba(109, 79, 196, .1); }
.tf-card { position: relative; display: flex; flex-direction: column; padding: 24px 20px 22px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: card-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.tf-card::before { content: ""; position: absolute; inset: 0 22px auto; height: 2px; border-radius: 0 0 2px 2px; background: var(--tf-c); opacity: .7; }
.tf-card:hover { transform: translateY(-4px); border-color: var(--edge2); box-shadow: var(--sh-pop); }
.tf-card.tf-pro { border-color: var(--accent-line); background: radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 70%), var(--panel);
  box-shadow: 0 0 0 1px var(--accent-line), 0 24px 50px -28px rgba(232, 134, 42, .55); }
.tf-card.tf-pro::before { inset: 0 0 auto; height: 3px; border-radius: 20px 20px 0 0; background: var(--accent-grad); opacity: 1; }
.tf-card.cur { border-color: var(--good); box-shadow: 0 0 0 3px var(--good-soft), var(--sh-card); }
.tf-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 12px; border-radius: 99px; background: var(--accent-grad); color: var(--accent-ink); box-shadow: 0 8px 18px -8px rgba(232, 134, 42, .9); }
.tf-badge.cur { background: var(--good); color: #06240f; box-shadow: 0 8px 18px -10px var(--good); }
:root[data-theme="light"] .tf-badge.cur { color: #fff; }
.tf-top { display: flex; align-items: center; gap: 10px; }
.tf-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tf-c); background: var(--tf-cs); border: 1px solid color-mix(in srgb, var(--tf-c) 28%, transparent); }
.tf-top h3 { margin: 0; font: 700 21px var(--f-disp); color: var(--head); letter-spacing: -.01em; }
.tf-kim { margin: 10px 0 18px; font-size: 13px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.tf-price { display: flex; flex-direction: column; gap: 3px; min-height: 58px; margin-bottom: 16px; }
.tf-price b { font: 700 36px/1 var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tf-price span { font-size: 12.5px; color: var(--muted); }
.tf-price.tf-np b { font: 600 19px/1.25 var(--f-disp); color: var(--soft); padding-top: 6px; }
.tf-cta { width: 100%; min-height: 42px; border-radius: 12px; font-weight: 600; }
.tf-card .ghost.tf-cta { border-color: color-mix(in srgb, var(--tf-c) 45%, var(--line)); color: var(--head); }
.tf-card .ghost.tf-cta:hover:not(:disabled) { background: var(--tf-cs); border-color: var(--tf-c); }
.tf-cur-l { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; color: var(--good); background: var(--good-soft); }
.tf-cur-l.muted-l { color: var(--faint); background: var(--well); font-weight: 500; font-size: 12.5px; }
.tf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--well); }
.tf-stats div { padding: 10px 4px; text-align: center; }
.tf-stats div + div { border-left: 1px solid var(--hair); }
.tf-stats b { display: block; font: 700 17px/1.1 var(--f-ui); color: var(--head); font-variant-numeric: tabular-nums; }
.tf-stats small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); letter-spacing: .01em; }
.tf-lh { margin: 0 0 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--soft); }
.tf-list li { position: relative; padding-left: 24px; line-height: 1.42; }
.tf-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--tf-cs);
  -webkit-mask: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tf-c) 30%, transparent); }
.tf-list li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 3.5px; border-left: 1.8px solid var(--tf-c); border-bottom: 1.8px solid var(--tf-c); transform: rotate(-45deg); }
.tf-free .tf-list li::after { border-color: var(--good); }
.tf-free .tf-list li::before { background: var(--good-soft); box-shadow: none; }
.tf-list li.no { color: var(--faint); }
.tf-list li.no::before { background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.tf-list li.no::after { left: 4.5px; top: 8.5px; width: 7px; height: 0; border-left: 0; border-bottom: 1.6px solid var(--faint); transform: none; }
.tf-list li b { color: var(--head); font-weight: 600; }

/* Qanday olaman */
.tf-how { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px 28px; align-items: center; padding: 24px 26px; margin-bottom: 16px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--sh-card); }
.tf-how-h p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.tf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.tf-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
.tf-steps li + li::before { content: ""; position: absolute; left: -10px; top: 16px; width: 8px; height: 1px; background: var(--edge2); }
.tf-steps i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font: 700 15px var(--f-disp);
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tf-steps b { color: var(--head); font-size: 14px; padding-top: 1px; }
.tf-steps span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tf-how-f { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); }
.tf-contact { display: flex; flex-wrap: wrap; gap: 8px; }
a.tf-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 16px; min-height: 42px; border-radius: 12px;
  font-weight: 600; font-size: 14px; border: 1px solid var(--line); color: var(--ink); background: var(--well); transition: filter .15s, border-color .15s, transform .12s; }
a.tf-btn.pri { color: var(--accent-ink); border-color: transparent; background: var(--accent-grad); }
a.tf-btn:hover { filter: brightness(1.07); border-color: var(--edge2); }
a.tf-btn:active { transform: scale(.97); }
.tf-soon-c { margin: 0; font-size: 13px; color: var(--muted); }
.tf-msg { display: grid; gap: 6px; max-width: 560px; animation: pg-in .3s var(--ease) both; }
.tf-msg small { color: var(--muted); font-size: 12px; }
.tf-msg textarea { width: 100%; resize: none; font: 13px/1.5 var(--f-ui); color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.tf-msg button { justify-self: start; }
.tf-how.flash { animation: tf-flash 1.4s var(--ease); }
@keyframes tf-flash { 0%, 100% { box-shadow: var(--sh-card); } 25% { box-shadow: 0 0 0 3px var(--accent-line), var(--sh-card); } }

/* Maktab */
.tf-school { display: flex; align-items: center; gap: 20px; padding: 22px 26px; margin-bottom: 28px; border-radius: 20px;
  border: 1px solid rgba(201, 184, 245, .28); background: linear-gradient(100deg, rgba(201, 184, 245, .12), transparent 65%), var(--panel); box-shadow: var(--sh-card); }
:root[data-theme="light"] .tf-school { border-color: rgba(109, 79, 196, .22); background: linear-gradient(100deg, rgba(109, 79, 196, .08), transparent 65%), var(--panel); }
.tf-school-ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #c9b8f5; background: rgba(201, 184, 245, .14); }
:root[data-theme="light"] .tf-school-ic { color: #6d4fc4; background: rgba(109, 79, 196, .1); }
.tf-school-ic svg { width: 22px; height: 22px; }
.tf-school-t { flex: 1; min-width: 0; }
.tf-school-t p { margin: 6px 0 0; color: var(--soft); font-size: 13.5px; line-height: 1.55; max-width: 620px; }
.tf-school-n { display: flex; gap: 10px; }
.tf-school-n div { min-width: 98px; padding: 10px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); text-align: center; }
.tf-school-n small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tf-school-n b { display: block; font: 700 24px/1.15 var(--f-disp); color: var(--head); margin-top: 2px; }
.tf-school-n span { font-size: 11.5px; color: var(--muted); }

/* Jadval */
.tf-sec { margin-bottom: 28px; }
.tf-sec > h2 { margin-bottom: 14px; }
.tf-tw { border-radius: 18px; background: var(--panel-solid); box-shadow: var(--sh-card); }
.tf-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; font-size: 13.5px; }
.tf-table th, .tf-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--hair); }
.tf-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel-solid); padding: 16px 14px 14px; vertical-align: bottom; border-bottom: 1px solid var(--line); }
.tf-th-n { display: block; font: 700 16px var(--f-disp); color: var(--head); }
.tf-table thead small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tf-table .tf-th0, .tf-table .tf-td0 { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--panel-solid); }
.tf-table thead .tf-th0 { z-index: 3; }
.tf-th0 span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tf-td0 { color: var(--soft); font-weight: 500; width: 36%; }
.tf-table tr.tf-g th { text-align: left; padding: 18px 14px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  background: transparent; border-bottom: 1px solid var(--line); position: static; }
.tf-table tr.tf-g th span { position: sticky; left: 14px; }
.tf-table tbody tr:not(.tf-g):hover td { background: var(--well); }
.tf-table tbody tr:not(.tf-g):hover .tf-td0 { background: color-mix(in srgb, var(--panel-solid) 92%, var(--ink)); }
.tf-table tbody:last-child tr:last-child td { border-bottom: 0; }
.tf-table .hi { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tf-table thead th.hi { background: color-mix(in srgb, var(--accent) 9%, var(--panel-solid)); box-shadow: inset 0 3px 0 var(--accent); }
.tf-table thead th.hi .tf-th-n { color: var(--accent); }
.tf-table .cur { background: var(--good-soft); }
.tf-table thead th.cur { background: color-mix(in srgb, var(--good) 12%, var(--panel-solid)); box-shadow: inset 0 3px 0 var(--good); }
.tf-y { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--good); background: var(--good-soft); }
.tf-y svg { width: 13px; height: 13px; stroke-width: 2.6; }
.tf-n { color: var(--faint); }
.tf-v { color: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Savollar */
.tf-faq-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tf-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px 16px; transition: border-color .2s, background .2s; }
.tf-faq details[open] { border-color: var(--edge2); background: var(--panel-hi); }
.tf-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--head); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tf-faq summary::-webkit-details-marker { display: none; }
.tf-faq summary::after { content: "+"; flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft);
  font-size: 16px; line-height: 1; transition: transform .25s var(--ease); }
.tf-faq details[open] summary::after { transform: rotate(45deg); }
.tf-faq details p { margin: 10px 0 0; color: var(--soft); line-height: 1.6; font-size: 13.5px; }

/* Oylik / Yillik */
.tf-period { display: flex; width: max-content; max-width: 100%; margin: -12px auto 30px; padding: 4px; gap: 4px; border-radius: 99px;
  background: var(--well); border: 1px solid var(--line); }
.tf-period button { border: 0; background: transparent; border-radius: 99px; padding: 8px 20px; min-height: 38px; font-weight: 600; font-size: 13.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; }
.tf-period button:hover:not(:disabled) { background: var(--raise); color: var(--head); border: 0; }
.tf-period button[aria-selected="true"] { background: var(--panel-solid); color: var(--head); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 6px 16px -8px rgba(0, 0, 0, .5); }
:root[data-theme="light"] .tf-period button[aria-selected="true"] { box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.tf-period em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--good); background: var(--good-soft); }
.tf-yil .tf-price { min-height: 92px; }
.tf-save { align-self: flex-start; margin-top: 5px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--good); background: var(--good-soft); }
.tf-static .tf-card, .tf-static .tf-head { animation: none; }
.tf-static .tf-price { animation: pg-in .3s var(--ease) both; }

/* Yuklanish skeleti */
.tf-skel div { height: 420px; border-radius: 20px; background: linear-gradient(100deg, var(--well) 30%, var(--raise) 50%, var(--well) 70%); background-size: 300% 100%; animation: tf-sk 1.4s linear infinite; }
@keyframes tf-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

.lim-tf { margin-top: 12px; }
.auth-tf { display: block; margin: 14px auto 0; font-size: 13px; }
.tf-drawer .drawer-panel { width: min(1080px, calc(100% - 20px)); }
.tf-drawer .tf-trust { margin-top: 4px; }

@container (max-width: 1020px) {
  .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .tf-how { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 700px) {
  .tf-steps { grid-template-columns: minmax(0, 1fr); }
  .tf-steps li + li::before { display: none; }
  .tf-school { flex-wrap: wrap; align-items: flex-start; }
  .tf-school-t { flex-basis: calc(100% - 66px); }
  .tf-school-n { width: 100%; }
  .tf-school-n div { flex: 1; }
  .tf-faq-g { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 540px) {
  .tf-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-kim, .tf-price, .tf-yil .tf-price { min-height: 0; }
  .tf-how, .tf-school { padding: 20px 18px; }
  .tf-trust { justify-content: flex-start; flex-direction: column; align-items: flex-start; padding-left: 4px; }
  .tf-head { text-align: left; }
}

.ad-contact { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ad-contact .fld { flex: 1 1 200px; margin: 0; }
.ad-contact button { min-height: 40px; }

/* --- Sozlamalar (bo'limlar) --- */
.st-head { margin-bottom: 18px; }
.st-head h1 { margin-bottom: 4px; }
.st-head .muted { margin: 0; }
.st-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1080px; }
.st-nav { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.st-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; min-height: 42px; border: 0; border-radius: 11px;
  background: transparent; color: var(--soft); font-weight: 500; font-size: 13.5px; text-align: left; }
.st-nav button svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: color .15s; }
.st-nav button:hover:not(:disabled) { background: var(--well); color: var(--head); border: 0; }
.st-nav button[aria-selected="true"] { background: var(--accent-soft); color: var(--head); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.st-nav button[aria-selected="true"] svg { color: var(--accent); }
.st-body { min-width: 0; }
.st-panel { animation: pg-in .35s var(--ease) both; }
.st-body .card { max-width: none; width: auto; margin: 0 0 16px; }
.st-card { padding: 22px 24px; }
.st-ch { margin-bottom: 16px; }
.st-ch h2 { font-size: 19px; margin: 0 0 4px; }
.st-ch p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 640px; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.st-field { margin: 4px 0 16px; }
.st-lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.st-lbl small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { min-height: 32px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--soft); background: var(--well); border: 1px solid var(--line); }
.st-chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-grad); border-color: transparent; font-weight: 600; }
.st-chip[aria-pressed="true"]:hover:not(:disabled) { background: var(--accent-grad); filter: brightness(1.06); border-color: transparent; }
.st-chips-n .st-chip { width: 40px; padding: 6px 0; text-align: center; font-variant-numeric: tabular-nums; }
.st-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.st-sub { margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.st-ch + .st-sub { margin-top: 0; padding-top: 0; border-top: 0; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 10px; }
.st-row > div:first-child { min-width: 0; }
.st-row b { display: block; font-size: 13.5px; font-weight: 600; color: var(--head); }
.st-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.st-row select { min-width: 170px; }
.st-row-last { padding-bottom: 2px; }
.st-sw { margin: 2px 0; }
.st-lock { margin: 6px 10px 0; }
.st-tgn { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); border-radius: 0; }

/* Rejim tanlash kartalari */
.st-theme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-theme button { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; min-height: 0; border-radius: 14px; text-align: center; background: var(--well); }
.st-theme button b { font-size: 13px; font-weight: 600; color: var(--soft); }
.st-theme button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-theme button[aria-checked="true"] b { color: var(--head); }
.st-th { position: relative; display: block; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.st-th i { position: absolute; left: 10px; right: 30%; height: 8px; border-radius: 4px; }
.st-th i:first-child { top: 14px; } .st-th i:last-child { top: 30px; right: 48%; }
.st-th-d { background: radial-gradient(80px 50px at 0 0, rgba(214,120,34,.4), transparent), #0a1222; }
.st-th-d i { background: rgba(255,255,255,.22); } .st-th-d i:first-child { background: #f4a640; }
.st-th-l { background: radial-gradient(80px 50px at 0 0, rgba(236,150,60,.35), transparent), #f3efe7; }
.st-th-l i { background: rgba(20,30,60,.18); } .st-th-l i:first-child { background: #c96a12; }
.st-th-a { background: linear-gradient(110deg, #0a1222 50%, #f3efe7 50%); }
.st-th-a i { background: rgba(150,150,150,.45); } .st-th-a i:first-child { background: #f4a640; }

/* Xavfsizlik */
.st-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.st-dl > div { padding: 12px 14px; border-radius: 12px; background: var(--well); border: 1px solid var(--hair); min-width: 0; }
.st-dl dt { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.st-dl dd { margin: 3px 0 0; font-weight: 600; color: var(--head); font-size: 13.5px; overflow-wrap: anywhere; }
.st-pend { display: block; font-weight: 500; color: var(--accent); font-size: 12px; }
.st-pwbar { display: flex; align-items: center; gap: 10px; margin: -6px 0 10px; height: 18px; }
.st-pwbar i { flex: 1; height: 5px; border-radius: 5px; background: var(--well); position: relative; overflow: hidden; }
.st-pwbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 5px; transition: width .3s var(--ease), background .3s; }
.st-pwbar[data-k="1"] i::after { width: 25%; background: var(--bad); }
.st-pwbar[data-k="2"] i::after { width: 50%; background: #f59e0b; }
.st-pwbar[data-k="3"] i::after { width: 75%; background: var(--cyan); }
.st-pwbar[data-k="4"] i::after { width: 100%; background: var(--good); }
.st-pwbar span { font-size: 12px; color: var(--muted); min-width: 76px; text-align: right; }

/* Ma'lumotlarim */
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.st-stats div { padding: 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); text-align: center; }
.st-stats b { display: block; font: 700 24px/1.1 var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; }
.st-stats small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.st-dls { display: grid; gap: 8px; }
.st-dlb { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px; min-height: 0; border-radius: 14px; background: var(--well); }
.st-dlb::before { content: ""; grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / 18px no-repeat; }
.st-dlb::after { content: "→"; grid-row: 1 / span 2; grid-column: 3; color: var(--muted); font-size: 16px; transition: transform .2s var(--ease); }
.st-dlb:hover:not(:disabled)::after { transform: translateX(3px); color: var(--accent); }
.st-dlb b { font-size: 14px; color: var(--head); font-weight: 600; }
.st-dlb small { grid-column: 2; font-size: 12px; color: var(--muted); }
.st-dlb.locked { opacity: .65; }
.st-dlb.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.st-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.st-danger h2 { color: var(--bad); }
.st-delbtn { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 45%, transparent); font-weight: 600; }
.st-delbtn:hover:not(:disabled) { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Matn o'lchami va harakatlar (Sozlamalar > Ko'rinish) */
html[data-fs="lg"] .app, html[data-fs="lg"] .drawer-panel, html[data-fs="lg"] .solve { zoom: 1.1; }
html[data-fs="xl"] .app, html[data-fs="xl"] .drawer-panel, html[data-fs="xl"] .solve { zoom: 1.2; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

@media (max-width: 860px) {
  .st-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .st-nav { position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 4px; border-radius: 14px; }
  .st-nav::-webkit-scrollbar { display: none; }
  .st-nav button { width: auto; flex: 0 0 auto; padding: 8px 12px; min-height: 38px; white-space: nowrap; }
  .st-nav button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
}
@media (max-width: 560px) {
  .st-card { padding: 18px 16px; }
  .st-grid2, .st-dl { grid-template-columns: minmax(0, 1fr); }
  .st-row { flex-wrap: wrap; padding: 12px 4px; }
  .st-row > :last-child:not(div:first-child) { width: 100%; }
  .st-row > .stp { width: auto; }
  .st-row > button.ghost { width: auto; }
  .st-row .seg.small { width: 100%; display: flex; }
  .st-row .seg.small button { flex: 1 1 0; }
  .st-row select { width: 100%; }
  .st-theme button b { font-size: 12px; }
  .st-stats b { font-size: 20px; }
  .st-actions button { flex: 1 1 auto; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Boshqaruv (qayta qurilgan) --- */
#ad-root { max-width: 1240px; }
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; animation: pg-in .45s var(--ease) both; }
.ad-head-t h1 { margin: 8px 0 4px; }
.ad-head-t .muted { margin: 0; max-width: 560px; }
.ad-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ad-head-b { display: flex; align-items: center; gap: 8px; }
.ad-qb { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 16px 9px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; border: 0; }
.ad-qb svg { width: 17px; height: 17px; stroke-width: 2.4; }
.ad-qb-s { color: #2a1504; background: linear-gradient(145deg, #ffd27d, #f4a640 50%, #df6c17); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px -12px rgba(232,134,42,.9); }
.ad-qb-t { color: #062234; background: linear-gradient(145deg, #a6ecff, #5cc8ea 50%, #1f86b4); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 22px -12px rgba(92,200,234,.9); }
.ad-qb:hover:not(:disabled) { filter: brightness(1.07); border: 0; transform: translateY(-1px); }
.ad-qb-s:hover:not(:disabled) { background: linear-gradient(145deg, #ffd27d, #f4a640 50%, #df6c17); }
.ad-qb-t:hover:not(:disabled) { background: linear-gradient(145deg, #a6ecff, #5cc8ea 50%, #1f86b4); }
.ad-rf { width: 42px; height: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.ad-rf svg { width: 18px; height: 18px; }
.ad-rf.spin svg { animation: spin .8s linear infinite; }

/* Asosiy raqamlar */
.ad-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ad-kpi { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: card-in .5s var(--ease) both; }
.ad-kpi:nth-child(2) { animation-delay: .05s; } .ad-kpi:nth-child(3) { animation-delay: .1s; } .ad-kpi:nth-child(4) { animation-delay: .15s; } .ad-kpi:nth-child(5) { animation-delay: .2s; }
.ad-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c); opacity: .85; }
.ad-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 18%, transparent), transparent); pointer-events: none; }
.ad-kpi-i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.ad-kpi-i svg { width: 20px; height: 20px; }
.ad-kpi > div { min-width: 0; }
.ad-kpi small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ad-kpi b { display: block; font: 700 26px/1.15 var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; }
.ad-kpi em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-up { color: var(--good); font-weight: 700; }

/* Bo'limlar (tablar) */
.ad-tabs { position: sticky; top: 12px; z-index: 6; display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 14px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--panel-solid) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ad-tabs button:hover:not(:disabled) { background: var(--well); color: var(--head); border: 0; }
.ad-tabs button[aria-selected="true"] { background: var(--raise); color: var(--head); box-shadow: inset 0 -2px 0 var(--accent), 0 4px 12px -8px rgba(0,0,0,.6); }
.ad-tabs i { font-style: normal; }
.ad-cnt { font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 99px; text-align: center; background: var(--well); color: var(--muted); }
.ad-cnt:empty { display: none; }
.ad-badge { font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 99px; text-align: center; background: var(--bad); color: #fff; animation: pop .4s var(--ease-spring); }
.ad-pane { animation: pg-in .35s var(--ease) both; }

/* Kartalar sarlavhasi */
.ad-card { padding: 20px 22px; }
.ad-ch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ad-ch h2 { font-size: 19px; margin: 0; }
.ad-sub { font-size: 12.5px; color: var(--muted); }
.ad-sub-p { margin: -6px 0 14px; line-height: 1.55; }
.ad-tools h2 { margin-right: auto; }
.ad-search { flex: 1 1 220px; max-width: 320px; }
.ad-seg button { white-space: nowrap; }
.ad-empty { list-style: none; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* Umumiy */
.ad-ov { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ad-ov-r { display: flex; flex-direction: column; }
.ad-att-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-att-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair);
  animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.ad-att-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.ad-att-ic svg { width: 18px; height: 18px; }
.t-soon .ad-att-ic { color: #f59e0b; background: rgba(245, 158, 11, .14); }
.t-off .ad-att-ic { color: var(--bad); background: var(--bad-soft); }
.t-admin .ad-att-ic { color: #c9b8f5; background: rgba(201, 184, 245, .14); }
:root[data-theme="light"] .t-admin .ad-att-ic { color: #6d4fc4; background: rgba(109, 79, 196, .1); }
.t-inv .ad-att-ic { color: var(--cyan); background: var(--cyan-soft); }
.t-off { border-color: color-mix(in srgb, var(--bad) 30%, var(--hair)); }
.ad-att-t { flex: 1; min-width: 0; }
.ad-att-t b { display: block; font-size: 14px; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-att-t small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.ad-att-b { display: flex; gap: 6px; flex: 0 0 auto; }
.ad-allok { display: flex; align-items: center; gap: 14px; padding: 22px 16px; border-radius: 14px; background: var(--good-soft); border: 1px dashed color-mix(in srgb, var(--good) 40%, transparent); list-style: none; }
.ad-allok > span { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--good); background: color-mix(in srgb, var(--good) 16%, transparent); }
.ad-allok svg { width: 24px; height: 24px; }
.ad-allok b { display: block; color: var(--head); font-size: 15px; }
.ad-allok small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ad-dist { display: grid; gap: 12px; }
.ad-dist-r { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; animation: pg-in .4s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.ad-dist-r .ad-plan { grid-row: span 2; justify-self: start; }
.ad-dist-b { display: grid; gap: 3px; }
.ad-dist-b span { display: block; height: 7px; border-radius: 6px; background: var(--well); overflow: hidden; }
.ad-dist-b i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #f4a640, #e2731c); transform-origin: left; animation: ad-bar .8s var(--ease) both; animation-delay: calc(var(--i) * 80ms + .15s); }
.ad-dist-b i.sc { background: linear-gradient(90deg, #c9b8f5, #8e74e0); }
.ad-dist-n { font-size: 11.5px; color: var(--muted); }
.ad-dist-n b { color: var(--head); }
.ad-dist-k { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--hair); }
.ad-dist-k i { display: inline-block; width: 10px; height: 6px; border-radius: 3px; margin-right: 6px; background: #f4a640; vertical-align: middle; }
.ad-dist-k i.sc { background: #a991ea; }
@keyframes ad-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ad-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.ad-feed li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--hair); animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.ad-feed li:first-child { border-top: 0; }
.ad-feed li > div:nth-child(2) { flex: 1; min-width: 0; }
.ad-feed b { display: block; font-size: 13.5px; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-feed small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-feed-r { text-align: right; flex: 0 0 auto; }
.ad-feed-r .pill { font-size: 10.5px; }

/* Tarifni o'zgartirish / uzaytirish */
.ad-pedit { display: grid; gap: 6px; }
.ad-pedit-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ad-pedit-x { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.ad-pedit-x span { margin-right: 2px; }
.ad-pedit-x .sm { min-height: 26px; padding: 3px 9px; font-size: 11.5px; }
.ad-soon { color: #f59e0b !important; font-weight: 600; }
.ad-lim-g th { text-align: left !important; padding: 16px 12px 6px !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; background: transparent !important; border-bottom: 1px solid var(--line); }
.ad-flash { animation: ad-flash 1.4s var(--ease); }
@keyframes ad-flash { 0%, 100% { box-shadow: var(--sh-card); } 25% { box-shadow: 0 0 0 3px var(--ocl), var(--sh-card); } }
.ad-give { margin-bottom: 4px; }

@media (max-width: 1180px) { .ad-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .ad-ov { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .ad-tabs { top: 64px; }
  .ad-give { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ad-head-b { width: 100%; }
  .ad-qb { flex: 1 1 0; justify-content: center; }
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ad-kpi { padding: 12px; gap: 10px; }
  .ad-kpi-i { flex-basis: 34px; width: 34px; height: 34px; }
  .ad-kpi b { font-size: 21px; }
  .ad-kpi:last-child { grid-column: span 2; }
  .ad-card { padding: 16px; }
  .ad-att-i { flex-wrap: wrap; }
  .ad-att-b { width: 100%; padding-left: 48px; }
  .ad-search { max-width: none; flex-basis: 100%; }
  .ad-seg { width: 100%; overflow-x: auto; }
}
.ad-pane .ad-card, .ad-pane .ad-opt { animation-duration: .35s; animation-delay: 0s; }
.ad-pane .ad-opt + .ad-opt { animation-delay: .06s; }

/* --- Boshqaruv: asosiy raqamlar (jonli) --- */
.ad-kpis { gap: 14px; }
.ad-kpi { --mx: 50%; --my: 0%; isolation: isolate; padding: 18px 18px 16px; gap: 14px; border-radius: 20px; border: 1px solid transparent;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    linear-gradient(140deg, color-mix(in srgb, var(--c) 60%, transparent), color-mix(in srgb, var(--c) 8%, transparent) 38%, var(--line) 70%, color-mix(in srgb, var(--c) 22%, transparent)) border-box;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 32px -22px color-mix(in srgb, var(--c) 70%, #000);
  animation: ad-kpi-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
:root[data-theme="light"] .ad-kpi { box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 14px 30px -22px color-mix(in srgb, var(--c) 70%, #333); }
.ad-kpi:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 22px 40px -22px color-mix(in srgb, var(--c) 85%, #000); }
/* chap chiziq o'rniga: yuqorida yaltiroq nur va burchakdagi rangli yog'du */
.ad-kpi::before { content: ""; position: absolute; inset: 0; width: auto; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 1;
  background: radial-gradient(140px 90px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 75%); }
.ad-kpi::after { content: ""; position: absolute; inset: 0; right: auto; top: auto; width: 100%; height: 100%; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s; }
.ad-kpi:hover::after { opacity: 1; }
/* belgi: rangli plitka, atrofida sekin aylanuvchi halqa */
.ad-kpi-i { position: relative; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; color: var(--c);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px -8px color-mix(in srgb, var(--c) 80%, transparent); }
.ad-kpi-i::before { content: ""; position: absolute; inset: -3px; border-radius: 17px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 62%, color-mix(in srgb, var(--c) 85%, #fff) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ad-ring 5s linear infinite; animation-delay: calc(var(--i, 0) * -1s); }
.ad-kpi-i svg { width: 23px; height: 23px; overflow: visible; }
.ad-kpi-t { position: relative; z-index: 1; }
.ad-kpi small { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; }
.ad-kpi b { font-size: 30px; margin: 2px 0 1px; letter-spacing: -.02em; }
.ad-kpi em { font-size: 11.5px; }
/* katta xira belgi (suv belgisi) — sekin suzadi */
.ad-kpi-wm { position: absolute; right: -10px; bottom: -14px; width: 86px; height: 86px; color: var(--c); opacity: .07; z-index: -1; pointer-events: none;
  animation: ad-wm 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.6s); }
.ad-kpi-wm svg { width: 100%; height: 100%; stroke-width: 1.4; }
.ad-kpi-wm * { animation: none !important; }

/* har bir belgining o'z harakati */
.kq-b { animation: kq-hop 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.kq-top { animation: kq-float 3s ease-in-out infinite; }
.kq-flag { transform-box: view-box; transform-origin: 12px 3.4px; animation: ai-flag 1.8s ease-in-out infinite; }
.kq-ln { stroke-dasharray: 8; stroke-dashoffset: 8; animation: kq-write 3.6s ease-in-out infinite; }
.kq-ln2 { animation-delay: .5s; }
.kq-chk { stroke-dasharray: 12; stroke-dashoffset: 12; animation: kq-check 3.2s ease-in-out infinite; }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ad-ring { to { --ang: 360deg; } }
@keyframes ad-kpi-in { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ad-wm { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-6px, -5px) rotate(-2deg); } }
@keyframes kq-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-2.2px); } 80% { transform: translateY(0); } 88% { transform: translateY(-1px); } }
@keyframes kq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes kq-write { 0% { stroke-dashoffset: 8; } 30%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -8; } }
@keyframes kq-check { 0%, 10% { stroke-dashoffset: 12; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .ad-kpi, .ad-kpi-i::before, .ad-kpi-wm, .kq-b, .kq-top, .kq-flag, .kq-ln, .kq-chk { animation: none; }
  .kq-ln, .kq-chk { stroke-dashoffset: 0; }
}
@media (max-width: 560px) {
  .ad-kpi { padding: 14px 12px; gap: 10px; }
  .ad-kpi-i { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
  .ad-kpi-i::before { border-radius: 15px; }
  .ad-kpi-i svg { width: 20px; height: 20px; }
  .ad-kpi b { font-size: 23px; }
  .ad-kpi small { text-transform: none; letter-spacing: 0; font-size: 11.5px; }
  .ad-kpi-wm { width: 64px; height: 64px; }
}

/* --- Shrift tanlovi (Sozlamalar > Ko'rinish) --- */
html[data-font="yumshoq"] { --f-ui: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-disp: "Nunito", ui-sans-serif, system-ui, sans-serif; }
html[data-font="aniq"] { --f-ui: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-disp: "Literata", Georgia, "Times New Roman", serif; }
html[data-font="klassik"] { --f-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-disp: "Source Serif 4", Georgia, "Times New Roman", serif; }
.st-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-fonts button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 14px 12px; min-height: 0; border-radius: 14px; text-align: left; background: var(--well); }
.st-fonts button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-fonts .fa { font-size: 30px; line-height: 1; color: var(--head); font-weight: 700; }
.st-fonts .fs { font-size: 13px; color: var(--soft); line-height: 1.35; }
.st-fonts b { font-size: 12.5px; font-weight: 700; color: var(--head); margin-top: 2px; }
.st-fonts small { font-size: 11px; color: var(--muted); margin-top: -4px; }
@media (max-width: 860px) { .st-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* --- Boshqaruv: harakatlar jurnali --- */
.ad-log { list-style: none; margin: 0; padding: 0; display: grid; }
.ad-log li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--hair); animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.ad-log li:first-child { border-top: 0; }
.ad-log li > div { flex: 1; min-width: 0; }
.ad-log b { display: block; font-size: 13px; color: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-log b span { font-weight: 500; color: var(--soft); }
.ad-log small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-log time { flex: 0 0 auto; font-size: 11px; color: var(--faint); }
.ad-log-i { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--well); }
.ad-log-i svg { width: 15px; height: 15px; }
.ad-log-i.i-paid { color: var(--good); background: var(--good-soft); }
.ad-log-i.i-school { color: #c9b8f5; background: rgba(201, 184, 245, .14); }
.ad-log-i.i-mail { color: var(--cyan); background: var(--cyan-soft); }
.ad-log-i.i-ok { color: var(--good); background: var(--good-soft); }
.ad-log-i.i-alert { color: var(--bad); background: var(--bad-soft); }
.ad-log li.crit { background: var(--bad-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
/* --- Savollar bazasi: mavzular daraxti va guruhlar --- */
.bk-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.bk-nav { position: sticky; top: 16px; padding: 0; overflow: hidden; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.bk-nav-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px 10px; border: 0; border-radius: 0; background: transparent; text-align: left; cursor: default; min-height: 0; }
.bk-nav-h:hover:not(:disabled) { background: transparent; border: 0; }
.bk-nav-h b { display: block; font: 700 17px var(--f-disp); color: var(--head); }
.bk-nav-h small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.bk-nav-h i { display: none; font-style: normal; color: var(--muted); transition: transform .25s var(--ease); }
.bk-nav-in { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bk-nav-q { margin: 0 12px 8px; width: auto; min-height: 36px; font-size: 13px; }
.bk-tree { overflow-y: auto; padding: 2px 8px 12px; scrollbar-width: thin; }
.bk-tree button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 0; border: 0; border-radius: 9px; background: transparent; text-align: left; color: var(--soft); font-size: 13px; }
.bk-tree button:hover:not(:disabled) { background: var(--well); border: 0; color: var(--head); }
.bk-tree button.on { background: var(--accent-soft); color: var(--head); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.bk-tree em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--well); padding: 1px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.bk-tree button.on em { color: var(--accent); background: transparent; }
.bk-t0 { padding: 8px 10px; font-weight: 600; margin-bottom: 4px; }
.bk-t1 { padding: 8px 8px; font-weight: 700; color: var(--head) !important; font-size: 13.5px !important; }
.bk-t2 { padding: 6px 8px 6px 22px; font-weight: 600; }
.bk-tc { flex: 0 0 14px; width: 14px; height: 14px; display: grid; place-items: center; }
.bk-tc::before { content: ""; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); opacity: .7; }
.open > button > .bk-tc::before { transform: rotate(45deg); }
.bk-t1b, .bk-t3 { display: none; }
.bk-t1w.open > .bk-t1b, .bk-t2w.open > .bk-t3 { display: block; animation: pg-in .25s var(--ease) both; }
.bk-t3 { list-style: none; margin: 2px 0 4px 34px; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.bk-t3 button { padding: 5px 8px; font-size: 12.5px; }
.bk-tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-empty { margin: 8px; color: var(--muted); font-size: 13px; }

.bk-main { min-width: 0; }
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bk-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; min-width: 0; }
.bk-crumb button { min-height: 0; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cyan); font-weight: 600; font-size: 13.5px; }
.bk-crumb button:hover:not(:disabled) { background: var(--well); border: 0; color: var(--accent); }
.bk-crumb b { padding: 4px 8px; color: var(--head); }
.bk-sep { color: var(--faint); }
.bk-tools { display: flex; align-items: center; gap: 8px; }

/* Mavzu guruhi */
.bk-grp { margin-bottom: 16px; animation: pg-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.bk-gh { position: sticky; top: 8px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer; user-select: none;
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--sh-card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bk-gh:hover { border-color: var(--edge2); }
.bk-gh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-chev { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); }
.bk-chev::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-1px, -1px); transition: transform .25s var(--ease); }
.bk-grp.yig .bk-chev::before { transform: rotate(-45deg); }
.bk-gt { flex: 1; min-width: 0; }
.bk-gt h3 { margin: 0; font: 700 17px/1.3 var(--f-disp); color: var(--head); overflow-wrap: anywhere; }
.bk-gt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.bk-gt small b { color: var(--soft); }
.bk-gt small em { font-style: normal; color: var(--faint); }
.bk-ren-in { width: 100%; max-width: 420px; font: 600 15px var(--f-ui); }
.bk-dist { flex: 0 0 116px; display: grid; gap: 4px; }
.bk-dbar { display: flex; gap: 2px; height: 6px; border-radius: 6px; overflow: hidden; background: var(--well); }
.bk-dbar i { display: block; min-width: 4px; }
.bk-dbar i.d1 { background: #4ade80; } .bk-dbar i.d2 { background: #f4a640; } .bk-dbar i.d3 { background: #f87171; }
.bk-dist small { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bk-dist .d1 { color: var(--good); } .bk-dist .d2 { color: var(--accent); } .bk-dist .d3 { color: var(--bad); }
.bk-gact { display: flex; gap: 6px; flex: 0 0 auto; }
.bk-gact .sm { display: inline-flex; align-items: center; gap: 5px; }
.bk-gb { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 0 14px; margin-left: 13px; border-left: 2px solid var(--hair); }
.bk-grp.yig .bk-gb { display: none; }
.bk-gb .q-card { animation: none; }

/* Ixcham ko'rinish: savol matni va to'g'ri javob, variantlar va yechim yashiriladi */
.q-ans { display: none; font-size: 12px; color: var(--muted); }
.q-ans b { color: var(--good); }
.q-list.compact .q-card { padding: 12px 16px; }
.q-list.compact .q-meta { margin-bottom: 6px; }
.q-list.compact .q-opts, .q-list.compact .q-sol, .q-list.compact .q-img { display: none; }
.q-list.compact .q-ans { display: inline; }
.q-list.compact .q-body { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-list.compact .q-meta .sm { opacity: 0; transition: opacity .15s; }
.q-list.compact .q-card:hover .q-meta .sm, .q-list.compact .q-card:focus-within .q-meta .sm { opacity: 1; }

@media (max-width: 980px) {
  .bk-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bk-nav { position: static; max-height: none; }
  .bk-nav-h { cursor: pointer; padding: 12px 14px; }
  .bk-nav-h i { display: block; }
  .bk-nav.yopiq .bk-nav-h i { transform: rotate(-90deg); }
  .bk-nav.yopiq .bk-nav-in { display: none; }
  .bk-tree { max-height: 50vh; }
  .bk-gh { top: 64px; }
}
@media (max-width: 640px) {
  .bk-gh { flex-wrap: wrap; gap: 8px 10px; }
  .bk-dist { flex: 1 1 auto; order: 3; }
  .bk-gact { order: 4; width: 100%; }
  .bk-gact .sm { flex: 1 1 0; justify-content: center; }
  .bk-hide-sm { display: none; }
  .bk-gb { padding-left: 8px; margin-left: 6px; }
  .q-list.compact .q-meta .sm { opacity: 1; }
}

.bk-gact .sm { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 641px) {
  .bk-hide-sm { display: none; }
  .bk-dist { flex-basis: 88px; }
}
@media (max-width: 640px) { .bk-gact .sm { padding-left: 8px; padding-right: 8px; } }
/* Mavzular: telefonda aniq "Tanlash / Yopish" tugmasi */
.bk-nav-ht { min-width: 0; }
.bk-nav-h small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-nav-h small.tanlangan { color: var(--accent); font-weight: 600; }
.bk-nav-b { display: none; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent-grad); box-shadow: 0 6px 16px -8px rgba(232, 134, 42, .9); }
.bk-nav-b i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.bk-nav:not(.yopiq) .bk-nav-b { color: var(--soft); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.bk-nav:not(.yopiq) .bk-nav-b i { transform: rotate(-135deg) translate(-2px, -1px); }
@media (max-width: 980px) {
  .bk-nav-h i { display: block; }
  .bk-nav-b { display: inline-flex; }
  .bk-nav.yopiq { border-color: var(--accent-line); }
  .bk-nav.yopiq .bk-nav-h i { transform: rotate(45deg) translateY(-2px); }
}
/* --- Test tuzish: Word fayldan test kartasi --- */
.b-file { margin: 4px 0 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--well); animation: pg-in .35s var(--ease) both; }
.b-file-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.b-file-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--panel-solid); border: 1px solid var(--line); }
.b-file-h b { display: block; color: var(--head); font-size: 14.5px; overflow-wrap: anywhere; }
.b-file-h small { color: var(--muted); font-size: 12px; }
.b-file-l { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.b-file-l li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--hair); }
.b-file-l span { color: var(--muted); flex: 0 0 auto; }
.b-file-l b { color: var(--soft); font-weight: 600; text-align: right; }
/* --- Telefon: "eriydigan" pastki menyu --- */
/* Faol bo'lim belgisi ko'tarilgan tomchiga chiqadi, panel esa uning atrofida o'yiladi; tomchi bo'limlar orasida suyuqlikdek suriladi */
@property --nx { syntax: "<length>"; inherits: true; initial-value: 40px; }
.nav-blob { display: none; }
@media (max-width: 860px) {
  .side nav { --tc: #f4a640; --nx: 40px; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: --nx .6s cubic-bezier(.45, 1.45, .45, 1); }
  .side nav[data-on="bank"] { --tc: #5cc8ea; }
  .side nav[data-on="build"] { --tc: #a78bfa; }
  .side nav[data-on="results"] { --tc: #4ade80; }
  .side nav[data-on="school"] { --tc: #f472b6; }
  .side nav[data-on="settings"] { --tc: #60a5fa; }
  .side nav[data-on="admin"] { --tc: #f87171; }
  /* Panel foni alohida qatlamda — faqat u o'yiladi (tugmalar va tomchi emas) */
  .side nav::before {
    display: block; content: ""; position: absolute; inset: 0; z-index: -1; padding: 0; border-radius: inherit; pointer-events: none; opacity: 1;
    background: color-mix(in srgb, var(--panel-solid) 86%, transparent); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    -webkit-mask: radial-gradient(circle at var(--nx) 0, transparent 31px, #000 32px); mask: radial-gradient(circle at var(--nx) 0, transparent 31px, #000 32px);
  }
  .nav-blob {
    display: block; position: absolute; z-index: 1; top: -24px; left: var(--nx); width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tc) 55%, #fff), var(--tc) 55%, color-mix(in srgb, var(--tc) 70%, #000));
    box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--tc) 85%, transparent), 0 0 18px -4px color-mix(in srgb, var(--tc) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: background .45s, box-shadow .45s;
  }
  .nav-blob.oq { animation: blob-oq .6s cubic-bezier(.3, 1.4, .5, 1); }
  @keyframes blob-oq { 0% { transform: scale(1); } 30% { transform: scale(1.18, .78) translateY(4px); } 60% { transform: scale(.92, 1.1) translateY(-2px); } 100% { transform: none; } }
  /* Eski "tabletka" o'rniga — tomchi */
  .side nav button::after { display: none; }
  .side nav button { z-index: 2; }
  .side nav button::before { transition: transform .5s cubic-bezier(.45, 1.5, .45, 1), background .3s; }
  .side nav button[aria-current="page"] { color: var(--tc); }
  .side nav button[aria-current="page"]::before { background: #10172a; transform: translateY(-27px) scale(1.08); }
  :root[data-theme="light"] .side nav button[aria-current="page"]::before { background: #fff; }
  .side nav button[aria-current="page"] .ns { font-weight: 700; }
  .side nav .ns { transition: transform .4s var(--ease), color .3s; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .side nav { transition: none; }
  .nav-blob.oq { animation: none; }
}

/* --- Kod kiritish katakchalari --- */
.kod-asl { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; padding: 0 !important; border: 0 !important; }
.kod-k { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.kod-c { width: 40px; height: 48px; min-height: 0; padding: 0; text-align: center; font: 700 20px/1 var(--f-ui); letter-spacing: 0; text-transform: uppercase;
  color: var(--head); background: var(--well); border: 1.5px solid var(--line); border-radius: 12px; caret-color: var(--accent);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), background .2s; }
.kod-c:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-2px); }
.kod-c:not(:placeholder-shown), .kod-c:valid:not([value=""]) { }
.kod-sep { color: var(--faint); font-weight: 700; padding: 0 2px; }
.kod-k.toliq .kod-c { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--well)); }
/* Xato: qizil, silkinish */
.kod-k.err .kod-c { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.kod-k.err { animation: kod-silk .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes kod-silk { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
/* To'g'ri: katakchalar orbitaga chiqib aylanadi va markazdagi yashil belgiga birlashadi */
.kod-ok { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px; display: grid; place-items: center;
  color: #06240f; background: linear-gradient(145deg, #86efac, #22c55e); box-shadow: 0 10px 26px -8px rgba(34, 197, 94, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: scale(0) rotate(-90deg); opacity: 0; pointer-events: none; }
.kod-k.ok .kod-c { animation: kod-orbit .75s cubic-bezier(.6, .05, .35, 1) forwards; animation-delay: calc(var(--i) * 25ms); border-color: #22c55e; color: #22c55e; }
.kod-k.ok .kod-sep { opacity: 0; transition: opacity .2s; }
.kod-k.ok .kod-ok { animation: kod-tile .55s .62s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes kod-orbit {
  0% { transform: none; }
  45% { transform: translateY(-14px) rotate(160deg) scale(.85); }
  100% { transform: translateX(var(--dx)) rotate(450deg) scale(.3); opacity: 0; }
}
@keyframes kod-tile { to { transform: scale(1) rotate(0); opacity: 1; } }
:root[data-theme="light"] .kod-c { background: #fff; }
@media (max-width: 420px) { .kod-c { width: 34px; height: 44px; font-size: 18px; border-radius: 10px; } .kod-k { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .kod-k.ok .kod-c { animation: none; opacity: 0; } .kod-k.ok .kod-ok { animation: none; opacity: 1; transform: none; } .kod-k.err { animation: none; } }

/* Kirish sahifasi: o'quvchi uchun test kodi */
.auth-st { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.auth-st-b { min-height: 0; border: 0; background: none; padding: 6px 8px; color: var(--cyan); font-weight: 600; font-size: 13.5px; }
.auth-st-b:hover:not(:disabled) { background: none; border: 0; color: var(--accent); }
.auth-st-f { margin-top: 10px; animation: pg-in .3s var(--ease) both; }
.auth-st-f p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }

.tk-card .on-link { flex-wrap: wrap; }
.tk-card .on-link .kod-k { flex: 1 1 100%; justify-content: flex-start; margin: 8px 0 6px; }
.tk-card .on-link button[type="submit"] { margin-left: 0; }
.sc-opt .kod-k { margin: 6px 0 12px; }
/* --- O'quvchi sahifasi: yangilangan qismlar --- */
.sx-who { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 8px 12px 8px 8px; width: max-content; max-width: 100%;
  border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sx-who-l { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: #fff; color: #0d1424; font-weight: 800; font-size: 16px; }
.sx-who-l img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.sx-who b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-who small { display: block; color: rgba(255, 255, 255, .78); font-size: 12px; }
.sx-rules .sx-rule-w { color: var(--muted); font-size: 12.5px; }
.sx-back { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; text-decoration: none; color: var(--head); background: var(--well); border: 1px solid var(--line); }

/* Taymer: aylana */
.sx-timer { gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; font: 700 16px var(--f-mono); }
.sx-timer svg { width: 30px; height: 30px; transform: rotate(-90deg); flex: 0 0 30px; }
.sx-timer circle { fill: none; stroke-width: 4; }
.sx-timer circle.bg { stroke: var(--line); }
.sx-timer circle.fg { stroke: var(--good); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--o, 0); transition: stroke-dashoffset 1s linear, stroke .3s; }
.sx-timer.warn circle.fg { stroke: var(--accent); }
.sx-timer.danger circle.fg { stroke: var(--bad); }
.sx-timer.danger { animation: sx-pulse-red 1s ease-in-out infinite; }
@keyframes sx-pulse-red { 50% { box-shadow: 0 0 0 6px var(--bad-soft); } }

/* Internet uzildi / boshqa ilovaga o'tish ogohlantirishlari */
.sx-net, .sx-away { margin: 10px 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; animation: pg-in .3s var(--ease) both; }
.sx-net { color: #fff; background: linear-gradient(135deg, #b45309, #92400e); }
.sx-away { color: var(--soft); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.sx-away b { color: var(--bad); }

/* Belgilash tugmasi */
.sx-q-h { align-items: center; }
.sx-flag { margin-left: auto; min-height: 32px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--well); border: 1px solid var(--line); filter: grayscale(1); opacity: .85; }
.sx-flag.on { filter: none; opacity: 1; color: #f59e0b; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .45); }
.sx-flag.on { animation: sx-flag .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sx-flag { 40% { transform: scale(1.12) rotate(-4deg); } }

/* Savollar xaritasi: belgilangan */
.sx-map button.flag { position: relative; }
.sx-map button.flag::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px var(--panel-solid); }
.sx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 2px; font-size: 11.5px; color: var(--muted); }
.sx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sx-legend .l-done { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.sx-legend .l-flag { background: #f59e0b; border-radius: 50%; }
.sx-legend .l-none { background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }

/* Yakunlash oynasi: xulosa va o'tish tugmalari */
.sx-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.sx-sum div { padding: 10px 6px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); }
.sx-sum b { display: block; font: 700 22px/1.1 var(--f-disp); color: var(--head); }
.sx-sum small { font-size: 11.5px; color: var(--muted); }
.sx-sum .w b { color: var(--bad); } .sx-sum .f b { color: #f59e0b; }
.sx-ml { margin: 12px 0 6px; font-size: 12.5px; text-align: left; }
.sx-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-jump { min-width: 36px; min-height: 34px; padding: 4px 8px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.sx-jump.w { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-soft); }
.sx-jump.f { color: #f59e0b; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }

/* Natija tahlili: faqat xatolar */
.sx-rv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sx-rv-top .sx-h2 { margin: 0; }
.sx-review.faqat-xato .sx-rv.ok { display: none; }

/* --- O'qituvchi: onlayn test oynasi (jonli holat) --- */
.on-status { margin: 4px 0 16px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--well); transition: border-color .3s, background .3s, box-shadow .3s; }
.on-status .on-big { margin: 0; padding: 4px; }
.on-status.on { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: linear-gradient(135deg, var(--good-soft), transparent 70%), var(--well); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 8%, transparent); }
.on-status.on #on-open-t { color: var(--good); }
.on-status.on #on-open-t::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--good); vertical-align: 1px; animation: on-pulse 1.6s ease-in-out infinite; }
@keyframes on-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.on-live { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.on-status.on .on-live { display: grid; }
.on-live-k { padding: 10px 8px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--hair); text-align: center; }
.on-live-k b { display: block; font: 700 24px/1.1 var(--f-disp); color: var(--head); font-variant-numeric: tabular-nums; }
.on-live-k.ok b { color: var(--good); }
.on-live-k small { font-size: 11px; color: var(--muted); }
.on-live-k b.bump { animation: on-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes on-bump { 40% { transform: scale(1.25); color: var(--accent); } }
.on-feed { list-style: none; margin: 10px 0 0; padding: 0; display: none; gap: 4px; }
.on-status.on .on-feed:not(:empty) { display: grid; }
.on-feed li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 12.5px; background: var(--panel-solid); animation: pg-in .3s var(--ease) both; }
.on-feed li b { color: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-feed li small { color: var(--muted); }
.on-feed li em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--soft); font-variant-numeric: tabular-nums; }
.on-feed .r-grade { width: 22px; height: 22px; font-size: 12px; }
/* Kod: katta katakchalar */
.on-code-t { display: flex; gap: 6px; margin: 8px 0 10px; }
.on-code-t span { width: 40px; height: 50px; display: grid; place-items: center; border-radius: 12px; font: 800 24px var(--f-mono); color: var(--head);
  background: var(--panel-solid); border: 1.5px solid var(--accent-line); box-shadow: 0 6px 14px -10px rgba(232, 134, 42, .9); animation: card-in .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.on-code-b { display: flex; flex-wrap: wrap; gap: 6px; }
.on-share.off .on-code-t span { border-color: var(--line); color: var(--faint); box-shadow: none; }
.on-how { margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 12.5px; color: var(--soft); line-height: 1.5; }
.on-how b { color: var(--head); }
@media (max-width: 480px) { .on-code-t span { width: 34px; height: 44px; font-size: 20px; } }

/* --- Doskaga chiqarish (proyektor) --- */
.on-proj { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vh 4vw; overflow: auto;
  background: radial-gradient(1200px 800px at 10% 0%, rgba(214, 120, 34, .35), transparent 60%), radial-gradient(1000px 800px at 100% 100%, rgba(56, 152, 196, .3), transparent 60%), #0a1222;
  color: #e6ebf4; animation: fade-in .35s ease both; }
.on-proj-x { position: absolute; top: 18px; right: 18px; min-height: 0; padding: 8px 14px; border-radius: 99px; color: #c3cde0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.on-proj-x span { font-size: 11px; opacity: .6; margin-left: 4px; }
.on-proj-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 5vw; align-items: center; width: min(1400px, 100%); }
.on-proj-sub { font-size: clamp(14px, 1.6vw, 22px); color: #f4a640; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.on-proj h1 { margin: .3em 0 .6em; font: 700 clamp(30px, 4.2vw, 64px)/1.1 var(--f-disp); color: #fff; }
.on-proj-steps { margin: 0 0 1.2em; padding-left: 1.3em; font-size: clamp(16px, 1.9vw, 28px); line-height: 1.6; color: #c3cde0; }
.on-proj-steps b { color: #fff; }
.on-proj-code { display: flex; gap: clamp(8px, 1vw, 16px); margin-bottom: 1.4em; }
.on-proj-code span { width: clamp(56px, 7vw, 120px); height: clamp(72px, 9vw, 150px); display: grid; place-items: center; border-radius: clamp(14px, 1.4vw, 24px);
  font: 800 clamp(40px, 6vw, 104px) var(--f-mono); color: #fff; background: rgba(255, 255, 255, .06); border: 2px solid rgba(244, 166, 64, .6);
  box-shadow: 0 18px 40px -20px rgba(232, 134, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .1); animation: card-in .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.on-proj-live { display: flex; gap: 16px; }
.on-proj-live div { padding: 12px 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.on-proj-live b { display: block; font: 700 clamp(28px, 3vw, 48px)/1 var(--f-disp); color: #fff; font-variant-numeric: tabular-nums; }
.on-proj-live .ok b { color: #4ade80; }
.on-proj-live small { font-size: clamp(12px, 1.2vw, 16px); color: #8a9ab8; }
.on-proj-r { text-align: center; }
.on-proj-qr { display: inline-grid; padding: clamp(14px, 1.5vw, 24px); border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.on-proj-qr img, .on-proj-qr canvas { width: clamp(200px, 24vw, 380px) !important; height: auto !important; display: block; }
.on-proj-r p { margin: 16px 0 0; font-size: clamp(14px, 1.5vw, 20px); color: #8a9ab8; }
@media (max-width: 860px) { .on-proj-in { grid-template-columns: minmax(0, 1fr); } }

/* --- Natijalar: ilovadan chiqish belgisi va o'quvchi javoblari --- */
.r-click { cursor: pointer; }
.pill.r-away { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.r-live { animation: on-pulse 2s ease-in-out infinite; }
.r-det .drawer-panel { width: min(720px, calc(100% - 20px)); }
.r-det-s { color: var(--muted); font-size: 12.5px; }
.r-det-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--hair); }
.r-det-top b { display: block; font: 700 22px var(--f-disp); color: var(--head); }
.r-det-top small { color: var(--muted); font-size: 12.5px; }
.r-grade.big { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
.r-det-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r-det-l li { padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--hair); border-left: 3px solid var(--good); }
.r-det-l li.no { border-left-color: var(--bad); }
.r-det-l li.bo { border-left-color: var(--faint); }
.r-det-q { display: flex; gap: 10px; }
.r-det-n { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--panel-solid); color: var(--soft); }
.r-det-b { flex: 1; min-width: 0; font-family: var(--f-disp); font-size: 15px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.r-det-a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.r-det-a span { padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--hair); }
.r-det-a b { margin-right: 6px; }
.r-det-a span.t { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.r-det-a span.f { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 40%, transparent); text-decoration: line-through; }
@media (max-width: 560px) { .r-det-a { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .sx-flag span { display: none; } .sx-flag { padding: 5px 10px; } .sx-sum b { font-size: 19px; } }

/* --- Qat'iy rejim --- */
.on-strict { margin-top: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); align-items: flex-start; }
.on-strict.on { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft); }
.on-strict small { line-height: 1.45; }
.pill.r-pen { color: #fff; background: var(--bad); border-color: transparent; }
.r-det-jar { margin-top: 6px; font-family: var(--f-ui); font-size: 12px; color: var(--bad); font-weight: 600; }
.r-det-l li.jar { background: var(--bad-soft); }
.sx-rules .sx-rule-s { color: var(--bad); font-size: 13px; padding: 6px 0; }
.sx-rules .sx-rule-s b { color: var(--bad); }
.sx-q.jarima { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); box-shadow: 0 0 0 3px var(--bad-soft); }
.sx-q.jarima .sx-opt { opacity: .55; cursor: not-allowed; }
.sx-jar { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--soft); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); animation: kod-silk .45s cubic-bezier(.36, .07, .19, .97); }
.sx-jar b { color: var(--bad); }
.sx-jar-p { margin-left: auto; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--bad); }
.sx-map button.jar { color: #fff; background: var(--bad); border-color: var(--bad); }
.sx-jar-l { color: var(--bad) !important; font-weight: 600; }