/* ==========================================================================
   NMO — uzluksiz kasbiy rivojlanish. Mustaqil dizayn tizimi.
   Barcha klasslar body.nmo ichida ishlaydi; asosiy tizim uslublariga ta'sir qilmaydi.
   Tuzilish: 1) tokenlar  2) asos  3) qobiq  4) komponentlar  5) sahifalar  6) test rejimi  7) moslashuv
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
    --c-brand: #0f766e;
    --c-brand-600: #0b5f59;
    --c-brand-50: #effaf8;
    --c-brand-100: #d5f2ed;
    --c-ink: #0b1f2e;
    --c-ink-2: #3a4d5c;
    --c-muted: #6b7c8a;
    --c-faint: #95a3ae;
    --c-bg: #f5f6f8;
    --c-surface: #ffffff;
    --c-surface-2: #f8fafb;
    --c-line: #e3e8ec;
    --c-line-2: #d0d8de;
    --c-focus: rgba(15, 118, 110, .28);

    /* holat ranglari (TZ: yashil / sariq / qizil / kulrang) */
    --c-green: #15803d;   --c-green-bg: #ecfdf3;  --c-green-line: #b7ebc9;  --c-green-solid: #22a85a;
    --c-amber: #b45309;   --c-amber-bg: #fff8eb;  --c-amber-line: #fbd99a;  --c-amber-solid: #f0a020;
    --c-red: #c42b2b;     --c-red-bg: #fff1f1;    --c-red-line: #f8c4c4;    --c-red-solid: #e04545;
    --c-gray: #5f6f7c;    --c-gray-bg: #f1f4f6;   --c-gray-line: #dbe2e7;   --c-gray-solid: #b8c3cb;
    --c-blue: #1d5fbf;    --c-blue-bg: #eef5ff;   --c-blue-line: #c4d9f7;

    --side: #0a2230;
    --side-2: #0f3142;
    --side-ink: #c8d6de;
    --side-muted: #7f97a4;

    /* Tabiiy chuqurlik: oq yuza + ingichka ramka + juda yengil soya (yorug'lik yuqoridan).
       Soya qatlamni bildiradi, bezak emas: kartochka — 1-qatlam, hover/menyu — 2-qatlam. */
    --r-lg: 12px;
    --r: 10px;
    --r-sm: 8px;
    --r-xs: 6px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
    --sh-2: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 16px -4px rgba(16, 24, 40, .08);
    --sh-3: 0 12px 32px rgba(11, 31, 46, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    /* Tizim shrifti: har bir qurilmada o'zining tabiiy shrifti (Windows — Segoe UI, Android — Roboto, iOS — SF) */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-display: var(--font);
    --side-w: 256px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --c-ink: #e7eef2; --c-ink-2: #b9c7d0; --c-muted: #8ea0ac; --c-faint: #66798a;
        --c-bg: #0b141b; --c-surface: #111d26; --c-surface-2: #15232d; --c-line: #1f303c; --c-line-2: #2a3e4c;
        --c-brand: #2dd4bf; --c-brand-600: #5eead4; --c-brand-50: rgba(45, 212, 191, .1); --c-brand-100: rgba(45, 212, 191, .18);
        --c-green: #4ade80; --c-green-bg: rgba(74, 222, 128, .1); --c-green-line: rgba(74, 222, 128, .28);
        --c-amber: #fbbf24; --c-amber-bg: rgba(251, 191, 36, .1); --c-amber-line: rgba(251, 191, 36, .28);
        --c-red: #f87171; --c-red-bg: rgba(248, 113, 113, .1); --c-red-line: rgba(248, 113, 113, .3);
        --c-gray: #9fb0bc; --c-gray-bg: rgba(159, 176, 188, .08); --c-gray-line: rgba(159, 176, 188, .2); --c-gray-solid: #3b4f5c;
        --c-blue: #7cb2ff; --c-blue-bg: rgba(124, 178, 255, .1); --c-blue-line: rgba(124, 178, 255, .26);
        --side: #081118; --side-2: #0d1b24;
        color-scheme: dark;
    }
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.nmo {
    margin: 0; background: var(--c-bg); color: var(--c-ink);
    font: 400 15px/1.6 var(--font);
    text-rendering: optimizeLegibility;
}
.nmo a { color: var(--c-brand); text-decoration: none; }
.nmo a:hover { color: var(--c-brand-600); }
.nmo h1, .nmo h2, .nmo h3, .nmo h4 { margin: 0; font-family: var(--font); color: var(--c-ink); letter-spacing: normal; line-height: 1.3; }
.nmo h1 { font-size: 24px; font-weight: 600; }
.nmo h2 { font-size: 17px; font-weight: 600; }
.nmo h3 { font-size: 15px; font-weight: 600; }
.nmo p { margin: 0 0 10px; }
.nmo small, .nmo .muted { color: var(--c-muted); }
.nmo .num, .nmo td.num, .nmo .tabular { font-variant-numeric: tabular-nums; }
.nmo :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.nmo .ic { flex-shrink: 0; vertical-align: middle; }
.nmo .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nmo hr { border: 0; border-top: 1px solid var(--c-line); margin: 18px 0; }

