/* ===== unitester.css: umumiy dizayn (light + dark) ===== */

/* ===== Inter shrifti (lokal, variable) ===== */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ===== MAVZU: LIGHT (standart, birinchi tashrifda) ===== */
/* Barcha ranglar shu ikki blokda. Yangi rang kerak bo'lsa, faqat shu yerga qo'shiladi */
:root {
    color-scheme: light; /* brauzer skrollbar va forma elementlarini yorug' chizadi */
    --ut-bg: #f9fafb; /* sahifa foni (gray-50) */
    --ut-panel: #ffffff; /* navbar, karta, footer foni */
    --ut-panel2: #f3f4f6; /* hover va ichki blok foni (gray-100) */
    --ut-line: #e5e7eb; /* chiziqlar (gray-200) */
    --ut-line2: #d1d5db; /* kuchliroq chiziq: input chegarasi (gray-300) */
    --ut-text: #111827; /* asosiy matn (gray-900) */
    --ut-muted: #6b7280; /* ikkinchi darajali matn (gray-500) */
    --ut-faint: #9ca3af; /* placeholder va juda xira matn (gray-400) */
    --ut-strong: #374151; /* o'rtacha kuchli matn (gray-700) */
    --ut-accent: #f59e0b; /* asosiy rang (amber): tugma, chegara, fon */
    --ut-accent-text: #b45309; /* amber MATN rangi: oq fonda o'qilishi uchun to'qroq */
    --ut-mid: #b45309; /* "o'rtacha natija" matni */
    --ut-danger: #dc2626; /* qizil matn: "Chiqish", xato */
    --ut-info: #2563eb; /* ko'k matn (dashboard statistikasi) */
    --ut-ok: #15803d; /* yashil matn */
    --ut-ok-soft: #166534; /* joriy obuna sarlavhasi */
    --ut-ok-bg: #dcfce7; /* yashil fon */
    --ut-ok-line: #4ade80; /* yashil chegara */
    --ut-bad-bg: #fee2e2; /* qizil fon */
    --ut-err-bg: #fef2f2; /* xato bloki foni */
    --ut-err-line: #fecaca; /* xato bloki chegarasi */
    --ut-err-text: #b91c1c; /* xato bloki matni */
    --ut-warn-bg: #fffbeb; /* ogohlantirish foni */
    --ut-warn-line: #fcd34d; /* ogohlantirish chegarasi */
    --ut-warn-text: #92400e; /* ogohlantirish matni */
    --ut-field: #f3f4f6; /* modal ichidagi input foni */
    --ut-modal: #ffffff; /* modal oyna foni */
    --ut-overlay: rgba(17, 24, 39, 0.5); /* modal orqasidagi parda */
    --ut-u-card: #ffffff; /* /utilities karta foni */
    --ut-u-input: #f9fafb; /* /utilities input foni */
    --ut-font:
        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== MAVZU: DARK (foydalanuvchi tanlaganda) ===== */
html[data-theme="dark"] {
    color-scheme: dark; /* brauzer skrollbar va forma elementlarini qorong'i chizadi */
    --ut-bg: #030712; /* sahifa foni (gray-950) */
    --ut-panel: #111827; /* navbar, karta, footer foni (gray-900) */
    --ut-panel2: #1f2937; /* hover va menyu foni (gray-800) */
    --ut-line: #374151; /* chiziqlar (gray-700) */
    --ut-line2: #4b5563; /* kuchliroq chiziq (gray-600) */
    --ut-text: #f3f4f6; /* asosiy matn */
    --ut-muted: #9ca3af; /* ikkinchi darajali matn */
    --ut-faint: #6b7280; /* placeholder va juda xira matn */
    --ut-strong: #d1d5db; /* o'rtacha kuchli matn */
    --ut-accent: #f59e0b; /* asosiy rang (amber) */
    --ut-accent-text: #f59e0b; /* qorong'i fonda amber matn shu rangda */
    --ut-mid: #fbbf24; /* "o'rtacha natija" matni */
    --ut-danger: #f87171; /* qizil matn */
    --ut-info: #60a5fa; /* ko'k matn */
    --ut-ok: #4ade80; /* yashil matn */
    --ut-ok-soft: #86efac; /* joriy obuna sarlavhasi */
    --ut-ok-bg: rgba(20, 83, 45, 0.4); /* yashil fon */
    --ut-ok-line: #15803d; /* yashil chegara */
    --ut-bad-bg: rgba(127, 29, 29, 0.5); /* qizil fon */
    --ut-err-bg: #450a0a; /* xato bloki foni */
    --ut-err-line: #b91c1c; /* xato bloki chegarasi */
    --ut-err-text: #fca5a5; /* xato bloki matni */
    --ut-warn-bg: #451a03; /* ogohlantirish foni */
    --ut-warn-line: #b45309; /* ogohlantirish chegarasi */
    --ut-warn-text: #fcd34d; /* ogohlantirish matni */
    --ut-field: #374151; /* modal ichidagi input foni */
    --ut-modal: #1f2937; /* modal oyna foni */
    --ut-overlay: rgba(0, 0, 0, 0.7); /* modal orqasidagi parda */
    --ut-u-card: #1f2937; /* /utilities karta foni */
    --ut-u-input: #111827; /* /utilities input foni */
}

/* Inter butun saytga tarqaladi */
body {
    font-family: var(--ut-font);
}

/* Sahifa tanasi: fon va matn rangi temadan olinadi (avval Tailwind class'lari edi) */
.ut-body {
    min-height: 100vh; /* kontent kam bo'lsa ham footer pastda turadi */
    display: flex;
    flex-direction: column;
    font-size: 16px;
    background: var(--ut-bg);
    color: var(--ut-text);
}

/* Navbar: yumaloq panel, chetdan 8px ichkarida, tepaga yopishadi */
.ut-nav {
    position: sticky;
    top: 8px;
    z-index: 50;
    margin: 8px 8px 0;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 10px;
}
.ut-nav.ut-static {
    position: static;
} /* test sahifasida yopishmaydi */
.ut-nav-in {
    height: 56px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.ut-logo {
    display: flex;
    justify-self: start;
}
.ut-logo img {
    height: 48px;
    width: auto;
    display: block;
}
.ut-links {
    display: flex;
    gap: 8px;
}
.ut-links a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ut-text);
}
.ut-links a:hover {
    background: var(--ut-panel2);
}
.ut-links a.ut-on {
    color: var(--ut-accent-text);
}
/* O'ng blok: mavzu tugmasi + profil tugmasi yonma-yon */
.ut-tools {
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ut-ubtn {
    height: 44px;
    min-width: 44px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--ut-text);
    cursor: pointer;
}
.ut-ubtn:hover,
.ut-ubtn.ut-open {
    background: var(--ut-panel2);
}
.ut-ubtn svg {
    width: 22px;
    height: 22px;
}
.ut-ubtn .ut-caret {
    width: 12px;
    height: 12px;
}

