/* Dostavka: ommaviy yuborish sahifasi — delivery.css (dl-card, seg, dl-kind, dl-cta, ranglar --dl-*) ustiga; yangi rang/shrift yo'q.
   Qadam raqami — Dostavka sariq doirasi; kartalar orasidagi masofa va burchaklar mijoz sahifasi bilan bir xil. */
body.dl.dom { min-height: 100vh; background: var(--dl-page); }
.dom-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--mbx-sa-top,env(safe-area-inset-top,0px))) 16px 10px; background: var(--dl-page); }
.dom-top .dl-back { position: static; }
.dom-top .dl-head.dl-pill { position: static; transform: none; max-width: calc(100% - 110px); }
.dom-top .dl-pill h1 { white-space: normal; line-height: 1.15; overflow: visible; } /* katta shriftda ham nom kesilmaydi — ikki qatorga o'tadi */
.dom-main { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; padding: 4px 16px calc(220px + var(--mbx-sa-bottom,env(safe-area-inset-bottom,0px))); } /* pastdagi qotirilgan panel (xabar + jarayon + tugma) oxirgi kartani yopmasin */
.dom-lead { margin: 0 2px; font-size: 14px; line-height: 1.45; }
.dom-step { display: grid; gap: 10px; }
/* Katta shriftda maydonlarning tabiiy (min-content) kengligi ustunni ekrandan chiqarmasin (2026-11-17 audit: 402 px > 390 px) */
.dom-main, .dom-step { grid-template-columns: minmax(0, 1fr); }
.dom-main :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.dom-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.dom-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dl-yellow); color: #0b0b0c; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dom-n.sm { width: 26px; height: 26px; font-size: 13px; }
.dom-n.ok { background: #1a9d4a; color: #fff; }
.dom-sub { margin: 2px 2px 0; font-size: 13px; font-weight: 600; color: var(--dl-soft); }
.dom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dom-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1px solid var(--dl-line); border-radius: 14px; background: var(--dl-card); color: inherit; font: inherit; font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; }
.dom-btn svg { flex: none; width: 20px; height: 20px; }
.dom-file { position: relative; overflow: hidden; } .dom-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dom-btn:focus-visible, .dom-file:focus-within { outline: 3px solid var(--dl-orange); outline-offset: 2px; }
.dom-paste { border: 1px solid var(--dl-line); border-radius: 14px; } .dom-paste > summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.dom-paste textarea { display: block; width: calc(100% - 24px); margin: 0 12px 10px; min-height: 110px; padding: 10px; border: 1px solid var(--dl-line); border-radius: 12px; background: var(--dl-field); color: inherit; font: 14px/1.4 ui-monospace, "SF Mono", Consolas, monospace; resize: vertical; box-sizing: border-box; }
.dom-paste .dom-btn { margin: 0 12px 12px; }
body.dl .dom-vehs.dl-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dom-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dom-stat { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 14px; background: var(--dl-field); }
.dom-stat b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; } .dom-stat small { font-size: 12px; color: var(--dl-soft); font-weight: 600; }
.dom-routes { display: grid; gap: 8px; }
.dom-route { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--dl-line); border-radius: 14px; background: var(--dl-card); }
.dom-route.bad { border-color: #dc2626; }
.dom-route-h { display: flex; align-items: center; gap: 8px; } .dom-route-h b { flex: 1 1 auto; font-size: 15px; }
.dom-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dom-facts { margin: 0; font-size: 14px; color: var(--dl-soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dom-addr { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.dom-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dy-pill.bad { background: #dc262618; color: #b91c1c; }
.dom-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7cc; color: #0b0b0c; font-weight: 700; font-size: 14px; }
.dom-errors { display: grid; gap: 8px; }
.dom-errlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
.dom-errlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border-radius: 10px; background: var(--dl-field); font-size: 13px; }
.dom-errlist li b { color: #b91c1c; } .dom-errlist li span { flex: 1 1 160px; }
.dom-mini { min-height: 34px; padding: 0 12px; border: 1px solid var(--dl-line); border-radius: 10px; background: var(--dl-card); color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dom-pay { margin: 0; padding: 10px 12px; border-radius: 12px; background: #ff7a0018; color: var(--o-text, #b24e00); font-size: 14px; font-weight: 700; line-height: 1.35; }
.dom-err { margin: 0; color: #b91c1c; font-size: 14px; }
.dom-link { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; font-weight: 800; color: inherit; }
.dom-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; display: grid; gap: 8px; max-width: 640px; margin: 0 auto; padding: 10px 16px calc(12px + var(--mbx-sa-bottom,env(safe-area-inset-bottom,0px))); background: var(--dl-page); box-shadow: 0 -8px 24px #0000001a; }
.dom-prog { height: 6px; border-radius: 3px; background: var(--dl-line); overflow: hidden; } .dom-prog i { display: block; width: 0; height: 100%; background: var(--dl-yellow); transition: width .3s; }
:where(:root[data-theme="dark"]) .dom-warn { background: #3a3200; color: #fff; }
:where(:root[data-theme="dark"]) .dom-pay { color: #ffb066; background: #ff7a0022; }
:where(:root[data-theme="dark"]) .dom-errlist li b, :where(:root[data-theme="dark"]) .dom-err { color: #fca5a5; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme])) .dom-warn { background: #3a3200; color: #fff; } :where(:root:not([data-theme])) .dom-pay { color: #ffb066; } }
@media (max-width: 360px) { .dom-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dom-actions { grid-template-columns: 1fr; } }
.dom-bar[hidden] { display: none; }
.dom-donemsg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #1a9d4a1f; color: #12813b; font-weight: 700; font-size: 14px; }
.dom-donemsg.err { background: #dc262618; color: #b91c1c; }
:where(:root[data-theme="dark"]) .dom-donemsg { background: #1a9d4a33; color: #6fe09a; }
.dom-geo { width: 100%; }
.dom-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--dl-field); font-size: 14px; font-weight: 600; }
.dom-errlist li b.ok { color: #12813b; }
:where(:root[data-theme="dark"]) .dom-errlist li b.ok { color: #6fe09a; }
/* 4-bosqich (2026-11-15): yo'nalish (tarqatish / yig'ish) va mijoz narx taklifi — mavjud seg, dl-det-note, dom-* uslubida */
body.dl .dom-dir.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dom-dir.seg button { min-height: 52px; }
.dom-offer { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--dl-line); border-radius: 14px; background: var(--dl-card); }
.dom-offer .dom-sub { margin-top: 0; }
.dom-offer-rec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--dl-soft); }
.dom-offer-rec b { font-size: 18px; font-weight: 800; color: var(--dl-black); font-variant-numeric: tabular-nums; }
body.dl .dom-offer-chips.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dom-offer-chips.seg button { min-height: 48px; font-variant-numeric: tabular-nums; }
body.dl input.dom-offer-in { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 56px; }
.dom-offer-hint { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--dl-field); font-size: 13px; font-weight: 700; line-height: 1.35; }
.dom-offer-hint.ok { background: #1a9d4a1f; color: #12813b; }
.dom-offer-hint.warn { background: #ff7a0018; color: var(--o-text, #b24e00); }
.dom-offer-hint.bad { background: #dc262618; color: #b91c1c; }
.dom-raise { justify-self: start; min-height: 44px; border-color: var(--dl-orange); }
:where(:root[data-theme="dark"]) .dom-offer-rec b { color: #fff; }
:where(:root[data-theme="dark"]) .dom-offer-hint.ok { background: #1a9d4a33; color: #6fe09a; }
:where(:root[data-theme="dark"]) .dom-offer-hint.warn { background: #ff7a0022; color: #ffb066; }
:where(:root[data-theme="dark"]) .dom-offer-hint.bad { color: #fca5a5; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme])) .dom-offer-rec b { color: #fff; } :where(:root:not([data-theme])) .dom-offer-hint.ok { background: #1a9d4a33; color: #6fe09a; } :where(:root:not([data-theme])) .dom-offer-hint.warn { color: #ffb066; } }
@media (max-width: 360px) { body.dl .dom-offer-chips.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Yuk haqida: surat/video, o'lcham, belgilar */
.dom-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.dom-media:empty { display: none; }
.dom-shot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--dl-field); display: grid; place-items: center; }
.dom-shot.bad { outline: 2px solid #dc2626; }
.dom-shot img { width: 100%; height: 100%; object-fit: cover; }
.dom-shot-ic { font-size: 30px; }
.dom-shot-st { position: absolute; inset-inline-start: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: #0b0b0ccc; color: #fff; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-shot-x { position: absolute; inset-inline-end: 4px; top: 4px; width: 32px; height: 32px; min-height: 32px !important; min-width: 32px !important; border: 0; border-radius: 50%; background: #0b0b0ccc; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.dom-shot-x::after { content: ""; position: absolute; inset: -6px; }
body.dl textarea.dom-note-in { min-height: 84px; resize: vertical; font: inherit; line-height: 1.4; }
.dom-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dom-dims label { display: grid; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--dl-soft); }
body.dl .dom-dims input { text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dom-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.dom-flag { min-height: 44px; padding: 0 14px; border: 1px solid var(--dl-line); border-radius: 999px; background: var(--dl-card); color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dom-flag[aria-pressed="true"] { background: var(--dl-black); border-color: var(--dl-black); color: var(--dl-yellow); }
:where(:root[data-theme="dark"]) .dom-flag[aria-pressed="true"] { background: var(--dl-yellow); border-color: var(--dl-yellow); color: #0b0b0c; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme])) .dom-flag[aria-pressed="true"] { background: var(--dl-yellow); border-color: var(--dl-yellow); color: #0b0b0c; } }
/* Qorong'i mavzu: delivery.css dagi .dl-det-note foni var(--surface, #fff) — bu token aniqlanmagan, matn esa oq (inherit) → oq ustida oq.
   Ommaviy sahifada maydonlar Dostavka maydon rangida (--dl-field). */
:where(:root[data-theme="dark"]) body.dl.dom .dl-det-note { background: var(--dl-field); border-color: var(--dl-line); color: #fff; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme])) body.dl.dom .dl-det-note { background: #1b1c20; border-color: #26272b; color: #fff; } }
body.dl .dom-offer-chips.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2×2: uzun tarjimalar ("Рекомендуемая") ham sig'adi */

/* KOP-MANZIL-1 */
/* Ommaviy sahifa: manzilni qo'lda qo'shish va «Kuryerlar soni» (2026-11-19). Faqat yangi sinflar; 360 px da toshmaydi; bosish maydoni >= 44 px. */
.dom-manual { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--mut, #6b7280) 25%, transparent); min-width: 0; }
.dom-manual-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.dom-manual-row input { min-width: 0; width: 100%; }
.dom-manlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dom-manlist li { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--card, #f3f4f6); }
.dom-man-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.dom-man-t b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dom-man-t small { color: var(--mut, #6b7280); font-size: 13px; overflow-wrap: anywhere; }
.dom-man-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.dom-couriers { flex-wrap: wrap; }
.dom-couriers button { min-width: 44px; }

#routeSize[hidden], #perRouteL[hidden], #manList[hidden] { display: none; }
/* 2026-11-19 ekran tartibi: 360 px da sozlamalar (⚙) tugmasi 2 px sig'may ikkinchi qatorga tushardi (orqaga 48 + sarlavha + ⚙ 44 + oraliqlar).
   Sarlavha qisqaradi (ikki qatorga o'tadi), ⚙ doim birinchi qatorda, oxirida; pozivnoy — alohida to'liq qatorda. */
.dom-top { flex-wrap: wrap; }
.dom-top .dl-head.dl-pill { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 124px); }
.dom-top > .qs, .dom-top > [data-quick-settings] { order: 2; flex: none; margin-inline-start: auto; }
.dom-top > [data-pozivnoy-slot] { order: 3; flex: 1 1 100%; }
/* Pastdagi qotirilgan panel oxirgi qatorni yopardi: yuqoridagi .dom-main 220 px zaxirasi delivery.css dagi `body.dl #app.dl-main`
   (kuchliroq tanlovchi, 32 px) ostida qolib ishlamasdi — oxirgi belgilar («Katta gabarit») panel ostida qolib, bosib bo'lmasdi. */
body.dl.dom #app.dom-main { padding-bottom: calc(220px + var(--mbx-sa-bottom, env(safe-area-inset-bottom, 0px))); }
body.dl.dom.ye #app.dom-main { padding-bottom: calc(150px + var(--mbx-sa-bottom, env(safe-area-inset-bottom, 0px))); }