/* 3. Shell -------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
    background: var(--side);
    color: var(--side-ink); padding: 20px 14px; scrollbar-width: thin;
}
.side .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; color: #fff !important; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; color: #fff;
    background: var(--c-brand);
}
.side .brand b { display: block; font: 600 16px/1.2 var(--font); }
.side .brand small { display: block; font-size: 12px; color: var(--side-muted); margin-top: 2px; }
.side-label { font-size: 12.5px; font-weight: 500; color: var(--side-muted); padding: 16px 12px 6px; }
.side-nav a {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; border-radius: 6px;
    color: var(--side-ink) !important; font-weight: 500; font-size: 13.5px; position: relative;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.side-nav a .ic { opacity: .75; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff !important; }
.side-nav a.active { background: rgba(255, 255, 255, .08); color: #fff !important; }
.side-nav a.active .ic { opacity: 1; }
.side-nav .count { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--side-muted); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.who b { display: block; font-size: 13px; color: #fff; font-weight: 600; line-height: 1.25; }
.who small { display: block; font-size: 11.5px; color: var(--side-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font: 600 12.5px/1 var(--font); color: var(--c-ink-2);
    background: var(--c-gray-bg); border: 1px solid var(--c-line);
}
.side .avatar { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.side-foot .back { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--side-muted) !important; border-radius: 9px; }
.side-foot .back:hover { color: #fff !important; background: rgba(255, 255, 255, .05); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 32px;
    background: color-mix(in srgb, var(--c-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--c-line); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); min-width: 0; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-ink); }
.crumbs .sep { opacity: .5; }
.crumbs span:last-child { color: var(--c-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.week-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--c-muted); }
.menu-btn { display: none; }
.content { padding: 8px 32px 64px; width: 100%; max-width: 1320px; }

/* page head */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 16px 0 28px; }
.head h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.008em; }
.head p { margin: 8px 0 0; color: var(--c-muted); max-width: 720px; font-size: 15px; }
.head .eyebrow, .nmo .eyebrow { font-size: 13.5px; font-weight: 400; color: var(--c-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.nmo .eyebrow .ic { display: none; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 4. Components --------------------------------------------------------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-h p { margin: 3px 0 0; font-size: 13px; color: var(--c-muted); }
.card-b { padding: 18px 20px 20px; }
.card-f { padding: 12px 20px; border-top: 1px solid var(--c-line); }
.card.pad { padding: 20px; }
.card.flush .card-b { padding: 0; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.g-main-l { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-16 { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }

/* buttons */
.btn {
    --b-bg: var(--c-surface); --b-fg: var(--c-ink); --b-bd: var(--c-line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px;
    border-radius: var(--r-sm); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg) !important;
    font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; user-select: none;
    transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
    box-shadow: var(--sh-1);
}
.btn:hover { --b-bg: var(--c-surface-2); --b-bd: var(--c-faint); }
.btn.primary { --b-bg: var(--c-brand); --b-fg: #fff; --b-bd: var(--c-brand-600); box-shadow: 0 1px 2px rgba(15, 118, 110, .25); }
.btn.primary:hover { --b-bg: var(--c-brand-600); }
.btn.dark { --b-bg: var(--c-ink); --b-fg: var(--c-surface); --b-bd: transparent; }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; color: var(--c-ink-2) !important; }
.btn.ghost:hover { --b-bg: var(--c-gray-bg); }
.btn.danger { --b-fg: var(--c-red); }
.btn.danger:hover { --b-bg: var(--c-red-bg); --b-bd: var(--c-red-line); }
.btn { font-weight: 500; }
.btn.sm { height: 31px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.icon { width: 34px; padding: 0; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.inline-form { display: inline; margin: 0; }

/* badges & chips */
/* Holat yorlig'i: ramkasiz, yumshoq tus foni — jadvalni ko'z bilan tez skanerlash uchun */
.badge {
    display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 6px;
    font-size: 12.5px; font-weight: 500; white-space: nowrap; line-height: 1; background: var(--c-gray-bg); color: var(--c-gray);
}
.badge .ic { opacity: .85; }
.badge .dot, .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.badge.green { background: var(--c-green-bg); color: var(--c-green); }
.badge.amber { background: var(--c-amber-bg); color: var(--c-amber); }
.badge.red { background: var(--c-red-bg); color: var(--c-red); }
.badge.blue { background: var(--c-blue-bg); color: var(--c-blue); }
.badge.brand { background: var(--c-brand-50); color: var(--c-brand); }
.badge.plain { background: none; padding: 0; color: var(--c-muted); }
.badge + .badge { margin-left: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--c-muted); font-weight: 500; }
.code { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--c-muted); }

/* level meter */
.lvl { display: inline-flex; gap: 3px; align-items: flex-end; vertical-align: middle; }
.lvl i { width: 4px; border-radius: 2px; background: var(--c-line-2); }
.lvl i:nth-child(1) { height: 6px; } .lvl i:nth-child(2) { height: 9px; } .lvl i:nth-child(3) { height: 12px; } .lvl i:nth-child(4) { height: 15px; }
.lvl i.on { background: var(--c-brand); }

/* alerts */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r); border: 1px solid; margin-bottom: 16px; font-size: 13.5px; animation: nmo-in .3s var(--ease); }
.alert .ic { margin-top: 1px; }
.alert > div { flex: 1; }
.alert .close { background: none; border: 0; cursor: pointer; color: inherit; opacity: .55; padding: 2px; }
.alert .close:hover { opacity: 1; }
.alert.success { background: var(--c-green-bg); border-color: var(--c-green-line); color: var(--c-green); }
.alert.warning { background: var(--c-amber-bg); border-color: var(--c-amber-line); color: var(--c-amber); }
.alert.danger, .alert.error { background: var(--c-red-bg); border-color: var(--c-red-line); color: var(--c-red); }
.alert.info { background: var(--c-blue-bg); border-color: var(--c-blue-line); color: var(--c-blue); }

/* KPI */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .k-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; color: var(--c-muted); }
.kpi .k-ic { display: inline-flex; color: var(--c-faint); }
.kpi .k-ic .ic { width: 16px; height: 16px; }
.kpi .k-val { font: 600 30px/1.15 var(--font); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .k-val small { font-size: 15px; font-weight: 400; color: var(--c-muted); margin-left: 4px; }
.kpi .k-sub { margin-top: 6px; font-size: 12.5px; color: var(--c-muted); }
.kpi .k-bar { margin-top: 12px; }

/* progress bar */
.bar { height: 6px; border-radius: 3px; background: var(--c-gray-bg); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--c-brand); transition: width .6s var(--ease); }
.bar.thin { height: 4px; }
.bar .g { background: var(--c-green-solid); } .bar .a { background: var(--c-amber-solid); } .bar .r { background: var(--c-red-solid); } .bar .n { background: var(--c-gray-solid); }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 44px; gap: 12px; align-items: center; padding: 9px 0; }
.bar-row + .bar-row { border-top: 1px solid var(--c-line); }
.bar-row .lbl { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .val { text-align: right; font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }

/* legend */
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; }
.sw-g { background: var(--c-green-solid); } .sw-a { background: var(--c-amber-solid); } .sw-r { background: var(--c-red-solid); } .sw-n { background: var(--c-gray-solid); } .sw-b { background: var(--c-brand); }

/* figure: katta raqam + taqsimot chizig'i (Ui::ring / Ui::scoreRing) */
.figure { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; }
.figure-val { font: 500 32px/1.15 var(--font); font-variant-numeric: tabular-nums; color: var(--c-ink); }
.figure-cap { font-size: 13px; color: var(--c-muted); }
.figure-bar { display: flex; width: 100%; height: 8px; margin-top: 14px; background: var(--c-gray-bg); border-radius: 4px; overflow: hidden; }
.figure-bar span { display: block; height: 100%; }
.figure-bar span + span { box-shadow: inset 2px 0 0 var(--c-surface); }
.center .figure { align-items: center; text-align: center; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th {
    text-align: left; font-size: 13px; font-weight: 500; color: var(--c-muted);
    padding: 11px 14px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); white-space: nowrap; position: sticky; top: 0;
}
.tbl th a { color: var(--c-muted); }
.tbl th a.asc::after { content: " ↑"; } .tbl th a.desc::after { content: " ↓"; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--c-surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .t-main { font-weight: 500; color: var(--c-ink); }
.tbl .t-sub { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.tbl td.num .t-sub { white-space: nowrap; }
.tbl a.t-main:hover { color: var(--c-brand); }
.tbl .actions { white-space: nowrap; text-align: right; }
.card > .table-wrap .tbl th:first-child { border-top-left-radius: var(--r-lg); }
.card > .table-wrap .tbl th:last-child { border-top-right-radius: var(--r-lg); }

/* pager (yii LinkPager) */
.pager-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--c-line); flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.pagination { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pagination li a, .pagination li span { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 4px; color: var(--c-ink-2); font-weight: 400; font-size: 13.5px; }
.pagination li a:hover { background: var(--c-gray-bg); }
.pagination li.active a, .pagination li.active span { background: var(--c-ink); color: var(--c-surface); }
.pagination li.disabled span { opacity: .35; }

/* forms */
.f-group { margin-bottom: 18px; }
.f-label { display: block; font-size: 14px; font-weight: 500; color: var(--c-ink-2); margin-bottom: 6px; }
.f-hint { font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }
.f-error { font-size: 12.5px; color: var(--c-red); margin-top: 6px; }
.f-error:empty { display: none; }
.f-input, .nmo select.f-input, .nmo textarea.f-input {
    width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line-2);
    background: var(--c-surface); color: var(--c-ink); font: 400 14px/1.4 var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.nmo textarea.f-input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.nmo select.f-input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.nmo select[multiple].f-input { height: auto; min-height: 140px; padding: 6px; background-image: none; }
.f-input:hover { border-color: var(--c-faint); }
.f-input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-focus); }
.has-error .f-input { border-color: var(--c-red); }
.f-row { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-section { padding: 22px 24px; border-bottom: 1px solid var(--c-line); }
.f-section:last-child { border-bottom: 0; }
.f-section h3 { margin-bottom: 4px; }
.f-section > p { color: var(--c-muted); font-size: 13px; margin-bottom: 18px; }
.f-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--c-line); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: var(--c-line-2); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--c-brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--c-focus); }

/* segmented radio (level / type pickers) */
.seg-pick { display: inline-flex; padding: 2px; gap: 2px; border-radius: 6px; background: var(--c-gray-bg); border: 1px solid var(--c-line); flex-wrap: wrap; }
.seg-pick label { position: relative; margin: 0; }
.seg-pick input { position: absolute; opacity: 0; }
.seg-pick span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 4px; font-size: 13.5px; font-weight: 400; color: var(--c-muted); cursor: pointer; transition: all .15s; }
.seg-pick input:checked + span { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line-2); }
.seg-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--c-focus); }

/* filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
/* select uchun aniq selektor: umumiy `.nmo select.f-input { width: 100% }` dan ustun turishi kerak */
.filters select.f-input, .filters input.f-input { height: 38px; width: auto; min-width: 200px; }
.filters .search { position: relative; flex: 1; min-width: 220px; }
.filters .search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-faint); pointer-events: none; }
.filters .search input.f-input { width: 100%; padding-left: 36px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; margin-right: 22px; font-size: 14px; font-weight: 400; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--c-ink); }
.tabs a.active { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.tabs .n { font-size: 13px; color: var(--c-faint); font-variant-numeric: tabular-nums; }

/* empty state: ikonka va markazlashtirishsiz — oddiy matn */
.empty { text-align: left; padding: 24px 0; color: var(--c-muted); }
.card .empty { padding: 24px 20px; }
.empty .e-ic { display: none; }
.empty h3 { color: var(--c-ink); margin-bottom: 4px; }
.empty p { max-width: 600px; margin: 0 0 14px; }
.empty .row { justify-content: flex-start !important; }

/* list rows */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list > li:last-child { padding-bottom: 0; }
/* Ro'yxat belgisi: bezak kvadrat emas — faqat holat bo'lsa kichik rangli nuqta */
.list .l-ic { display: inline-flex; flex-shrink: 0; color: var(--c-faint); }
.list .l-ic.green, .list .l-ic.amber, .list .l-ic.red { display: block; width: 8px; height: 8px; border-radius: 50%; }
.list .l-ic.green .ic, .list .l-ic.amber .ic, .list .l-ic.red .ic { display: none; }
.list .l-ic.green { background: var(--c-green-solid); }
.list .l-ic.amber { background: var(--c-amber-solid); }
.list .l-ic.red { background: var(--c-red-solid); }
.list b { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.list small { display: block; font-size: 13px; }

/* definition list */
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--c-muted); }
.dl dd { margin: 0; }