/* Mavzu almashtirish tugmasi: qorong'i rejimda quyosh (light'ga o'tish), yorug' rejimda oy */
.ut-theme .ut-i-sun {
    display: none; /* yorug' rejimda quyosh yashirin */
}
html[data-theme="dark"] .ut-theme .ut-i-sun {
    display: block; /* qorong'i rejimda quyosh ko'rinadi */
}
html[data-theme="dark"] .ut-theme .ut-i-moon {
    display: none; /* qorong'i rejimda oy yashirin */
}

/* Foydalanuvchi menyusi */
.ut-umenu {
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 190px;
    padding: 8px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 10px;
    display: none;
}
.ut-umenu.ut-open {
    display: block;
}
.ut-umenu a,
.ut-umenu button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.ut-umenu a:hover,
.ut-umenu button:hover {
    background: var(--ut-panel2);
}
.ut-umenu .ut-out {
    margin-top: 6px;
    border-top: 1px solid var(--ut-line);
    border-radius: 0 0 6px 6px;
    color: var(--ut-danger);
}

/* Asosiy qism: hamma sahifalar uchun umumiy (Tailwind class'lari kerak emas) */
.ut-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}
/* Bosh sahifaning ichki konteyneri */
.ut-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb: inline elementlar, shuning uchun eski brauzerlarda ham ishlaydi */
.ut-crumb {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--ut-muted);
}
.ut-crumb li {
    display: inline;
}
.ut-crumb li + li::before {
    content: "→";
    margin: 0 8px;
}
.ut-crumb a:hover {
    color: var(--ut-accent-text);
}
.ut-crumb [aria-current] {
    color: var(--ut-text);
}

/* Sahifa sarlavhasi */
.ut-h1 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

/* Manbalar kartalari: tik (portret) shakl */
.ut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.ut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 300px;
    padding: 24px 14px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 10px;
    text-align: center;
}

.ut-card:hover {
    background: var(--ut-panel2);
    border-color: var(--ut-accent);
}

.ut-card h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.ut-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ut-pic {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    object-fit: contain;
}
.ut-card small {
    color: var(--ut-muted);
    font-size: 14px;
}
.ut-btn {
    min-height: 36px;
    padding: 6px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ut-accent);
    color: #111;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}
.ut-plus {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: var(--ut-muted);
}
.ut-plus svg {
    width: 56px;
    height: 56px;
}

/* Footer: standart, yumaloq panel */
.ut-foot {
    margin: 24px 8px 8px;
    padding: 16px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 10px;
    text-align: center;
    color: var(--ut-muted);
    font-size: 14px;
}

/* ===== Yordamchi class'lar ===== */
.ut-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ut-label {
    margin: 0 0 14px;
    font-size: 15px;
}
.ut-muted {
    color: var(--ut-muted);
}
.ut-narrow {
    max-width: 640px;
}

/* Aloqa */
.ut-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 10px;
}
.ut-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
}
.ut-row:hover {
    background: var(--ut-panel2);
}
.ut-row svg {
    width: 22px;
    height: 22px;
    color: var(--ut-accent-text);
}

