@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f5f2; --surface: #ffffff; --surface-2: #f3efea; --line: #e8e2da; --line-2: #d6cec3;
  --ink: #11141b; --ink-2: #535b6b; --ink-3: #7a8294;
  --accent: #e8590c; --accent-ink: #ffffff; --accent-soft: #fdeee4;
  --ok: #15803d; --ok-bg: #e4f5ea; --warn: #b45309; --warn-bg: #fdf0d8; --bad: #b91c1c; --bad-bg: #fde8e8; --info: #1d4ed8; --info-bg: #e6edfd;
  --shadow: 0 1px 2px rgb(17 20 27 / .06), 0 8px 24px rgb(17 20 27 / .06);
  --r: 16px; --nav-h: 64px; --side-w: 232px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0e13; --surface: #14171e; --surface-2: #1a1e27; --line: #232835; --line-2: #343a4b;
  --ink: #f2f4f8; --ink-2: #a3abbb; --ink-3: #7c8496;
  --accent: #ff7a2e; --accent-ink: #1a0c02; --accent-soft: #2b1a0f;
  --ok: #4ade80; --ok-bg: #12301c; --warn: #fbbf24; --warn-bg: #33270b; --bad: #f87171; --bad-bg: #3a1616; --info: #7aa2ff; --info-bg: #15203d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0c0e13; --surface: #14171e; --surface-2: #1a1e27; --line: #232835; --line-2: #343a4b;
  --ink: #f2f4f8; --ink-2: #a3abbb; --ink-3: #7c8496;
  --accent: #ff7a2e; --accent-ink: #1a0c02; --accent-soft: #2b1a0f;
  --ok: #4ade80; --ok-bg: #12301c; --warn: #fbbf24; --warn-bg: #33270b; --bad: #f87171; --bad-bg: #3a1616; --info: #7aa2ff; --info-bg: #15203d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font: 15px/1.45 "Manrope", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hide { display: none !important; }

/* shell */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.nav a svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; text-align: center; }
.side .grow { flex: 1; }
.main { min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 40px; max-width: 1100px; width: 100%; }

.top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.top h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 800; }
.top .sub { color: var(--ink-3); font-size: 14px; }
.top .sp { flex: 1; }
.back { border: 0; background: var(--surface); border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* cards */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.card h2 .hint { font-weight: 600; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.stat .k { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat .s { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.stat.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stat.accent .k, .stat.accent .s { color: inherit; opacity: .85; }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 26px 2px 10px; }

/* list rows */
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; cursor: pointer; }
a.row:hover, .row.click:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.row .av { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: 0 0 42px; }
.row .mid { flex: 1; min-width: 0; }
.row .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .d { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: right; flex: 0 0 auto; display: grid; gap: 4px; justify-items: end; }
.row .price { font-weight: 800; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); } .b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); } .b-mute { background: var(--surface-2); color: var(--ink-2); }