/* 5. Pages -------------------------------------------------------------- */
/* hero (doctor) */
/* Kabinet sarlavhasi: gradient banner emas — oddiy sarlavha, o'ngda joriy hafta topshirig'i */
.hero { padding: 24px 24px 24px 28px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.hero h1 { font-size: 24px; font-weight: 600; letter-spacing: -.008em; }
.hero p { color: var(--c-muted); margin: 4px 0 0; max-width: 600px; }
.hero .hero-meta { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 10px; }
.hero .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-ink-2); }
.hero .chip .ic { color: var(--c-faint); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.hero .cta-box { min-width: 300px; padding: 18px 20px; background: var(--c-brand-50); border: 1px solid var(--c-brand-100); border-radius: var(--r); }
.hero .cta-box .t { font-size: 13px; color: var(--c-muted); }
.hero .cta-box .v { font: 500 15px/1.45 var(--font); margin: 2px 0 12px; }

/* competency map */
.cmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ctile {
    --t: var(--c-gray); --t-bg: var(--c-gray-bg); --t-line: var(--c-gray-line); --t-solid: var(--c-gray-solid);
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 14px 18px; border-radius: var(--r);
    background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink) !important; overflow: hidden;
    transition: border-color .15s, box-shadow .15s; box-shadow: var(--sh-1);
}
.ctile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--t-solid); }
.ctile:hover { border-color: var(--c-line-2); box-shadow: var(--sh-2); }
.ctile.green { --t: var(--c-green); --t-bg: var(--c-green-bg); --t-line: var(--c-green-line); --t-solid: var(--c-green-solid); }
.ctile.amber { --t: var(--c-amber); --t-bg: var(--c-amber-bg); --t-line: var(--c-amber-line); --t-solid: var(--c-amber-solid); }
.ctile.red { --t: var(--c-red); --t-bg: var(--c-red-bg); --t-line: var(--c-red-line); --t-solid: var(--c-red-solid); }
.ctile .c-top { display: flex; align-items: flex-start; gap: 10px; }
.ctile .c-name { font-weight: 500; font-size: 14px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctile .c-score { font: 500 15px/1.3 var(--font); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.ctile .c-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--c-muted); }
.ctile .c-state { display: inline-flex; align-items: center; gap: 6px; color: var(--t); font-weight: 400; }
.ctile .c-state .dot { display: none; }
.ctile .bar > span { background: var(--t-solid); }
.ctile.disabled { opacity: .6; }
.map-filter { display: inline-flex; gap: 4px 18px; flex-wrap: wrap; }
.map-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: 400 14px var(--font); color: var(--c-muted); cursor: pointer; }
.map-filter button:hover { color: var(--c-ink); }
.map-filter button.active { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.map-filter button .n { color: var(--c-faint); font-variant-numeric: tabular-nums; }

/* recommendation: kartochka emas — chiziq bilan ajratilgan qator */
.rec { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.rec:first-child { border-top: 0; padding-top: 0; }
.rec .r-ic { display: none; }
.rec .r-why { font-size: 13px; color: var(--c-amber); font-weight: 400; display: flex; align-items: center; gap: 6px; }
.rec .r-why .ic { display: none; }
.rec .r-why.red { color: var(--c-red); }
.rec h3 { margin: 2px 0 2px; font-size: 15px; font-weight: 500; }
.rec .r-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.grid > div > .rec { padding: 16px 0; border-top: 1px solid var(--c-line); }

/* chiziqli grafik: bosiq, gradientsiz */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--c-line); }
.chart .axis { fill: var(--c-muted); font-size: 11px; font-family: var(--font); }
.chart .area { fill: none; }
.chart .line { fill: none; stroke: var(--c-ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.chart .pt { fill: var(--c-ink-2); stroke: none; }
.chart .col { fill: var(--c-line-2); }
.chart .col.hi { fill: var(--c-ink); }
.chart .val { fill: var(--c-muted); font-size: 11px; font-weight: 400; font-family: var(--font); }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip > div { padding: 14px 18px; }
.strip > div + div { border-left: 1px solid var(--c-line); }
.strip b { display: block; font: 500 21px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.strip small { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 2px; }

/* question bank (manage) */
.qcard { border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); scroll-margin-top: 80px; }
.qcard + .qcard { margin-top: 10px; }
.qcard.hidden-q { opacity: .62; border-style: dashed; }
.qcard:target { box-shadow: 0 0 0 3px var(--c-focus); }
.qcard .q-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.qcard .q-b { padding: 14px 16px; }
.qcard .q-case { font-size: 14px; padding: 2px 0 2px 12px; color: var(--c-ink-2); border-left: 2px solid var(--c-line-2); margin-bottom: 10px; white-space: pre-line; }
.qcard .q-text { font-weight: 500; white-space: pre-line; }
.qcard .q-opts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.qcard .q-opts li { display: flex; gap: 8px; font-size: 14px; padding: 4px 0; }
.qcard .q-opts li.ok { color: var(--c-green); }
.qcard .q-opts .k { font-weight: 400; color: var(--c-faint); width: 16px; }
.qcard .q-opts li.ok .k { color: var(--c-green); }
.qcard .q-exp { margin-top: 10px; font-size: 13px; color: var(--c-muted); display: flex; gap: 8px; }
.opt-edit { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; align-items: start; margin-bottom: 8px; }
.opt-edit .pick { position: relative; height: 40px; display: grid; place-items: center; }
.opt-edit .pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt-edit .pick span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px var(--font); border: 1.5px solid var(--c-line-2); color: var(--c-muted); background: var(--c-surface); transition: all .15s; }
.opt-edit .pick input:checked + span { background: var(--c-green-solid); border-color: var(--c-green-solid); color: #fff; }
.opt-edit .pick input:focus-visible + span { box-shadow: 0 0 0 4px var(--c-focus); }
.opt-edit textarea.f-input { min-height: 40px; height: 40px; padding-top: 9px; }
.lib-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 4px; color: var(--c-ink-2) !important; font-size: 14px; font-weight: 400; }
.lib-side a:hover { background: var(--c-gray-bg); }
.lib-side a.active { background: var(--c-gray-bg); color: var(--c-ink) !important; font-weight: 500; }
.lib-side a span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-side .n { font-size: 12.5px; color: var(--c-faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mini-dist { display: flex; height: 5px; overflow: hidden; background: var(--c-gray-bg); min-width: 90px; border-radius: 3px; }
.mini-dist span { height: 100%; }
.mini-dist .g { background: var(--c-green-solid); } .mini-dist .a { background: var(--c-amber-solid); } .mini-dist .r { background: var(--c-red-solid); }
.drop { border: 1px dashed var(--c-line-2); border-radius: var(--r); padding: 28px; text-align: center; background: var(--c-surface); cursor: pointer; transition: border-color .15s; display: block; }
.drop:hover, .drop.over { border-color: var(--c-ink-2); }
.drop .ic { color: var(--c-faint); }
.drop input { display: none; }
.drop b { display: block; margin-top: 8px; color: var(--c-ink); }
.pre { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 14px; overflow-x: auto; white-space: pre; color: var(--c-ink-2); }

/* 6. Focus (test) mode -------------------------------------------------- */
body.nmo.focus { background: var(--c-bg); }
.focus-top { position: sticky; top: 0; z-index: 20; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.focus-top .in { max-width: 820px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
.focus-top .ttl { font: 600 14.5px/1.3 var(--font); }
.focus-top .ttl small { display: block; font: 500 12px var(--font); color: var(--c-muted); margin-top: 2px; }
.timer { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--c-ink); }
.timer .ic { color: var(--c-faint); }
.timer.warn { color: var(--c-amber); }
.timer.crit { color: var(--c-red); }
.progress-steps { display: flex; gap: 3px; max-width: 820px; margin: 0 auto; padding: 0 20px 12px; }
.progress-steps i { flex: 1; height: 3px; background: var(--c-line); }
.progress-steps i.done { background: var(--c-ink-2); }
.progress-steps i.skip { background: var(--c-gray-solid); }
.progress-steps i.now { background: var(--c-brand); }
.focus-main { max-width: 820px; margin: 0 auto; padding: 28px 20px 120px; }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.q-case-box { padding: 2px 0 2px 16px; border-left: 2px solid var(--c-line-2); margin-bottom: 20px; }
.q-case-box .t { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 400; color: var(--c-muted); margin-bottom: 4px; }
.q-case-box .t .ic { display: none; }
.q-case-box p { margin: 0; white-space: pre-line; line-height: 1.7; }
.q-title { font: 600 19px/1.5 var(--font); margin-bottom: 20px; white-space: pre-line; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--c-ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .k { width: 24px; flex-shrink: 0; padding-top: 1px; font: 400 15px/1.55 var(--font); color: var(--c-muted); }
.opt .t { font-size: 15.5px; line-height: 1.55; }
.opt:has(input:checked), .opt.is-checked { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.opt:has(input:checked) .k, .opt.is-checked .k { color: var(--c-brand); font-weight: 600; }
.opt:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.focus-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--c-surface); border-top: 1px solid var(--c-line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.focus-bar .in { max-width: 820px; margin: 0 auto; padding: 0 20px; display: flex; gap: 10px; align-items: center; }
.focus-bar .hint { font-size: 12.5px; color: var(--c-muted); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--c-line-2); border-bottom-width: 2px; font: 600 11px var(--font); color: var(--c-ink-2); background: var(--c-surface); }

/* result */
.result-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 28px; }
.result-hero h1 { font-size: 22px; }
/* Javoblar tahlili: chiziq bilan ajratilgan ro'yxat; holat raqam rangida */
.review { padding: 12px 0; border-top: 1px solid var(--c-line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review .rv-h { display: flex; gap: 12px; align-items: flex-start; }
.review .rv-n { width: 22px; flex-shrink: 0; font: 500 14px/1.5 var(--font); font-variant-numeric: tabular-nums; text-align: right; }
.review .rv-n .ic { display: none; }
.review .rv-n.ok { color: var(--c-green); }
.review .rv-n.no { color: var(--c-red); }
.review .rv-n.skip { color: var(--c-faint); }
.review details summary { cursor: pointer; list-style: none; font-weight: 400; }
.review details summary::-webkit-details-marker { display: none; }
.review .rv-opts { list-style: none; padding: 0; margin: 8px 0 0 34px; display: grid; gap: 2px; font-size: 14px; }
.review .rv-opts li { padding: 3px 0; color: var(--c-ink-2); }
.review .rv-opts li.correct { color: var(--c-green); font-weight: 500; }
.review .rv-opts li.correct::before { content: "✓ "; }
.review .rv-opts li.wrong { color: var(--c-red); text-decoration: line-through; }
.review .rv-exp { margin: 8px 0 0 34px; font-size: 14px; padding: 2px 0 2px 12px; border-left: 2px solid var(--c-line-2); color: var(--c-ink-2); }

/* minimal centered page (invalid link, no profile) */
.center-page { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 20px; }
.center-page .card { max-width: 480px; width: 100%; text-align: center; padding: 36px 32px; }

/* timeline (history) */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--c-line-2); }
.timeline li { position: relative; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-ink-2); }
.timeline li.gray::before { border-color: var(--c-gray-solid); }

/* mobile tab bar */
.tabbar { display: none; }

@keyframes nmo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes nmo-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .nmo *, .nmo *::before, .nmo *::after { animation: none !important; transition: none !important; } }

/* 7. Responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g-main { grid-template-columns: minmax(0, 1fr); }
    .g-main-l { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sh-3); }
    body.side-open .side { transform: none; }
    body.side-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(5, 15, 22, .45); }
    .menu-btn { display: inline-flex; }
    .topbar { padding: 0 16px; }
    .content { padding: 4px 16px 96px; }
    .g-3 { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero .cta-box { min-width: 0; }
    .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strip > div:nth-child(3) { border-left: 0; }
    .strip > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--c-surface);
        border-top: 1px solid var(--c-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--c-muted) !important; padding: 4px 0; }
    .tabbar a.active { color: var(--c-brand) !important; }
}
@media (max-width: 640px) {
    .nmo h1 { font-size: 22px; }
    .head h1 { font-size: 24px; }
    .filters select.f-input, .filters input.f-input, .filters .search { width: 100%; min-width: 0; }
    .g-2, .g-4, .f-row, .f-row.three { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 18px; }
    .result-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
    .q-title { font-size: 17.5px; }
    .opt { padding: 13px 14px; }
    .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .dl dd { margin-bottom: 10px; }
    .focus-bar .hint { display: none; }
    .bar-row { grid-template-columns: minmax(0, 1fr) 70px 40px; }
    .week-pill span { display: none; }
    .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
    .tbl.stack-sm thead { display: none; }
    .tbl.stack-sm tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
    .tbl.stack-sm td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
    .tbl.stack-sm td::before { content: attr(data-label); color: var(--c-muted); font-size: 12px; text-align: left; }
    .tbl.stack-sm td.actions { justify-content: flex-end; }
}
@media print {
    .side, .topbar, .tabbar, .btn, .filters { display: none !important; }
    .shell { display: block; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; break-inside: avoid; }
}

/* 8. Tahlil sahifasi (dsh) — hisobot uslubi -----------------------------
   Kartochka, soya, ikonka va badge yo'q. Ma'lumot ingichka chiziqlar bilan ajratiladi,
   rang faqat ma'no uchun: holat (yashil/sariq/qizil), past natija, ogohlantirish. */
.dsh { --dsh-rule: var(--c-line); max-width: 1180px; }
/* havola: tinch holatda chiziqsiz (jadvalda shovqin bo`lmasin), ustiga kelganda chiziladi */
.dsh a { color: var(--c-ink); text-decoration: none; }
.dsh a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
.dsh .muted { color: var(--c-muted); }
.dsh .num, .dsh-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dsh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 16px 0 28px; }
.dsh-head h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.008em; }
.dsh-head p { margin: 8px 0 0; color: var(--c-muted); font-size: 15px; }
.dsh-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dsh-filters select.f-input { height: 34px; width: auto; min-width: 190px; font-size: 13.5px; box-shadow: none; }
.dsh .dsh-link { font-size: 13.5px; color: var(--c-brand); text-decoration: none; white-space: nowrap; }
.dsh .dsh-link:hover { text-decoration: underline; }