/* Xato sahifalari */
.ut-center {
    text-align: center;
    padding: 48px 0;
}
.ut-center h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 12px;
}
.ut-code {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: var(--ut-accent-text);
}

/* ===== Variantlar sahifasi ===== */

/* Saralash tugmalari: barmoq bilan bosish uchun balandligi 44px */
.ut-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.ut-sort a {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ut-line);
    border-radius: 8px;
    background: var(--ut-panel2);
    color: var(--ut-muted);
    font-size: 13px;
    font-weight: 600;
}
.ut-sort a.ut-act {
    background: var(--ut-accent);
    border-color: var(--ut-accent);
    color: #000;
}

/* Variant kartasi (umumiy .ut-card ustiga) */
.ut-vcard {
    position: relative;
    gap: 8px;
}
.ut-vcard h2 {
    min-height: 0;
    display: block;
    font-size: 15px;
    font-weight: 600;
}
.ut-desc {
    margin: 0;
    color: var(--ut-muted);
    font-size: 13px;
}
.ut-info {
    width: 100%;
    margin-top: auto;
    padding-top: 4px;
    font-size: 13px;
    color: var(--ut-muted);
}
.ut-info div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
}
.ut-info b {
    font-weight: 400;
    color: var(--ut-text);
}
.ut-vcard .ut-btn {
    width: 100%;
    margin-top: 6px;
}

/* Holat belgisi: kartaning yuqori o'ng burchagida */
.ut-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ut-panel2);
    color: var(--ut-muted);
}
.ut-badge svg {
    width: 16px;
    height: 16px;
}

/* Xarid qilingan variant: yashil chegara va belgi */
.ut-bought {
    border-color: var(--ut-ok-line);
}
.ut-bought .ut-badge {
    color: var(--ut-ok);
}

/* Qulflangan variant: xiraroq, rasm oq-qora, hover o'zgarmaydi */
.ut-locked {
    opacity: 0.8;
}
.ut-locked .ut-pic {
    filter: grayscale(1);
}
.ut-locked .ut-btn {
    background: var(--ut-panel2);
    color: var(--ut-muted);
}
.ut-locked:hover {
    background: var(--ut-panel);
    border-color: var(--ut-line);
}

/* ===== Test sahifasi ===== */

/* Asosiy joylashuv: chapda savol, o'ngda yopishuvchi panel */
.ut-t-grid {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.ut-t-main {
    flex: 1;
    min-width: 0;
}
.ut-t-side {
    width: 256px;
    flex: none;
    position: -webkit-sticky;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
}
/* Faqat telefonda kerak bo'ladigan elementlar kompyuterda yashirin */
.ut-t-bar,
.ut-t-sh,
.ut-t-back {
    display: none;
}

/* Sarlavha bloki */
.ut-t-head {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-t-head h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ut-accent-text);
}
.ut-t-head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--ut-muted);
}

/* Savol bloki */
.ut-q {
    padding: 24px;
    margin-bottom: 16px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-qn {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ut-accent-text);
}
.ut-qtext {
    margin-bottom: 16px;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.ut-qtext img {
    max-width: 100%;
    height: auto;
}
.ut-qtext pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
.ut-qimg {
    display: block;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Javob variantlari */
.ut-opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ut-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    background: var(--ut-panel2);
    border-radius: 8px;
    cursor: pointer;
}
.ut-opt:hover {
    background: var(--ut-line);
}
.ut-opt input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ut-accent);
}
.ut-opt:has(input:checked) {
    outline: 2px solid var(--ut-accent);
}
.ut-opt-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ut-opt-body p {
    margin: 0;
}
.ut-opt-key {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ut-accent-text);
}
.ut-opt img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
}