/* forms */
.f { display: grid; gap: 12px; }
.f2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 800; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.dng { color: var(--bad); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.note { color: var(--ink-3); font-size: 13px; }

/* price breakdown */
.bd { display: grid; gap: 0; }
.bd div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bd div:last-child { border-bottom: 0; font-weight: 800; font-size: 17px; }
.bd span:last-child { font-weight: 800; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

/* leads */
.lead { display: grid; gap: 10px; }
.lead .h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lead .h .t { font-weight: 800; font-size: 16px; }
.lead .meta { color: var(--ink-2); font-size: 14px; }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(380px, 100%); padding: 26px; }
.login .brand { justify-content: center; padding-bottom: 20px; font-size: 22px; }
.err { color: var(--bad); font-weight: 700; font-size: 14px; }

/* sheet + toast */
dialog { margin: auto; border: 0; padding: 0; background: transparent; max-width: 100vw; }
dialog::backdrop { background: rgb(8 10 14 / .55); }
.sheet { width: min(480px, calc(100vw - 24px)); max-height: 92dvh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.sheet h2 { font-size: 18px; margin-bottom: 14px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* bottom nav on phones */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .top h1 { font-size: 22px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .f2 { grid-template-columns: 1fr; }
  .stat .v { font-size: 23px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 800; }
  .tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; text-align: center; }
  #toast { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
  .row { padding: 12px; gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* ===== Qayta ishlangan UI (2026-11-14) ===== */
:root { --accent-2: #ff9a4d; --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
body { -webkit-font-smoothing: antialiased; }
.btn svg, .icon-btn svg, .search svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn { transition: background .15s, filter .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.lg { min-height: 50px; font-size: 16px; }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 0; box-shadow: var(--focus); }
select.auto { width: auto; min-height: 44px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.only-m { display: none; }

/* yon panel */
.side { gap: 4px; }
.side-foot { display: flex; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.nav a { position: relative; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

/* sahifa boshi */
.top { gap: 14px; margin-bottom: 22px; }
.top .tt { min-width: 0; }
.top h1 { font-size: 28px; line-height: 1.15; }
.top .sub { margin-top: 2px; }
.top .sub a { color: var(--ink-2); }
.back { flex: 0 0 40px; }

/* avatar */
.av { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: 0 0 42px; }
.av.info, .row .av.info { background: var(--info-bg); color: var(--info); }
.av.ok, .row .av.ok { background: var(--ok-bg); color: var(--ok); }
.av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.av.lg { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 17px; }

/* bosh sahifa */
.hero-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; margin-bottom: 6px; }
.hero { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
:root[data-theme="dark"] .hero { color: #1a0c02; }
.hero .k { font-size: 13px; font-weight: 800; opacity: .9; }
.hero .big { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.hero .s { opacity: .85; font-weight: 600; font-size: 14px; }
.bar.on-accent { background: rgb(255 255 255 / .35); margin-top: 18px; }
.bar.on-accent i { background: #fff; }
.hero-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; opacity: .92; }
.stat { display: flex; flex-direction: column; }
.stat .k .hint { font-weight: 600; opacity: .8; }
.stat .v .unit { font-size: 16px; color: var(--ink-3); font-weight: 700; }
.stat .v.sm { font-size: 22px; }
.stat.warn { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.stat.warn .v { color: var(--bad); }
.stat.info .v { color: var(--info); }
a.stat.link { text-decoration: none; transition: border-color .15s, transform .15s; }
a.stat.link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.section-title .n, .chip .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; line-height: 19px; text-align: center; letter-spacing: 0; }
.row .price small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.row { transition: border-color .15s, box-shadow .15s; }
.empty { display: grid; gap: 4px; }
.empty b { color: var(--ink-2); }
.empty span { font-size: 13px; }

/* filtr va qidiruv */
.toolbar { margin-bottom: 12px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--surface-2); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-selected="true"] .n { background: rgb(255 255 255 / .2); color: inherit; }
:root[data-theme="dark"] .chip[aria-selected="true"] .n { background: rgb(0 0 0 / .15); }
.chips.tabs { border-bottom: 1px solid var(--line); gap: 4px; padding-bottom: 0; margin-bottom: 16px; }
.chips.tabs .chip { border: 0; border-radius: 10px 10px 0 0; background: transparent; border-bottom: 3px solid transparent; min-height: 44px; }
.chips.tabs .chip[aria-selected="true"] { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }

/* ariza kartasi */
.lead { gap: 12px; }
.lead .h { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.lead .h .mid { flex: 1; min-width: 0; }
.lead .h .t { font-size: 16px; font-weight: 800; }
.lead .h .d { color: var(--ink-3); font-size: 13px; }
.lead .h .end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.chips-line { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 13px; }
.chips-line b { color: var(--ink); font-weight: 700; }
.lead textarea { min-height: 64px; }

/* mijoz kartasi */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.summary .stat .bar { margin: 8px 0 4px; }
.summary .actions { justify-content: center; gap: 10px; background: transparent; border-style: dashed; box-shadow: none; }
.card.flat { box-shadow: none; }
.card.danger { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
[data-id] > .card + .card { margin-top: 14px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.policy h3 { font-size: 13px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.policy .bd div { font-size: 14px; padding: 8px 0; }
.policy .bd div:last-child { font-weight: 700; font-size: 14px; }
.policy .note { margin-top: 10px; }
.adv { margin-top: 14px; }
.adv summary { cursor: pointer; font-weight: 800; color: var(--ink-2); }
.adv textarea { min-height: 340px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* kirish */
.login { background: radial-gradient(600px 360px at 50% 0, var(--accent-soft), transparent 70%); }
.login .brand { flex-direction: column; text-align: center; gap: 8px; padding-bottom: 8px; }
.login .brand small { font-size: 12px; }

dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.sheet h2 { font-size: 20px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-column: 1 / -1; }
  .g3 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .only-m { display: grid; }
  .top h1 { font-size: 23px; }
  .top { gap: 10px; margin-bottom: 16px; }
  .top > .btn span { display: none; }
  .top > .btn { padding: 0 14px; }
  .summary { gap: 10px; }
  .summary .actions { grid-column: 1 / -1; flex-direction: row; padding: 10px; }
  .summary .actions .btn { flex: 1; }
  .lead .h { flex-wrap: wrap; }
  .lead .h .end { justify-items: start; text-align: left; flex-basis: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .btns .btn.pri, .btns select.auto { flex: 1 1 100%; }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .hero .big { font-size: 34px; }
}
.list { grid-template-columns: minmax(0, 1fr); }
.grid > *, .cols > *, .summary > * { min-width: 0; }
@media (max-width: 860px) { .hero-grid > a.stat { grid-column: 1 / -1; } .main { overflow-x: clip; } }