/* KPI qatori: bitta chiziq, ustunlar vertikal chiziq bilan */
/* v3: KPI va bo`limlar — oq kartochkalar (1-qatlam), ichida ingichka chiziqlar saqlanadi */
.dsh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dsh-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-height: 148px; }
.dsh-kpi .spark { position: absolute; right: 18px; top: 20px; color: var(--c-brand); }


.dsh-kpi .lbl { font-size: 13px; color: var(--c-muted); }
.dsh-kpi .val { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--c-ink); margin: 6px 0 4px; }
.dsh-delta { font-variant-numeric: tabular-nums; color: var(--c-muted); }
.dsh-delta.up { color: var(--c-green); }
.dsh-delta.down { color: var(--c-red); }
.dsh-delta-l { color: var(--c-faint); }
.dsh-kpi .sub { font-size: 13px; color: var(--c-muted); }

/* Bo'limlar */
.dsh-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 16px; }
.dsh-sec { margin-bottom: 16px; min-width: 0; padding: 18px 20px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.dsh-sec-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--dsh-rule); margin: 0 -20px 4px; padding-left: 20px; padding-right: 20px; }
.dsh-sec-h h2 { font-size: 17px; font-weight: 600; }
.dsh-sec-h .meta { font-size: 13px; color: var(--c-muted); }
.dsh-sec-h .dsh-link { margin-left: auto; }
.dsh-empty { color: var(--c-muted); font-size: 14px; padding: 16px 0; margin: 0; }
.dsh-note { color: var(--c-muted); font-size: 12.5px; margin: 10px 0 0; }

/* Jadval */
.dsh-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.dsh-tbl th { text-align: left; font-weight: 400; font-size: 12.5px; color: var(--c-muted); padding: 10px 12px 8px 0; border-bottom: 1px solid var(--dsh-rule); white-space: nowrap; }
.dsh-tbl td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--dsh-rule); vertical-align: baseline; }
.dsh-tbl th.num, .dsh-tbl td.num { padding-left: 12px; }
.dsh-tbl th:last-child, .dsh-tbl td:last-child { padding-right: 0; }
.dsh-tbl tbody tr:hover td { background: var(--c-surface-2); }
.dsh-tbl .sub { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 1px; }
.dsh-tbl .rank { width: 28px; color: var(--c-faint); font-variant-numeric: tabular-nums; }
.dsh-compact td { padding-top: 7px; padding-bottom: 7px; }
.dsh-low { color: var(--c-red); }
.dsh-warn { color: var(--c-amber); }
.dsh-nil { color: var(--c-faint); }
.dsh-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 9px; vertical-align: 0; }
.dsh-key.g, .dsh-stack .g { background: var(--c-green-solid); }
.dsh-key.a, .dsh-stack .a { background: var(--c-amber-solid); }
.dsh-key.r, .dsh-stack .r { background: var(--c-red-solid); }
.dsh-meter { display: inline-block; width: 56px; height: 5px; background: var(--c-gray-bg); margin-right: 10px; vertical-align: middle; border-radius: 3px; overflow: hidden; }
.dsh-meter i { display: block; height: 100%; background: var(--c-brand); }

/* Holat taqsimoti: bitta ingichka chiziq */
.dsh-stack { display: flex; height: 10px; margin: 20px 0 12px; background: var(--c-gray-bg); border-radius: 5px; overflow: hidden; }
.dsh-stack span { display: block; height: 100%; }
.dsh-stack span + span { box-shadow: inset 2px 0 0 var(--c-bg); }