/* Xatolik bildirish tugmasi */
.ut-rep-w {
    margin-top: 12px;
    text-align: right;
}
.ut-rep {
    min-height: 44px;
    padding: 0 14px;
    background: none;
    border: 1px solid var(--ut-line);
    border-radius: 8px;
    color: var(--ut-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* Oldingi / Keyingi */
.ut-t-foot {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.ut-tbtn {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    background: var(--ut-panel2);
    border: 0;
    border-radius: 10px;
    color: var(--ut-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ut-tbtn:hover {
    background: var(--ut-line);
}
.ut-tbtn.ut-pri {
    background: var(--ut-accent);
    color: #111;
}
.ut-tbtn.ut-pri:hover {
    background: #fbbf24;
}
.ut-tbtn:disabled {
    opacity: 0.4;
    cursor: default;
}
.ut-full {
    width: 100%;
}

/* O'ng panel bloklari */
.ut-box2 {
    padding: 16px;
    margin-bottom: 16px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-timer {
    text-align: center;
}
.ut-timer small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--ut-muted);
}
.ut-time {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ut-time.ut-warn {
    color: var(--ut-danger);
}
.ut-nav-t {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--ut-muted);
}
.ut-t-grp + .ut-t-grp {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ut-line);
}
.ut-pill {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 8px;
    background: var(--ut-line);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ut-muted);
}

/* Savol raqamlari */
.ut-sqs {
    display: grid;
    grid-template-columns: repeat(5, 36px);
    gap: 6px;
}
.ut-sq {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--ut-line);
    border: 2px solid transparent;
    border-radius: 4px;
    color: var(--ut-text);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.ut-sq-m {
    font-size: 11px;
}
.ut-sq-s {
    font-size: 9px;
}
.ut-sq:hover {
    background: var(--ut-accent);
    color: #000;
}
.ut-sq.ut-ans {
    background: var(--ut-accent);
    color: #000;
}
.ut-sq.ut-cur {
    border-color: var(--ut-accent);
}

/* Belgilar izohi */
.ut-legend {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ut-legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--ut-muted);
}
.ut-lg {
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}
.ut-lg-0 {
    background: var(--ut-line);
    border: 1px solid var(--ut-line2);
}
.ut-lg-1 {
    background: var(--ut-accent);
}
.ut-lg-2 {
    border: 2px solid var(--ut-accent);
}

/* Xatolik bildirish modali (maydonlar 16px: iPhone o'zi kattalashtirmasligi uchun) */
.ut-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding: 16px;
    align-items: center;
    justify-content: center;
    background: var(--ut-overlay);
}
.ut-mbox {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow: auto;
    padding: 24px;
    background: var(--ut-modal);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-mhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ut-mhead h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ut-accent-text);
}
.ut-x {
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--ut-muted);
    font-size: 20px;
    cursor: pointer;
}
.ut-fld {
    margin-bottom: 12px;
}
.ut-fld label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--ut-muted);
}
.ut-in {
    width: 100%;
    padding: 8px 12px;
    background: var(--ut-field);
    border: 1px solid var(--ut-line2);
    border-radius: 8px;
    color: var(--ut-text);
    font: inherit;
    font-size: 16px;
    outline: none;
}
textarea.ut-in {
    resize: none;
}
.ut-mbtns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.ut-ok {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--ut-ok-bg);
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--ut-ok);
}

/* ===== Savol va javoblardagi jadvallar ===== */
/* Jadval kenglikka sig'maganda o'z ichida aylanadi, matn esa avval o'raladi */
.ut-qtext table,
.ut-opt-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 15px;
}
/* Kataklar: chegara va ichki masofa */
.ut-qtext td,
.ut-qtext th,
.ut-opt-body td,
.ut-opt-body th {
    padding: 8px 12px;
    border: 1px solid var(--ut-line);
    text-align: left;
    vertical-align: top;
}
/* Sarlavha katagi (bo'lsa) */
.ut-qtext th,
.ut-opt-body th {
    background: var(--ut-panel2);
    font-weight: 600;
}
/* Katak ichidagi <p> ning chetki masofasi olinadi */
.ut-qtext td p,
.ut-qtext th p,
.ut-opt-body td p,
.ut-opt-body th p {
    margin: 0;
}
/* Javob ichidagi jadval ixchamroq */
.ut-opt-body table {
    margin: 4px 0;
    font-size: 14px;
}
.ut-opt-body td,
.ut-opt-body th {
    padding: 6px 10px;
}

/* ===== Natijalar sahifasi ===== */
.ut-r-wrap {
    max-width: 768px;
}

/* Natija bloki */
.ut-r-head {
    padding: 32px 24px;
    margin-bottom: 24px;
    text-align: center;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-r-head h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--ut-accent-text);
}
.ut-r-sub {
    margin: 0 0 24px;
    color: var(--ut-muted);
}
.ut-r-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ut-r-stat {
    padding: 16px 8px;
    background: var(--ut-panel2);
    border-radius: 10px;
}
.ut-r-stat small {
    display: block;
    font-size: 13px;
    color: var(--ut-muted);
}
.ut-r-stat b {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.2;
}
.ut-r-time {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-r-h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

/* Rang yordamchilari */
.ut-g {
    color: var(--ut-ok);
}
.ut-rd {
    color: var(--ut-danger);
}
.ut-am {
    color: var(--ut-accent-text);
}

/* Javob kartasi: to'g'ri bo'lsa yashil, xato bo'lsa qizil chegara */
.ut-r-card {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 12px;
}
.ut-r-ok {
    border-color: #16a34a;
}
.ut-r-bad {
    border-color: #dc2626;
}
.ut-r-row {
    margin-top: 12px;
    font-size: 14px;
}
.ut-r-lab {
    display: block;
    margin-bottom: 2px;
    color: var(--ut-muted);
}
/* Javob qiymati: .ut-qtext ning chetki masofasi va o'lchami bekor qilinadi */
.ut-rv {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.ut-rv td,
.ut-rv th {
    font-weight: 400;
}
.ut-rimg {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
    margin-top: 4px;
}

/* Video tushuntirish: 16:9 */
.ut-r-vid {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ut-line);
}
.ut-r-vid p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-vid {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.ut-vid iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Pastki tugmalar */
.ut-r-btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.ut-r-btns .ut-tbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== Login va register ===== */
.ut-auth {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
}
.ut-auth-card {
    padding: 32px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-auth-card h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--ut-accent-text);
}

/* Xato xabari */
.ut-err {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--ut-err-bg);
    border: 1px solid var(--ut-err-line);
    border-radius: 8px;
    color: var(--ut-err-text);
    font-size: 14px;
}
.ut-err p {
    margin: 0;
}
.ut-err p + p {
    margin-top: 4px;
}

