/* Mijoz ilovasi — design/test_demo.html dagi "H" uslubi asosida */
:root {
  /* Ranglar tokens.css da belgilanadi (bitta joyda) */
  --L: var(--lojuvard); --F: var(--feruza); --G: var(--oltin); --N: var(--toq-kok); --CR: var(--krem);
  --mut: #4B5A7A; --line: #E7E2D6;
  --ok: #0E9F6E; --okbg: #E7F7F1; --bad: #C2410C; --badbg: #FDEEE6;
  --tip: #FFF7E0; --tipb: #F3D98A; --tipt: #5A4A1A;
  --sans: var(--font-plex);
  --mono: ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #E9EEF7; color: var(--N); font-family: var(--sans); font-size: 16px; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--F); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--CR); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(11,27,74,.08); }
.in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { background: linear-gradient(180deg, #C9DBFA 0%, #EAF0FB 60%, var(--CR) 100%); }
.grad { background: linear-gradient(90deg, var(--L), var(--F) 50%, var(--G)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.lab { margin: 0; font-size: 13px; font-weight: 500; color: var(--mut); }
.row { display: flex; align-items: center; gap: 12px; }
.rb { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); flex: none; text-decoration: none; }
.chip { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; background: #fff; border: 1px solid var(--line); white-space: nowrap; text-decoration: none; }
.chip[aria-current="true"] { background: var(--N); color: #fff; border-color: var(--N); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.bar { height: 8px; border-radius: 4px; background: #E4E9F4; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--L), var(--F)); transition: width .3s; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 16px; padding: 14px 22px; border-radius: 999px; border: none; text-decoration: none; }
.p1 { background: var(--L); color: #fff; }
.p2 { background: #fff; border: 1px solid var(--line); }
.pill:disabled { opacity: .45; cursor: default; }
.w100 { width: 100%; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E6EEFF; color: var(--L); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.opt { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); text-align: left; font-size: 16px; line-height: 1.4; }
.opt .k { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: #F1EEE6; flex: none; }
.opt.ok { background: var(--okbg); border: 2px solid var(--ok); font-weight: 600; }
.opt.ok .k { background: var(--ok); color: #fff; }
.opt.no { background: var(--badbg); border: 2px solid var(--bad); }
.opt.no .k { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }
.opt img { max-width: 100%; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.tip { padding: 14px 16px; border-radius: 14px; background: var(--tip); border: 1px solid var(--tipb); color: var(--tipt); line-height: 1.5; }
.tip.ok { background: var(--okbg); border-color: #9FDCC4; color: #065F46; }
.tip.no { background: var(--badbg); border-color: #F4B79B; color: #9A3412; }
.media { padding: 12px 14px; border-radius: 14px; background: #EEF4FF; border: 1px solid #C9D8F5; margin: 10px 0; }
.media audio { width: 100%; display: block; }
.stem-img { display: block; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; background: #fff; }
.stem { white-space: pre-line; font-size: 17px; line-height: 1.55; margin: 0; }
.q { margin: 8px 0 10px; font-weight: 600; font-size: 21px; line-height: 1.35; letter-spacing: -.3px; white-space: pre-line; }
details.ctx { margin: 10px 0; border: 1px dashed #9DB7EE; border-radius: 14px; padding: 10px 14px; background: #F5F8FF; }
details.ctx summary { cursor: pointer; font-size: 14px; font-weight: 500; color: #24407E; }
input { font: inherit; font-size: 16px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid #D9D3C4; background: #fff; color: var(--N); }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vgrid a { padding: 12px 4px; text-align: center; text-decoration: none; display: block; }
.vgrid a.done { border-color: #BFE6EA; background: #F1FBFC; }
.say { width: 40px; height: 40px; border-radius: 50%; background: var(--L); border: none; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.big-score { margin: 10px 0 4px; font-weight: 600; font-size: 60px; letter-spacing: -3px; }

/* Til almashtirish */
.tr { font-size: 15px; line-height: 1.55; color: var(--matn-2); margin: 0 0 16px; padding: 2px 0 2px 12px; border-left: 3px solid #BFD0F3; white-space: pre-line; }
.izoh { margin: 6px 0 0; font-weight: 400; line-height: 1.55; white-space: pre-line; }
.tip b { display: block; }

/* Pastki menyu */
.tabbar {
  position: sticky; bottom: 0; margin-top: auto; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; font-size: 11px; font-weight: 500; color: var(--mut); text-decoration: none;
}
.tabbar a[aria-current="page"] { color: var(--L); }

/* Kabinet va natijalar */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid .card { padding: 14px 10px; text-align: center; }
.stat-grid b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .grow { flex: 1; min-width: 0; }
.sec-row { padding: 12px 14px; }
.sec-row + .sec-row { border-top: 1px solid var(--line); }
.sec-row .bar { margin: 6px 0 4px; }
.sec-row .bar i.mid { background: var(--G); }
.sec-row .bar i.low { background: var(--bad); }
.h2 { margin: 24px 0 10px; font-weight: 600; font-size: 18px; }
.c-ok { color: var(--ok); } .c-mid { color: #B45309; } .c-low { color: var(--bad); }

/* Rozilik va aloqa */
.agree { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; cursor: pointer; }
.agree input { width: 22px; height: 22px; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--L); }
.contacts { display: grid; gap: 8px; }
/* Narx: rubl va (faqat uz) taxminiy so'm */
.narx { display: inline-flex; flex-direction: column; gap: 2px; }
.narx-rub { font-family: var(--mono); font-weight: 600; font-size: 22px; letter-spacing: -.5px; }
.narx-uzs { font-size: 14px; color: var(--mut); }
.narx-uzs small { display: block; font-size: 12px; opacity: .85; }

/* Lug'at va darslar */
.say-sm { width: 34px; height: 34px; }
.say.playing { background: var(--F); }
.word { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.word + .word { border-top: 1px solid var(--line); }
.word-ru { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; }
.word-num { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--L); background: #E6EEFF; padding: 1px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.word-tl { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; color: #6B7896; }
.word-tr { margin: 4px 0 0; font-size: 15px; color: #24345F; line-height: 1.4; }
.dars-n { width: 32px; height: 32px; border-radius: 50%; background: #E6EEFF; color: var(--L); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.dars-matn { padding: 14px 16px; }
.dars-ru { margin: 0; font-size: 16px; line-height: 1.55; }
.dars-tr { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.5; color: #24345F; }
.dars-tip { margin-top: 12px; }
.dars-tip p { line-height: 1.5; }
.dialog { padding-bottom: 8px; }
.dline { padding: 6px 14px; display: flex; flex-direction: column; }
.dline-who { margin: 0 0 3px; font-size: 12px; font-weight: 600; color: var(--mut); }
.dline-bubble { max-width: 88%; padding: 10px 12px; border-radius: 14px; background: #F1F5FF; }
.dline-b { align-items: flex-end; }
.dline-b .dline-who { text-align: right; }
.dline-b .dline-bubble { background: #EAF7F8; }
.dline-tr { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #4B5A7A; }
.mashq { display: grid; gap: 10px; }
.mashq-q { padding: 14px; }
.mashq-res { margin-top: 4px; }

/* Narxlar bo'limi */

/* Ko'p beriladigan savollar: bosilganda ochiladi */
.faq { display: grid; gap: 8px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; font-weight: 600; font-size: 16px; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-item summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--L); border-bottom: 2px solid var(--L);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--F); outline-offset: -3px; border-radius: 14px; }
.faq-item p { margin: 0; padding: 0 16px 16px; line-height: 1.55; color: #24345F; }
.agree-tr { display: block; margin-top: 4px; font-size: 14px; color: var(--mut); }

/* Hujjat matni (rozilik oynasi): ruscha asl matn va tarjima */
.doc { padding: 16px 18px; font-size: 15px; line-height: 1.55; }
.doc p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.doc p:last-child { margin-bottom: 0; }
.doc a { color: var(--L); }
.doc-tr { margin-top: 12px; background: #F7F9FD; border-style: dashed; border-color: #C9D3EA; color: #24345F; }
.doc-h { margin: 18px 0 8px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.doc-h:first-child { margin-top: 0; }
.doc-box { padding: 12px 14px; border-radius: 12px; background: #F7F9FD; border: 1px solid #DDE4F2; }
.doc-note { padding: 8px 10px; border-radius: 10px; background: #E6EEFF; color: var(--L); font-size: 13px; font-weight: 600; }

/* Sotib olish (checkout) */
.co-wrap { max-width: 560px; }
.co-plans { border: none; padding: 0; margin: 0 0 16px; min-width: 0; }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; }
.plan-opt input { width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--L); }
.plan-opt:has(input:checked) { border: 2px solid var(--L); background: linear-gradient(180deg, #F2F6FF, #fff); padding: 13px 15px; }
.plan-opt.is-owned { opacity: .55; cursor: default; }
.plan-opt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-opt-price { flex: none; font-weight: 600; font-size: 18px; }
.co-field { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--mut); }
.co-promo-link { background: none; border: none; padding: 4px 0; color: var(--L); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.co-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.co-msg.ok { color: var(--ok); font-weight: 600; }
.co-msg.no { color: var(--bad); font-weight: 600; }
.co-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.co-old { text-decoration: line-through; color: var(--mut); font-weight: 400; }
.co-disc { color: var(--ok); }
.co-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; }
.co-total b { font-size: 24px; }
.buy-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; text-decoration: none; }
.buy-card .grow { flex: 1; min-width: 0; }

/* Yuridik hujjatlar (/oferta, /qoidalar) */
.doc-edition { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 999px; background: #E6EEFF; color: var(--L); font-size: 13px; font-weight: 600; }
.legal p { white-space: normal; }
.legal-h { margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid #E3E8F4; font-size: 16px; letter-spacing: .2px; }
.legal-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-blk { margin-bottom: 4px; }
.legal-cl { display: flex; gap: 8px; margin: 0 0 8px; }
.legal-n { flex: none; min-width: 2.6em; color: var(--L); font-weight: 600; }
.legal-cl > span { min-width: 0; overflow-wrap: anywhere; }
.legal-sub { margin: 0 0 6px; padding-left: calc(2.6em + 8px); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .legal { font-size: 16px; line-height: 1.65; }
  .legal-n { min-width: 3.2em; }
  .legal-sub { padding-left: calc(3.2em + 8px); }
}
.agree-docs { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--mut); }
.agree-docs a { color: var(--L); }
.co-offer { margin-top: 16px; font-size: 14px; }
.co-offer a { color: var(--L); }
#submit:disabled { opacity: .45; cursor: not-allowed; }

/* Bepul / Pullik belgilari */
.acc { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.acc-free { background: #DDF5E6; color: #146C3A; }
.acc-locked { background: #EEF0F6; color: #4B5675; }
.acc-owned { background: #E6EEFF; color: var(--L); }
.lock-ic { flex: none; }
.vgrid .acc { display: flex; justify-content: center; margin: 6px 0 0; padding: 2px 4px; }
.vgrid .is-locked { opacity: .78; }

/* Akkauntni o'chirish */
.kab-del { margin: 0; padding-top: 0; padding-bottom: 28px; text-align: center; font-size: 13px; }
.kab-del a { color: var(--mut); text-decoration: underline; }
.pill.danger { background: #B3261E; color: #fff; border: 0; }

/* "Pochtam yo'q" sahifasi */
.pochta { max-width: 760px; margin: 0 auto; padding-top: 6px; padding-bottom: 32px; }
.pochta-h { margin: 6px 0 10px; font-weight: 700; font-size: 28px; letter-spacing: -.7px; line-height: 1.2; overflow-wrap: anywhere; }
.pochta-intro { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #24345F; }
.pochta-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pochta-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pochta-n { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--L); color: #fff; font-weight: 700; font-size: 20px; font-family: var(--mono); }
.pochta-t { min-width: 0; line-height: 1.5; padding-top: 6px; overflow-wrap: anywhere; }
.pochta-t a, .pochta-sec a { color: var(--L); font-weight: 600; }
.pochta-note { margin: 0 0 12px; padding: 14px 16px; border-radius: 14px; line-height: 1.5; }
.pochta-note b { display: flex; align-items: center; gap: 6px; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; }
.pochta-note p { margin: 6px 0 0; overflow-wrap: anywhere; }
.pochta-tip { background: #EAF1FF; border: 1px solid #C9D9FA; color: #1E3A8A; }
.pochta-warn { background: var(--badbg); border: 2px solid #F0A07A; color: #9A3412; font-weight: 600; }
.pochta-sec { margin: 18px 0 0; }
.pochta-sec h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.pochta-sec p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .pochta-h { font-size: 34px; }
  .pochta-intro { font-size: 18px; }
  .pochta-t { font-size: 17px; }
}

/* Yuridik hujjat: ro'yxat belgisi (•) va ramkali blok (siyosat: Цель обработки / Персональные данные ...) */
.legal-bul { display: flex; gap: 10px; margin: 0 0 6px; padding-left: 4px; }
.legal-bul > span:first-child { flex: none; color: var(--L); font-weight: 700; }
.legal-bul > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.legal-box { padding: 12px 14px; margin: 4px 0 12px; border-radius: 12px; background: #F7F9FD; border: 1px solid #DDE4F2; }
.legal-box p:last-child { margin-bottom: 0; }
.legal-blk > p + p { margin-top: 0; }

/* ============ Kabinet — yangi dizayn (design/kabinet/K2–K7) ============ */
.hd-t { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.3; }
.hd-s { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--mut); }
.hd-grow { flex: 1; min-width: 0; }
.logout { color: var(--mut); font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.sec-t { margin: 22px 0 10px; font-weight: 600; font-size: 18px; }
.ic { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic-L { background: #E6EEFF; } .ic-F { background: #DDF4F6; } .ic-G { background: #FCEFCB; }
.chev { flex: none; color: var(--mut); }

/* K2: bosh oyna */
.date-lab { margin: 0; font-size: 13px; font-weight: 500; color: var(--mut); }
.greet { margin: 4px 0 0; font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -.6px; overflow-wrap: anywhere; }
.prep { margin-top: 16px; padding: 18px; border: none; color: #fff; background: linear-gradient(160deg, var(--lojuvard), var(--lojuvard-2)); }
.prep .bar { background: rgba(255, 255, 255, .25); }
.prep .bar i { background: var(--oltin); }
.prep-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.prep-top span:first-child { opacity: .9; }
.prep .badge { background: var(--oltin); color: var(--toq-kok); }
.prep-pct { margin: 10px 0 12px; font-family: var(--mono); font-weight: 600; font-size: 40px; letter-spacing: -2px; line-height: 1.1; }
.prep-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; opacity: .9; }
.prep-empty { margin: 10px 0 4px; font-weight: 600; font-size: 20px; }
.prep .pill { margin-top: 14px; background: #fff; color: var(--lojuvard); }
.plan-card { padding: 4px 16px; }
.plan-card .step { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; }
.plan-card .step + .step { border-top: 1px solid var(--line); }
.plan-card .step .grow { flex: 1; min-width: 0; }
.plan-card .step b { font-weight: 600; }
.plan-card .step .lab { display: block; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: block; padding: 16px; text-decoration: none; border-top-width: 4px; border-top-style: solid; }
.tile p { margin: 10px 0 2px; font-weight: 600; }
.tile .lab { display: block; }
.t-L { border-top-color: var(--lojuvard); } .t-F { border-top-color: var(--feruza); } .t-G { border-top-color: var(--oltin); } .t-N { border-top-color: var(--toq-kok); }
.res-card { padding: 4px 16px; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.res-row + .res-row { border-top: 1px solid var(--line); }
.res-row .grow { flex: 1; min-width: 0; }
.res-row .lab { display: block; margin-top: 2px; }
.score { font-family: var(--mono); font-weight: 600; font-size: 16px; }

/* K4: testlar ro'yxati */
.prog-card { padding: 16px; margin-bottom: 16px; }
.prog-card .row { justify-content: space-between; margin-bottom: 10px; }
.vcell { display: block; padding: 12px 4px; text-align: center; text-decoration: none; }
.vcell .v-n { margin: 0; font-weight: 600; font-size: 18px; }
.vcell .v-s { display: block; margin-top: 4px; font-family: var(--mono); font-size: 13px; color: #0B6E78; }
.vcell .v-new { display: block; margin-top: 4px; font-size: 12px; color: var(--mut); }
.vcell.done { border-color: #BFE6EA; background: #F1FBFC; }
.vcell.is-locked { opacity: .8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 14px; font-size: 13px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.unlock { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; background: #FFF7E0; border-color: #F3D98A; }
.unlock .grow { flex: 1; min-width: 0; line-height: 1.4; }
.unlock .pill { flex: none; padding: 10px 18px; }
.open-btn { flex: none; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--lojuvard); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }

/* K3: lug'at */
.word .say { width: 40px; height: 40px; }
.word:nth-child(even) .say { background: var(--feruza); }
.count-lab { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--mut); }

/* K6: namuna javoblar */
.card.accent { border-top: 4px solid var(--lojuvard); }
.ans-ru { margin: 0 0 12px; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.ans-tr { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.6; color: var(--matn-2); white-space: pre-line; }
.ans-tip { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #8A6200; font-weight: 500; white-space: pre-line; }
.num { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 14px; background: #E6EEFF; flex: none; }
.num.n2 { background: #DDF4F6; } .num.n3 { background: #FCEFCB; } .num.n4 { background: #EDE9F7; }

/* K7: natijalarim */
.big-stat { padding: 16px; }
.big-stat .v { margin: 6px 0 0; font-family: var(--mono); font-weight: 600; font-size: 30px; letter-spacing: -1.5px; line-height: 1.15; }
.chart { padding: 16px; margin-top: 10px; }
.chart-t { margin: 0 0 14px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars span { font-family: var(--mono); font-size: 11px; color: var(--mut); }
.bars i { display: block; width: 100%; border-radius: 6px; background: rgba(29, 78, 216, .35); }
.bars > div:last-child i { background: var(--oltin); }
.tip.warn { margin-top: 10px; }
.tip.warn b { margin-bottom: 4px; color: #8A6200; }

@media (min-width: 900px) {
  .app:has(> .tabbar) > .in, .app:has(> .tabbar) > .top > header, .app:has(> .tabbar) > .top > .in { max-width: 880px; }
  .app:has(> .tabbar) > p.kab-del { grid-column: 2; grid-row: 3; }
  .prep-pct { font-size: 48px; }
  .vgrid { grid-template-columns: repeat(8, 1fr); }
}
.stat-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bars > div i { min-height: 6px; }
