/* Texnoservis — dizayn tizimi «Texnoservis Mobile & ERP» (2026-10-06, Stitch dizayni asosida):
   zumrad yashil aksent, slate neytrallar, Plus Jakarta Sans sarlavhalar + Inter matn. */
@import url('/fonts/fonts.css');

:root {
  --bg: #f8fafc;          /* Canvas */
  --panel: #ffffff;       /* Kartalar */
  --panel-soft: #f1f5f9;  /* Guruhlangan ro'yxat, segment fon */
  --ink: #0f172a;         /* Asosiy matn */
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;        /* 1px chegaralar */
  --line-strong: #cbd5e1; /* Kiritish maydoni chegarasi */

  /* Zumrad: 600 — asosiy tugma (#0D7A5F), 800 — chuqur (#065F46), 500 — yalpiz (#10B981) */
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #0a6b53;
  --green-600: #0d7a5f;
  --green-500: #10b981;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --grad-from: #0d7a5f; /* qoramtir kartalar gradiyenti boshi (ilova rangi bilan almashadi) */

  --amber-ink: #b45309; --amber-bg: #fffbeb; --amber-line: #fde68a;
  --red-ink: #b91c1c;   --red-bg: #fef2f2;   --red-line: #fee2e2;
  --blue-ink: #1d4ed8;  --blue-bg: #eff6ff;  --blue-line: #dbeafe;
  --grey-ink: #475569;  --grey-bg: #f1f5f9;

  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-lg: 16px;  /* kartalar, panellar */
  --r: 14px;
  --r-sm: 10px;  /* tugma va maydonlar */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .03);            /* 1-qavat */
  --shadow: 0 4px 6px -1px rgba(6, 95, 70, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);       /* 2-qavat */
  --shadow-lg: 0 20px 25px -5px rgba(6, 95, 70, .1), 0 8px 10px -6px rgba(15, 23, 42, .05);  /* 3-qavat */
  --glow: 0 10px 15px -3px rgba(13, 122, 95, .25);                                          /* 4-qavat: asosiy CTA */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .stat-value, .logo-text, .page-head h1 { font-family: var(--font-head); }
.num, td.num, .stat-value, .amount-box .big { font-variant-numeric: tabular-nums; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 20px; height: 20px; flex: none; }

/* ---------- Qobiq ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 252px; flex: none; background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
  /* Menyu ekrandan uzun bo'lsa ham panel o'sib ketmaydi: ichida aylanadi.
     Aks holda butun sahifa cho'ziladi va yon panel kontent ustiga chiqib qoladi. */
  overflow: hidden;
}

.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-900); color: var(--on-accent, var(--panel)); font-size: 16px;
}
.logo-text { font-weight: 700; font-size: 16px; letter-spacing: -.01em; display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-weight: 600; font-size: 10px; color: var(--muted); letter-spacing: .08em; }

/* Logo va foydalanuvchi qutisi joyida qoladi, faqat menyu aylanadi.
   `min-height: 0` shart — busiz flex bola o'z kontentidan kichrayolmaydi. */
.sidebar nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin-right: -6px; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.nav-label {
  margin: 14px 10px 4px; font-size: 10px; letter-spacing: .12em;
  color: var(--muted); font-weight: 700;
}
/* Doska CRM (2026-11-03): panel, filtr, chaqiruv kartasi, karta drawer */
.crm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 10px 0; }
.crm-panel { flex: 1 1 100%; }
.crm-panel > summary { list-style: none; display: inline-flex; cursor: pointer; }
.crm-panel > summary::-webkit-details-marker { display: none; }
.crm-create { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.crm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-filters .chip { cursor: pointer; border: 0; font: inherit; }
.tile-waiting { border-color: var(--amber-500, var(--line)); }
.tile-call { border-style: dashed; cursor: default; }
.tile-actions { gap: 6px; margin-top: 6px; }
.tile-actions form { margin: 0; }
.karta-drawer { position: fixed; inset: 0; background: rgba(15, 53, 39, .35); z-index: 60; display: flex; justify-content: flex-end; }
.karta-drawer[hidden] { display: none; }
.karta-sheet { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--panel); color: var(--ink); padding: 16px; box-shadow: var(--shadow-sm); }
.karta-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.karta-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.karta-sec h4 { margin: 0 0 6px; font-size: 14px; }
.karta-warn { border: 1px solid var(--amber-500, var(--line)); border-radius: var(--r); padding: 10px; margin-bottom: 8px; }
.karta-timeline, .karta-msgs { list-style: none; padding: 0; margin: 0; }
.karta-timeline li { padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.karta-timeline li.is-master b { color: var(--green-700); }
.karta-msgs li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
body.karta-open { overflow: hidden; }

/* Yumshoq o'tish (#80, nav.js): tepadagi yuklanish chizig'i — faqat tokenlar */
.tx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--green-500); z-index: 9999;
  opacity: 0; transition: width .35s ease, opacity .3s; pointer-events: none; }
.tx-progress.on { opacity: 1; width: 72%; }
.tx-progress.on.done { width: 100%; opacity: 0; transition: width .15s ease, opacity .4s .15s; }
.tx-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px);
  padding: 10px 16px; border-radius: var(--r); background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 14px; z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.tx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.tx-toast.ok { border-color: var(--green-100); background: var(--green-50); color: var(--green-800); }
.tx-toast.error { border-color: var(--red-line); background: var(--red-bg); color: var(--red-ink); }
body.app .tx-toast { bottom: 84px; }

/* Moliya hisoboti (#73): qator = details, bosilsa yozuvlar */
.rep-bar { align-items: end; gap: 8px; margin-bottom: 10px; }
.ustalar-tabs { margin-bottom: 12px; }
.rep-line { border-bottom: 1px solid var(--line); padding: 6px 0; }
.rep-line > summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.rep-line > summary::-webkit-details-marker { display: none; }
.rep-line > summary > span { flex: 1; text-align: left; }
.rep-line > summary::before { content: '▸ '; color: var(--muted); }
.rep-line[open] > summary::before { content: '▾ '; }
.rep-sub { margin: 4px 0 6px 18px; padding: 0; }
.bad { color: var(--red-600, var(--ink)); font-weight: 700; }