/* Forma maydonlari: shrift 16px, iPhone sahifani o'zi kattalashtirmaydi */
.ut-fld2 {
    margin-bottom: 16px;
}
.ut-fld2 label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-fi {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--ut-panel2);
    border: 1px solid var(--ut-line);
    border-radius: 8px;
    color: var(--ut-text);
    font: inherit;
    font-size: 16px;
}
.ut-fi::placeholder {
    color: var(--ut-faint);
}
.ut-fi:focus {
    border-color: var(--ut-accent);
}

/* Forma ostidagi matn va havolalar */
.ut-auth-t {
    margin: 24px 0 0;
    text-align: center;
    color: var(--ut-muted);
}
.ut-auth-t.ut-sm {
    margin-top: 16px;
    font-size: 14px;
}
.ut-lnk {
    color: var(--ut-accent-text);
}
.ut-lnk:hover {
    text-decoration: underline;
}

/* Maydon ostidagi izoh */
.ut-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--ut-muted);
}

/* ===== Tariflar sahifasi ===== */
.ut-p-head {
    margin-bottom: 32px;
    text-align: center;
}
.ut-p-head h1 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
}
.ut-p-head p {
    margin: 0;
    font-size: 18px;
    color: var(--ut-muted);
}

/* Boshqa sahifadan kelgan xabar */
.ut-note {
    max-width: 672px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    background: var(--ut-warn-bg);
    border: 1px solid var(--ut-warn-line);
    border-radius: 10px;
    color: var(--ut-warn-text);
    font-size: 15px;
    text-align: center;
}

/* Joriy obuna bloki */
.ut-p-cur {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 672px;
    margin: 0 auto 32px;
    padding: 16px 24px;
    background: var(--ut-ok-bg);
    border: 1px solid var(--ut-ok-line);
    border-radius: 12px;
}
.ut-p-chk {
    font-size: 24px;
    color: var(--ut-ok);
}
.ut-p-curt {
    margin: 0;
    font-weight: 600;
    color: var(--ut-ok-soft);
}
.ut-p-curs {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--ut-ok);
}

/* Tarif kartalari: sig'sa yonma-yon, sig'masa pastga tushadi */
.ut-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.ut-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-plan:hover {
    border-color: var(--ut-faint);
}
.ut-plan-cur,
.ut-plan-cur:hover {
    border-color: var(--ut-accent);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.1);
}
.ut-p-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--ut-accent);
    border-radius: 999px;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ut-p-name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}
.ut-p-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ut-muted);
}

/* Narxlar */
.ut-p-price {
    margin-bottom: 24px;
}
.ut-p-big {
    font-size: 32px;
    font-weight: 700;
    color: var(--ut-accent-text);
}
.ut-p-unit {
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-p-yr {
    margin-top: 4px;
}
.ut-p-yv {
    font-size: 18px;
    font-weight: 600;
    color: var(--ut-strong);
}
.ut-p-save {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--ut-ok-bg);
    border-radius: 999px;
    color: var(--ut-ok);
    font-size: 12px;
}