/* Haftalik ustunlar: neytral kulrang, joriy hafta — to'q */
.dsh-bars, .dsh-axis { --n: 10; }
.dsh-bars { display: grid; grid-template-columns: 72px repeat(var(--n), minmax(0, 1fr)); align-items: end; height: 168px; padding-top: 18px; }
.dsh-bars::before { content: ""; }
.dsh-bars .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.dsh-bars .b { width: 56%; max-width: 34px; min-height: 0; background: var(--c-brand-100); border-radius: 4px 4px 0 0; }
.dsh-bars .col.now .b { background: var(--c-brand); }
.dsh-bars .v { font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.dsh-bars .col.now .v { color: var(--c-ink); font-weight: 600; }
.dsh-axis { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 1px solid var(--c-ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dsh-axis th { width: 72px; text-align: left; font-weight: 400; color: var(--c-muted); padding: 7px 0; }
.dsh-axis td { text-align: center; padding: 7px 0; color: var(--c-ink-2); }
.dsh-axis tr + tr th, .dsh-axis tr + tr td { border-top: 1px solid var(--dsh-rule); }

.dsh-inline { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: baseline; font-size: 13.5px; padding: 12px 0; border-top: 1px solid var(--dsh-rule); margin-top: 18px; }
.dsh-inline span:first-child { color: var(--c-muted); }

@media (max-width: 1080px) {
    .dsh-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .dsh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsh-kpi .val { font-size: 26px; }
    .dsh-filters, .dsh-filters select.f-input { width: 100%; }
    .dsh-bars { grid-template-columns: 48px repeat(var(--n), minmax(0, 1fr)); }
    .dsh-axis th { width: 48px; }
    .dsh-bars .v { font-size: 10.5px; }
}
@media print {
    .dsh-filters, .dsh-link { display: none !important; }
}

/* 9. Ochiq tanishtiruv sahifasi (lp) ------------------------------------
   Jurnal uslubi: aniq to'r, kuchli tipografik ierarxiya, bezak o'rniga mahsulotning o'zi
   (CSS bilan chizilgan namuna). Rang faqat ma'no uchun; yagona kontrast — to'q yakuniy blok. */
body.nmo.lp-body { background: var(--c-surface); font-size: 16px; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* yuqori panel */
.lp-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-surface) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.lp-top .lp-wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--c-ink) !important; font-weight: 600; font-size: 16px; white-space: nowrap; }
.lp-brand small { font-weight: 400; font-size: 14px; color: var(--c-muted); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--c-line); }
.lp-brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.lp-brand-txt b { font-size: 16px; font-weight: 600; }
.lp-brand-txt small { margin: 0; padding: 0; border: 0; font-size: 12.5px; color: var(--c-muted); font-weight: 400; }

/* rasmiy xizmat qatori (davlat portallari an'anasi): buyurtmachi va til */
/* Rasmiy qator: och fon + eng tepada Davlat bayrog'i ranglaridagi ingichka chiziq
   (ko'k / qizil / oq / qizil / yashil - bayroqdagi nisbatda). Bu bezak emas: davlat portallarining
   rasmiylik belgisi. Och fonda gerb ham asl ranglarida aniq ko'rinadi. */
.lp-gov {
    position: relative; background: var(--c-surface-2); color: var(--c-ink-2); font-size: 13.5px;
    border-bottom: 1px solid var(--c-line); padding-top: 8px;
}
.lp-gov::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
    /* piksellarda aniq to`xtash nuqtalari — kasr pikselda ranglar aralashmasin */
    background: linear-gradient(180deg, #0099b5 0 2px, #ce1126 2px 3px, #ffffff 3px 5px, #ce1126 5px 6px, #1eb53a 6px 8px);
}
.lp-gov .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.lp-gov-org { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--c-ink); }
.lp-gerb { display: block; width: 30px; height: auto; flex-shrink: 0; }
.lp-lang { display: flex; align-items: center; }
.lp-lang a { color: var(--c-muted) !important; padding: 4px 10px; font-size: 13px; }
.lp-lang a + a { border-left: 1px solid var(--c-line-2); }
.lp-lang a:hover { color: var(--c-ink) !important; }
.lp-lang a.on { color: var(--c-ink) !important; font-weight: 600; }
.lp-nav { display: flex; gap: 28px; margin-left: auto; }
.lp-nav a { color: var(--c-ink-2) !important; font-size: 14.5px; }
.lp-nav a:hover { color: var(--c-ink) !important; }