/* Operator kunlik menyusi: qolgan bo'limlar yig'ilgan (layout.js navFor, 2026-11-02) */
.nav-more > summary { cursor: pointer; list-style: none; user-select: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' ▾'; }
.nav-more[open] > summary::after { content: ' ▴'; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 12px; color: var(--ink-soft); font-weight: 500;
}
.nav-item:hover { background: var(--panel-soft); text-decoration: none; color: var(--ink); }
.nav-item.on { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.nav-icon { display: grid; place-items: center; color: inherit; opacity: .9; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-card {
  background: linear-gradient(160deg, #18523a, var(--green-900));
  color: #fff; border-radius: var(--r); padding: 15px;
}
.side-card-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.side-card-text { margin: 0; font-size: 12px; line-height: 1.5; color: #cfe6d9; }

.side-user {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 14px;
}
.side-user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-user-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info small { color: var(--muted); font-size: 11px; }
.icon-btn {
  margin-left: auto; color: var(--muted); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
}
.icon-btn:hover { background: var(--panel-soft); color: var(--red-ink); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-head {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px 6px;
}
.page-head h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.head-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* Sarlavhadagi holat belgilari tugma bilan bir o'lchamda: bir qator — bir marom. */
.head-right .chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px;
}
.head-right .chip.tone-green { border-color: var(--green-200); }
.head-right .chip.tone-blue { border-color: #bfdbfe; }
.head-right .chip.tone-amber { border-color: #fde68a; }
.head-right .chip.tone-grey { background: var(--panel); }
.head-right a.chip { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.head-right a.chip:hover { text-decoration: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.head-right .btn, .head-right button { min-height: 40px; padding-top: 0; padding-bottom: 0; font-size: 13px; }

main { padding: 16px 28px 28px; }

/* ---------- Kartalar ---------- */

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }

.field {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.field:last-child { border-bottom: 0; }
.field span { color: var(--muted); }
.field strong { font-weight: 600; text-align: right; }

/* ---------- Statistika kartalari ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
/* Ko'p karta bo'lganda qatorga 3 tadan joylash chiroyliroq ko'rinadi */
.stats.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.stat-icon.sm { width: 30px; height: 30px; border-radius: 10px; }
.stat-icon.sm svg { width: 16px; height: 16px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.stat-unit { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

.stat-dark {
  background: linear-gradient(155deg, var(--grad-from), var(--green-900));
  border-color: transparent; color: #fff;
}
.stat-dark .stat-icon { background: rgba(255,255,255,.14); color: #fff; }
.stat-dark .stat-label, .stat-dark .stat-unit { color: #b7d8c6; }

.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge.good { background: var(--green-50); color: var(--green-800); }
.badge.warn { background: var(--amber-bg); color: var(--amber-ink); }
.badge.bad  { background: var(--red-bg);   color: var(--red-ink); }
.stat-dark .badge.good { background: rgba(255,255,255,.16); color: #d8f3e4; }

/* ---------- Chiplar ---------- */

.chip {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.tone-green { background: var(--green-50); color: var(--green-800); }
.tone-amber { background: var(--amber-bg);  color: var(--amber-ink); }
.tone-red   { background: var(--red-bg);    color: var(--red-ink); }
.tone-blue  { background: var(--blue-bg);   color: var(--blue-ink); }
.tone-grey  { background: var(--grey-bg);   color: var(--grey-ink); }
.tone-soft  { background: var(--panel-soft); color: var(--ink-soft); border: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Doska ---------- */

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.col {
  min-width: 240px; flex: 1 0 240px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px; box-shadow: var(--shadow-sm);
}
.col h3 {
  font-size: 12px; font-weight: 700; color: var(--ink-soft); margin: 2px 2px 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.col h3 span {
  background: var(--panel-soft); color: var(--muted); border-radius: 999px;
  padding: 2px 8px; font-size: 11px;
}
.tile {
  display: block; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px; margin-bottom: 9px; background: var(--panel); color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--green-500); transform: translateY(-1px); text-decoration: none; }
.tile b { display: block; font-size: 13px; font-weight: 650; margin-bottom: 3px; }
.tile small { color: var(--muted); font-size: 12px; display: block; }
.tile .tile-sum { color: var(--green-700); font-weight: 600; }
.tile .tile-wait { color: var(--amber-ink); font-weight: 600; }
.tile .tile-note { color: var(--green-700); font-weight: 600; }
.karta-notes { background: var(--panel-soft); border-radius: var(--r); padding: 8px; }
.karta-msgs li.is-mine { opacity: .85; }

/* --- Doskada sudrab ko'chirish ------------------------------------------ */
/* Kartani sudrash — qulaylik. JS o'chsa ham doska avvalgidek ko'rinadi. */
.col { display: flex; flex-direction: column; }
.col-body { flex: 1 1 auto; min-height: 48px; }
.tile-drag { cursor: grab; }
.tile-drag:active { cursor: grabbing; }
.tile.is-dragging { opacity: .4; }
/* Sudrash boshlanganda qaysi bo'limga qo'yish mumkinligi ko'rinib turadi. */
.board-dragging .col-drop { border-style: dashed; border-color: var(--green-500); }
.board-dragging .col:not(.col-drop) { opacity: .55; }
.col-drop.is-over {
  border-color: var(--green-600); background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px var(--green-500);
}
/* Qulf belgisi — bu bo'limga doskadan ko'chirib bo'lmaydi (sababi title da). */
.col h3 .col-lock { background: none; padding: 0; font-size: 11px; opacity: .5; margin-right: auto; }
.board-hint { margin: 0 0 10px; }
.board-hint kbd {
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 5px; font-size: 11px; font-family: inherit;
}
/* Yopiq <dialog> hech qachon sahifada ko'rinmasin. Brauzerning o'z qoidasi shu,
   lekin `display` beradigan har qanday klass (masalan `.pick`) uni bekor qiladi —
   shuning uchun buni aniq yozib qo'yamiz. */
dialog:not([open]) { display: none; }

/* Usta tanlash oynasi. Klass nomi `master-pick` — `.pick` allaqachon boshqa
   joyda (tanlov yorlig'i) ishlatiladi va u `display:flex` beradi; o'sha nomni
   olsak, yopiq <dialog> ham sahifada ko'rinib qolardi. */
dialog.master-pick {
  margin: auto;                       /* ekran o'rtasida tursin */
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  min-width: 320px; max-width: 420px; background: var(--panel); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
dialog.master-pick:not([open]) { display: none; }
dialog.master-pick h3 { margin: 0 0 6px; font-size: 15px; }
dialog.master-pick::backdrop { background: rgba(15, 53, 39, .35); }


/* ---------- Jadval ---------- */

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 10px; vertical-align: middle; }
th {
  color: var(--muted); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: var(--green-50); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td small { color: var(--muted); font-size: 12px; }

/* ---------- Formalar ---------- */

label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 5px; font-weight: 500; }
input[type=text], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-600); background: var(--panel);
  box-shadow: 0 0 0 3px rgba(13, 122, 95, .12);
}
textarea { min-height: 78px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .row { grid-template-columns: 1fr; } }

button, .btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 10px 16px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--green-600); color: var(--on-accent, var(--panel)); font: inherit; font-weight: 600;
  transition: background .15s, transform .1s;
}
button:hover, .btn:hover { background: var(--green-800); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button.sec, .btn.sec { background: var(--panel-soft); color: var(--green-700); border: 1px solid var(--line); }
button.sec:hover, .btn.sec:hover { background: var(--panel-soft); border-color: var(--line-strong); }
button.danger, .btn.danger { background: var(--red-bg); color: #dc2626; border: 1px solid var(--red-line); }
button.danger:hover, .btn.danger:hover { background: #dc2626; color: #fff; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
form.inline { display: inline; }

/* ---------- Kutish holati, fayllar (B3) ---------- */

.card.waiting { background: var(--amber-bg); border-color: #fde68a; }
.waiting-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.waiting-head .stat-icon { background: var(--amber-bg); color: var(--amber-ink); }
.waiting-head strong { font-size: 14px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.thumb {
  margin: 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--panel-soft);
}
.thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
.thumb figcaption { padding: 9px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.thumb figcaption small { color: var(--muted); font-size: 11px; }

input[type=file], input[type=datetime-local], input[type=date], input[type=password] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font: inherit;
}
input[type=file]::file-selector-button {
  border: 0; background: var(--green-100); color: var(--green-800);
  padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 600;
  margin-right: 10px; cursor: pointer;
}

.visit-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.visit-row:last-child { border-bottom: 0; }
.visit-time {
  min-width: 58px; font-weight: 700; font-size: 13px; color: var(--green-800);
  background: var(--green-50); border-radius: 9px; padding: 6px 8px; text-align: center;
}
.visit-main { min-width: 0; }
.visit-main strong { display: block; font-size: 13.5px; }
.visit-main small { color: var(--muted); font-size: 12px; }
.visit-row .btn, .visit-row form { margin-left: auto; }

/* ---------- Nomzodlar va takliflar (B4) ---------- */

.cand {
  display: flex; gap: 11px; align-items: flex-start; margin: 8px 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--panel);
}
.cand:hover { border-color: var(--green-500); }
.cand input { width: auto; margin-top: 3px; }
.cand-off { opacity: .6; background: var(--panel-soft); cursor: not-allowed; }
.cand-off:hover { border-color: var(--line); }
.cand-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cand-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cand-meta { color: var(--muted); font-size: 12.5px; }
.cand-why { color: var(--green-700); font-size: 12px; }
.cand-warn { color: var(--amber-ink); font-size: 12px; }
.cand-block { color: var(--red-ink); font-size: 12px; }

.offer { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.offer-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.offer-body { margin: 0 0 10px; font-size: 13.5px; }
.offer-body small { color: var(--muted); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 11px; font-size: 13px; color: var(--ink); cursor: pointer;
}
.pick input { width: auto; }
.pick:hover { border-color: var(--green-500); }

/* ---------- Kunlik taqvim ---------- */

.cal { overflow-x: auto; }
.cal-head, .cal-row { display: flex; align-items: stretch; min-width: 760px; }
.cal-row { border-top: 1px solid var(--line); }
.cal-name {
  width: 190px; flex: none; display: flex; align-items: center; gap: 9px;
  padding: 10px 12px 10px 0; font-size: 13px;
}
.cal-name strong { font-size: 13px; }
.cal-grid { flex: 1; position: relative; display: flex; min-height: 52px; }
.cal-hour { flex: 1; font-size: 10.5px; color: var(--muted); padding: 4px 0; text-align: left; }
.cal-cell { flex: 1; border-left: 1px solid var(--line); }
.cal-shift {
  position: absolute; top: 4px; bottom: 4px; background: var(--green-50);
  border: 1px dashed var(--green-200); border-radius: 8px; z-index: 0;
}
.cal-block {
  position: absolute; top: 8px; bottom: 8px; background: var(--amber-bg); color: var(--amber-ink);
  border-radius: 8px; font-size: 10.5px; font-weight: 600; padding: 3px 6px; z-index: 1;
  overflow: hidden; white-space: nowrap;
}
.cal-visit {
  position: absolute; top: 10px; bottom: 10px; background: var(--blue-bg); color: var(--blue-ink);
  border-radius: 8px; font-size: 11px; font-weight: 700; padding: 4px 7px; z-index: 2;
  overflow: hidden; white-space: nowrap; display: flex; align-items: center;
}
.cal-visit:hover { text-decoration: none; background: #c7dbfd; }

/* ---------- Smeta pozitsiyalari (B5) ---------- */

.item-head, .item-row {
  display: grid; grid-template-columns: 110px 1fr 70px 130px; gap: 8px; align-items: center;
}
.item-head { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin: 6px 0 4px; }
.item-row { margin-bottom: 7px; }
.item-row input, .item-row select { padding: 8px 10px; }
@media (max-width: 680px) {
  .item-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; }
}

.range-hint {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 12px;
  background: var(--green-50); border: 1px solid var(--green-200); border-radius: 13px; font-size: 13px;
}
.range-hint .stat-icon { background: var(--panel); color: var(--green-700); }

.callout-note {
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; color: var(--ink-soft); margin: 12px 0;
}

.est { border: 1px solid var(--line); border-radius: 15px; padding: 14px; margin-bottom: 12px; }
.est-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Xabar va matnlar ---------- */

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: 13px; margin-bottom: 16px; font-size: 13.5px; font-weight: 500;
}
.flash.error { background: var(--red-bg); color: var(--red-ink); border: 1px solid var(--red-line); }
.flash.ok { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.flash svg { width: 18px; height: 18px; }

.note { color: var(--muted); font-size: 12.5px; margin: 9px 0 0; line-height: 1.55; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.back:hover { color: var(--green-700); text-decoration: none; }
.back svg { width: 16px; height: 16px; }

.msg {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.6;
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px; white-space: pre-wrap; word-break: break-word; color: var(--ink-soft);
}

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li {
  position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); margin-left: 5px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.timeline time { color: var(--muted); font-size: 11.5px; display: block; margin-bottom: 2px; }
.timeline em { color: var(--muted); font-style: normal; }

.stat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.stat-row-label { color: var(--muted); font-size: 13px; }
.stat-row strong { margin-left: auto; }

/* ---------- Tashkilot bloki va tahrirlash ---------- */

.org-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px;
  background: var(--panel-soft);
}
.org-name { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.org-box select { padding: 6px 8px; font-size: 12.5px; border-radius: 8px; background: var(--panel); }

details.editor { padding: 14px 20px; }
/* Yig'iladigan blok tugmasi (2026-10-26): ixcham «pill», doira ichida chizilgan strelka — ochilganda aylanadi. */
details.editor > summary {
  position: relative; cursor: pointer; list-style: none; user-select: none;
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px 6px 38px;
  font-size: 13.5px; font-weight: 600; color: var(--green-700);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
details.editor > summary::-webkit-details-marker { display: none; }
details.editor > summary::before {
  content: ''; position: absolute; left: 7px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--green-100); transition: background-color .15s ease;
}
details.editor > summary::after {
  content: ''; position: absolute; left: 15px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease;
}
details.editor > summary:hover { background: var(--green-50); border-color: var(--green-200); }
details.editor > summary:hover::before { background: var(--green-200); }
details.editor > summary:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
details.editor[open] > summary { margin-bottom: 10px; color: var(--ink); background: var(--green-50); border-color: var(--green-200); }
details.editor[open] > summary::after { transform: rotate(225deg); margin-top: -2px; }
details.editor > summary strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { details.editor > summary, details.editor > summary::after { transition: none; } }

code {
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
}

input[type=password] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink); font: inherit;
}
input[type=checkbox] { accent-color: var(--green-600); }

/* ---------- Kirish sahifasi ---------- */

body.login-page { display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 560px; }
.login-narrow { max-width: 420px; }
.login-head { text-align: center; margin-bottom: 22px; }
.login-head .logo-mark { margin: 0 auto 12px; width: 46px; height: 46px; border-radius: 15px; font-size: 20px; }
.login-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.login-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.user-list { display: grid; gap: 9px; }
.user-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 14px; font-weight: 500;
}
.user-btn:hover { background: var(--green-50); border-color: var(--green-500); }
.user-btn .u-main { display: flex; flex-direction: column; line-height: 1.3; }
.user-btn .u-main strong { font-size: 14px; }
.user-btn .u-main small { color: var(--muted); font-size: 12px; }
.user-btn .u-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- Mijoz sahifasi ---------- */

body.client { background: var(--bg); }
.client-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: color-mix(in srgb, var(--panel) 90%, transparent);
  border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.client-top .logo-mark { background: var(--green-600); color: var(--on-accent, var(--panel)); width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.client-top .logo-mark:hover { text-decoration: none; }
.client-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.client-main .card { border-radius: var(--r-lg); }

.amount-box {
  text-align: center; padding: 22px 18px; border-radius: var(--r);
  background: linear-gradient(155deg, var(--grad-from), var(--green-900)); color: #fff; margin: 4px 0 14px;
}
.amount-box span { color: #b7d8c6; font-size: 12.5px; display: block; margin-bottom: 6px; }
.amount-box .big { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }

.stars { display: flex; gap: 8px; margin-top: 6px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label {
  margin: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 0; text-align: center; flex: 1; font-size: 16px; font-weight: 600;
  color: var(--ink); background: var(--panel-soft); transition: all .12s;
}
.stars label:hover { border-color: var(--green-500); }
.stars input:checked + label {
  background: var(--green-600); color: var(--on-accent, var(--panel)); border-color: var(--green-600);
  transform: translateY(-2px);
}
.warn {
  background: var(--amber-bg); color: var(--amber-ink); padding: 12px 14px;
  border-radius: 13px; font-size: 12.5px; line-height: 1.55; margin-bottom: 14px;
}
.client-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.6; }

/* ---------- Analitika (B15) ---------- */

.analytics-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; align-items: end; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; margin-bottom: 16px;
}
.analytics-filters label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.analytics-filters input, .analytics-filters select { margin: 0; }
.filter-actions { display: flex; gap: 8px; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.kpi {
  background: var(--panel-soft); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px;
}
.kpi-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.kpi-n { font-size: 11px; color: var(--muted); white-space: nowrap; }
.kpi-value {
  font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 4px; line-height: 1.15;
}
.kpi-value small { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value.unset { font-size: 13.5px; font-weight: 500; font-style: italic; color: var(--muted); }
.kpi-basis { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.kpi-note { margin: 5px 0 0; font-size: 11.5px; color: var(--amber-ink); line-height: 1.45; }

.big-result { font-size: 18px; letter-spacing: -.02em; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin-bottom: 8px; }
.bar {
  flex: 1; min-width: 10px; height: 100%; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
}
.bar-fill, .bar-done {
  width: 100%; border-radius: 4px 4px 0 0; position: absolute; bottom: 16px;
}
.bar-fill { background: var(--green-200); }
.bar-done { background: var(--green-700); }
.bar small { position: absolute; bottom: 0; font-size: 10px; color: var(--muted); }

/* ---------- Rag'bat va kvestlar (B14) ---------- */

.quest {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  margin-bottom: 10px; background: var(--panel);
}
.quest-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.quest-head strong { font-size: 14px; }
.quest-terms { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.quest-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.quest-meta span {
  background: var(--panel-soft); color: var(--muted); border-radius: 7px;
  padding: 3px 8px; font-size: 11.5px;
}
.quest-bar {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 4px;
}
.quest-bar span { display: block; height: 100%; background: var(--green-600); border-radius: 999px; }
.quest + .cab-sub { margin-top: 18px; }

/* Jadval ichidagi kichik formalar bir qatorda tursin (doska bo'limlari). */
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { min-width: 150px; }
.inline-form button { white-space: nowrap; }

.muted-row { opacity: .55; }
.muted-row s { color: var(--muted); }

/* Rasmiy va norasmiy kafolat BIR XIL KO‘RINMAYDI (TZ §35.3) */
.cab-item.w-official { border-left: 3px solid var(--green-600); padding-left: 11px; }
.cab-item.w-self { border-left: 3px dashed var(--muted); padding-left: 11px; }
.w-summary {
  margin: 2px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.cab-item.w-official .w-summary { color: var(--green-700); }
.ad-mark {
  background: var(--amber-bg); color: var(--amber-ink); border-radius: 6px;
  padding: 2px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- Kabinet kodi va QR (B16 P2) ---------- */

.cab-code {
  background: var(--green-900); color: var(--on-accent, var(--panel)); border-radius: var(--r);
  padding: 18px; text-align: center;
}
.cab-code small { color: #b7d8c6; font-size: 12px; }
.cab-code-value {
  font-family: "Courier New", monospace; font-size: 26px; font-weight: 700;
  letter-spacing: .12em; margin: 8px 0;
}
.cab-qr { background: var(--panel); border-radius: 12px; padding: 10px; display: inline-block; }
.cab-qr svg { display: block; width: 170px; height: 170px; }

/* ---------- Xarita va marshrut (B13) ---------- */

/* 2026-10-26: bu yerda selektori o'chib qolgan eski «.sketch» qoidasining qoldig'i turardi (TZ#7 da sxema olib
   tashlangan) — brauzer undan keyingi .route-totals qoidasini ham tashlab yuborardi, reja ko'rsatkichlari
   ustma-ust tushardi. Qoldiq olib tashlandi. */

.route-totals {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px;
}
@media (max-width: 380px) { .route-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.route-totals div {
  background: var(--panel-soft); border-radius: var(--r-sm); padding: 10px 8px; text-align: center;
}
.route-totals span { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.route-totals small { color: var(--muted); font-size: 11px; }

.route { list-style: none; margin: 0; padding: 0; }
.route-stop {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.route-stop:last-child { border-bottom: 0; }
.route-stop.moved { opacity: .55; }
.route-seq {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-800);
  color: #fff; font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.route-stop.risk .route-seq { background: var(--red-ink); }
.route-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.route-body strong { font-size: 13.5px; }
.route-body small { color: var(--muted); font-size: 12px; }
.route-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.route-meta span {
  background: var(--panel-soft); color: var(--muted); border-radius: 7px;
  padding: 2px 7px; font-size: 11px;
}
.route-risk {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red-bg);
  color: var(--red-ink); border-radius: 8px; padding: 5px 9px; font-size: 12px; margin-top: 4px;
}
.route-risk svg { width: 14px; height: 14px; }
.route-map { font-size: 12px; color: var(--green-700); }
.route-actions { flex: none; }

/* ---------- Mijoz kabineti «Uyimdagi texnikalar» (B12) ---------- */

.cab-hello { margin-bottom: 14px; }
.cab-hello h2 { margin: 0 0 2px; font-size: 20px; letter-spacing: -.02em; }
.cab-hello p { margin: 0; color: var(--muted); font-size: 13px; }

.cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cab-stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 10px; text-align: center;
}
.cab-stat span { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.cab-stat small { color: var(--muted); font-size: 11.5px; }
.cab-stat.on { border-color: var(--green-200); background: var(--green-50); }

.cab-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.cab-actions .btn { flex: 1; justify-content: center; }

.cab-back { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.cab-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line); color: inherit;
}
.cab-row:last-of-type { border-bottom: 0; }
.cab-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cab-row-main strong { font-size: 13.5px; font-weight: 600; }
.cab-row-main small { color: var(--muted); font-size: 12px; }

.cab-card {
  display: flex; align-items: center; gap: 10px; padding: 13px 0;
  border-bottom: 1px solid var(--line); color: inherit;
}
.cab-card:last-child { border-bottom: 0; }
.cab-card-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cab-card-main strong { font-size: 14px; font-weight: 600; }
.cab-card-main small { color: var(--muted); font-size: 12px; }
.cab-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cab-card-meta span {
  background: var(--panel-soft); color: var(--muted); border-radius: 7px;
  padding: 2px 7px; font-size: 11px;
}

.cab-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.cab-tabs a {
  white-space: nowrap; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--ink-soft);
}
.cab-tabs a.on { background: var(--green-800); border-color: var(--green-800); color: var(--on-accent, var(--panel)); }
.cab-tabs a small { opacity: .7; margin-left: 4px; }

.cab-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.cab-search input, .cab-search select { margin: 0; }
.cab-search select { grid-column: 1; }
.cab-search button { grid-column: 2; grid-row: 1 / span 2; }

.cab-item { border-top: 1px solid var(--line); padding: 12px 0; }
.cab-item:first-of-type { border-top: 0; }
.cab-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cab-item-head strong { font-size: 13.5px; }
.cab-sub { margin: 16px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }

.cab-photo { width: 100%; border-radius: var(--r); margin-bottom: 12px; display: block; }

.cab-docs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cab-doc {
  display: flex; flex-direction: column; gap: 2px; background: var(--panel-soft);
  border-radius: var(--r-sm); padding: 10px 12px; color: inherit;
}
.cab-doc-kind { font-size: 11px; color: var(--muted); }
.cab-doc-name { font-size: 13px; font-weight: 600; word-break: break-all; }
.cab-doc small { color: var(--muted); font-size: 11.5px; }

.cab-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cab-plan-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.cab-plan-actions input, .cab-plan-actions select { margin: 0; width: auto; min-width: 92px; }
.cab-plan-actions button { white-space: nowrap; }

.cab-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 10px 0; }
.cab-check input { width: auto; margin: 0; }

.cab-link { font-size: 13px; word-break: break-all; line-height: 1.5; }

.unset { color: var(--muted); font-style: italic; }

/* ---------- Dalolatnoma (B11) ---------- */

.act { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.act-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.act-head h2 { margin: 0 0 4px; font-size: 18px; }
.act-head p { margin: 0; font-size: 13px; color: var(--muted); }
.act-org { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.act-org small { color: var(--muted); }
.act-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.act-table th { text-align: left; width: 34%; vertical-align: top; padding: 8px 10px 8px 0;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.act-table td { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.act-sign { display: flex; gap: 40px; margin: 30px 0 10px; }
.act-sign div { flex: 1; text-align: center; }
.act-sign span { display: block; border-bottom: 1px solid var(--ink); height: 34px; margin-bottom: 4px; }
.act-sign small { color: var(--muted); font-size: 12px; }
.act-foot { color: var(--muted); font-size: 11.5px; text-align: center; margin-top: 14px; }
.act-actions { text-align: center; margin-top: 16px; }

@media print {
  .no-print, .client-top { display: none !important; }
  body.client { background: var(--panel); }
  .act { border: 0; padding: 0; }
  .client-main { padding: 0; max-width: none; }
}

/* ---------- Malaka testi (B10) ---------- */

.quiz-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.quiz-q:last-of-type { border-bottom: 0; }
.quiz-q p { margin: 0 0 8px; line-height: 1.5; }
.quiz-opt { display: flex; margin: 4px 0; font-weight: 400; }
textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font: inherit; background: var(--panel); color: var(--ink); margin-bottom: 10px;
}

/* ---------- Buyurtma chati (B9) ---------- */

.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.chat-msg {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  background: var(--panel-soft); border: 1px solid var(--line);
}
.chat-msg.left  { align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.right { align-self: flex-end; background: var(--green-50); border-color: var(--green-500); border-bottom-right-radius: 4px; }
.chat-msg.flagged { border-color: var(--amber-ink); }
.chat-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
.chat-head strong { font-size: 12.5px; }
.chat-head small { color: var(--muted); font-size: 11px; }
.chat-body { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; margin: 0; }

/* ---------- Chek-list va to'rt o'lchovli baho (Paket A) ---------- */

.check-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.check-row:last-of-type { border-bottom: 0; }
.check-row .mark { width: 30px; text-align: center; color: var(--muted); }
.check-row.on .check-text { color: var(--muted); }
.check-row .check-text { line-height: 1.5; }
.check-row form button { min-width: 34px; padding: 5px 9px; }

.check-edit { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.check-edit input[type=text] { flex: 1; margin: 0; }
.check-edit label.check { margin: 0; white-space: nowrap; font-weight: 400; font-size: 12.5px; }

ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.5;
}
ul.checklist li:last-child { border-bottom: 0; }
ul.checklist .mark { width: 20px; color: var(--green-600); font-weight: 700; }
ul.checklist li.off .mark { color: var(--muted); }

.rate-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rate-label { font-size: 13px; color: var(--ink); font-weight: 500; }

/* ---------- Ombor (B8) ---------- */

button.ghost, .btn.ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
button.ghost:hover, .btn.ghost:hover { background: var(--grey-bg); color: var(--ink); }

tr.warn-row td { background: var(--amber-bg); }
tr.warn-row td:first-child { box-shadow: inset 3px 0 0 var(--amber-ink); }

label.check {
  display: flex; align-items: center; gap: 8px; font-weight: 500;
  color: var(--ink); margin: 10px 0;
}
label.check input { width: auto; margin: 0; }

/* ---------- Kichik ekran ---------- */

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static; flex-direction: row; align-items: center;
    gap: 10px; overflow: visible; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 12px;
  }
  /* Lenta ko'rinishida menyu gorizontal aylanadi — vertikal aylantirish o'chadi. */
  .sidebar nav {
    flex-direction: row; gap: 4px; overflow-y: visible; min-height: auto;
    margin-right: 0; padding-right: 0;
  }
  .nav-label, .side-card { display: none; }
  .side-foot { margin: 0 0 0 auto; }
  .nav-item { white-space: nowrap; padding: 9px 12px; }
  .page-head, main { padding-left: 16px; padding-right: 16px; }
}

/* --- 18-band: ustaxona, model ma'lumotnomasi, hudud narxi ---------------- */

/* Yorliq va kod raqamlari — moslashuvchan shriftda chalkashadi. */
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }

/* Majburiy maydon belgisi. Rang bilan emas, BELGI bilan: rangni
   ko'rmaydigan foydalanuvchi ham ko'radi. */
.req { color: var(--danger, #b3261e); font-weight: 700; }

.mt { margin-top: 14px; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }

/* Hudud narxlari jadvali: umumiy narxdan meros olgan qator xiraroq —
   «bu yerda alohida narx yo'q» degani ko'rinib tursin. */
tr.inherited td { opacity: .62; }
td.deviation-up { color: #b3261e; }
td.deviation-down { color: #1b6b3a; }

/* Rejim tanlovi: har bir variant butun qator — telefonda ham bosish oson. */
.radio-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer;
}
.radio-row input { width: auto; margin: 0; }

/* Ta'minotchi takliflari: bir qatorda bir nechta variant. */
.offer { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; white-space: nowrap; }
.offer + .offer { margin-top: 2px; }

/* Vaqtinchalik parol: bir marta ko'rsatiladi, o'qish oson bo'lsin. */
.temp-password {
  font-size: 26px; font-weight: 700; letter-spacing: .08em;
  padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--panel-soft); display: inline-block; user-select: all;
}
.cab-security { margin: 18px 0 6px; }
.cab-security summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* --- Telefon ilovasi (TZ §35): menyu, kirish rollari, o'rnatish ----------- */

/* Kompyuterda yon panel menyusi; «Menyu» tugmasi faqat telefonda. */
.mnav { display: none; }

@media (max-width: 860px) {
  .sidebar {
    position: sticky; top: 0; z-index: 20;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .sidebar > nav { display: none; }
  .mnav { display: block; position: static; }
  .mnav > summary {
    list-style: none; cursor: pointer; white-space: nowrap;
    padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-weight: 600; color: var(--ink); background: var(--panel-soft);
  }
  .mnav > summary::-webkit-details-marker { display: none; }
  .mnav[open] > summary { background: var(--green-100); color: var(--green-800); }
  /* Ochilgan menyu panel ostidan ekran oxirigacha — ichida aylanadi. */
  .mnav[open] > nav {
    position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 30;
    display: flex; flex-direction: column; gap: 2px;
    overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line);
  }
  .mnav .nav-label { display: block; }
  .mnav .nav-item { white-space: normal; padding: 13px 12px; font-size: 15px; }
  .org-box { display: none; }
  .logo-text small { display: none; }
}

/* Kirish: rol tanlash — Usta / Mijoz / Admin */
.role-choice { display: grid; gap: 10px; }
.role-choice-item {
  display: grid; gap: 4px; padding: 18px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
}
.role-choice-item b { font-size: 18px; }
.role-choice-item small { color: var(--ink-soft); font-size: 13px; }
.role-choice-item:hover, .role-choice-item:focus-visible {
  border-color: var(--green-900); text-decoration: none;
}

.install-box { margin-top: 14px; }
.login-page { padding-top: max(24px, env(safe-area-inset-top)); }
.login input { font-size: 16px; } /* iPhone kiritishda ekranni kattalashtirmasin */
.client-top-link { margin-left: auto; color: var(--green-700); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; }
.client-top-link + .client-top-link { margin-left: 12px; }

/* --- Profil (TZ §13, §14.1) ---------------------------------------------- */
img.avatar { object-fit: cover; padding: 0; }
.avatar-xl { width: 96px; height: 96px; font-size: 30px; }
.profile-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.profile-photo-actions { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
/* 2026-10-27: `input[type=file] { width: 100% }` 1px ni bosib ketardi — Profilim sahifasi 360px da yonga surilardi. */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0 !important; border: 0 !important;
}
.side-user-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.side-user-link:hover { text-decoration: none; }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mode-option {
  display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400;
}
.mode-option input { width: auto; margin: 0 0 4px; }
.mode-option small { color: var(--muted); line-height: 1.35; }
.mode-option.on, .mode-option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
@media (max-width: 560px) { .mode-choice { grid-template-columns: 1fr; } }

/* --- Til tanlagich (src/i18n.js) — har sahifada, JS siz ---------------- */
.lang-switch { position: fixed; top: 10px; right: 12px; z-index: 60; font-size: 13px; }
.lang-switch > summary {
  list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line, #dde3e0); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); min-width: 44px; min-height: 32px; text-align: center;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute; right: 0; margin-top: 6px; display: grid; min-width: 150px;
  background: var(--panel); border: 1px solid var(--line, #dde3e0); border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); overflow: hidden;
}
.lang-menu a, .lang-menu .lang-on { padding: 10px 14px; text-decoration: none; color: inherit; }
.lang-menu a:hover, .lang-menu a:focus { background: rgba(0,0,0,.05); }
.lang-menu .lang-on { font-weight: 700; background: rgba(22,163,74,.08); }
body.client .lang-switch { top: auto; bottom: 14px; }
body.client .lang-menu { bottom: 100%; margin: 0 0 6px; }
/* Til tugmasi sarlavha ustida turadi — o'ngdagi havolalar uning tagida qolmasin. */
body.client .client-top { padding-right: 16px; }
@media print { .lang-switch { display: none; } }
/* Xodim sahifalarida yuqori o'ngda amal tugmalari bor — tanlagich pastga o'tadi */
body:not(.client):not(.login-page) .lang-switch { top: auto; bottom: 14px; right: 14px; }
body:not(.client):not(.login-page) .lang-menu { bottom: 100%; margin: 0 0 6px; }

/* --- Sozlamalar konstruktori (TZ v0.8 §50) -------------------------------- */
.setting-states { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.setting-states > div {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft);
}
.setting-states strong { font-size: 18px; }
.setting-draft { border: 1px dashed var(--amber-ink); border-radius: 12px; padding: 12px; margin-top: 10px; }
.setting-draft-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.setting-sim { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--blue-bg); color: var(--ink); }
.setting-sim ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 560px) { .setting-states { grid-template-columns: 1fr; } }

/* --- Yo‘riqnoma: element ustiga olib borilganda izoh (public/guide.js) --- */
.guide-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border: 0; border-radius: 999px; background: var(--green-900); color: var(--on-accent, var(--panel));
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 53, 39, .28);
}
.guide-fab:hover { background: var(--green-800); }
.guide-fab-q {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-500); color: var(--green-900); font-weight: 800;
}
.guide-fab.on { background: var(--green-600); }
.guide-box {
  position: fixed; right: 20px; bottom: 72px; z-index: 9001;
  width: 400px; max-height: min(680px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--green-200); border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 53, 39, .22);
}
.guide-box[hidden] { display: none; }
.guide-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(160deg, #18523a, var(--green-900)); color: #fff;
}
.guide-head div { flex: 1; min-width: 0; }
.guide-head strong { display: block; font-size: 14px; }
.guide-head small { display: block; font-size: 11px; opacity: .75; }
.guide-ava {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-500); color: var(--green-900); font-weight: 800;
}
.guide-x {
  border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 4px; opacity: .8;
}
.guide-x:hover { opacity: 1; }
.guide-body {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  overflow-y: auto; background: var(--green-50);
}
.guide-msg {
  padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: var(--panel);
  border: 1px solid var(--green-100); font-size: 13px; line-height: 1.5; color: var(--ink);
}
.guide-msg b { display: block; font-size: 14px; margin: 2px 0 4px; }
.guide-msg p { margin: 0; }
.guide-msg ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 12px; }
.guide-page { background: var(--green-100); border-color: var(--green-200); }
.guide-page p { color: var(--ink-soft); font-size: 12px; }
.guide-kind {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
  font-weight: 700; letter-spacing: .02em; background: var(--green-100); color: var(--green-800);
}
.guide-page .guide-kind { background: var(--panel); }
.guide-crumb { font-size: 11px; color: var(--ink-soft); margin-bottom: 6px; }
.guide-muted { color: var(--ink-soft); }
.guide-foot {
  padding: 8px 14px; font-size: 11px; color: var(--ink-soft);
  border-top: 1px solid var(--green-100); background: var(--panel);
}
.guide-hl {
  position: fixed; z-index: 8999; pointer-events: none; border-radius: 10px;
  border: 2px solid var(--green-500); background: rgba(34, 197, 94, .08);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  transition: top .08s, left .08s, width .08s, height .08s;
}
.guide-hl[hidden] { display: none; }
.g-sec { margin-top: 10px; }
.g-sec h5, .g-box h5 {
  margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-700);
}
.g-sec p { margin: 0; }
.g-sec ul { margin: 0; }
.g-flow { list-style: none; margin: 6px 0 0; padding: 0; }
.g-flow li { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 0 0 12px; }
.g-flow li:last-child { padding-bottom: 0; }
/* Qadamlarni bog'lovchi chiziq — sxema ko'rinishi */
.g-flow li:not(:last-child)::before {
  content: ''; position: absolute; left: 11px; top: 24px; bottom: 2px;
  width: 2px; background: var(--green-200);
}
.g-flow li:not(:last-child)::after {
  content: ''; position: absolute; left: 7px; bottom: 2px;
  border: 5px solid transparent; border-top-color: var(--green-500); border-bottom: 0;
}
.g-n {
  flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-600); color: var(--on-accent, var(--panel)); font-size: 12px; font-weight: 700;
}
.g-flow li > span:last-child {
  flex: 1; padding: 3px 9px; border: 1px solid var(--green-100); border-radius: 8px;
  background: var(--green-50); font-size: 12.5px;
}
.g-box { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; }
.g-box p { margin: 0; }
.g-ex { background: var(--blue-bg); border: 1px solid #bfdbfe; }
.g-ex h5 { color: #1d4ed8; }
.g-tip { background: var(--amber-bg); border: 1px solid #fde68a; }
.g-tip h5 { color: #b45309; }
.g-quote {
  margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--green-500);
  background: var(--green-50); color: var(--ink-soft); font-size: 12px; font-style: italic;
}
.g-hint { margin-top: 10px !important; font-size: 12px; }
@media print { .guide-fab, .guide-box, .guide-hl { display: none !important; } }
@media (max-width: 760px) {
  .guide-fab { right: 12px; bottom: 12px; }
  .guide-fab-t { display: none; }
  .guide-fab-q { width: 30px; height: 30px; }
  .guide-box { left: 12px; right: 12px; bottom: 64px; width: auto; max-height: 45vh; }
}

/* Tashkilot tuzilmasi (TZ v0.8 §49) */
.struct-branch { padding: 4px 0 12px; }
.struct-branch + .struct-branch { border-top: 1px solid var(--line); padding-top: 12px; }
.struct-branch h3 { margin: 0 0 8px; font-size: 15px; }
.struct-dept { margin: 0 0 10px 12px; padding-left: 10px; border-left: 3px solid var(--line); }

/* KPI (TZ v0.8 §52) va tasdiqlar */
.kpi-detail summary { cursor: pointer; font-size: 12px; color: var(--muted, #667); }
.kpi-detail p { margin: 4px 0; }
.approval-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.approval-item:last-child { border-bottom: 0; }

/* Telefonda jadval — kartochka (public/ui.js: table.stack). */
@media (max-width: 700px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr.stack-head { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  table.stack td { border: 0; padding: 4px 0; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  table.stack td:first-child, table.stack td:has(form), table.stack td:has(details),
  table.stack td:has(.inline-form) { grid-column: 1 / -1; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b7a72); }
  table.stack td:empty { display: none; }
  table.stack .inline-form { flex-wrap: wrap; }
  table.stack .inline-form input, table.stack .inline-form select { min-width: 0; flex: 1 1 140px; }
}

/* Servisni ulash: shablon tanlash va boshlash qadamlari (TZ v0.8 §49, §50.1) */
.tpl-choice { display: grid; gap: 8px; }
.tpl-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 14px; }
.tpl-item input { width: auto; margin-top: 3px; }
.tpl-item b { font-size: 15px; }
.tpl-item small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.tpl-item small.tpl-gets { color: var(--muted); }
.tpl-item:has(input:checked) { border-color: var(--green-600); box-shadow: 0 0 0 1px var(--green-600) inset; }
.tpl-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.onb-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.onb-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.onb-steps .onb-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); }
.onb-steps li.done .onb-mark { background: var(--green-600); border-color: var(--green-600); color: var(--on-accent, var(--panel)); }
.onb-steps .onb-body { flex: 1; min-width: 0; }
.onb-steps small { display: block; color: var(--muted); }
.pilot-defs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: 13px; }
.pilot-defs dt { color: var(--muted); }
.pilot-defs dd { margin: 0; }

/* Katalog va ommaviy sahifa (TZ v0.8 §48.2) */
.pub-item { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.pub-item:hover, .pub-item:focus-visible { border-color: var(--green-900); text-decoration: none; }
.pub-item small { color: var(--muted); }

/* Vitrina (2026-10-03): rasmiy servislar banneri va ustalar e'lonlari.
   Karusel JS siz ishlaydi (scroll-snap); ui.js faqat o'zi aylantiradi. */
.vt-banners { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; border-radius: var(--r); margin-bottom: 14px; scrollbar-width: none; }
.vt-banners::-webkit-scrollbar { display: none; }
.vt-banner { position: relative; display: block; scroll-snap-align: start; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 16 / 7; min-height: 172px; width: 100%; min-width: 0; background: var(--green-900); color: #fff; text-decoration: none; }
.vt-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* 2026-10-25 (Ustalar): yozuv rasmning chap qismida, qorong'i fon ustida — o'ngdagi rasm (texnika, logo)
   ustiga chiqmaydi. Sarlavha va izoh 2 qatordan oshsa «…» bilan qisqaradi. */
.vt-banner-text { position: absolute; inset: 0; display: grid; gap: 3px; align-content: end; padding: 14px 40% 12px 14px;
  background: linear-gradient(to right, rgba(0,0,0,.8) 0%, rgba(0,0,0,.62) 52%, rgba(0,0,0,0) 85%); }
.vt-banner-text b { font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vt-banner-text small { font-size: 13px; line-height: 1.35; opacity: .92; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vt-banner-text .chip { justify-self: start; }
.vt-banner-org { opacity: .8; }
.vt-banner:hover, .vt-banner:focus-visible { text-decoration: none; color: #fff; }
/* 2026-10-26 (Ustalar): yozuv joyi — AI rasmga qarab tanlaydi (banners.layout), mahsulot yopilmasin.
   Chap — standart (qo'shimcha klass yo'q). O'ng — rasm chapga suriladi, yozuv o'ngda; past — yozuv pastki qismda. */
.vt-banner--right img { object-position: left center; }
.vt-banner--right .vt-banner-text { padding: 14px 14px 12px 40%; text-align: right;
  background: linear-gradient(to left, rgba(0,0,0,.8) 0%, rgba(0,0,0,.62) 52%, rgba(0,0,0,0) 85%); }
.vt-banner--right .vt-banner-text .chip { justify-self: end; }
.vt-banner--bottom img { object-position: center top; }
.vt-banner--bottom .vt-banner-text { padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,0) 72%); }
.vt-banner--bottom .vt-banner-text b { -webkit-line-clamp: 1; }
.vt-banner--bottom .vt-banner-text small { -webkit-line-clamp: 1; }
.vt-feed { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* align-content: start — qatorda kartochkalar bir xil balandlikka cho'zilganda ortiqcha joy rasm ostida
   kulrang chiziq bo'lib qolmasin, kartochka pastiga tushsin (2026-10-25). */
.vt-post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; }
.vt-post-body { padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.vt-post-body h3 { margin: 0; font-size: 16px; }
.vt-post-body p { margin: 0; }
.vt-post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-author { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vt-media { background: var(--panel-soft); }
.vt-media img, .vt-media video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.vt-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.vt-gallery img { scroll-snap-align: start; }
.vt-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vt-filter .chip { text-decoration: none; }
.vt-decide { display: grid; gap: 6px; margin-top: 8px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 10px 0 4px; }
label.check input[type=checkbox] { width: auto; margin-top: 3px; }
.vt-palettes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.vt-palette { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; font-weight: 500; }
.vt-palette input { width: auto; }
.vt-palette:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.vt-swatch { display: inline-flex; border-radius: 6px; overflow: hidden; }
.vt-swatch i { display: block; width: 14px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .vt-banners, .vt-gallery { scroll-behavior: auto; } }

/* Sinov SMS rejimi: kod sahifasida kodning o'zi (TX_SMS_PROVIDER=fake) */
.fake-code { display: grid; gap: 4px; justify-items: start; margin: 10px 0; padding: 10px 12px;
  border: 1.5px dashed var(--amber-ink); border-radius: var(--r-sm); background: var(--amber-bg); }
.fake-code b { font-size: 24px; letter-spacing: .18em; }
.fake-code small { color: var(--ink-soft); }

/* ===== Mobil ilova qobig'i (2026-10-06, Stitch dizayni): usta va mijoz ===== */
body.app { background: var(--bg); }
/* Pastki menyu uchun joy. `html, body { height: 100% }` bilan tana ekran balandligida qotib, bu joy kontent oxiriga
   emas, ekran oxiriga tushardi — uzun sahifada oxirgi qator menyu ostida qolardi (2026-10-25). Ilova qobig'ida tana
   kontent bilan o'sadi. */
body.mshell, body.client.has-tabs { height: auto; min-height: 100%; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-round {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm);
}
.app-round:hover { text-decoration: none; border-color: var(--line-strong); }
.app-round svg { width: 20px; height: 20px; }
.app-title { flex: 1; min-width: 0; }
.app-title h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--green-700); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-me { flex: none; }
.app-me .avatar { width: 40px; height: 40px; font-size: 13px; background: var(--green-600); color: var(--on-accent, var(--panel)); }
.app-main { max-width: 640px; margin: 0 auto; padding: 16px 16px 24px; }
.app-main .grid2 { grid-template-columns: 1fr; gap: 12px; }
.app-main .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
.app-main .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.app-main .back { display: inline-flex; margin-bottom: 8px; }
.app-main .row { grid-template-columns: 1fr; }
.mshell-actions { margin-bottom: 12px; overflow-x: auto; }
.mshell-actions .chips { flex-wrap: nowrap; }

.app-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(15, 23, 42, .05);
  padding: 4px 4px env(safe-area-inset-bottom); min-height: 64px;
}
.app-tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  min-height: 58px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none;
}
.app-tab-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.app-tab.on { color: var(--green-600); }
.app-tab.on .app-tab-icon svg { stroke-width: 2.1; }
.app-tab.on::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--green-600); }
.app-tab:hover { text-decoration: none; color: var(--green-700); }

/* Til tugmasi va yo'riqnoma pastki menyu ustida turadi */
body.app:not(.login-page) .lang-switch { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; }
body.app .lang-menu { bottom: 100%; margin: 0 0 6px; }
body.client:not(.has-tabs) .lang-switch { bottom: 14px; }
body.app .guide-fab { bottom: calc(76px + env(safe-area-inset-bottom)); right: auto; left: 14px; width: 40px; height: 40px; }
body.app .guide-box { bottom: calc(126px + env(safe-area-inset-bottom)); left: 10px; right: 10px; width: auto; }

/* Telefonda bosish qulay: 48px tugma va maydonlar (dizayn: kamida 44×44) */
body.app button, body.app .btn { min-height: 48px; border-radius: 12px; font-size: 15px; padding: 11px 18px; }
body.app .btn.sm, body.app button.sm, body.app .chips .btn, body.app td .btn, body.app td button { min-height: 36px; font-size: 13px; padding: 7px 12px; border-radius: 10px; }
body.app input[type=text], body.app input[type=tel], body.app input[type=number], body.app input[type=search],
body.app input[type=password], body.app input[type=email], body.app input[type=date], body.app input[type=datetime-local],
body.app input:not([type]), body.app select { min-height: 48px; font-size: 16px; border-radius: 10px; }
body.app textarea { font-size: 16px; border-radius: 10px; }
body.app label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
body.app label.check, body.app .mode-option, body.app .radio-row { font-weight: 500; }
body.app .card { border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
body.app .card h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
body.app .chip { padding: 4px 10px; font-size: 12px; }
body.app .field { padding: 10px 0; border-bottom-color: var(--panel-soft); }
body.app .note { font-size: 13px; }

/* Bo'lim sarlavhasi + «Barchasi ›» */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 2px 10px; }
.sec-head h2, .sec-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sec-head a { font-size: 13px; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 2px; }
.sec-head a svg { width: 15px; height: 15px; }
.sec-label { margin: 18px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Hisob — sof daromad */
.mh-hero { background: linear-gradient(155deg, var(--grad-from), var(--green-900)); color: #fff; border-radius: var(--r);
  padding: 18px 16px; margin-bottom: 10px; display: grid; gap: 4px; }
.mh-hero small { opacity: .8; font-size: 13px; }
.mh-hero strong { font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
.mh-hero strong span { font-size: 15px; font-weight: 600; opacity: .8; }
.mh-hero p { margin: 0; font-size: 12.5px; opacity: .75; }
.mh-hero-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; opacity: .9; }
.mh-hero-row b { font-weight: 700; }
.mh-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mh-period { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: grid; gap: 2px; min-width: 0; }
.mh-period small { color: var(--muted); font-size: 12px; }
.mh-period b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.mh-period span { color: var(--muted); font-size: 11.5px; }
.mh-row { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.card .mh-row { border-color: var(--line); }
.mh-row:hover { text-decoration: none; border-color: var(--green-600); }
.mh-row.warn { border-color: var(--amber-ink); background: var(--amber-bg); }
.mh-row svg { width: 20px; height: 20px; color: var(--green-700); }
.mh-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mh-row-main small { color: var(--muted); }
.mh-time { font-weight: 700; color: var(--green-800); min-width: 44px; }

/* Ishlar */
.mtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.mtabs .chip { white-space: nowrap; text-decoration: none; padding: 7px 12px; }
.mjobs { display: grid; gap: 10px; margin-bottom: 12px; }
.mjob { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 6px; }
.mjob-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mjob-top small { margin-left: auto; color: var(--muted); }
.mjob-dev { font-weight: 600; }
.mjob-problem { margin: 0; color: var(--ink-soft); font-style: italic; }
.mjob-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mjob-where { margin: 0; font-size: 13px; color: var(--ink-soft); }
.mjob-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mjob-actions .btn, .mjob-actions button { flex: 1; justify-content: center; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.apk-btn { width: 100%; justify-content: center; margin-top: 12px; }

/* Ommaviy demo (TX_DEMO=1): kirish sahifasidagi namuna hisoblar */
.demo-box { border: 1px dashed var(--amber-ink); background: var(--amber-bg); margin-top: 14px; }
.demo-box .note { margin: 6px 0; }
.demo-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.demo-list a { font-weight: 600; }
.demo-list small { color: var(--muted, #667); margin-left: 6px; }
.demo-box code { font-size: 1.05em; font-weight: 700; user-select: all; }

/* ===== Usta: «Rejam» bosh ekrani (2026-10-06) ===== */
button.soft, .btn.soft { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
button.soft:hover, .btn.soft:hover { background: var(--green-100); }
button.outline, .btn.outline { background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); }
button.outline:hover, .btn.outline:hover { background: var(--panel-soft); }
button.mint, .btn.mint { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); }
button.mint:hover, .btn.mint:hover { background: var(--green-100); }
.rj-head { display: flex; align-items: center; gap: 12px; margin: -4px 0 12px; }
.rj-me { position: relative; flex: none; }
.rj-me .avatar { width: 56px; height: 56px; font-size: 18px; background: var(--green-800); color: var(--on-accent, var(--panel)); border: 3px solid var(--green-100); }
.rj-online { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); border: 2px solid var(--panel); }
.rj-online.on { background: var(--green-500); }
.rj-who { flex: 1; min-width: 0; }
.rj-who b { font-family: var(--font-head); font-size: 18px; }
.rj-who small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rj-rate { display: inline-block; font-size: 12px; font-weight: 700; color: #92400e; background: var(--amber-bg); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.rj-bell { position: relative; }
.rj-bell-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid var(--panel); }
.rj-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 14px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.rj-mode { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--ink-soft); background: var(--panel); border: 1.5px solid var(--line-strong); }
.rj-mode i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.rj-mode.on { color: var(--green-800); background: var(--green-50); border-color: var(--green-200); }
.rj-mode.on i { background: var(--green-500); }
.rj-mode.busy { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-line); }
.rj-mode.busy i, .rj-online.busy { background: var(--amber-ink); }
.rj-mode svg { width: 16px; height: 16px; }
.rj-mode:hover, .rj-balance:hover { text-decoration: none; }
.rj-balance { text-align: right; display: grid; }
.rj-balance small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rj-balance b { font-family: var(--font-head); font-size: 18px; }
.rj-balance b.pos { color: var(--green-700); }
.rj-balance b.neg { color: var(--red-ink); }
.rj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rj-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 2px;
  color: var(--ink); box-shadow: var(--shadow-sm); min-width: 0; }
.rj-stat:hover { text-decoration: none; border-color: var(--line-strong); }
.rj-stat small { color: var(--muted); font-size: 12px; }
.rj-stat b { font-family: var(--font-head); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.rj-stat b span { font-size: 13px; color: var(--muted); font-weight: 600; }
.rj-stat b.amt-warn { color: #d97706; }
.rj-stat em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.rj-stat em.good { color: var(--green-700); font-weight: 600; }
.rj-month { display: flex; justify-content: space-between; gap: 12px; align-items: stretch; margin-bottom: 12px; padding: 16px;
  border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, var(--grad-from), var(--green-900)); box-shadow: var(--shadow); }
.rj-month:hover { text-decoration: none; }
.rj-month small { display: block; font-size: 12px; color: #a7f3d0; font-weight: 600; letter-spacing: .02em; }
.rj-month b { display: block; font-family: var(--font-head); font-size: 28px; line-height: 1.15; margin: 4px 0; }
.rj-month b span { font-size: 14px; color: #a7f3d0; }
.rj-month em { font-style: normal; font-size: 12px; color: #d1fae5; opacity: .9; }
.rj-month-side { text-align: right; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); display: grid; align-content: center; min-width: 96px; }
.rj-month-side b { font-size: 17px; }
.rj-offer { background: var(--amber-bg); border: 2px solid #fcd34d; border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.rj-offer-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rj-offer-badge { display: inline-flex; align-items: center; gap: 6px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.rj-offer-badge svg { width: 15px; height: 15px; }
.rj-offer-time { background: var(--red-bg); color: #dc2626; font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 8px; }
.rj-offer-title { font-family: var(--font-head); font-size: 17px; }
.rj-offer-where { margin: 0; font-size: 13.5px; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 1px solid #fde68a; }
.rj-offer-where svg { width: 15px; height: 15px; vertical-align: -3px; color: #ef4444; }
.rj-offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rj-offer-actions form button { width: 100%; }
.rj-offer-actions button:not(.sec) { background: var(--green-800); }
.rj-offer-actions button.sec { color: var(--ink); background: var(--panel-soft); border: 0; }
.rj-task { background: var(--panel); border: 2px solid #a7d8c6; border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.rj-task-head { display: flex; align-items: center; gap: 8px; }
.rj-task-head b { color: var(--blue-ink); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; flex: 1; }
.rj-task-head .mono { color: var(--muted); font-size: 12px; font-weight: 700; }
.rj-dot { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.rj-task-who { display: flex; justify-content: space-between; gap: 10px; }
.rj-task-who b { font-family: var(--font-head); font-size: 17px; display: block; }
.rj-task-who small { color: var(--green-700); font-size: 13px; }
.rj-when { text-align: right; }
.rj-when small { color: var(--muted); font-size: 11.5px; display: block; }
.rj-when b { font-size: 15px; background: var(--panel-soft); border-radius: 8px; padding: 3px 8px; display: inline-block; margin-top: 2px; }
.rj-addr { display: flex; gap: 10px; align-items: flex-start; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); }
.rj-addr:hover { text-decoration: none; border-color: var(--line-strong); }
.rj-addr svg { color: var(--green-700); margin-top: 1px; }
.rj-addr b { display: block; font-size: 14px; }
.rj-addr small { color: var(--muted); font-size: 12.5px; }
.rj-task-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rj-task-actions.two { grid-template-columns: 1fr 1fr; padding-top: 10px; border-top: 1px solid var(--line); }
.rj-task-actions .btn, .rj-task-actions button { width: 100%; padding-left: 8px; padding-right: 8px; font-size: 13.5px; min-height: 44px; }
.rj-task-actions form { margin: 0; }
.rj-task-actions svg { width: 17px; height: 17px; }
.rj-route { padding: 16px; }
.rj-route-head { display: flex; justify-content: space-between; align-items: baseline; }
.rj-route-head .sec-label { margin: 0; }
.rj-route-head b { color: var(--green-700); font-size: 14px; }
.rj-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; position: relative; }
.rj-steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.rj-step { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.rj-step-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--panel-soft); color: var(--ink-soft); border: 3px solid var(--panel); z-index: 1; }
.rj-step-mark svg { width: 18px; height: 18px; }
.rj-step.is-done .rj-step-mark { background: var(--green-700); color: var(--on-accent, var(--panel)); }
.rj-step.is-on_the_way .rj-step-mark, .rj-step.is-arrived .rj-step-mark, .rj-step.is-in_progress .rj-step-mark { background: #2563eb; color: #fff; }
.rj-step-body { flex: 1; min-width: 0; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel-soft);
  border: 1px solid var(--line); color: var(--ink); }
.rj-step-body:hover { text-decoration: none; border-color: var(--line-strong); }
.rj-step.is-on_the_way .rj-step-body, .rj-step.is-arrived .rj-step-body, .rj-step.is-in_progress .rj-step-body { background: var(--blue-bg); border-color: #bfdbfe; }
.rj-step-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.rj-step-top b { font-size: 14px; }
.rj-step-body small { color: var(--muted); font-size: 12.5px; }
.rj-own { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px; margin: 4px 0 8px;
  border: 2px dashed #86d3b6; border-radius: var(--r-lg); color: var(--ink); background: var(--green-50); }
.rj-own:hover { text-decoration: none; border-color: var(--green-600); }
.rj-own span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); }
.rj-own span svg { width: 16px; height: 16px; }
.rj-own small { color: var(--green-700); }
.rj-empty { text-align: center; }

/* ===== Segment tugmalari (filtr chiplari): tanlangani yashil fon ===== */
.seg { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-item { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg-item:hover { text-decoration: none; border-color: var(--line-strong); }
.seg-item.on { background: var(--green-800); border-color: var(--green-800); color: var(--on-accent, var(--panel)); }

/* ===== Ish kartasi (Technician Job Card) ===== */
.mjobs { display: grid; gap: 12px; margin-bottom: 14px; }
.mjob { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; box-shadow: var(--shadow-sm); }
.mjob-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mjob-top b.mono { font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.mjob-top small { margin-left: auto; color: var(--muted); font-size: 12px; }
.mjob-dev { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.mjob-problem { margin: 0; color: var(--ink-soft); font-style: normal; font-size: 13.5px; background: var(--panel-soft); border-radius: 10px; padding: 8px 10px; }
.mjob-where { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.mjob-where > svg { flex: none; width: 17px; height: 17px; color: var(--green-700); }
.mjob-where > span { flex: 1; min-width: 0; }
.mjob-nav { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.mjob-nav svg { width: 18px; height: 18px; }
.mjob-actions { display: flex; gap: 8px; }
.mjob-actions > * { flex: 1; }
.mjob-actions .btn, .mjob-actions button { width: 100%; justify-content: center; }
.mjob-actions .btn svg { width: 17px; height: 17px; }

/* ===== Profil (usta va mijoz) ===== */
.pf-card { background: linear-gradient(160deg, var(--blue-bg) 0%, var(--green-50) 100%); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.pf-card-top { display: flex; gap: 12px; align-items: flex-start; }
.pf-photo .avatar { width: 64px; height: 64px; font-size: 20px; background: var(--green-800); color: var(--on-accent, var(--panel)); border: 3px solid var(--panel); box-shadow: var(--shadow); }
.pf-photo:hover { text-decoration: none; }
.pf-card-who { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.pf-card-who b { font-family: var(--font-head); font-size: 18px; }
.pf-card-who small { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; }
.pf-card-who small svg { width: 14px; height: 14px; color: var(--muted); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; background: color-mix(in srgb, var(--panel) 90%, transparent); border-radius: 12px; padding: 10px 4px; text-align: center; }
.pf-stats div { display: grid; gap: 2px; min-width: 0; padding: 0 4px; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats b { font-family: var(--font-head); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stats small { color: var(--muted); font-size: 11.5px; }
.pf-group { display: flex; align-items: center; gap: 8px; margin: 18px 2px 8px; font-size: 16px; font-weight: 700; }
.pf-group::before { content: ''; width: 4px; height: 18px; border-radius: 3px; background: var(--green-700); }
.pf-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: var(--ink); min-height: 60px; }
.pf-row + .pf-row { border-top: 1px solid var(--panel-soft); }
.pf-row:hover { text-decoration: none; background: var(--panel-soft); }
.pf-row > svg { color: var(--muted); width: 18px; height: 18px; flex: none; }
.pf-row.static { align-items: center; }
.pf-row.static form { margin: 0; }
.pf-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-soft); color: var(--green-700); }
.pf-ico svg { width: 20px; height: 20px; }
.pf-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pf-row-main b { font-size: 14.5px; font-weight: 600; }
.pf-row-main small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pf-logout { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 8px; min-height: 50px; border-radius: 14px;
  background: var(--red-bg); color: #b91c1c; font-weight: 700; }
.pf-logout:hover { text-decoration: none; background: var(--red-bg); }
.pf-logout svg { width: 18px; height: 18px; }

/* ===== Kassa (usta hamyoni) ===== */
.ks-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.12), transparent 50%), linear-gradient(140deg, var(--grad-from), var(--green-900));
  box-shadow: var(--shadow-lg); }
.ks-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ks-top small { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #a7f3d0; }
.ks-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 600; }
.ks-pill i { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; }
.ks-pill.off i { background: var(--red-bg); }
.ks-amount { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1.1; margin: 10px 0 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ks-amount span { font-size: 18px; color: #a7f3d0; font-weight: 600; }
.ks-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px; }
.ks-sub small { display: block; font-size: 12px; color: #a7f3d0; }
.ks-sub b { font-family: var(--font-head); font-size: 18px; font-variant-numeric: tabular-nums; }
.ks-sub b span { font-size: 12px; color: #a7f3d0; }
.ks-limit { background: var(--blue-bg); border: 1px solid #e0e7ff; border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.ks-limit-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ks-limit-top b { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ks-limit-top svg { width: 18px; height: 18px; color: var(--ink-soft); }
.ks-bar { height: 8px; border-radius: 99px; background: #dbe3f7; overflow: hidden; }
.ks-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-700); }
.ks-bar i.hot { background: #dc2626; }
.ks-limit-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.ks-limit-foot b { color: var(--green-700); }
.ks-limit-foot b.neg { color: var(--red-ink); }
.ks-topup { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 12px; border-radius: var(--r);
  background: var(--panel); border: 1px dashed var(--line-strong); }
.ks-topup > svg { color: var(--green-700); flex: none; margin-top: 2px; }
.ks-topup b { display: block; font-size: 14.5px; }
.ks-topup small { color: var(--muted); font-size: 12.5px; }
.ks-rule { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--panel-soft); border: 1px solid var(--line); margin-bottom: 4px; }
.ks-rule > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--green-100); color: var(--green-800); }
.ks-rule b { font-size: 14.5px; }
.ks-rule p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.ks-ops { display: grid; gap: 8px; }
.ks-op { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.ks-op-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); color: #3730a3; }
.ks-op-ico.in { background: var(--green-100); color: var(--green-800); }
.ks-op-ico svg { width: 20px; height: 20px; }
.ks-op-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ks-op-main b { font-size: 14px; }
.ks-op-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-op-sum { text-align: right; display: grid; justify-items: end; gap: 4px; }
.ks-op-sum b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ks-op-sum b.neg { color: #dc2626; }
.ks-op-sum b.pos { color: var(--green-700); }
.ks-op-sum .chip { font-size: 10.5px; padding: 2px 7px; }

/* ===== Buyurtma kartasi — usta ko'rinishi (2026-10-06) ===== */
.chip-k { font-weight: 500; opacity: .75; margin-right: 2px; }
.od-strip { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px;
  border-radius: 12px; background: var(--blue-bg); font-size: 12.5px; color: var(--ink-soft); }
.od-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green-800); }
.od-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }
.od-hero { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.od-hero-top { display: flex; align-items: center; gap: 8px; }
.od-code { background: var(--green-100); color: var(--green-800); font-weight: 800; padding: 3px 9px; border-radius: 8px; font-size: 13px; }
.od-hero h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.od-problem { margin: 0; font-size: 14px; color: var(--ink-soft); }
.od-client { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--blue-bg); border-radius: 12px; }
.od-client > svg { width: 18px; height: 18px; color: var(--muted); }
.od-client b { flex: 1; font-size: 14.5px; }
.od-call { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); font-size: 14px; }
.od-call svg { width: 16px; height: 16px; }
.app-main .map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-main .map-links .btn { width: 100%; }
.app-main .map-links small { grid-column: 1 / -1; }

/* ===== Mijoz ilovasi: bosh sahifa (2026-10-06) ===== */
.ch-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ch-loc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.ch-loc:hover { text-decoration: none; }
.ch-pin { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.ch-loc b { display: block; font-family: var(--font-head); font-size: 17px; }
.ch-loc small { display: block; color: var(--muted); font-size: 12.5px; }
.ch-head .app-round { position: relative; }
.ch-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); border: 2px solid var(--panel); }
.ch-search { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
.ch-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
body.app .ch-search input { padding-left: 42px; padding-right: 48px; border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-sm); min-height: 50px; }
body.app .ch-search button { position: absolute; right: 6px; min-height: 38px; width: 38px; padding: 0; border-radius: 10px; background: transparent; color: var(--muted); }
body.app .ch-search button:hover { background: var(--panel-soft); }
.ch-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; color: #fff; margin-bottom: 12px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.1), transparent 55%), linear-gradient(140deg, #1b4332, #2d6a4f 55%, #1b4332);
  box-shadow: 0 8px 30px -4px rgba(27, 67, 50, .3); }
.ch-hero-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: rgba(52, 211, 153, .2); color: #a7f3d0;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ch-hero h2 { margin: 10px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; max-width: 78%; }
.ch-hero p { margin: 0 0 10px; font-size: 14px; color: #d1fae5; max-width: 78%; }
.ch-hero ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #ecfdf5; }
.ch-hero li { display: flex; align-items: center; gap: 8px; }
.ch-hero li svg { width: 16px; height: 16px; color: #fcd34d; }
.ch-hero-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 2026-10-25: «Usta chaqirish» — tizim o'zi topadi; ostida katalogga havola (ustani o'zi tanlash). */
.ch-hero-alt-link { position: relative; z-index: 1; margin: 10px 0 0; text-align: center; font-size: 13px; }
.ch-hero-alt-link a { color: #d1fae5; display: inline-flex; align-items: center; gap: 2px; }
.ch-hero-alt-link svg { width: 14px; height: 14px; }
body.app .ch-hero-main { background: var(--hero-btn-bg, var(--panel)); color: var(--hero-btn-ink, var(--green-800)); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
body.app .ch-hero-main svg { color: #f59e0b; }
body.app .ch-hero-alt { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.ch-hero-actions .btn { font-size: 14px; padding-left: 8px; padding-right: 8px; }
.ch-hero-art { position: absolute; right: -18px; bottom: 34px; opacity: .14; }
.ch-hero-art svg { width: 150px; height: 150px; stroke-width: 1; }
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ch-tile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 4px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; color: var(--ink-soft); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; box-shadow: var(--shadow-sm); }
.ch-tile:hover { text-decoration: none; border-color: var(--green-200); }
.ch-tile-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.ch-tile-ico svg { width: 22px; height: 22px; }
.ch-tile.more .ch-tile-ico { background: var(--panel-soft); color: var(--ink-soft); }
.ch-cards { display: grid; gap: 8px; }
.ch-card, .ch-widget { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); box-shadow: var(--shadow-sm); }
.ch-card:hover, .ch-widget:hover { text-decoration: none; border-color: var(--line-strong); }
.ch-card-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.ch-card-ico.amber { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-line); }
.ch-card-ico.red { background: var(--red-bg); color: var(--red-ink); border-color: var(--red-line); }
.ch-card-ico svg { width: 20px; height: 20px; }
.ch-card-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ch-card-main b { font-size: 14.5px; }
.ch-card-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-widget { margin-top: 14px; background: linear-gradient(90deg, var(--green-50), var(--green-50)); border-color: var(--green-200); }
.ch-widget .btn { flex: none; }
.ch-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none;
  scroll-padding-inline: 16px; /* 2026-10-25: «yopishish» ichki bo'shliqni hisobga olsin — kartochka ekran chetiga tegmaydi */ }
.ch-rail::-webkit-scrollbar { display: none; }
.ch-rail .vt-post { scroll-snap-align: start; box-shadow: var(--shadow-sm); border-radius: var(--r-lg); }
.ch-rail .vt-media img, .ch-rail .vt-media video { aspect-ratio: 16 / 10; }
.ch-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 18px 0 8px; padding: 14px 6px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.ch-trust div { display: grid; justify-items: center; gap: 6px; }
.ch-trust svg { width: 24px; height: 24px; color: var(--green-700); }
.ch-trust small { font-size: 11px; color: var(--ink-soft); line-height: 1.25; }
.ch-order { color: var(--ink); }
.ch-order:hover { text-decoration: none; border-color: var(--line-strong); }
.ch-order .mjob-where > svg:last-child { color: var(--muted); }
.ch-order-sum { margin: 0; font-size: 13px; color: var(--ink-soft); }
.ch-empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 28px 16px; }
.ch-empty > svg { width: 40px; height: 40px; color: var(--line-strong); }
.ch-empty p { margin: 0; color: var(--muted); }

/* Vitrina bannerlari — dizayndagi kabi yumaloq va soyali */
.vt-banners { border-radius: 20px; }
.vt-banner { border-radius: 20px; }

/* Yordam */
.hp-safe { display: flex; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--amber-bg); border: 1px solid #fde68a; color: #78350f; }
.hp-safe > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--amber-bg); color: #b45309; }
.hp-safe b { font-size: 14.5px; }
.hp-safe p { margin: 3px 0 0; font-size: 13px; color: #92400e; line-height: 1.5; }
.hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-tile { display: grid; gap: 6px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); box-shadow: var(--shadow-sm); }
.hp-tile:hover { text-decoration: none; border-color: var(--green-200); }
.hp-tile b { font-size: 14.5px; }
.hp-tile small { color: var(--muted); font-size: 12.5px; }
.hp-faq details { border-top: 1px solid var(--panel-soft); }
.hp-faq details:first-child { border-top: 0; }
.hp-faq summary { cursor: pointer; padding: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.hp-faq summary::after { content: '+'; color: var(--green-700); font-weight: 800; }
.hp-faq details[open] summary::after { content: '–'; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq p { margin: 0; padding: 0 14px 14px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.pf-lang { display: inline-flex; background: var(--panel-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.pf-lang a { padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }
.pf-lang a:hover { text-decoration: none; background: var(--panel); }
.pf-photo .avatar { display: grid; }
.pf-list + .card, .pf-list + section.card { margin-top: 16px; }
.ch-hero-actions .btn { white-space: nowrap; gap: 6px; }
.ch-hero-art { right: -26px; bottom: 70px; opacity: .1; }

/* ===== Mijoz: «Mening jihozlarim» (2026-10-06) ===== */
.jh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.jh-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.jh-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
body.app .jh-add { flex: none; min-height: 42px; border-radius: 999px; padding: 8px 16px; background: var(--green-900); box-shadow: var(--glow); font-size: 14px; }
.jh-search { margin-bottom: 10px; }
.jh-types { margin-bottom: 12px; }
.jh-types .seg-item { min-height: 32px; font-size: 12.5px; }
.jh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.jh-tile { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-lg); color: var(--ink); border: 1px solid; min-width: 0; }
.jh-tile:hover { text-decoration: none; }
.jh-tile.green { background: var(--green-50); border-color: var(--green-200); }
.jh-tile.amber { background: var(--amber-bg); border-color: #fde68a; }
.jh-tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.jh-tile-top > svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--panel); }
.jh-tile.green .jh-tile-top > svg { color: var(--green-700); }
.jh-tile.amber .jh-tile-top > svg { color: #d97706; }
.jh-tile small { color: var(--ink-soft); font-size: 12.5px; }
.jh-tile b { font-family: var(--font-head); font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.jh-list { display: grid; gap: 12px; margin-bottom: 14px; }
.jh-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.jh-card-top { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.jh-card-top:hover { text-decoration: none; }
.jh-card-top > svg { color: var(--muted); width: 18px; height: 18px; margin-top: 4px; }
.jh-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.jh-ico svg { width: 26px; height: 26px; }
.jh-card-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.jh-card-main b { font-family: var(--font-head); font-size: 16.5px; }
.jh-card-main small { color: var(--muted); font-size: 12.5px; }
.jh-card-main small.mono { font-size: 11.5px; color: #94a3b8; }
.jh-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.jh-badges .chip { display: inline-flex; align-items: center; gap: 4px; }
.jh-badges .chip svg { width: 13px; height: 13px; }
.jh-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--panel-soft); }
.jh-actions .btn { font-size: 14px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.jh-actions .btn svg { width: 17px; height: 17px; }
.jh-actions .btn:not(.outline) { background: var(--green-900); }
body.app .sec-label { margin-top: 18px; }
details.editor.card { padding: 14px 16px; }

/* ===== Mijoz: buyurtma sahifasi (/m/) — bosqichlar, usta, smeta, kafolat (2026-10-06) ===== */
.co-steps { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.co-steps-head { display: flex; justify-content: space-between; align-items: center; }
.co-steps-head small { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.co-eta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: var(--panel-soft); font-size: 14px; }
.co-eta svg { width: 18px; height: 18px; color: var(--green-700); }
.co-eta b { color: var(--green-700); }
.co-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.co-track li { display: grid; justify-items: center; gap: 6px; position: relative; text-align: center; }
.co-track li::before { content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.co-track li:first-child::before { display: none; }
.co-track li.done::before, .co-track li.now::before { background: var(--green-600); }
.co-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-soft); color: #94a3b8; border: 2px solid var(--line); }
.co-dot svg { width: 18px; height: 18px; }
.co-track li.done .co-dot { background: var(--green-700); border-color: var(--green-700); color: var(--on-accent, var(--panel)); }
.co-track li.now .co-dot { background: var(--green-50); border-color: var(--green-500); color: var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.co-track small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.co-track li.done small, .co-track li.now small { color: var(--ink); }
.co-msg { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--green-50); color: var(--ink-soft); font-size: 14px; }
.co-msg svg { flex: none; width: 18px; height: 18px; color: var(--green-700); }
.co-master { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.co-master > .avatar { width: 56px; height: 56px; font-size: 18px; border-radius: 16px; background: var(--green-800); color: var(--on-accent, var(--panel)); }
.co-master-main { display: grid; gap: 3px; justify-items: start; }
.co-master-main small { color: var(--muted); font-size: 12px; }
.co-master-main b { font-family: var(--font-head); font-size: 17px; }
.co-master-main .chip { display: inline-flex; align-items: center; gap: 4px; }
.co-master-main .chip svg { width: 13px; height: 13px; }
.co-master-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-master-actions .btn:only-child { grid-column: 1 / -1; }
.co-master-actions .btn:not(.outline) { background: var(--green-900); }
.co-info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 16px; margin-bottom: 12px; }
.co-lines { display: grid; gap: 8px; margin-bottom: 12px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel-soft); font-size: 14px; }
.co-line b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px; border-radius: 14px;
  background: var(--blue-bg); margin-bottom: 12px; }
.co-total span { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.co-total b { font-family: var(--font-head); font-size: 26px; color: var(--green-800); font-variant-numeric: tabular-nums; }
.co-total b small { font-size: 14px; color: var(--ink-soft); }
.co-decide { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.co-decide button:not(.sec) { background: var(--green-900); }
.co-code { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.co-code-warn { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(140deg, var(--grad-from), var(--green-900)); color: #fff; }
.co-code-warn svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.14); }
.co-code-warn b { font-size: 15px; }
.co-code-warn p { margin: 3px 0 0; font-size: 13px; color: #d1fae5; }
.co-code .sec-label { margin: 4px 2px 0; }
.co-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; border-radius: 14px; background: var(--green-50); border: 1px solid var(--green-100); }
.co-digits span { display: grid; place-items: center; height: 64px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--green-800); box-shadow: var(--shadow-sm); }
.co-done { border-radius: var(--r-lg); padding: 18px; margin-bottom: 12px; color: #fff; background: linear-gradient(140deg, var(--grad-from), var(--green-900)); box-shadow: var(--shadow-lg); }
.co-done-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; }
.co-done-chip svg { width: 14px; height: 14px; }
.co-done h2 { margin: 10px 0 4px; font-size: 22px; font-weight: 800; }
.co-done p { margin: 0; color: #d1fae5; font-size: 13.5px; }
.co-done-sum { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 34px; font-variant-numeric: tabular-nums; }
.co-done-sum small { font-size: 16px; color: #a7f3d0; }
.co-warranty { border: 1.5px solid var(--green-200); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; background: var(--green-50); display: grid; gap: 10px; }
.co-warranty-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co-warranty-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green-800); }
.co-warranty-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); }
.co-warranty-body { background: var(--panel); border: 1px solid var(--green-100); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.co-warranty-body > small, .co-warranty-grid small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.co-warranty-body > b { font-size: 15px; }
.co-warranty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--panel-soft); }
.co-warranty-grid b { display: block; font-size: 14px; }
.co-warranty-grid b.green { color: var(--green-700); }
.co-warranty .note { display: flex; gap: 6px; align-items: center; margin: 0; }
.co-warranty .note svg { width: 15px; height: 15px; color: var(--green-700); }
/* Baholash: 1–5 tugmalar yulduzcha uslubida */
body.app .stars label { border-radius: 12px; min-height: 44px; display: grid; place-items: center; padding: 0; }
body.app .stars input:checked + label { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.co-total b { white-space: nowrap; }
.cab-item-head { flex-wrap: wrap; row-gap: 6px; }
/* Kirish: rol kartalari ikonka bilan (2026-10-06) */
body.login-page { background: radial-gradient(120% 60% at 50% 0%, var(--green-50) 0%, var(--bg) 55%); }
.login-head .logo-mark { background: var(--green-800); box-shadow: var(--glow); }
.role-choice-item { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; box-shadow: var(--shadow-sm); border-radius: 18px; }
.role-choice-item > svg { color: var(--muted); width: 18px; height: 18px; }
.role-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.role-ico svg { width: 24px; height: 24px; }
.role-text { display: grid; gap: 3px; }
.role-text b { font-family: var(--font-head); font-size: 17px; }
.role-text small { color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.role-choice-item:hover, .role-choice-item:focus-visible { border-color: var(--green-600); box-shadow: var(--shadow); }
body.login-page .card { border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
body.login-page button, body.login-page .btn { min-height: 48px; border-radius: 12px; font-size: 15px; }
body.login-page input { min-height: 48px; border-radius: 10px; }

/* ===== Narx kalkulyatori va usta tanlash (2026-10-06) ===== */
.kl-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 20px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(140deg, #1b4332, #2d6a4f); box-shadow: 0 8px 30px -4px rgba(27, 67, 50, .3); }
.kl-hero h2 { margin: 10px 0 6px; font-size: 21px; font-weight: 800; max-width: 80%; line-height: 1.25; }
.kl-hero p { margin: 0; font-size: 13.5px; color: #d1fae5; max-width: 80%; }
.kl-hero-ico { position: absolute; top: 16px; right: 16px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #6ee7b7; }
.kl-hero-ico svg { width: 28px; height: 28px; }
.kl-cats { margin-bottom: 14px; }
.kl-step { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 4px 2px 10px; }
.kl-step .sec-label { margin: 0 0 2px; }
.kl-step b { font-family: var(--font-head); font-size: 17px; }
.kl-step a { font-size: 13px; font-weight: 600; margin-left: 6px; }
.kl-list { display: grid; gap: 10px; margin-bottom: 14px; }
.kl-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); box-shadow: var(--shadow-sm); }
.kl-item:hover { text-decoration: none; border-color: var(--green-200); }
.kl-item.on { background: var(--green-50); border-color: var(--green-500); box-shadow: var(--shadow); }
.kl-item-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-soft); color: var(--ink-soft); }
.kl-item.on .kl-item-ico { background: var(--green-700); color: var(--on-accent, var(--panel)); }
.kl-item-ico svg { width: 20px; height: 20px; }
.kl-item-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.kl-item-main b { font-size: 15px; }
.kl-item-main small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kl-item-main small svg { width: 16px; height: 16px; color: var(--muted); }
.kl-item-main em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.kl-radio { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel-soft); display: grid; place-items: center; color: #fff; }
.kl-radio.on { background: var(--green-700); border-color: var(--green-700); }
.kl-radio svg { width: 15px; height: 15px; }
.kl-bar { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 8px 0 14px; padding: 12px 12px 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
body.client:not(.has-tabs) .kl-bar { bottom: 12px; }
.kl-bar small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kl-bar b { font-family: var(--font-head); font-size: 16px; color: var(--green-800); white-space: nowrap; }
.kl-bar .btn { flex: none; background: var(--green-800); box-shadow: var(--glow); }
.co-total { flex-wrap: wrap; }
.co-total b { font-size: clamp(20px, 6vw, 26px); }
.kl-bar > span { min-width: 0; }
.kl-bar b { white-space: normal; font-size: 15px; }
.kl-bar .btn { padding-left: 14px; padding-right: 14px; }
/* Chat (dizayn 2026-10-06): kiruvchi — oq pufak, o'zingizniki — to'q yashil */
body.app .chat { background: var(--panel-soft); border-radius: 14px; padding: 12px; }
body.app .chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
body.app .chat-msg.left { border-bottom-left-radius: 6px; }
body.app .chat-msg.right { background: var(--green-800); border-color: var(--green-800); color: var(--on-accent, var(--panel)); border-bottom-right-radius: 6px; }
body.app .chat-msg.right .chat-head small { color: #a7f3d0; }
body.app .chat-body { font-size: 14.5px; }
body.app .chat-form input { border-radius: 999px; padding-left: 16px; }
body.app .chat-form button { border-radius: 999px; }
.ch-hero-actions .btn { white-space: normal; min-width: 0; line-height: 1.2; text-align: center; }
.ch-hero-actions .btn svg { flex: none; }
.ch-grid, .hp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-tile span:last-child { overflow-wrap: anywhere; hyphens: auto; }
.app-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app-tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.rj-stats, .jh-tiles, .co-master-actions, .rj-task-actions, .rj-offer-actions { min-width: 0; }
.rj-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-tile { padding: 12px 2px; font-size: 11.5px; }
.ch-tile span:last-child { overflow-wrap: break-word; word-break: normal; }

/* TZ#18: bildirishnomalar markazi */
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inbox-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.inbox-item.unread { border-color: var(--green-200); box-shadow: inset 3px 0 0 var(--green-700); }
.inbox-item.read { opacity: .8; }
.inbox-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inbox-meta small { color: var(--muted); }
.inbox-body { margin: 0; white-space: pre-line; }
.inbox-item form { margin: 0; }
.bell-link { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.bell-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--red-ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* TZ#7: ko'cha xaritasi (public/map.js) */
.txmap { margin: 6px 0 12px; display: grid; gap: 8px; }
.txmap-view { position: relative; height: var(--map-h, 320px); overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel-soft); touch-action: none; cursor: grab; outline: none; }
.txmap-view:focus-visible { box-shadow: 0 0 0 3px var(--green-200); }
.txmap-view:active { cursor: grabbing; }
.txmap-tiles img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.txmap-line { position: absolute; inset: 0; pointer-events: none; }
.txmap-line polyline { fill: none; stroke: var(--green-700); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 6 4; opacity: .85; }
.txmap-marks { position: absolute; inset: 0; pointer-events: none; }
.txmap-pin { position: absolute; transform: translate(-50%, -100%); min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 13px 13px 13px 2px; background: var(--green-700); color: var(--on-accent, var(--panel)); border: 2px solid var(--panel);
  font: 700 12px/22px system-ui, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  pointer-events: auto; text-decoration: none; }
.txmap-pin.kind-start { background: #111827; }
.txmap-pin.kind-master { background: #2563eb; }
.txmap-pin.kind-branch { background: #7c3aed; }
.txmap-pin.kind-order { background: #d97706; }
.txmap-pin.kind-shop { background: #db2777; }
.txmap-pin.kind-home, .txmap-pin.kind-picked { background: #dc2626; }
.txmap-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green-700); vertical-align: middle; }
.txmap-dot.kind-start { background: #111827; } .txmap-dot.kind-master { background: #2563eb; }
.txmap-dot.kind-branch { background: #7c3aed; } .txmap-dot.kind-order { background: #d97706; }
.txmap-dot.kind-shop { background: #db2777; } .txmap-dot.kind-home { background: #dc2626; }
.txmap-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 4px; }
.txmap-zoom button, .txmap-locate { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: var(--panel);
  color: var(--ink); border: 1px solid var(--line); font-size: 18px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.txmap-locate { position: absolute; right: 10px; bottom: 30px; }
.txmap-attr { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: 10px; background: color-mix(in srgb, var(--panel) 90%, transparent); color: #333; }
.txmap-search { display: flex; gap: 6px; }
.txmap-search input { flex: 1; min-width: 0; }
.txmap-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.txmap-results button { width: 100%; text-align: left; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.txmap-layers { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.txmap-status { font-size: 13px; color: var(--muted); min-height: 1em; }
.txmap-failed .txmap-view { display: none; }

/* TZ#1, #2, #16: savdo */
.mk-filters { display: grid; gap: 6px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mk-card { display: grid; gap: 4px; align-content: start; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; color: var(--ink); text-decoration: none; }
.mk-card:hover { border-color: var(--green-200); }
.mk-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--panel-soft); }
.mk-noimg { display: grid; place-items: center; color: var(--muted); }
.mk-title { font-weight: 600; line-height: 1.25; }
.mk-price strong { font-size: 1.05em; } .mk-price s { margin-left: 6px; }
.mk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.mk-gallery figure { margin: 0; display: grid; gap: 4px; }
.mk-specs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.mk-specs dt { color: var(--muted); } .mk-specs dd { margin: 0; }
.mk-line { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.mk-line-title { display: grid; min-width: 0; }
.mk-bad { opacity: .65; }
.mk-fulfil { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 4px; }
.mk-pages { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.mk-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); background: var(--panel); }
.mk-tabs a.on { background: var(--green-900); color: var(--on-accent, var(--panel)); border-color: var(--green-900); }
.mk-qrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mk-qrs figure { margin: 0; text-align: center; } .mk-qrs svg { max-width: 140px; height: auto; }
@media (max-width: 520px) { .mk-line { grid-template-columns: minmax(0, 1fr) 4em auto; } .mk-line > strong { grid-column: 1 / -1; text-align: right; } }

/* Doskada qidirish (2026-10-19) */
.board-search { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }
.board-search input[type="search"] { flex: 1 1 260px; min-width: 0; margin: 0; }
.board-search .btn, .board-search button { flex: none; }

/* Smeta: yo'l haqi (2026-10-19) */
.travel-box { border: 1px solid var(--line, #dfe7e2); border-radius: 12px; padding: 10px 14px 4px; margin: 12px 0; }
.travel-box legend { padding: 0 6px; font-weight: 600; font-size: 14px; }

/* Platforma boshqaruvi (2026-10-19): ruxsatlar, katalog */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin: 6px 0 10px; }
.perm-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.perm-check input { width: auto; margin: 0; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.inline-add { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-add input { flex: 1 1 auto; min-width: 0; margin: 0; }
.inline-add button { flex: none; }
.staff-row { border-top: 1px solid var(--line, #dfe7e2); padding: 10px 0; }
.staff-row summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Katalog va qidiruv (2026-10-19): ixcham qidiruv, alohida bo'limlar, e'lonlar lentasi */
.kat-search { margin: 4px 0 14px; }
.kat-search-row { display: flex; align-items: center; gap: 0; background: var(--panel, var(--panel)); border: 1px solid var(--line, #dfe7e2);
  border-radius: 14px; padding: 4px 4px 4px 14px; box-shadow: var(--shadow-sm, none); }
.kat-search-row input { flex: 1 1 auto; min-width: 0; border: 0; margin: 0; padding: 10px 6px; background: transparent; box-shadow: none; font-size: 15px; }
.kat-search-row input:focus { outline: none; }
.kat-search-row button { flex: none; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 11px; display: grid; place-items: center; }
.kat-search-row button svg { width: 20px; height: 20px; }
.kat-filters { display: flex; gap: 8px; margin-top: 8px; }
.kat-filters select { flex: 1 1 0; min-width: 0; margin: 0; padding: 8px 10px; font-size: 14px; min-height: 0; height: 40px; }
.kat-sec { margin: 18px 0 8px; }
.kat-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.kat-sec-head h2 { margin: 0; font-size: 18px; }
.kat-sec > .note { margin: 0 0 8px; }
.kat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 6px; }
.kat-rail .vt-post { scroll-snap-align: start; }
@media (min-width: 760px) { .kat-rail { grid-auto-columns: minmax(240px, 300px); } }

/* 2026-10-20: e'lon rasmi kesilmaydi — rasm ichidagi yozuv to'liq ko'rinadi (kartaga sig'adi, chetlari och fon). */
.vt-media img { object-fit: contain; background: var(--panel-soft, var(--green-50)); }
.kat-rail .vt-media img, .kat-rail .vt-media video { aspect-ratio: 16 / 10; }

/* 2026-10-26 UstaGo «Vitrinam»: e'lonni tahrirlash — rasmlar to'ri (muqova, o'chirish), e'lon ostidagi tugmalar. */
.vt-mine-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vt-mine-actions .inline-form { margin: 0; }
.vt-rev { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.vt-rev.tone-amber { background: var(--amber-bg); color: var(--amber-ink); }
.vt-rev.tone-red { background: var(--red-bg); color: var(--red-ink); }
.vt-edit-media { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.vt-edit-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.vt-edit-item.is-first { border-color: var(--green-600); box-shadow: 0 0 0 2px var(--green-100); }
.vt-edit-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--panel-soft); }
.vt-edit-item figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; }
.vt-edit-item figcaption .inline-form { margin: 0; }

/* 2026-10-26: buyurtma kartasi tepasi (usta ko'rinishi) telefonda o'ng chetdan chiqib ketardi — uzun to'lov
   belgisi («Naqd qabul qilindi — mijoz tasdig'i kutilmoqda») va «Qo'ng'iroq» bir qatorga sig'masdi. */
.od-hero > * { min-width: 0; }
.od-hero .chips .chip { white-space: normal; max-width: 100%; }
.od-client { flex-wrap: wrap; }
.od-client b { min-width: 0; overflow-wrap: anywhere; }
.od-call { flex: none; }

/* 2026-10-26 Rejam: «Joriy vazifa» — dastur tavsiyasi sababi («Vaqti o'tdi — 11:30 edi», «Yo'ldasiz»…). */
.rj-why { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.rj-why svg { width: 14px; height: 14px; flex: none; color: var(--green-600); }

/* 2026-10-26 UstaGo «Ustaxona»: texnikalar ro'yxati (karta o'zi bosiladi, qo'ng'iroq — ikonka). */
.wsx-list { display: grid; gap: 12px; }
.wsx { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  padding: 14px; display: grid; gap: 4px; }
.wsx.is-late { border-color: var(--red-line); }
.wsx-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.wsx-top { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.wsx-top .inline-form, .wsx-top > .wsx-ico { margin-left: auto; position: relative; z-index: 2; }
.wsx-ico { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--panel-soft);
  color: var(--ink); border: 1px solid var(--line); }
.wsx-ico svg { width: 20px; height: 20px; }
.wsx-dev { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsx-problem { margin: 0; color: var(--ink-soft); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wsx-meta, .wsx-where { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.wsx-meta b { color: var(--ink); font-weight: 600; }
.wsx-meta .wsx-late { color: var(--red-ink); display: inline-flex; align-items: center; gap: 4px; }
.wsx-late svg, .wsx-where svg { width: 14px; height: 14px; flex: none; }
.wsx-where { gap: 6px; }
.wsx-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 16px; text-align: center; color: var(--muted); }
.wsx-empty svg { width: 32px; height: 32px; color: var(--green-600); }
.wsx-empty p { margin: 0; }
.seg-item small { font-size: 12px; opacity: .75; }
.wsx-form { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.wsx-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wsx-form .wide { width: 100%; justify-content: center; margin-top: 8px; }
.wsx-accept { width: 100%; justify-content: center; margin-top: 12px; }

/* 2026-10-26 UstaGo texnika kartasi: holat yo'li, bitta asosiy tugma, uzatish. */
.wsx-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px; }
.wsx-hero.is-late { border-color: var(--red-line); }
.wsx-title { margin: 4px 0 0; font-size: 20px; }
.wsx-path { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.wsx-path li { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 11px; color: var(--muted); }
.wsx-path li i { width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.wsx-path li.done i { background: var(--green-600); }
.wsx-path li.now i { background: var(--green-800); height: 6px; }
.wsx-path li.now { color: var(--ink); font-weight: 600; }
.wsx-path li span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.wsx-actions { display: grid; gap: 8px; margin-bottom: 12px; }
.wsx-actions form { display: grid; gap: 8px; margin: 0; }
.wsx-actions .wide, .wsx-box .wide { width: 100%; justify-content: center; }
.wsx-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-soft); font-size: 14px; color: var(--ink-soft); }
.wsx-photo svg { width: 20px; height: 20px; flex: none; }
.wsx-photo input { flex: 1 1 100%; min-width: 0; font-size: 12.5px; }
.wsx-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--panel-soft); color: var(--ink-soft); font-size: 13.5px; }
.wsx-note svg { width: 18px; height: 18px; flex: none; color: var(--green-600); }
.wsx-row { display: grid; gap: 8px; margin-bottom: 12px; }
.wsx-row > form { margin: 0; }
.wsx-row > form > button, .wsx-row > details > summary.btn { width: 100%; justify-content: center; }
.wsx-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wsx-more > summary::-webkit-details-marker { display: none; }
.wsx-more[open] > form { display: grid; gap: 8px; margin-top: 10px; }
.wsx-more summary svg { width: 18px; height: 18px; }
.wsx-pending { border-color: var(--amber-line); background: var(--amber-bg); }
.wsx-pending p { margin: 0 0 10px; }
.wsx-facts { margin: 0; display: grid; gap: 10px; }
.wsx-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.wsx-facts dt { color: var(--muted); }
.wsx-facts dd { margin: 0; }
.wsx-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.wsx-photos a { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.wsx-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.wsx-history { margin-bottom: 12px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.wsx-history ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.wsx-history small { color: var(--muted); }
.wsx-links { display: grid; gap: 12px; padding: 4px 4px 16px; font-size: 14px; }
.wsx-links > a, .wsx-links summary { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.wsx-links svg { width: 18px; height: 18px; }
.wsx-shelf { display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.wsx-remind { text-decoration: none; align-items: center; color: var(--ink); border: 1px solid var(--amber-line); background: var(--amber-bg); }
.wsx-remind:hover { text-decoration: none; }
.wsx-remind span { flex: 1; }
.wsx-remind svg { color: var(--amber-ink); }

/* 2026-10-26 UstaGo zapchastlar: ustaxona kartasi va «Omborim» (tannarx ko'rsatilmaydi). */
.zp-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.zp-title svg { width: 18px; height: 18px; color: var(--green-600); }
.zp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.zp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.zp-main { display: grid; gap: 2px; min-width: 0; }
.zp-main small { color: var(--muted); font-size: 12.5px; }
.zp-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.zp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.zp-wait { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13.5px; color: var(--amber-ink); }
.zp-wait svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.zp-box .wsx-more { margin-top: 10px; }
.wsx-alt[open] > form { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
/* Qabul formasi: tez tanlov tugmalari (radio) — «Bugun · Ertaga · 3 kun · 1 hafta», «Mijozning o'zi / Boshqa odam». */
.wsx-form .zp-title { margin: 14px 0 2px; }
.wsx-form .zp-title:first-child { margin-top: 0; }
.wsx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wsx-chips label { position: relative; }
.wsx-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.wsx-chips span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.wsx-chips input:checked + span { background: var(--green-800); border-color: var(--green-800); color: var(--on-accent, var(--panel)); }
.wsx-chips input:focus-visible + span { outline: 2px solid var(--green-600); outline-offset: 2px; }

/* 2026-10-26 (Ustalar): servis va usta sahifasi — 3 raqam, bitta «Shu servisni chaqirish», bajarilgan ishlar kartalari. */
.kt-head h2 { margin: 0 0 8px; font-family: var(--font-head); font-size: 22px; }
.kt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kt-chips .chip svg { width: 12px; height: 12px; vertical-align: -1px; }
.kt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kt-stat { background: var(--panel-soft); border-radius: var(--r-sm); padding: 10px 8px; text-align: center; }
.kt-stat b { display: block; font-family: var(--font-head); font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kt-stat small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.kt-facts li { display: flex; gap: 8px; align-items: flex-start; }
.kt-facts svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.kt-call { width: 100%; }
.kt-closed { margin: 0; }
.kt-sec { margin-top: 16px; }
.kt-sec h2 { font-family: var(--font-head); font-size: 18px; margin: 0 0 12px; }
.kt-works { display: grid; gap: 12px; }
.kt-work { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.kt-work-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.kt-work-head time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.kt-work h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.kt-work-device { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.kt-work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.kt-work-meta b { font-variant-numeric: tabular-nums; color: var(--ink); }
.kt-work-meta svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.kt-work-review { margin-top: 10px; padding: 8px 10px; background: var(--panel-soft); border-radius: var(--r-sm); font-size: 14px; }
.kt-work-review q { display: block; margin-top: 2px; color: var(--ink-soft); quotes: '«' '»'; }
.kt-stars { color: var(--amber-ink); letter-spacing: 1px; }
.kt-stars-off { color: var(--line-strong); }
.kt-more { width: 100%; margin-top: 12px; }
.kt-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-align: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); }
.kt-empty > svg { width: 32px; height: 32px; color: var(--line-strong); }
.kt-empty p { margin: 0; color: var(--muted); }

/* 2026-10-26 (Ustalar): e'lon galereyasi — har rasmda «1/3», pastda nuqtalar, kompyuterda o'qlar. */
.vt-gallery-wrap { position: relative; }
.vt-slide { position: relative; margin: 0; scroll-snap-align: start; }
.vt-count { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(15, 23, 42, .62); color: #fff; font-variant-numeric: tabular-nums; }
/* Nuqtalar rasm ostida (rasm ustida och fonda ko'rinmay qolardi). */
.vt-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; pointer-events: none; }
.vt-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.vt-dots i.on { background: var(--ink-soft); width: 16px; border-radius: 999px; }
.vt-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0;
  border-radius: 50%; border: 0; background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--ink); font-size: 22px; line-height: 1;
  box-shadow: var(--shadow-sm); cursor: pointer; }
.vt-prev { left: 8px; } .vt-next { right: 8px; }
@media (hover: hover) and (pointer: fine) { .vt-gallery-wrap:hover .vt-nav { display: grid; place-items: center; } }
.vt-gallery { scrollbar-width: none; }
.vt-gallery::-webkit-scrollbar { display: none; }

/* 2026-10-26 (Ustalar): «Servisdagi texnikam» — va'da kuni o'tgan bo'lsa. */
.ws-late { color: var(--red-ink); font-weight: 600; }

/* 2026-10-26 (Ustalar, 3-bo'lim 2-qadam): servisdagi texnika kartasi — bosqichlar, hujjatlar, kvitansiya. */
.ws-track li.wait::before { background: var(--green-600); }
.ws-track li.wait .co-dot { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); box-shadow: 0 0 0 4px var(--amber-bg); }
.ws-date { font-size: 11px; color: var(--muted); margin-top: -4px; }
.ws-docs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ws-docs-head h3 { margin: 0; font-size: 16px; }
.ws-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-photos a { display: grid; gap: 4px; text-decoration: none; color: var(--muted); font-size: 12px; }
.ws-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--panel-soft); }
.ws-receipt-head { display: grid; gap: 2px; color: var(--muted); }
.ws-receipt-head small { white-space: nowrap; }
.ws-receipt h2 { margin: 8px 0 4px; font-family: var(--font-head); font-size: 20px; }
.ws-tag { margin: 0 0 8px; color: var(--ink-soft); }
.ws-code { display: grid; justify-items: center; gap: 4px; margin: 12px 0; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.ws-code small { color: var(--muted); font-size: 12px; }
.ws-code b { font-size: 28px; letter-spacing: .2em; }
.co-lines-head { display: block; margin: 4px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media print { .ws-receipt .actions, .client-tabs, .tabbar { display: none !important; } }

/* 2026-10-26 (Ustalar, 3-bo'lim 4-qadam): baho va qayta murojaat kartasi. */
.ac-card { display: grid; gap: 12px; }
.ac-rated { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ac-rated q { color: var(--ink-soft); quotes: '«' '»'; }
.ac-again summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.ac-again summary svg { width: 16px; height: 16px; }
.ac-again[open] summary { margin-bottom: 8px; }
.ac-new { margin: 0; }

/* 2026-10-27 UstaGo Rejam: marshrut qatoridagi belgilar («Keyingi manzil», «Kechikdi») tor ekranda keyingi qatorga o'tadi —
   sahifa yonga surilmaydi (aks holda pastki menyu ham ekrandan chiqib ketardi). */
.rj-step-top { flex-wrap: wrap; justify-content: flex-start; }
.rj-step-top b { flex: 1 1 100%; min-width: 0; }

/* 2026-10-27 UstaGo: katta shriftda (telefon sozlamasi) pul miqdori kesilmaydi — keyingi qatorga o'tadi («830 0…» emas). */
.rj-stat b { white-space: normal; overflow-wrap: anywhere; }

/* 2026-10-27 UstaGo qobig'ida (yakka usta ERP sahifalarini ham shu yerda ochadi — «Xizmatlarim», «Narxlarim»):
   uzun «Tahrirlash: …» tugmasi va raqamli kataklar telefon enidan chiqmaydi. ERP ko'rinishiga tegmaydi. */
.mshell details.editor > summary { max-width: 100%; white-space: normal; overflow-wrap: anywhere; border-radius: 18px; }
.mshell .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mshell .stat { min-width: 0; overflow-wrap: anywhere; }
.mshell .card, .mshell main { min-width: 0; }

/* 2026-10-28 UstaGo «Hisobotim» va ish hisoboti. */
.hb-form { display: grid; gap: 6px; }
.hb-form .wide { width: 100%; justify-content: center; margin-top: 6px; }
.hb-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.hb-range label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); flex: 1 1 130px; min-width: 0; }
.hb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.hb-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: grid; gap: 2px; min-width: 0; }
.hb-stats small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-stats b { font-family: var(--font-head); font-size: 20px; overflow-wrap: anywhere; }
.hb-stats b span { font-size: 12px; color: var(--muted); }
.hb-money { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.hb-item { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  padding: 14px; display: grid; gap: 4px; }
.hb-when { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.hb-line { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.hb-star { color: var(--amber-ink); font-weight: 700; }
@media (max-width: 480px) { .hb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 2026-10-28 UstaGo «Ish tarixim»: qidiruv. */
.th-search { display: grid; gap: 8px; margin-bottom: 12px; }
.th-q { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.th-q svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.th-q input { border: 0; padding: 12px 0; flex: 1; min-width: 0; background: transparent; }
.th-q input:focus { outline: none; }
.th-q:focus-within { border-color: var(--green-600); }
.th-search .wide { width: 100%; justify-content: center; }
.th-head { margin: 4px 0 10px; font-size: 15px; color: var(--ink-soft); }

/* 2026-10-27 (Ustalar): aqlli qidiruv — tushunilgan so'rov va topilmasa texnika turlari. */
.qd-understood { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qd-understood svg { width: 16px; height: 16px; color: var(--muted); }
.qd-empty p { margin: 0 0 10px; }
.qd-cats { display: flex; flex-wrap: wrap; gap: 8px; }

/* 2026-10-27 (Ustalar): e'lon kartalarida «Batafsil va buyurtma» bir tekis — matn qisqa yoki uzun bo'lsa ham tugma kartaning pastida. */
.vt-post { display: flex; flex-direction: column; }
.vt-post > * { min-width: 0; }
.vt-post-body { flex: 1; display: flex; flex-direction: column; }
.vt-post-body > .btn:last-child { margin-top: auto; }

/* 2026-10-28 (Ustachi «Jihozlarim»): soddalashtirilgan texnika kartasi — tepada kafolat, ko'rik, «Usta chaqirish»;
   qolgani yig'iladigan qatorlar (src/ustalar/jihozlar/view.js). */
.kt-top .kt-photo { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r); margin: -4px 0 14px; }
.kt-top h2 { margin: 0; font-size: 18px; }
.kt-place { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.kt-status { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.kt-status li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); font-size: 14px; font-weight: 600; }
.kt-status li > svg { width: 18px; height: 18px; flex: none; }
.kt-status li > span { flex: 1 1 160px; min-width: 0; }
.kt-status li form { margin: 0; }
.kt-status li button { padding: 6px 14px; font-size: 13px; }
.kt-call { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 14px; font-size: 16px; }
.kt-call svg { width: 18px; height: 18px; }
.card.kt-row, body.app .card.kt-row { padding: 0; margin-bottom: 10px; }
.kt-row > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.kt-row > summary::-webkit-details-marker { display: none; }
.kt-row > summary > svg { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .15s ease; }
.kt-row[open] > summary > svg { transform: rotate(90deg); }
.kt-row-body { padding: 0 16px 16px; }
.kt-row-body > .card { box-shadow: none; padding: 0; border: 0; margin: 12px 0 0; }

/* 2026-10-28 (Ustachi, Admin #55): qidiruvda rasmiy servis markazi — logo, «Rasmiy servis», manzil, ish vaqti, qo'ng'iroq. */
.rs-card { display: grid; gap: 8px; }
.rs-head { display: flex; align-items: center; gap: 12px; }
.rs-head h3 { margin: 0 0 4px; font-size: 16px; }
.rs-head .chip svg { width: 13px; height: 13px; vertical-align: -2px; }
.rs-logo { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: contain; background: var(--panel-soft); border: 1px solid var(--line); }
.rs-logo-empty { display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--green-700); }
.rs-brands { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.rs-line { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.rs-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.rs-call { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.rs-call svg { width: 17px; height: 17px; }

/* 2026-10-28 (Ustachi «Usta chaqirish»): manzil — joylashuv tugmasi va yozayotganda takliflar (public/ui.js). */
.ad-pick { position: relative; display: grid; gap: 8px; }
.ad-locate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.ad-locate svg { width: 17px; height: 17px; }
.ad-field { position: relative; }
.ad-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 260px; overflow: auto; }
.ad-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.ad-list li:hover { background: var(--panel-soft); }
.ad-list li.ad-saved::before { content: "\2605  "; color: var(--green-700); }
.ad-status { margin: 0; }
.ad-locate[hidden], .ad-list[hidden] { display: none; }

/* 2026-10-28 (Ustachi): bosh sahifadagi «Boshqa xizmatlar» qatori — chapdagi belgi joyida qoladi. */
.ch-more > summary > svg:first-child { margin-left: 0; color: var(--green-700); }
.ch-more .kt-row-body.pf-list { padding: 0 8px 8px; }

/* 2026-10-29 (Ustachi): qidiruvda «Hammasi (N)» — bo'lim ro'yxatining davomi. */
.kat-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-weight: 600; color: var(--green-700); text-decoration: none; }
.kat-more svg { width: 16px; height: 16px; }

/* 2026-10-29 (Ustachi): «Texnikalarim» — bitta ro'yxat (src/ustalar/jihozlar/view.js applianceListView). */
.tl-head { display: grid; gap: 12px; margin-bottom: 14px; }
.tl-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tl-add { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 13px; font-size: 15px; }
.tl-add svg { width: 18px; height: 18px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-chips .chip { font-size: 12px; }

/* 2026-10-28 UstaGo: ovozdan matn — matn maydoni burchagidagi mikrofon (public/ui.js). Tinglayotganda qizil, «nafas oladi». */
.voice-box { position: relative; }
.voice-box textarea { padding-right: 56px; }
.voice-btn { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--green-50); color: var(--green-700); box-shadow: var(--shadow-sm); }
.voice-btn:hover { background: var(--green-100); }
.voice-btn.on { background: var(--red-ink); color: #fff; animation: voice-pulse 1.2s ease-in-out infinite; }
.voice-note { display: block; margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
@keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, .35); } 50% { box-shadow: 0 0 0 8px rgba(185, 28, 28, 0); } }
@media (prefers-reduced-motion: reduce) { .voice-btn.on { animation: none; } }

/* 2026-10-28 UstaGo «Mijoz roziligi»: mijoz smetani / naqd to'lovni usta telefonida tasdiqlaydi — yirik summa, ikki tugma. */
.rz-sum { margin: 0; font: 800 26px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.rz-box { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.rz-hand { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--green-700); font-weight: 600; font-size: 14px; }
.rz-hand svg { width: 18px; height: 18px; }
.rz-title { margin: 0; font: 700 22px/1.25 var(--font-head); }
.rz-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rz-items li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.rz-items li span { min-width: 0; overflow-wrap: anywhere; }
.rz-items li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rz-total { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rz-total b { font: 800 28px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.rz-form { display: grid; gap: 10px; }
.rz-form input[name="digits"] { font-size: 24px; letter-spacing: .4em; text-align: center; }
.rz-more summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.rz-more[open] { display: grid; gap: 8px; }

/* 2026-10-29 UstaGo «Keyingi qadam» (src/ustago/jarayon): buyurtma kartasi tepasida holat, navbat kimda va bitta asosiy tugma. */
.jr-card { display: grid; gap: 10px; border-color: var(--green-200); background: var(--green-50); }
.jr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.jr-state { font: 700 18px/1.3 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.jr-who { font-size: 13px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.jr-text { margin: 0; color: var(--ink-soft); }
.jr-card form { margin: 0; }
.jr-card form button, .jr-card .btn { width: 100%; justify-content: center; text-align: center; }

/* 2026-10-29 UstaGo buyurtma kartasi (src/ustago/karta): ochiq — manzil va xarita; qolgani yig'ma qatorlar. */
.mshell .kt-place { display: grid; gap: 4px; }
.mshell .kt-rows { display: grid; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mshell .kt-row { border-top: 1px solid var(--line); }
.mshell .kt-row:first-child { border-top: 0; }
.mshell .kt-row > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; min-height: 52px; }
.mshell .kt-row > summary::-webkit-details-marker { display: none; }
.mshell .kt-row > summary::after { content: '›'; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s ease; }
.mshell .kt-row[open] > summary::after { transform: rotate(90deg); }
.mshell .kt-label { font-weight: 600; color: var(--ink); }
.mshell .kt-value { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.mshell .kt-body { padding: 0 16px 14px; display: grid; gap: 8px; min-width: 0; }
.mshell .kt-body > .card, .mshell .kt-body .card { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
.mshell .kt-body .card > h2 { font-size: 15px; margin: 6px 0 4px; color: var(--muted); }
.mshell .kt-back { margin: 12px 0 0; }
.mshell .kt-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; }
.mshell .kt-back svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .mshell .kt-row > summary::after { transition: none; } }

/* 2026-10-29 UstaGo ishonchlilik: tiklangan qoralama yozuvi va internetsiz navbat chizig'i (public/ui.js). */
.df-note { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--amber-bg); color: var(--amber-ink);
  font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.df-note .link { background: none; border: 0; padding: 0; min-height: 0; color: inherit; text-decoration: underline; font-weight: 600; cursor: pointer; }
.ox-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--panel); font-size: 14px; box-shadow: var(--shadow-lg); }

/* 2026-10-29 UstaGo dizayni (dizayner: A Zumrad · B Qorong'i · C Dala — usta /dizayn da tanlaydi).
   Tuzilma bitta, ranglar mavzudan. «Harakat zonasi» (--act-*) — faqat shu yerda harakat qilinadi. */
:root { --act-bg: var(--green-900); --act-ink: #ffffff; --act-muted: var(--green-200); --act-btn-bg: var(--panel); --act-btn-ink: var(--green-800); }

/* Keyingi qadam — harakat zonasi */
.mshell .jr-card { background: var(--act-bg); color: var(--act-ink); border: 0; box-shadow: var(--shadow-lg); padding: 18px; gap: 12px; }
.mshell .jr-state { color: var(--act-ink); font-size: 22px; letter-spacing: -.01em; }
.mshell .jr-who { color: var(--act-bg); background: var(--green-500); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }
.mshell .jr-text { color: var(--act-ink); opacity: .86; font-size: 16px; line-height: 1.45; }
.mshell .jr-card form button, .mshell .jr-card .btn { min-height: 56px; font-size: 17px; border-radius: var(--r); }
.mshell .jr-card button:not(.sec), .mshell .jr-card .btn:not(.sec) { background: var(--act-btn-bg, var(--panel)); color: var(--act-btn-ink, var(--green-800)); border: 0; font-weight: 700; }
.mshell .jr-card .sec { background: transparent; color: var(--act-ink); border: 1px solid color-mix(in srgb, var(--act-ink) 28%, transparent); }

/* Manzil — ochiq */
.mshell .kt-place { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.mshell .kt-place-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mshell .kt-place-label svg { width: 16px; height: 16px; }
.mshell .kt-addr { font: 700 20px/1.3 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.mshell .kt-sub { color: var(--ink-soft); font-size: 14.5px; }
.mshell .kt-go { display: flex; gap: 10px; margin-top: 6px; }
.mshell .kt-go .kt-route { flex: 1; min-height: 52px; justify-content: center; font-size: 16px; }
.mshell .kt-go .inline-form { margin: 0; display: flex; }
.mshell .kt-icon-btn { width: 52px; min-width: 52px; height: 52px; min-height: 52px; padding: 0; display: grid; place-items: center; border-radius: var(--r); }
.mshell .kt-icon-btn svg { width: 22px; height: 22px; }
.mshell .kt-place small a { color: var(--muted); }

/* Texnika va muammo — foto bilan */
.mshell .kt-head { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.mshell .kt-photo { width: 72px; height: 72px; flex: none; border-radius: var(--r); object-fit: cover; background: var(--panel-soft); }
.mshell .kt-head-main { display: grid; gap: 3px; min-width: 0; }
.mshell .kt-device { font: 700 17px/1.3 var(--font-head); color: var(--ink); }
.mshell .kt-problem { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.mshell .kt-client { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.mshell .kt-client svg { width: 15px; height: 15px; }

/* Yig'ma qatorlar — ikonka bilan */
.mshell .kt-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--panel-soft); color: var(--ink-soft); }
.mshell .kt-ico svg { width: 18px; height: 18px; }
.mshell .kt-row > summary { justify-content: flex-start; }
.mshell .kt-rows { box-shadow: var(--shadow-sm); }

/* 2026-10-30 UstaGo «Yangi»: mijoz chaqiruvlari kelishi uchun tayyorlik ro'yxati (yakka usta). */
.rd-card { display: grid; gap: 10px; border-color: var(--amber-line); }
.rd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rd-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rd-list li:first-child { border-top: 0; }
.rd-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.rd-mark svg { width: 16px; height: 16px; }
.rd-list .ok .rd-mark { background: var(--green-50); color: var(--green-700); }
.rd-list .no .rd-mark { background: var(--amber-bg); color: var(--amber-ink); }
.rd-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rd-main small { color: var(--muted); }
.rd-list .btn { flex: none; }
.mjob-new.is-call { border-color: var(--green-200); }

/* 2026-10-30 UstaGo yo'lda: joylashuv yuborilmayotgani haqida bitta aniq yozuv; «Mashinam» formasi. */
.gps-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 39;
  padding: 10px 14px; border-radius: var(--r); background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); }
.gps-bar:hover { text-decoration: none; }
.pf-car { display: grid; gap: 8px; padding: 12px 14px; }
.pf-car .note { margin: 0; }
.pf-car button { justify-self: start; }

/* 2026-10-30 UstaGo Rejam: platforma kelishuvi taklifi. */
.rj-agree { margin: 0; font-size: 16px; }
/* 2026-11-02 UstaGo soddalashtirish. */
.mshell .app-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mshell .rj-task-actions:not(.two) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.mshell .hb-check { border: 1px solid var(--line); border-radius: var(--radius, 12px); padding: 10px 12px; margin: 12px 0; }
.mshell .hb-check legend { font-weight: 700; padding: 0 6px; }
.mshell .hb-check label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-weight: 400; margin: 0; }
.mshell .hb-check input { width: 22px; height: 22px; flex: none; margin: 0; }
.mshell .rj-new { display: grid; gap: 10px; }
.mshell .kt-change { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px;
  border-radius: var(--radius, 12px); background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--ink); }
.mshell .kt-change span { display: grid; gap: 2px; }
.mshell .kt-notes { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.mshell .kt-notes li { padding: 8px 10px; border-radius: var(--radius, 12px); background: var(--bg); border: 1px solid var(--line); max-width: 88%; }
.mshell .kt-notes li.mine { margin-left: auto; background: var(--amber-bg); border-color: var(--amber-line); }
.mshell .kt-notes p { margin: 2px 0 0; white-space: pre-wrap; }
.mshell .kt-notes small { color: var(--muted); }
.mshell .kt-note-form { display: grid; gap: 6px; }
.mshell .kt-note-form button { justify-self: start; }
.mshell .kt-change small { color: var(--muted); }
.mshell .rj-new button.wide { width: 100%; }
.mshell .rj-task > form, .mshell .rj-task > .btn.wide { margin-top: 10px; }
.mshell .rj-new > form, .mshell .rj-new > .btn.wide { margin-top: 0; }
.mshell .item-row.simple { display: grid; grid-template-columns: 1fr 56px 96px; gap: 6px; }
.mshell .pf-car-box summary { cursor: pointer; padding: 4px 0; color: var(--muted); }
.rj-agree b { font: 800 26px/1.2 var(--font-head); color: var(--ink); }
.rj-agree-no summary { cursor: pointer; color: var(--muted); padding: 6px 0; }

/* #79 Admin dashboard (egasi 2026-11-03, namuna «Donezo»): och fon, oq yumaloq kartalar, to'q yashil urg'u.
   Faqat tokenlar — har mavzuda ishlaydi. 12 ustunli to'r: kompyuterda KPI 4 ta yonma-yon, telefonda bir ustun. */
.adash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.adash-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.adash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adash-seg { margin: 0; }
.adash-date { display: flex; gap: 8px; align-items: center; margin: 0; }
.adash-date input { min-height: 36px; width: auto; margin: 0; border-radius: 999px; padding: 0 14px; }
.adash-date button { min-height: 36px; border-radius: 999px; padding: 0 16px; }
.adash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.adash-card { grid-column: span 4; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.adash-kpi { grid-column: span 3; }
.adash-chart { grid-column: span 5; }
.adash-today { grid-column: span 3; }
.adash-recent { grid-column: span 4; }
.adash-masters { grid-column: span 4; }
.adash-gauge { grid-column: span 4; }
.adash-cash { grid-column: span 4; }
.adash-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adash-title h3 { margin: 0; font: 700 16px/1.3 var(--font-head); color: var(--ink); }
.adash-title small, .adash-title a { font-size: 12.5px; color: var(--muted); }
.adash-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.adash-go { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink); transform: rotate(-45deg); }
.adash-go svg { width: 16px; height: 16px; }
.adash-go:hover { text-decoration: none; border-color: var(--ink); }
.adash-num { font: 700 40px/1.05 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.adash-delta { margin: 0; font-size: 12.5px; color: var(--muted); }
.adash-delta.up { color: var(--green-700); }
.adash-delta.down { color: var(--red-ink); }
.adash-kpi.is-main { background: var(--act-bg); border-color: transparent; color: var(--act-ink); box-shadow: var(--shadow); }
.adash-kpi.is-main .adash-kpi-top, .adash-kpi.is-main .adash-num { color: var(--act-ink); }
.adash-kpi.is-main .adash-delta { color: var(--act-muted); }
.adash-kpi.is-main .adash-go { background: var(--act-btn-bg); border-color: transparent; color: var(--act-btn-ink); }
.adash-card svg.adash-bars { width: 100%; height: auto; max-height: 220px; display: block; }
.adash-bar-in { fill: var(--green-600); }
.adash-bar-out { fill: var(--green-900); }
.adash-bar-empty { fill: url(#adash-stripe); }
.adash-stripe-bg { fill: var(--panel-soft); }
.adash-stripe-line { stroke: var(--line-strong); }
.adash-bars g.is-on .adash-tick { fill: var(--ink); font-weight: 700; }
.adash-tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.adash-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.adash-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 4px; vertical-align: -1px; }
.adash-dot.in, .adash-dot.closed { background: var(--green-600); }
.adash-dot.out { background: var(--green-900); }
.adash-dot.working { background: var(--green-200); }
.adash-dot.waiting { background: var(--amber-line); }
.adash-dot.empty { background: var(--panel-soft); border: 1px solid var(--line-strong); }
.adash-big { margin: 0; font: 700 22px/1.25 var(--font-head); color: var(--ink); }
.adash-muted { margin: 0; color: var(--muted); font-size: 13.5px; }
.adash-today .btn { margin-top: auto; justify-content: center; }
.adash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adash-list a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 12px; color: inherit; min-width: 0; }
.adash-list a:hover { background: var(--panel-soft); text-decoration: none; }
.adash-li-main { flex: 1; min-width: 0; display: grid; }
.adash-li-main b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adash-li-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adash-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--green-50); color: var(--green-800); }
.adash-ico svg { width: 18px; height: 18px; }
.adash-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--green-100);
  color: var(--green-800); font: 700 14px/1 var(--font-head); }
.adash-card svg.adash-gauge-svg { width: 100%; height: auto; max-width: 300px; margin: 0 auto; display: block; }
.adash-arc-bg, .adash-arc { fill: none; stroke-width: 22; stroke-linecap: butt; }
.adash-arc-bg { stroke: var(--panel-soft); }
.adash-arc.closed { stroke: var(--green-600); }
.adash-arc.working { stroke: var(--green-200); }
.adash-arc.waiting { stroke: var(--amber-line); }
.adash-gauge-num { fill: var(--ink); font: 700 30px var(--font-head); }
.adash-cash { background: var(--act-bg); border-color: transparent; color: var(--act-ink); box-shadow: var(--shadow); }
.adash-cash .adash-title h3 { color: var(--act-ink); }
.adash-cash .adash-title a { color: var(--act-muted); }
.adash-cash-num { margin: 0; font: 700 38px/1.1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adash-cash-num small { font-size: 14px; font-weight: 600; color: var(--act-muted); }
.adash-cash-meta { margin: 0; color: var(--act-muted); font-size: 13.5px; }
.adash-cash-meta b { color: var(--act-ink); }
.adash-cash-warn { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); font-size: 13px; }
.adash-section { margin: 8px 0 12px; font: 700 18px/1.3 var(--font-head); color: var(--ink); }
.adash-more > summary { cursor: pointer; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.adash-more[open] > summary { margin-bottom: 16px; }
.nav-app { margin: 14px 10px 4px; padding: 14px; border-radius: 16px; background: var(--act-bg); color: var(--act-ink); display: grid; gap: 8px; }
.nav-app b { font: 700 14px/1.3 var(--font-head); }
.nav-app small { color: var(--act-muted); font-size: 12.5px; }
.nav-app a { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--act-btn-bg); color: var(--act-btn-ink); font-weight: 700; font-size: 13px; }
.nav-app a:hover { text-decoration: none; }
@media (max-width: 1180px) {
  .adash-kpi { grid-column: span 6; }
  .adash-chart, .adash-recent { grid-column: span 12; grid-row: auto; }
  .adash-today, .adash-masters, .adash-gauge, .adash-cash { grid-column: span 6; }
}
@media (max-width: 640px) {
  .adash-grid { gap: 12px; }
  .adash-card, .adash-today, .adash-masters, .adash-gauge, .adash-cash { grid-column: span 12; }
  .adash-kpi { grid-column: span 6; padding: 14px; }
  .adash-num { font-size: 30px; }
  .adash-kpi .adash-delta { font-size: 11.5px; }
  .adash-head, .adash-tools { align-items: stretch; }
  .adash-date { flex: 1; }
  .adash-date input { flex: 1; }
}

/* #81 Umumiy kirish (egasi 2026-11-03, namuna: ikki qismli sahifa). Chapda — brend paneli (mavzu rangi), o'ngda — forma.
   Telefonda brend paneli qisqa sarlavhaga aylanadi. Faqat tokenlar. */
.slogin-page { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.slogin-page .slogin { margin: 0; padding: 0; max-width: none; width: 100%; }
.slogin { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.slogin-brand { background: var(--act-bg); color: var(--act-ink); padding: 40px 48px; display: flex; flex-direction: column; gap: 32px; }
.slogin-logo { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-head); }
.slogin-logo .logo-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--act-btn-bg); color: var(--act-btn-ink); }
.slogin-pitch { margin-top: auto; }
.slogin-pitch h1 { margin: 0 0 12px; font: 800 44px/1.1 var(--font-head); letter-spacing: -.02em; color: var(--act-ink); }
.slogin-pitch p { margin: 0; font-size: 17px; color: var(--act-muted); }
.slogin-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--act-muted); }
.slogin-points li::before { content: '•'; margin-right: 8px; color: var(--act-ink); }
.slogin-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--panel); }
.slogin-box { width: 100%; max-width: 400px; display: grid; gap: 12px; }
.slogin-box h2 { margin: 0; font: 700 28px/1.2 var(--font-head); color: var(--ink); }
.slogin-sub { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.slogin-form { display: grid; gap: 6px; }
.slogin-form label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.slogin-form input { min-height: 48px; margin: 0; }
.slogin-form button { margin-top: 14px; min-height: 50px; width: 100%; font-size: 16px; }
.slogin-forgot { margin: 4px 0 0; }
.slogin-help { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .slogin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .slogin-brand { padding: 20px 16px; gap: 10px; }
  .slogin-pitch { margin-top: 0; }
  .slogin-pitch h1 { font-size: 24px; margin-bottom: 4px; }
  .slogin-pitch p { font-size: 14px; }
  .slogin-points { display: none; }
  .slogin-panel { place-items: start center; padding: 24px 16px; }
}