/* Imkoniyatlar ro'yxati */
.ut-p-list {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.ut-p-list li {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    color: var(--ut-strong);
}
.ut-p-chk2 {
    flex: none;
    color: var(--ut-accent-text);
}

/* Tugmalar */
.ut-p-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.ut-p-go {
    background: var(--ut-accent);
    color: #111;
}
.ut-p-go:hover {
    background: #fbbf24;
}
.ut-p-off {
    background: var(--ut-line);
    color: var(--ut-muted);
    cursor: not-allowed;
}

.ut-p-help {
    margin: 48px 0 0;
    text-align: center;
    color: var(--ut-muted);
}

/* ===== To'lov oynasi (karta orqali) ===== */
.ut-pay-plan {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
}
.ut-per {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.ut-per label {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    background: var(--ut-line);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.ut-per label.ut-sel {
    border-color: var(--ut-accent);
    color: var(--ut-accent-text);
}
.ut-per input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ut-amt {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: var(--ut-accent-text);
}
.ut-steps {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-steps li {
    margin-bottom: 10px;
}
.ut-cardrow {
    display: flex;
    gap: 8px;
    margin: 8px 0 4px;
}
.ut-cardrow .ut-in {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.ut-copy {
    flex: none;
    min-height: 44px;
    padding: 0 14px;
    background: var(--ut-line);
    border: 0;
    border-radius: 8px;
    color: var(--ut-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.ut-holder {
    margin: 0;
    font-size: 13px;
}
a.ut-tbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ut-lim {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-lim b {
    color: var(--ut-text);
}

/* ===== Dashboard ===== */
.ut-d {
    max-width: 896px;
    margin: 0 auto;
}
.ut-bl {
    color: var(--ut-info);
}

/* Xush kelibsiz bloki */
.ut-d-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-d-top h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ut-accent-text);
    overflow-wrap: anywhere;
}
.ut-d-sub {
    margin: 0;
    color: var(--ut-muted);
}
.ut-d-plan {
    flex: none;
    text-align: right;
}
.ut-d-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    color: var(--ut-accent-text);
    font-size: 14px;
    font-weight: 600;
}
.ut-d-badge.ut-d-none {
    background: var(--ut-panel2);
    border-color: var(--ut-line);
    color: var(--ut-muted);
    font-weight: 400;
}
.ut-d-exp {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ut-faint);
}

/* Statistika kartochkalari */
.ut-d-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ut-d-stat {
    padding: 24px 12px;
    text-align: center;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-d-stat small {
    display: block;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-d-stat b {
    display: block;
    margin: 8px 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
}
.ut-d-stat span {
    font-size: 12px;
    color: var(--ut-faint);
}

/* Tezkor havolalar */
.ut-d-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.ut-d-link {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 12px 20px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-d-link:hover {
    border-color: var(--ut-accent);
}
.ut-d-link.ut-d-main {
    background: var(--ut-accent);
    border-color: var(--ut-accent);
    color: #111;
}
.ut-d-link.ut-d-main:hover {
    background: #fbbf24;
}
.ut-d-link.ut-d-wide {
    grid-column: 1/-1;
}
.ut-d-ic {
    flex: none;
    font-size: 28px;
    line-height: 1;
}
.ut-d-link b {
    display: block;
    font-size: 17px;
}
.ut-d-s {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--ut-muted);
}
.ut-d-main .ut-d-s {
    color: rgba(0, 0, 0, 0.7);
}

/* So'nggi natijalar */
.ut-d-res {
    padding: 24px;
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
}
.ut-d-res h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}
.ut-d-empty {
    padding: 40px 0;
    text-align: center;
}
.ut-d-empty p {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--ut-muted);
}
.ut-d-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ut-d-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ut-panel2);
    border-radius: 12px;
}
.ut-d-row:hover {
    background: var(--ut-line);
}
.ut-d-l {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.ut-d-pct {
    flex: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}
.ut-d-pass {
    background: var(--ut-ok-bg);
    color: var(--ut-ok);
}
.ut-d-fail {
    background: var(--ut-bad-bg);
    color: var(--ut-danger);
}
.ut-d-t {
    min-width: 0;
}
.ut-d-t b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ut-d-t span,
.ut-d-r span {
    display: block;
    font-size: 14px;
    color: var(--ut-muted);
}
.ut-d-r {
    flex: none;
    text-align: right;
}
.ut-d-r b {
    display: block;
}

/* ===== Profil sahifasi ===== */
.ut-pf {
    max-width: 672px;
    margin: 0 auto;
    padding: 32px 16px;
} /* o'ram: markazda, tor */
.ut-pf-h {
    font-size: 24px;
    font-weight: 700;
    color: var(--ut-text);
    margin: 0 0 24px;
} /* sahifa sarlavhasi */
.ut-pf-card {
    background: var(--ut-panel);
    border: 1px solid var(--ut-line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
} /* bo'lim kartasi */
.ut-pf-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ut-text);
    margin: 0 0 16px;
} /* bo'lim sarlavhasi */
.ut-pf-btn {
    margin-top: 8px;
} /* tugma tepa masofasi */
.ut-fh {
    font-size: 12px;
    color: var(--ut-faint);
    margin: 4px 0 0;
} /* maydon ostidagi izoh */
.ut-fe {
    font-size: 14px;
    color: var(--ut-danger);
    margin: 4px 0 0;
} /* maydon xatosi */
.ut-fi-bad {
    border-color: #ef4444;
} /* xato bo'lgan maydon chegarasi */
.ut-fi:disabled {
    color: var(--ut-faint);
    cursor: not-allowed;
    opacity: 1;
} /* o'chirilgan maydon */
.ut-ok {
    background: var(--ut-ok-bg);
    border: 1px solid var(--ut-ok-line);
    color: var(--ut-ok);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
} /* muvaffaqiyat xabari */

/* ===== Parolni ko'rsatish/yashirish ===== */
.ut-pw {
    position: relative;
} /* tugmani input ichiga joylash uchun o'ram */
.ut-pw .ut-fi {
    padding-right: 48px;
} /* matn tugma ostiga kirmasligi uchun joy */
.ut-pw-t {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--ut-muted);
    cursor: pointer;
    padding: 0;
} /* ko'z tugmasi: input o'ng chetida */
.ut-pw-t:hover {
    color: var(--ut-text);
} /* ustiga borganda yorqinroq */
.ut-pw-t:focus-visible {
    outline: 2px solid var(--ut-accent);
    outline-offset: -2px;
    border-radius: 8px;
} /* klaviatura fokusi */
.ut-pw-t .ut-eye-off {
    display: none;
} /* chizilgan ko'z boshida yashirin */
.ut-pw-t.ut-pw-on .ut-eye-on {
    display: none;
} /* parol ochiq: oddiy ko'zni yashiramiz */
.ut-pw-t.ut-pw-on .ut-eye-off {
    display: block;
} /* parol ochiq: chizilgan ko'zni ko'rsatamiz */

/* ===== Burger menyu: asosiy holat (desktopda yashirin) ===== */
.ut-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    justify-self: start;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--ut-text);
    cursor: pointer;
} /* burger tugmasi */
.ut-burger:hover {
    background: var(--ut-panel2);
} /* ustiga borganda fon */
.ut-burger:focus-visible,
.ut-dr-x:focus-visible,
.ut-theme:focus-visible {
    outline: 2px solid var(--ut-accent);
    outline-offset: -2px;
} /* klaviatura fokusi */
.ut-burger svg {
    width: 24px;
    height: 24px;
} /* burger ikonkasi */
.ut-dr,
.ut-dr-back {
    display: none;
} /* panel va orqa fon desktopda umuman yo'q */