/* kirish */
.lp-hero { padding: 72px 0 0; background: linear-gradient(var(--c-bg), var(--c-bg)) top / 100% calc(100% - 64px) no-repeat; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.lp-kicker { font-size: 15px; color: var(--c-brand); margin: 0 0 18px; }
.lp-hero h1 { font-size: 48px; line-height: 1.12; font-weight: 600; letter-spacing: -.012em; max-width: 13em; }
.lp-hero .lead { font-size: 19px; line-height: 1.6; color: var(--c-ink-2); margin: 24px 0 0; max-width: 32em; }
.lp-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.lp-actions .btn.lg { height: 50px; padding: 0 24px; font-size: 16px; gap: 10px; }
.lp-textlink { color: var(--c-ink) !important; font-size: 16px; text-decoration: underline; text-decoration-color: var(--c-line-2); text-underline-offset: 5px; }
.lp-textlink:hover { text-decoration-color: currentColor; }
.lp-small { font-size: 14px; color: var(--c-muted); margin: 18px 0 0; max-width: 32em; }

/* mahsulot namunasi */
.lp-device { margin: 0; border: 1px solid var(--c-line-2); border-radius: 10px; background: var(--c-surface); overflow: hidden;
    box-shadow: 0 1px 0 var(--c-line), 0 24px 48px -28px rgba(11, 31, 46, .28); font-size: 14px; }
.lp-device-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); font-weight: 500; }
.lp-device-meta { color: var(--c-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.lp-device-steps { display: flex; gap: 3px; padding: 10px 16px 0; }
.lp-device-steps i { flex: 1; height: 3px; background: var(--c-line); }
.lp-device-steps i.done { background: var(--c-ink-2); }
.lp-device-steps i.now { background: var(--c-brand); }
.lp-device-body { padding: 16px 16px 18px; }
.lp-case { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--c-line-2); color: var(--c-ink-2); line-height: 1.55; }
.lp-case span { display: block; font-size: 12.5px; color: var(--c-muted); }
.lp-question { font-weight: 600; font-size: 15.5px; margin: 0 0 12px; line-height: 1.45; }
.lp-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-options li { display: flex; gap: 12px; padding: 9px 12px; border: 1px solid var(--c-line-2); border-radius: 6px; }
.lp-options b { font-weight: 400; color: var(--c-muted); width: 12px; }
.lp-options li.on { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.lp-options li.on b { color: var(--c-brand); font-weight: 600; }
.lp-device-map { border-top: 1px solid var(--c-line); background: var(--c-surface-2); }
.lp-device-map-h { padding: 10px 16px; font-size: 12.5px; color: var(--c-muted); }
.lp-maprow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px 8px 13px; border-top: 1px solid var(--c-line); border-left: 3px solid var(--c-gray-solid); }
.lp-maprow .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-maprow .score { font-variant-numeric: tabular-nums; color: var(--c-ink-2); }
.lp-maprow.green { border-left-color: var(--c-green-solid); }
.lp-maprow.amber { border-left-color: var(--c-amber-solid); }
.lp-maprow.red { border-left-color: var(--c-red-solid); }
.lp-maprow.gray .name, .lp-maprow.gray .score { color: var(--c-muted); }
.lp-device figcaption { padding: 8px 16px; font-size: 12px; color: var(--c-faint); border-top: 1px solid var(--c-line); }

/* raqamlar */
.lp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 72px 0 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -16px rgba(16, 24, 40, .12); }
.lp-facts > div { padding: 22px 26px 24px; }
.lp-facts > div + div { border-left: 1px solid var(--c-line); }
.lp-facts dt { font-size: 14px; color: var(--c-muted); }
.lp-facts dd { margin: 6px 0 0; font-size: 34px; line-height: 1.15; font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-facts small { display: block; font-size: 13px; color: var(--c-faint); margin-top: 2px; }

/* bo'limlar: chapda sarlavha (yopishqoq), o'ngda mazmun */
.lp-sec { padding: 96px 0; border-top: 1px solid var(--c-line); }
.lp-sec-tint { background: var(--c-bg); }
.lp-hero + .lp-sec { border-top: 0; }
.lp-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.lp-sec-h { position: sticky; top: 96px; }
.lp-num { display: block; font-size: 14px; color: var(--c-faint); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.lp-sec-h h2 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.008em; }
.lp-sec-h p { margin: 16px 0 0; color: var(--c-ink-2); font-size: 16.5px; line-height: 1.6; }

.lp-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-ink); }
.lp-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.lp-steps .n { font-size: 15px; color: var(--c-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.lp-steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.lp-steps p { margin: 0; color: var(--c-ink-2); line-height: 1.65; max-width: 38em; }

.lp-legend { margin: 0; border-top: 1px solid var(--c-ink); }
.lp-legend > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 110px; gap: 20px; align-items: baseline; padding: 18px 0 18px 16px; border-bottom: 1px solid var(--c-line); border-left: 3px solid var(--c-gray-solid); }
.lp-legend > div.green { border-left-color: var(--c-green-solid); }
.lp-legend > div.amber { border-left-color: var(--c-amber-solid); }
.lp-legend > div.red { border-left-color: var(--c-red-solid); }
.lp-legend dt { font-weight: 600; }
.lp-legend dd { margin: 0; color: var(--c-ink-2); }
.lp-legend span { text-align: right; color: var(--c-muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.lp-quote { margin: 32px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--c-ink); font-size: 18px; line-height: 1.6; color: var(--c-ink); max-width: 36em; }

.lp-audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.lp-audience { gap: 20px !important; }
.lp-audience > div { padding: 24px 26px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.lp-audience li:last-child { border-bottom: 0; }
.lp-audience h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.lp-audience ul { list-style: none; margin: 0; padding: 0; }
.lp-audience li { padding: 11px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink-2); line-height: 1.5; }

.lp-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--c-ink); }
.lp-table th { text-align: left; font-weight: 400; font-size: 14px; color: var(--c-muted); padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.lp-table td { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.lp-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 140px; }

.lp-faq { border-top: 1px solid var(--c-ink); }
.lp-faq details { border-bottom: 1px solid var(--c-line); }
.lp-faq summary { cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--c-muted); font-weight: 300; font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { margin: -4px 0 22px; color: var(--c-ink-2); line-height: 1.65; max-width: 40em; }

/* yakuniy blok: yagona to'q yuza, gradientsiz */
.lp-final { background: var(--side); color: #fff; padding: 88px 0; }
.lp-final h2 { color: #fff; font-size: 36px; line-height: 1.2; font-weight: 600; max-width: 18em; }
.lp-final p { color: var(--side-ink); font-size: 17px; margin: 16px 0 32px; max-width: 36em; }
.lp-btn-light { --b-bg: #fff; --b-fg: var(--side); --b-bd: #fff; height: 50px; padding: 0 24px; font-size: 16px; gap: 10px; }
.lp-btn-light:hover { --b-bg: #e9f2f1; --b-bd: #e9f2f1; }

/* institutsional footer: buyurtmachi, operator, bo'limlar, yordam */
.lp-foot { padding: 56px 0 28px; font-size: 14px; background: var(--side); color: var(--side-ink); border-top: 1px solid rgba(255, 255, 255, .08); }
.lp-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.lp-foot .lp-brand { color: #fff !important; }
.lp-foot .lp-brand-txt small { color: var(--side-muted); }
.lp-foot-brand p { margin: 16px 0 0; color: var(--side-muted); line-height: 1.6; max-width: 30em; }
.lp-foot-col { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-foot-col b, .lp-foot-col dt { color: #fff; font-weight: 600; margin-bottom: 4px; }
.lp-foot-col dt:not(:first-child) { margin-top: 12px; }
.lp-foot-col dd { margin: 0; color: var(--side-ink); line-height: 1.5; }
.lp-foot-col span { color: var(--side-muted); line-height: 1.6; }
.lp-foot a { color: var(--side-ink) !important; }
.lp-foot a:hover { color: #fff !important; }
.lp-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--side-muted); font-size: 13px; }

html:has(body.lp-body) { scroll-behavior: smooth; scroll-padding-top: 80px; }


/* dastur maqsadi (TZ, 1-bo'lim) va uch tamoyil */
.lp-statement { margin: 0; font-size: 24px; line-height: 1.5; font-weight: 500; color: var(--c-ink); letter-spacing: -.005em; max-width: 30em; }
.lp-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--c-ink); }
.lp-principles > div { padding: 20px 24px 0 0; }
.lp-principles > div + div { padding-left: 24px; border-left: 1px solid var(--c-line); }
.lp-principles h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--c-brand); }
.lp-principles p { margin: 0; color: var(--c-ink-2); line-height: 1.6; }

@media (max-width: 1080px) {
    .lp-nav { display: none; }
    .lp-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-principles { grid-template-columns: minmax(0, 1fr); }
    .lp-principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line); margin-top: 20px; }
    .lp-top .lp-wrap { justify-content: space-between; }
    .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .lp-device { max-width: 560px; }
    .lp-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lp-sec-h { position: static; }
    .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-facts > div:nth-child(3) { border-left: 0; }
    .lp-facts > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 640px) {
    body.nmo.lp-body { font-size: 15px; }
    .lp-gov-org { font-size: 12px; line-height: 1.3; }
    .lp-gov .lp-wrap { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
    .lp-brand-txt small { display: none; }
    .lp-statement { font-size: 19px; }
    .lp-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lp-wrap { padding: 0 18px; }
    .lp-brand small { display: none; }
    .lp-hero { padding: 44px 0 0; }
    .lp-hero h1 { font-size: 32px; }
    .lp-hero .lead { font-size: 17px; }
    .lp-facts { margin-top: 48px; }
    .lp-facts dd { font-size: 26px; }
    .lp-facts > div { padding: 16px 18px 18px; }
    .lp-sec { padding: 56px 0; }
    .lp-sec-h h2 { font-size: 26px; }
    .lp-steps li { grid-template-columns: 36px minmax(0, 1fr); }
    .lp-legend > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .lp-legend span { text-align: left; }
    .lp-audience { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lp-table .num { width: 90px; }
    .lp-final { padding: 56px 0; }
    .lp-final h2 { font-size: 27px; }
}

/* 10. Mashq (QBank) ------------------------------------------------------
   Test sahifasi uslubida; navigator — raqamli kichik katakchalar. */
.pr-resume { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 16px; background: var(--c-brand-50); }
.pr-resume b { display: block; font-weight: 600; }
.pr-resume small { display: block; margin-top: 2px; font-size: 13px; }
.pr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.pr-stat { padding: 16px 20px; border-left: 1px solid var(--c-line); min-width: 0; }
.pr-stat:first-child { border-left: 0; }
.pr-stat > span { display: block; font-size: 13px; color: var(--c-muted); }
.pr-stat b { display: block; font: 600 26px/1.2 var(--font); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pr-stat b small { font-size: 14px; font-weight: 400; color: var(--c-muted); margin-left: 2px; }
.pr-stat b.red { color: var(--c-red); }
.pr-stat em { display: block; font-style: normal; font-size: 12.5px; color: var(--c-faint); margin-top: 2px; }
.pr-bar { display: block; height: 4px; border-radius: 2px; background: var(--c-gray-bg); margin-top: 10px; overflow: hidden; }
.pr-bar > i { display: block; height: 100%; background: var(--c-brand); border-radius: 2px; }
.pr-bar.green > i { background: var(--c-green-solid); } .pr-bar.amber > i { background: var(--c-amber-solid); } .pr-bar.red > i { background: var(--c-red-solid); }
.pr-bar.gray > i { width: 0 !important; }

.pr-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pr-mode { position: relative; margin: 0; cursor: pointer; }
.pr-mode input { position: absolute; opacity: 0; }
.pr-mode > span { position: relative; display: block; height: 100%; padding: 14px 16px 14px 42px; border: 1px solid var(--c-line-2); border-radius: var(--r); background: var(--c-surface); transition: border-color .15s, box-shadow .15s; }
.pr-mode > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--c-line-2); background: var(--c-surface); }
.pr-mode b { display: block; font-weight: 600; font-size: 15px; }
.pr-mode small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.pr-mode:hover > span { border-color: var(--c-faint); }
.pr-mode input:checked + span { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.pr-mode input:checked + span::before { border: 4px solid var(--c-brand); }
.pr-mode input:focus-visible + span { box-shadow: 0 0 0 4px var(--c-focus); }

.pr-sources { display: grid; margin-top: 12px; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.pr-src, .pr-comp { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px; border-top: 1px solid var(--c-line); cursor: pointer; transition: background .12s; font-weight: 400; }
.pr-src:first-child { border-top: 0; }
.pr-src:hover, .pr-comp:hover { background: var(--c-surface-2); }
.pr-src input, .pr-comp input { accent-color: var(--c-brand); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.pr-src b { display: block; font-weight: 500; font-size: 14.5px; }
.pr-src small { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 1px; }
.pr-src:has(input:checked) { background: var(--c-brand-50); }
.pr-src.off { cursor: not-allowed; opacity: .55; }
.pr-src .n, .pr-comp .n { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.pr-comps { margin: 14px 0 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r); max-height: 320px; overflow-y: auto; }
.pr-comps[hidden] { display: none; }
.pr-comps legend { float: left; width: 100%; padding: 10px 14px; margin: 0; background: var(--c-surface-2); font-size: 13px; }
.pr-comp { clear: both; font-size: 14px; }
.pr-note { font-size: 13px; align-self: center; }
.pr-recent a { color: inherit; min-width: 0; }
.pr-recent a:hover b { color: var(--c-brand); }
.pr-aside-note h3 { font-size: 15px; margin-bottom: 6px; }
.pr-aside-note p { font-size: 13.5px; line-height: 1.6; }

/* yechish sahifasi */
.pr-finish { margin: 0; }
.pr-nav { display: flex; gap: 4px; max-width: 820px; margin: 0 auto; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: thin; }
.pr-nav a { position: relative; flex: 0 0 auto; min-width: 30px; height: 28px; padding: 0 4px; display: grid; place-items: center; border-radius: var(--r-xs); border: 1px solid var(--c-line); background: var(--c-surface); font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--c-muted); text-decoration: none; }
.pr-nav a:hover { border-color: var(--c-faint); color: var(--c-ink); }
.pr-nav a.ans { background: var(--c-gray-bg); color: var(--c-ink-2); }
.pr-nav a.ok { color: var(--c-green); border-color: var(--c-green-line); background: var(--c-green-bg); }
.pr-nav a.no { color: var(--c-red); border-color: var(--c-red-line); background: var(--c-red-bg); }
.pr-nav a.now { border-color: var(--c-ink); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.pr-nav a.mk::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 2px var(--c-surface); }
.pr-mark { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-xs); background: none; font: 400 13px var(--font); color: var(--c-muted); cursor: pointer; }
.pr-mark:hover { background: var(--c-gray-bg); color: var(--c-ink); }
.pr-mark.on { color: var(--c-blue); background: var(--c-blue-bg); }
.pr-mark.on .ic, .pr-mk-ic .ic { fill: currentColor; }
.opts.revealed .opt { cursor: default; }
.opts.revealed .opt:hover { border-color: var(--c-line-2); }
.opts.revealed .opt.right { border-color: var(--c-green-line); background: var(--c-green-bg); }
.opts.revealed .opt.right .k { color: var(--c-green); font-weight: 600; }
.opts.revealed .opt.wrong { border-color: var(--c-red-line); background: var(--c-red-bg); }
.opts.revealed .opt.wrong .k { color: var(--c-red); font-weight: 600; }
.opts.revealed .opt:not(.right):not(.wrong) { opacity: .7; }
.opt .tag { margin-left: auto; padding: 3px 0 0 10px; flex-shrink: 0; font-size: 12.5px; white-space: nowrap; }
.opt.right .tag { color: var(--c-green); } .opt.wrong .tag { color: var(--c-red); }
.pr-verdict { margin-top: 18px; padding: 14px 18px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 3px solid var(--c-gray-solid); }
.pr-verdict.ok { border-left-color: var(--c-green-solid); }
.pr-verdict.no { border-left-color: var(--c-red-solid); }
.pr-verdict b { display: block; font-weight: 600; margin-bottom: 4px; }
.pr-verdict.ok b { color: var(--c-green); } .pr-verdict.no b { color: var(--c-red); }
.pr-verdict p { margin: 0; line-height: 1.65; color: var(--c-ink-2); }

/* natija */
.rv-act { margin: 10px 0 0 34px; }
.rv-act .pr-mark { margin-left: -10px; }
.pr-mk-ic { color: var(--c-blue); flex-shrink: 0; }
.pr-break .pr-bar { margin-top: 7px; }
.pr-pc { font: 600 14px var(--font); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; align-self: flex-start; }
.pr-pc.green { color: var(--c-green); } .pr-pc.amber { color: var(--c-amber); } .pr-pc.red { color: var(--c-red); } .pr-pc.gray { color: var(--c-faint); }

@media (max-width: 960px) {
    .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-stat:nth-child(3) { border-left: 0; }
    .pr-stat:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 640px) {
    .pr-modes { grid-template-columns: 1fr; }
    .pr-stat { padding: 14px 16px; }
    .pr-stat b { font-size: 22px; }
    .pr-resume { flex-wrap: wrap; }
    .opt .tag { display: none; }
}

/* 11. Sayqal qatlami (v4) ----------------------------------------------------
   Faqat ko'rinish: HTML tuzilishi va klasslar o'zgarmaydi. Oldingi bo'limlar ustidan yoziladi.
   Yo'nalish: tabiiy chuqurlik — aniq ierarxiya, qatlamli yumshoq soya, brend rangi faqat urg'u uchun.
   Gradient, katta harfli yorliqlar va ikonka kvadratlari ishlatilmaydi. */
:root {
    --c-bg: #f2f4f7;
    --c-line: #e4e8ed;
    --r-lg: 14px;
    --r: 11px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --sh-2: 0 2px 4px -2px rgba(16, 24, 40, .06), 0 8px 20px -6px rgba(16, 24, 40, .12);
    --side: #0b2230;
}
.nmo h2 { font-size: 16px; }
body.nmo { -webkit-font-smoothing: antialiased; }

/* qobiq */
.side { border-right: 1px solid rgba(255, 255, 255, .04); padding: 20px 14px 16px; }
.brand-mark { border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .25); }
.side .brand { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side-label { font-size: 12px; padding: 18px 12px 8px; color: #6f8896; }
.side-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #b8c9d2 !important; }
.side-nav a .ic { opacity: .6; transition: opacity .15s, color .15s; }
.side-nav a:hover { background: rgba(255, 255, 255, .045); }
.side-nav a:hover .ic { opacity: .9; }
.side-nav a.active { background: rgba(45, 212, 191, .1); color: #fff !important; }
.side-nav a.active .ic { opacity: 1; color: #5eead4; }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #2dd4bf; }
.side-nav .count { min-width: 20px; height: 19px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #dbe7ed; font-size: 11.5px; font-weight: 600; }
.side-foot { border-top-color: rgba(255, 255, 255, .06); }
.who { background: rgba(255, 255, 255, .035); border-radius: 10px; padding: 10px; }

.topbar { background: color-mix(in srgb, var(--c-surface) 86%, transparent); border-bottom: 1px solid var(--c-line); height: 58px; }
.topbar.scrolled { box-shadow: 0 4px 14px -10px rgba(16, 24, 40, .25); }
.crumbs { font-size: 13.5px; }
.week-pill { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-ink-2); font-size: 12.5px; }
.week-pill .ic { color: var(--c-brand); }
.content { padding-top: 20px; }

/* sahifa sarlavhasi */
.head { margin: 12px 0 26px; }
.head h1 { font-size: 30px; font-weight: 600; }
.head p { color: var(--c-muted); line-height: 1.6; }
.head .eyebrow, .nmo .eyebrow { color: var(--c-brand); font-weight: 500; font-size: 13px; }
.result-hero .eyebrow { color: var(--c-muted); font-weight: 400; }

/* kartochka: sarlavha — alohida qatlam, ingichka chiziq bilan */
.card { border-color: var(--c-line); }
.card-h { padding: 16px 22px; border-bottom: 1px solid var(--c-line); min-height: 58px; }
.card-h h2 { font-size: 16px; }
.card-h p { margin-top: 2px; }
.card-b { padding: 20px 22px 22px; }
.card-f { padding: 13px 22px; background: var(--c-surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card.pad { padding: 22px; }

/* KPI */
.kpi { padding: 20px 22px; }
.kpi .k-label { font-size: 13px; color: var(--c-muted); font-weight: 500; }
.kpi .k-ic { color: var(--c-brand); }
.kpi .k-val { font-size: 32px; font-weight: 600; margin-top: 12px; }
.kpi .k-val small { font-size: 15px; }
.figure-val { font-weight: 600; font-size: 36px; }
.figure-bar { height: 8px; border-radius: 4px; }

/* hero: yuqorida ingichka brend chizig'i — muassasa hujjati kabi */
.hero, .result-hero { box-shadow: inset 0 3px 0 var(--c-brand), var(--sh-1); border-top-color: transparent; }
.hero { padding: 26px 28px; }
.hero h1 { font-size: 26px; font-weight: 600; }
.hero .chip .ic { color: var(--c-brand); opacity: .8; }
.hero .cta-box { border-radius: 12px; padding: 18px 20px 20px; }
.hero .cta-box .v { font-weight: 600; }
.result-hero h1 { font-size: 24px; font-weight: 600; }

/* tugmalar */
.btn { font-weight: 550; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.btn:hover { --b-bd: var(--c-line-2); --b-bg: var(--c-surface-2); }
.btn.primary { font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(11, 95, 89, .3), 0 3px 8px -2px rgba(15, 118, 110, .28); }
.btn.primary:hover { --b-bg: var(--c-brand-600); --b-bd: var(--c-brand-600); }
.btn.primary:active, .btn:active { transform: translateY(.5px); }
.btn.ghost { box-shadow: none; }
.btn.lg { height: 46px; border-radius: 10px; }

/* yorliqlar: tus foni + ichki ingichka ramka — aniqroq chegaralar */
.badge { height: 23px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--c-gray-line); }
.badge.green { box-shadow: inset 0 0 0 1px var(--c-green-line); }
.badge.amber { box-shadow: inset 0 0 0 1px var(--c-amber-line); }
.badge.red { box-shadow: inset 0 0 0 1px var(--c-red-line); }
.badge.blue { box-shadow: inset 0 0 0 1px var(--c-blue-line); }
.badge.brand { box-shadow: inset 0 0 0 1px var(--c-brand-100); }
.badge.plain { box-shadow: none; }

/* jadvallar */
.tbl th { font-size: 12.5px; font-weight: 500; color: var(--c-muted); padding: 11px 16px; background: var(--c-surface-2); }
.tbl td { padding: 13px 16px; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--c-brand-50) 55%, var(--c-surface)); }
.tbl .t-main { font-weight: 550; }
.pagination li.active a, .pagination li.active span { background: var(--c-brand); border-radius: 6px; }
.pagination li a, .pagination li span { border-radius: 6px; }
.pager-wrap { background: var(--c-surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* tablar va filtr */
.tabs a { font-weight: 500; }
.tabs a.active, .map-filter button.active { color: var(--c-ink); border-bottom-color: var(--c-brand); }
.map-filter button { font-weight: 500; font-size: 13.5px; padding: 6px 0 8px; }
.tabs .n, .map-filter button .n { min-width: 20px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--c-gray-bg); color: var(--c-muted); font-size: 11.5px; font-weight: 600; }
.tabs a.active .n, .map-filter button.active .n { background: var(--c-brand-50); color: var(--c-brand); }
.seg-pick { border-radius: 9px; padding: 3px; }
.seg-pick span { border-radius: 6px; font-weight: 500; }
.seg-pick input:checked + span { box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--c-line-2); color: var(--c-ink); }

/* formalar */
.f-input, .nmo select.f-input, .nmo textarea.f-input { border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.f-section { padding: 22px 26px; }
.f-section h3 { font-size: 15.5px; }
.f-actions { background: var(--c-surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 16px 26px; }
.f-label { font-weight: 550; }

/* ro'yxatlar */
.list > li { padding: 13px 0; }
.list b { font-weight: 550; }

/* kompetensiyalar xaritasi */
.cmap { gap: 14px; }
.ctile { padding: 16px 16px 15px 20px; border-radius: 12px; gap: 12px; transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.ctile::before { width: 4px; }
.ctile:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.ctile .c-name { font-weight: 550; }
.ctile .c-score { font-weight: 600; font-size: 16px; }
.ctile .c-state { font-weight: 500; }
.ctile .bar { height: 5px; }

/* tavsiyalar */
.rec h3 { font-weight: 600; }
.rec .r-why { font-weight: 500; }

/* boshqaruv: savollar banki */
.qcard { border-radius: 12px; box-shadow: var(--sh-1); }
.qcard .q-h { background: var(--c-surface-2); border-radius: 12px 12px 0 0; }
.lib-side a { border-radius: 7px; }
.lib-side a.active { background: var(--c-brand-50); color: var(--c-brand) !important; }
.drop { border-radius: 12px; background: var(--c-surface-2); }
.drop:hover, .drop.over { border-color: var(--c-brand); background: var(--c-brand-50); }

/* tahlil sahifasi */
.dsh-kpi .val { font-weight: 600; }
.dsh-kpi .lbl { font-weight: 500; }
.dsh-sec-h h2 { font-size: 16px; }
.dsh-tbl th { font-weight: 500; }

/* test va mashq rejimi */
.focus-top { box-shadow: 0 1px 0 var(--c-line), 0 6px 16px -12px rgba(16, 24, 40, .3); border-bottom: 0; }
.focus-top .ttl { font-size: 15px; }
.timer { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--c-surface-2); border: 1px solid var(--c-line); font-weight: 600; }
.timer.warn { background: var(--c-amber-bg); border-color: var(--c-amber-line); }
.timer.crit { background: var(--c-red-bg); border-color: var(--c-red-line); }
.timer.warn .ic, .timer.crit .ic { color: currentColor; }
.progress-steps i { height: 4px; border-radius: 2px; }
.focus-main { padding-top: 32px; }
.q-meta { margin-bottom: 18px; }
.q-case-box { padding: 14px 18px; margin-bottom: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-left: 3px solid var(--c-blue-line); border-radius: 4px var(--r) var(--r) 4px; box-shadow: var(--sh-1); }
.q-case-box .t { font-weight: 500; color: var(--c-blue); }
/* `.nmo h1 { margin: 0 }` sarlavhaning pastki bo'shlig'ini yo'qotardi */
.nmo .q-title { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0 0 22px; }
.opts { gap: 10px; }
.opt { padding: 15px 18px; border-radius: 12px; border-color: var(--c-line-2); box-shadow: var(--sh-1); align-items: center; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt:hover { border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-line-2)); box-shadow: var(--sh-2); }
.opt .k { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-line-2); font: 600 13px/1 var(--font); color: var(--c-muted); background: var(--c-surface); transition: all .15s; }
.opt:has(input:checked), .opt.is-checked { background: var(--c-brand-50); border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.opt:has(input:checked) .k, .opt.is-checked .k { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.opts.revealed .opt { box-shadow: none; }
.opts.revealed .opt:hover { box-shadow: none; }
.opts.revealed .opt.right .k { background: var(--c-green-solid); border-color: var(--c-green-solid); color: #fff; }
.opts.revealed .opt.wrong .k { background: var(--c-red-solid); border-color: var(--c-red-solid); color: #fff; }
.opt .tag { padding-top: 0; font-weight: 500; }
.focus-bar { box-shadow: 0 -6px 18px -12px rgba(16, 24, 40, .3); border-top-color: var(--c-line); }
.pr-verdict { border-radius: 4px var(--r) var(--r) 4px; box-shadow: var(--sh-1); padding: 16px 20px; }

/* mashq navigatori: joriy savol — tashqi halqa, javob rangi saqlanadi */
.pr-nav { padding-top: 6px; }
.pr-nav a { border-radius: 7px; }
.pr-nav a.now { box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3.5px var(--c-ink); }
.pr-nav a.now:not(.ok):not(.no):not(.ans) { color: var(--c-ink); border-color: var(--c-line-2); }
.pr-nav a.ok.now { border-color: var(--c-green-line); color: var(--c-green); }
.pr-nav a.no.now { border-color: var(--c-red-line); color: var(--c-red); }
.pr-nav a.ans.now { color: var(--c-ink-2); border-color: var(--c-line); }
.pr-stats { border-radius: var(--r-lg); }
.pr-stat b { font-weight: 600; }
.pr-mode > span { border-radius: 12px; }
.pr-mode input:checked + span { background: var(--c-brand-50); }
.pr-sources, .pr-comps { border-radius: 12px; }

/* natija tahlili */
.review { padding: 14px 0; }
.review .rv-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: 600; background: var(--c-gray-bg); color: var(--c-muted); text-align: center; }
.review .rv-n.ok { background: var(--c-green-bg); color: var(--c-green); }
.review .rv-n.no { background: var(--c-red-bg); color: var(--c-red); }
.review .rv-opts, .review .rv-exp, .rv-act { margin-left: 38px; }
.review .rv-exp { border-left-color: var(--c-brand-100); }
.review details summary:hover .grow { color: var(--c-brand); }

/* tushuntirish holati */
.empty h3 { font-size: 16px; }
.alert { border-radius: 10px; box-shadow: var(--sh-1); }

@media (max-width: 960px) {
    .topbar { padding: 0 16px; }
    .content { padding-top: 14px; }
}
@media (max-width: 640px) {
    .head h1 { font-size: 24px; }
    .hero h1 { font-size: 22px; }
    .nmo .q-title { font-size: 18px; }
    .card-h { padding: 14px 16px; }
    .card-b { padding: 16px 16px 18px; }
    .card-f { padding: 12px 16px; }
    .f-section { padding: 18px 16px; }
    .f-actions { padding: 14px 16px; }
    .hero { padding: 20px 18px; }
    .opt { padding: 13px 14px; }
    .kpi .k-val { font-size: 28px; }
}
.dsh-head h1 { font-weight: 600; }

/* 12. Mobil sayqal (≤640px) */
@media (max-width: 640px) {
    /* KPI: 4 ta kartochka ustma-ust emas — 2 ustun */
    .g-4:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .g-4 > .kpi { padding: 14px 14px 16px; }
    .g-4 > .kpi .k-val { font-size: 24px; margin-top: 8px; }
    .g-4 > .kpi .k-sub { font-size: 12px; }
    /* test/mashq: ixcham yuqori qator */
    .focus-top .in { gap: 8px; padding: 0 12px; height: 56px; }
    .focus-top .ttl { min-width: 0; flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .focus-top .ttl small { overflow: hidden; text-overflow: ellipsis; }
    .focus-top .timer { margin-left: 0; height: 30px; padding: 0 9px; font-size: 14px; }
    .focus-top .timer .ic { display: none; }
    .focus-top .btn.icon { width: 30px; flex-shrink: 0; }
    .focus-top .grow { display: none; }
    .pr-nav, .progress-steps { padding-left: 12px; padding-right: 12px; }
    .focus-main { padding: 22px 16px 110px; }
    /* pastki panel: asosiy tugma qolgan joyni egallaydi */
    .focus-bar .in { padding: 0 12px; gap: 6px; }
    .focus-bar .btn.ghost { padding: 0 10px; }
    .focus-bar .btn.lg { flex: 1; min-width: 0; height: 46px; padding: 0 14px; }
    .focus-bar .grow { display: none; }
    /* mashq sozlash */
    .pr-form .f-row .f-group + .f-group { margin-top: 16px; }
    .pr-form .f-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .pr-form .f-actions .btn { width: 100%; }
    .pr-resume .btn { width: 100%; }
}
@media (max-width: 640px) {
    /* jadval → kartochka: chapda yorliq, o'ngda qiymat (bir nechta qatorli qiymat bir ustunda qoladi) */
    .tbl.stack-sm td { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: auto; column-gap: 12px; row-gap: 2px; align-items: start; justify-items: end; align-content: start; }
    .tbl.stack-sm td::before { grid-row: 1; grid-column: 1; justify-self: start; }
    .tbl.stack-sm td > * { grid-column: 2; }
    /* birinchi ustun — sarlavha: yorliqsiz, chapga tekislangan */
    .tbl.stack-sm td:first-child { display: block; justify-items: normal; text-align: left; padding-bottom: 8px; }
    .tbl.stack-sm td:first-child::before { display: none; }
    .tbl.stack-sm td.actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; }
    .tbl.stack-sm td.actions::before { display: none; }
}