/* ===== To'lov sahifasi va tarif tugmalari ===== */
.ut-pay {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
} /* To'lov sahifasi ustuni */
.ut-pay form {
    margin: 0;
} /* Formalar orasidagi ortiqcha bo'shliq yo'q */
.ut-pay-box {
    padding: 16px;
    border: 1px solid var(--ut-line);
    border-radius: 12px;
    text-align: center;
} /* Summa bloki */
.ut-pay-what {
    margin: 0 0 6px;
    font-weight: 600;
} /* Nima uchun to'lanyapti */
.ut-pay-code {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
} /* Izoh kodi */
.ut-p-acts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
} /* Tarif kartasidagi tugmalar */
.ut-p-acts form {
    margin: 0;
} /* Forma bo'shliqsiz */
.ut-p-warn {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ut-accent-text);
} /* Ogohlantirish matni */
.ut-st {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
} /* Holat belgisi */
.ut-st-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--ut-accent-text);
} /* Kutilmoqda */
.ut-st-approved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--ut-ok);
} /* Tasdiqlandi */
.ut-st-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--ut-danger);
} /* Rad etildi */
.ut-st-cancelled {
    background: rgba(148, 163, 184, 0.15);
    color: var(--ut-muted);
} /* Bekor qilindi */

/* ===== Foydali xizmatlar (/utilities) ===== */

/* Ranglar: umumiy mavzu o'zgaruvchilariga bog'langan (light/dark avtomatik) */
.ut-u {
    --u-card: var(--ut-u-card);
    --u-line: var(--ut-line);
    --u-text: var(--ut-text);
    --u-muted: var(--ut-muted);
    --u-amber: var(--ut-accent-text);
    --u-red: var(--ut-danger);
    --u-green: var(--ut-ok);
    --u-input: var(--ut-u-input);
}

/* Orqaga havola */
.ut-u-back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--u-muted);
    text-decoration: none;
    font-size: 14px;
}
.ut-u-back:hover {
    color: var(--u-amber);
} /* Ustiga borganda */

/* Xizmat kartalari to'ri */
.ut-u-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.ut-u-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--u-card);
    border: 1px solid var(--u-line);
    border-radius: 14px;
    text-decoration: none;
    transition:
        border-color 0.15s,
        transform 0.15s;
}
.ut-u-card:hover {
    border-color: var(--u-amber);
    transform: translateY(-2px);
} /* Ustiga borganda ko'tariladi */
.ut-u-ico {
    font-size: 32px;
    line-height: 1;
} /* Karta belgisi */
.ut-u-title {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--u-text);
} /* Karta nomi */
.ut-u-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--u-muted);
    flex: 1;
} /* Tavsif */
.ut-u-go {
    font-size: 14px;
    font-weight: 600;
    color: var(--u-amber);
} /* "Ochish" yozuvi */

/* Xizmat paneli */
.ut-u-panel {
    background: var(--u-card);
    border: 1px solid var(--u-line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.ut-u-h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--u-text);
}

/* Forma to'ri */
.ut-u-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.ut-u-wide {
    grid-column: 1 / -1;
} /* Butun qatorni egallaydi */
.ut-u-fld {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.ut-u-fld label,
.ut-u-fld legend {
    font-size: 13px;
    color: var(--u-muted);
    padding: 0;
}
.ut-u-in {
    width: 100%;
    padding: 11px 12px;
    font-size: 16px;
    color: var(--u-text);
    background: var(--u-input);
    border: 1px solid var(--u-line);
    border-radius: 10px;
    box-sizing: border-box;
} /* 16px: iOS yaqinlashtirmasligi uchun */
.ut-u-in:focus {
    outline: 2px solid var(--u-amber);
    outline-offset: 1px;
    border-color: transparent;
}
.ut-u-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Rejim tanlash (radio) */
.ut-u-radios {
    gap: 8px;
}
.ut-u-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--u-input);
    border: 1px solid var(--u-line);
    border-radius: 10px;
    cursor: pointer;
    color: var(--u-text);
    font-size: 15px;
}
.ut-u-radio input {
    margin-top: 3px;
    accent-color: var(--ut-accent);
}

/* Xato xabari */
.ut-u-err {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid var(--u-red);
    border-radius: 10px;
    color: var(--u-red);
    font-size: 14px;
}
.ut-u-err[hidden],
#bc-result[hidden],
#pp-result[hidden],
.ut-u-vals[hidden] {
    display: none;
} /* hidden atributi aniq ishlashi uchun */

/* Natija qatorlari */
.ut-u-vals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.ut-u-res {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    background: var(--u-input);
    border: 1px solid var(--u-line);
    border-radius: 10px;
}
.ut-u-res.is-main {
    border-color: var(--ut-accent);
} /* Asosiy natija */
.ut-u-k {
    flex: 0 0 auto;
    min-width: 90px;
    font-size: 13px;
    color: var(--u-muted);
}
.ut-u-v {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    color: var(--u-amber);
    word-break: break-all;
}

/* Yechim bosqichlari */
.ut-u-st-t {
    margin: 18px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--u-text);
}
.ut-u-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--u-muted);
}
.ut-u-steps li {
    word-break: break-word;
}

/* Izoh matni */
.ut-u-note {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--u-muted);
}
.ut-u-note.is-warn {
    color: var(--u-amber);
} /* Ogohlantirish */

/* Chop etish: nusxalanadigan ro'yxatlar */
.ut-u-list {
    margin-top: 18px;
}
.ut-u-code {
    margin: 8px 0 10px;
    padding: 12px 14px;
    max-height: 180px;
    overflow: auto;
    background: var(--u-input);
    border: 1px solid var(--u-line);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--u-text);
    word-break: break-word;
}

/* Jadval */
.ut-u-scroll {
    margin-top: 16px;
    overflow-x: auto;
}
.ut-u-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ut-u-tbl th {
    text-align: left;
    padding: 10px 12px;
    color: var(--u-muted);
    font-weight: 500;
    background: var(--u-input);
    white-space: nowrap;
}
.ut-u-tbl td {
    padding: 10px 12px;
    color: var(--u-text);
    border-top: 1px solid var(--u-line);
}

/* ===== Variant kartasidagi foydalanuvchining oxirgi natijasi ===== */
.ut-vres {
    /* Natija nishoni asosiy qutisi */
    display: inline-flex; /* Matnni bir qatorda joylashtiramiz */
    align-items: center; /* Vertikal markazlash */
    gap: 6px; /* Yozuv va foiz orasidagi masofa */
    margin-top: 10px; /* Yuqoridagi elementdan ajratish */
    padding: 4px 10px; /* Ichki bo'shliq */
    border-radius: 999px; /* Yumaloq (kapsula) shakl */
    border: 1px solid transparent; /* Rang berish uchun chegara (modifikatorda o'zgaradi) */
    font-size: 13px; /* Matn o'lchami */
    line-height: 1.3; /* Qator balandligi */
    white-space: nowrap; /* Matn yangi qatorga tushmasin */
}

.ut-vres__label {
    /* "Oxirgi natija:" yozuvi */
    opacity: 0.85; /* Foizdan biroz xiraroq */
}

.ut-vres__value {
    /* Foiz qiymati */
    font-weight: 700; /* Qalin shrift */
}

.ut-vres--low {
    /* 56% dan past: qizil */
    color: var(--ut-danger); /* Temaga mos qizil matn */
    background: rgba(239, 68, 68, 0.14); /* Shaffof qizil fon */
    border-color: rgba(239, 68, 68, 0.35); /* Qizil chegara */
}

.ut-vres--mid {
    /* 56% dan 85% gacha: sariq */
    color: var(--ut-mid); /* Temaga mos sariq matn */
    background: rgba(245, 158, 11, 0.14); /* Shaffof sariq fon */
    border-color: rgba(245, 158, 11, 0.35); /* Sariq chegara */
}

.ut-vres--high {
    /* 85% dan yuqori: yashil */
    color: var(--ut-ok); /* Temaga mos yashil matn */
    background: rgba(34, 197, 94, 0.14); /* Shaffof yashil fon */
    border-color: rgba(34, 197, 94, 0.35); /* Yashil chegara */
}

.ut-vres--none {
    /* Hali ishlanmagan variant: kulrang */
    color: var(--ut-muted); /* Kulrang matn */
    background: rgba(156, 163, 175, 0.1); /* Shaffof kulrang fon */
    border-color: rgba(156, 163, 175, 0.25); /* Kulrang chegara */
}

/* ===== Logo: temaga qarab ikki variantdan bittasi ko'rinadi ===== */
.ut-logo .ut-logo-d,
.ut-dr-top .ut-logo-d {
    display: none; /* yorug' rejimda qorong'u variant yashirin */
}
html[data-theme="dark"] .ut-logo .ut-logo-l,
html[data-theme="dark"] .ut-dr-top .ut-logo-l {
    display: none; /* qorong'u rejimda yorug' variant yashirin */
}
html[data-theme="dark"] .ut-logo .ut-logo-d,
html[data-theme="dark"] .ut-dr-top .ut-logo-d {
    display: block; /* qorong'u rejimda qorong'u variant ko'rinadi */
}
