:root {
  --bg: #0f1720;
  --panel: #17222e;
  --panel-2: #1e2c3a;
  --accent: #ff7a1a;
  --accent-2: #2cb67d;
  --info: #4da3ff;
  --danger: #e5484d;
  --warn: #f0b429;
  --text: #e8edf2;
  --text-dim: #8fa1b3;
  --border: #263644;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border); }
* { scrollbar-width: thin; scrollbar-color: var(--panel-2) transparent; }

.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand span { color: var(--accent); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); color: #1a1206; border-color: var(--accent); }

.stats { display: flex; align-items: center; gap: 20px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--accent-2); }
.stat-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 9px;
  transition: color .15s ease, border-color .15s ease;
}
.logout-link:hover { color: var(--danger); border-color: var(--danger); }

/* balandlik: yuqori panelning HAQIQIY balandligi (--topbar-h, app.js o'lchaydi) - 10 ta tab 2-3 qatorga o'raladi, qat'iy 66/122px xaritaning pastini kesib qo'yardi */
.tab-panel { display: none; height: calc(100vh - var(--topbar-h, 66px)); height: calc(100dvh - var(--topbar-h, 66px)); overflow-y: auto; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

#tab-xarita { position: relative; overflow: hidden; }
.xarita-map { width: 100%; height: 100%; background: var(--panel); }

.submap-panel { display: none; width: 100%; height: 100%; position: relative; }
.submap-panel.active { display: block; }

.xarita-subtabs {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  display: flex;
  gap: 4px;
  background: rgba(23,34,46,.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.xarita-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.xarita-subtab-btn:hover:not(.active) { color: var(--text); }
.xarita-subtab-btn.active { background: var(--accent); color: #1a1206; }

.kun-filter {
  position: absolute;
  top: 60px;
  left: 12px;
  z-index: 500;
  display: flex;
  gap: 4px;
  background: rgba(23,34,46,.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--shadow);
}
.kun-chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.kun-chip:hover { color: var(--text); }
.kun-chip.active { background: var(--accent); color: #1a1206; }
.kun-chip.bugun:not(.active) { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }   /* 7 kunlik oynaning birinchi kuni (bugun) */
.kun-soni {
  display: flex;
  align-items: center;
  padding: 0 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  border-left: 1px solid var(--border);
  margin-left: 2px;
  white-space: nowrap;
}

a.tel-link { color: var(--info); font-weight: 600; text-decoration: none; }
a.tel-link:hover { text-decoration: underline; }

.mijoz-popup { font-size: 13px; line-height: 1.55; min-width: 170px; }
.mijoz-popup b { font-size: 14px; }
.mijoz-popup .mp-row { margin-top: 4px; color: var(--text-dim); }
.mijoz-popup a.mp-tel { color: var(--info); font-weight: 600; text-decoration: none; }
.mijoz-popup a.mp-tel:hover { text-decoration: underline; }
.mijoz-popup .mp-status {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
}

.xarita-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: rgba(23,34,46,.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  box-shadow: var(--shadow);
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-item + .legend-item { margin-top: 6px; }
.legend-oyna { display: block; max-width: 250px; padding-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--text); }   /* "faqat bugundan boshlab 7 kun" */
.legend-oyna b { color: var(--accent-2); white-space: nowrap; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.usta { background: var(--accent); }
.legend-dot.buyurtma { background: var(--info); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

.online-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(15,23,32,0) 0%, rgba(15,23,32,.92) 35%, rgba(15,23,32,.98) 100%);
  padding: 28px 14px 14px;
  pointer-events: none;
}
.online-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
  pointer-events: none;
}
.online-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  pointer-events: auto;
  scrollbar-width: thin;
}
.online-empty { color: var(--text-dim); font-size: 12px; padding: 10px 0; }
.usta-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 8px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.usta-chip:hover, .usta-chip:active { transform: translateY(-2px); border-color: var(--accent); background: var(--panel); }
.usta-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 rgba(44,182,125,.6);
  animation: pulseDot 1.8s infinite;
  flex-shrink: 0;
}
.usta-chip .name { font-size: 13px; font-weight: 600; }

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(44,182,125,.55); }
  70% { box-shadow: 0 0 0 8px rgba(44,182,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(44,182,125,0); }
}

.usta-marker-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 rgba(255,122,26,.6);
  animation: pulseMarker 2s infinite;
}
@keyframes pulseMarker {
  0% { box-shadow: 0 0 0 0 rgba(255,122,26,.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,122,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,26,0); }
}
.usta-label {
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.usta-label::before { display: none !important; }

.content-box { max-width: 1150px; margin: 0 auto; padding: 24px 20px 60px; }
.content-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 30px 0 12px;
}
.content-box h2::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 3px;
  background: var(--accent);
}
.content-box h2:first-child { margin-top: 0; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 13px;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-2); }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--panel-2); }
tr:last-child td { border-bottom: none; }

.amallar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* deploy23: flex-katak (td.amallar) jadval katagi emas - uning chizig'i qator bo'yidan qisqa chiqardi (tall qatorlarda 11-53px). Ajratgich chizig'i qatorning o'ziga o'tdi (border-collapse: bir xil rangli chiziqlar qo'shilmaydi) */
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
td.amallar { border-bottom: none; }

/* Ustalar: 3 darajali ruxsat tanlagichi (Yopiq / Ko'rish / To'liq) */
.u-hint { margin: -4px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.u-hint b { color: var(--text); }
.u-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid var(--border); }
.daraja-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--panel-2); }
.daraja-seg button { border-radius: 0; padding: 6px 10px; font-size: 11.5px; background: transparent; color: var(--text-dim); border-right: 1px solid var(--border); }
.daraja-seg button:last-child { border-right: none; }
.daraja-seg button.on.yopiq { background: var(--danger); color: #2b0506; }
.daraja-seg button.on.korish { background: var(--info); color: #06182b; }
.daraja-seg button.on.olish { background: var(--accent-2); color: #06281a; }
@media (max-width: 768px) {
  .daraja-seg { width: 100%; }
  .daraja-seg button { flex: 1; padding: 8px 6px; }
}

/* ---------- Buttons ---------- */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--text);
  transition: filter .12s ease, transform .12s ease, border-color .12s ease;
}
button:hover { filter: brightness(1.15); }
button:active { transform: scale(.97); }
.btn-ok { background: var(--accent-2); color: #06281a; }
.btn-danger { background: var(--danger); color: #2b0506; }
.btn-warn { background: var(--warn); color: #2b1f02; }

/* Icon-only action buttons (used in table "Amallar" columns) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); background: var(--panel); transform: translateY(-1px); }
.icon-btn.ok:hover { color: var(--accent-2); border-color: var(--accent-2); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn.warn:hover { color: var(--warn); border-color: var(--warn); }
.icon-btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.icon-btn.primary:hover { filter: brightness(1.1); color: #1a1206; }
.icon-btn:disabled { opacity: .5; pointer-events: none; }

.btn-labeled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Status badges (replace emoji circles) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--text-dim); }
.badge.warn .dot { background: var(--warn); }
.badge.ok .dot { background: var(--accent-2); }
.badge.danger .dot { background: var(--danger); }
.badge.muted .dot { background: var(--text-dim); }
.badge.info .dot { background: var(--info); }

.dot-status { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); }
.dot-status.on { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(44,182,125,.15); }

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.inline-form input {
  flex: 1;
  min-width: 140px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  transition: border-color .12s ease;
}
.inline-form input:focus { outline: none; border-color: var(--accent); }
.inline-form select {
  flex: 1;
  min-width: 140px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  transition: border-color .12s ease;
}
.inline-form select:focus { outline: none; border-color: var(--accent); }
.inline-form button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #1a1206;
  padding: 9px 16px;
}

.sana-blok, .vaqt-blok { width: 100%; }
.sana-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

.kalendar {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  max-width: 280px;
}
.kalendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}
.kalendar-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}
.kalendar-haftakunlar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 3px;   /* kunlar setkasi bilan bir xil ustun kengligi: hafta kuni sarlavhasi raqamlar ustida to'g'ri turadi */
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.kalendar-kunlar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));   /* minmax(0,..): min-height + aspect-ratio ustun kengligining minimumiga aylanib, setka konteynerdan chiqib ketmasin (deploy23: #qayta-modal) */
  gap: 3px;
}
.kal-kun {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease;
}
.kal-kun.bosh { visibility: hidden; }
.kal-kun.otgan { color: var(--text-dim); opacity: .35; pointer-events: none; }
.kal-kun.bugun { border: 1px solid var(--accent); }
.kal-kun.active { background: var(--accent); color: #1a1206; font-weight: 700; }
.kal-kun.band-kun { background: #1a1a1a; color: #555; pointer-events: none; text-decoration: line-through; }
.kal-kun.band-kun.bugun { border-color: #555; }
.vaqt-holat { margin-top: 8px; font-size: 13px; color: var(--text-dim); text-align: center; min-height: 16px; }
.vaqt-holat.band { color: var(--danger); font-weight: 600; }
.sana-label .vaqt-ish { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .85; }
.sk-qoida { margin: 8px 0 0; }
.vaqt-davom { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.vaqt-davom:empty { display: none; }
.soat-grid button.soat-btn.otgan { opacity: .35; cursor: default; }
/* deploy23d R21c: Sozlamalar -> "Xizmat davomiyligi" */
.content-box[hidden] { display: none; }
.xd-royxat { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; max-width: 760px; }
.xd-qator { display: grid; grid-template-columns: minmax(120px, 0.9fr) 262px minmax(0, 1.6fr); gap: 8px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.xd-nom { font-size: 13.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.xd-nom small { display: block; font-size: 11px; font-weight: 600; color: var(--text-dim); margin-top: 2px; }
.xd-kiritish { display: flex; align-items: center; gap: 6px; }
.xd-kiritish input { width: 64px; text-align: center; padding: 8px 6px; font-size: 14px; font-weight: 700; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.xd-kiritish input:focus { outline: none; border-color: var(--accent); }
.xd-kiritish span { font-size: 12.5px; color: var(--text-dim); }
.xd-kiritish button, .xd-taklif button { background: var(--accent); color: #1a1206; padding: 8px 12px; font-size: 12.5px; }
.xd-taklif { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--text-dim); min-width: 0; }
.xd-taklif-matn { flex: 1 1 190px; min-width: 0; line-height: 1.45; }
.xd-taklif b { color: var(--accent-2); }
.xd-taklif.yoq { color: var(--text-dim); opacity: .8; }
.xd-kiritish button.xd-standartga { background: transparent; color: var(--info); text-decoration: underline; padding: 8px 4px; }
.xd-tarix-quti { max-width: 760px; }
.xd-tarix-quti label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.xd-tarix { margin: 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.xd-xato { grid-column: 1 / -1; font-size: 12px; color: var(--danger); }
.xd-xato:empty { display: none; }
@media (max-width: 768px) {
  .xd-qator { grid-template-columns: 1fr; }
  .xd-kiritish input { min-height: 44px; width: 76px; }
  .xd-kiritish button, .xd-taklif button { min-height: 44px; }
}
.kal-kun.has-eslatma { position: relative; }
.kal-kun.has-eslatma::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.kal-kun.has-eslatma-tarix { position: relative; }
.kal-kun.has-eslatma-tarix::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: .6;
}
/* ---------- Buyurtmalar: Skejil boshqaruvi (sig'im + qo'lda band kunlar) ---------- */
.skejil-boshqaruv-sub { font-size: 13px; color: var(--text-dim); margin: -4px 0 16px; max-width: 640px; line-height: 1.5; }
.sigim-blok { margin-bottom: 24px; }
.sigim-blok label, .band-kun-blok > label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.sigim-row { display: flex; gap: 8px; max-width: 280px; }
.sigim-row input { width: 100px; }
.sigim-row button { background: var(--accent); color: #1a1206; padding: 9px 16px; }
.sigim-holat { font-size: 12.5px; color: var(--accent-2); min-height: 18px; margin-top: 6px; }
.sigim-holat.err { color: var(--danger); }
.band-kun-blok .kalendar { max-width: 280px; }
.kal-kun.band-qolda { background: rgba(229,72,77,.18); color: var(--danger); font-weight: 700; }
.kal-kun.band-qolda.bugun { border-color: var(--danger); }
.band-kun-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.band-kun-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 2px; }
.band-kun-legend .dot.avto { background: #1a1a1a; border: 1px solid #333; }
.band-kun-legend .dot.qolda { background: rgba(229,72,77,.4); margin-left: 12px; }

.sana-yoq-filter { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); margin: 10px 0; cursor: pointer; }
.sana-yoq-badge { font-size: 11px; font-weight: 700; color: var(--danger); background: rgba(229,72,77,.14); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ozg-belgi { display: inline-block; margin-top: 4px; margin-right: 4px; font-size: 11px; font-weight: 700; color: #86bfff; background: rgba(77,163,255,.14); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }   /* deploy23: ko'rilmagan mijoz/AI/usta o'zgarishi */
.ozg-belgi.usta { color: var(--warn); background: rgba(240,180,41,.14); }
.icon-btn.ozgargan { color: var(--info); border-color: var(--info); }
.b-ozgarish-filtr { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius); background: rgba(77,163,255,.1); border: 1px solid rgba(77,163,255,.35); font-size: 13px; font-weight: 700; color: #86bfff; }
.b-ozgarish-filtr .btn-mini { min-height: 36px; }
@media (max-width: 768px) { .b-ozgarish-filtr .btn-mini { min-height: 44px; } }

.eslatma-sana-sarlavha { margin: 14px 0 8px; font-size: 14px; color: var(--text-dim); font-weight: 600; }
.eslatmalar-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 30px 0 12px; }
.eslatmalar-head h2 { margin: 0; }
.eslatmalar-head button { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #1a1206; padding: 9px 14px; }
.eslatmalar-status { font-size: 13px; color: var(--text-dim); min-height: 18px; margin-bottom: 6px; }

/* ---------- Hisobot: tizim statistikasi kartalari ---------- */
.tizim-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 768px) { .tizim-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.tizim-stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
}
.tizim-stat-card .num { font-size: 23px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.tizim-stat-card .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

/* ---------- Hisobot: umumiy holat kartalari ---------- */
.hisobot-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
@media (max-width: 768px) { .hisobot-summary { grid-template-columns: 1fr; } }
.summary-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.summary-card.accent-bugun::before { background: linear-gradient(90deg, var(--accent), #ffb02e); }
.summary-card.accent-hammasi::before { background: linear-gradient(90deg, var(--info), var(--accent-2)); }
.summary-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; padding-top: 14px; }
.summary-row .lbl { color: var(--text-dim); font-weight: 600; }
.summary-row .val { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.summary-row:nth-child(2) .val { color: var(--text); }
.summary-row:nth-child(3) .val { color: var(--warn); }
.summary-row:nth-child(4) .val { color: var(--danger); }
.foyda-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
}
.foyda-badge.musbat { background: rgba(44,182,125,.16); color: var(--accent-2); box-shadow: 0 0 0 1px rgba(44,182,125,.25) inset; }
.foyda-badge.manfiy { background: rgba(229,72,77,.16); color: var(--danger); box-shadow: 0 0 0 1px rgba(229,72,77,.25) inset; }

#bugun-table td, #jami-table td { font-size: 14px; }
#bugun-table td:last-child, #jami-table td:last-child { font-weight: 800; color: var(--accent-2); font-size: 15px; }
#bugun-table td:first-child, #jami-table td:first-child { font-weight: 700; }

/* ---------- Buyurtmani ustaga biriktirish modal ---------- */
.biriktirish-royxat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 50vh; overflow-y: auto; }
.biriktirish-royxat button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  text-align: left;
}
.biriktirish-royxat button:hover { border-color: var(--accent); }
.biriktirish-royxat .bosh { color: var(--text-dim); font-size: 13px; padding: 6px 0; }
.e-qidiruv {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  font-size: 14px;
  transition: border-color .12s ease;
}
.e-qidiruv:focus { outline: none; border-color: var(--accent); }
.btn-mini {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #1a1206;
  font-weight: 600;
  cursor: pointer;
}
.btn-mini:disabled { opacity: .6; cursor: default; }
.kal-kun:not(.otgan):not(.bosh):hover { background: var(--panel); }

.vaqt-stepper { display: flex; align-items: center; gap: 12px; }
.vaqt-stepper button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 700;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
}
.vaqt-stepper button:active { background: var(--accent); color: #1a1206; }
#vaqt-korsatish { font-size: 18px; font-weight: 700; min-width: 64px; text-align: center; }

.leaflet-popup-content-wrapper { background: var(--panel-2); color: var(--text); border-radius: 10px; }
.leaflet-popup-tip { background: var(--panel-2); }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,9,13,.72);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 320px;
  max-width: 100%;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  animation: fadeIn .18s ease;
}
.modal-box-katta { width: 340px; max-height: 90vh; overflow-y: auto; }
.modal-box-katta .kalendar { max-width: none; margin-bottom: 14px; }
.modal-box-katta .vaqt-holat { margin-bottom: 10px; }
.modal-box h3 { margin: 0 0 14px; font-size: 15px; }
.modal-box input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.modal-box input:focus { outline: none; border-color: var(--accent); }
.modal-box select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.modal-box select:focus { outline: none; border-color: var(--accent); }
.modal-box textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 60px;
  font-family: inherit;
  resize: vertical;
}
.modal-box textarea:focus { outline: none; border-color: var(--accent); }
.rm-label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions button { background: var(--accent); color: #1a1206; padding: 8px 14px; }
.modal-actions button.secondary { background: var(--panel-2); color: var(--text); }

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1a2836 0%, var(--bg) 60%);
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 32px;
  width: 300px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.login-card .brand { justify-content: center; }
.login-card input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 14px;
  margin-bottom: 14px;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card button {
  width: 100%;
  background: var(--accent);
  color: #1a1206;
  padding: 11px;
  border-radius: 9px;
  font-size: 14px;
}
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 12px; }

/* ---------- Alohida, parolsiz "Yangi buyurtma" sahifasi ---------- */
.neworder-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  animation: fadeIn .3s ease;
}
.neworder-page h1 { display: flex; align-items: center; gap: 9px; font-size: 20px; margin: 0 0 18px; }
.neworder-page label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 14px 0 6px;
}
.neworder-page input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 9px;
  font-size: 15px;
}
.neworder-page input:focus { outline: none; border-color: var(--accent); }
.neworder-page #yaratish-btn, .neworder-page #saqlash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .12s ease, filter .12s ease;
}
.neworder-page #yaratish-btn:active, .neworder-page #saqlash-btn:active { transform: scale(.98); }
.neworder-page #yaratish-btn:disabled, .neworder-page #saqlash-btn:disabled { opacity: .6; }
.neworder-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  min-height: 18px;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.success-card {
  text-align: center;
  padding: 40px 32px;
  animation: successPop .45s cubic-bezier(.34, 1.56, .64, 1);
}
.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  margin: 0 auto 20px;
  animation: successPulse 1.6s ease-out infinite;
}
.success-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.success-sub {
  font-size: 15px;
  color: var(--text-dim);
}
@keyframes successPop {
  0% { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 22px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.usta-marker-wrap { position: relative; }
.usta-marker-pin {
  background: var(--accent);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.5);
}
.buyurtma-marker-wrap { position: relative; }
.buyurtma-marker-pin {
  background: var(--info);
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,.5);
}
.buyurtma-marker-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(15, 18, 24, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
}

.usta-marker-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(15, 18, 24, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
}

.soat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.soat-grid button.soat-btn {
  padding: 10px 4px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.soat-grid button.soat-btn.active { background: var(--accent); color: #1a1206; border-color: var(--accent); }
.soat-grid button.soat-btn.band {
  background: #1a1a1a;
  color: #666;
  text-decoration: line-through;
  border-color: #2a2a2a;
}

/* ---------- Responsive: jadvallar mobil ekranda kartalarga aylanadi ---------- */
@media (max-width: 768px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs { justify-content: center; gap: 5px; }
  .tab-btn { padding: 7px 10px; gap: 5px; font-size: 12.5px; }
  .stats { justify-content: center; }
  .tab-panel { height: calc(100vh - var(--topbar-h, 122px)); height: calc(100dvh - var(--topbar-h, 122px)); }
  .content-box { padding: 16px 12px 60px; }

  table.responsive-table { box-shadow: none; background: transparent; }
  table.responsive-table thead { display: none; }
  table.responsive-table, table.responsive-table tbody, table.responsive-table tr, table.responsive-table td {
    display: block;
    width: 100%;
  }
  table.responsive-table tr {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }
  table.responsive-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  table.responsive-table tr td:last-child { border-bottom: none; }
  table.responsive-table td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    flex-shrink: 0;
  }
  table.responsive-table td.amallar {
    justify-content: flex-end;
  }
  table.responsive-table td.amallar::before { display: none; }
}


/* ---------- Bildirishnomalar (qo'ng'iroq) ---------- */
.bildirish-wrap { position: relative; }
.bildirish-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s ease, color .15s ease;
}
.bildirish-btn:hover { border-color: var(--accent); color: var(--accent); }
.bildirish-btn.yangi { animation: bildirishTebran 1.4s ease-in-out infinite; border-color: var(--accent); color: var(--accent); }
@keyframes bildirishTebran { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(0); } }
.bildirish-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--panel);
}
.bildirish-panel {
  display: none; position: fixed; top: 60px; left: 12px; width: 320px; max-width: calc(100vw - 24px);
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); z-index: 950; overflow: hidden;
}
.bildirish-panel.ochiq { display: block; }
.bildirish-sarlavha { padding: 12px 16px; font-size: 12px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.bildirish-qator {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px; cursor: pointer; width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 13px; text-align: left;
}
.bildirish-qator:last-child { border-bottom: none; }
.bildirish-qator:hover { background: var(--panel-2); }
.bildirish-qator .ik { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,122,26,.14); color: var(--accent); }
.bildirish-qator .mt { flex: 1; line-height: 1.3; }
.bildirish-qator .soni { min-width: 26px; padding: 3px 8px; border-radius: 999px; background: var(--danger); color: #fff; font-weight: 800; font-size: 12px; text-align: center; }
.bildirish-bosh { padding: 22px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ---------- Hisobot: yangilash/nollash va dumaloq diagrammalar ---------- */
.hisobot-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hisobot-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 700; font-family: inherit;
}
.hisobot-btn:hover { border-color: var(--accent); }
.hisobot-btn.ogoh:hover { border-color: var(--danger); color: var(--danger); }
.hisobot-btn.aylanmoqda .ic { animation: hisobotAylan .7s linear infinite; }
@keyframes hisobotAylan { to { transform: rotate(360deg); } }
.hisobot-davr { font-size: 12px; color: var(--text-dim); }
.hisobot-davr button { background: none; border: none; color: var(--info); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; padding: 0 0 0 6px; }
.hisobot-tasdiq {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px;
  background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.35); border-radius: 12px; font-size: 13px;
}
.hisobot-tasdiq span { flex: 1; min-width: 220px; }

.diagramma-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.diagramma-karta {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px 16px; text-align: center;
}
.diagramma-karta .sarl { font-size: 12px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.halqa-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.halqa-svg { width: 100%; height: 100%; }
.halqa-fon { fill: none; stroke: var(--panel-2); stroke-width: 11; }
.halqa-chiziq { fill: none; stroke-width: 11; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.halqa-bolak { fill: none; stroke-width: 11; transition: stroke-dasharray .6s ease; }
.halqa-markaz { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.halqa-markaz .f { font-size: 24px; font-weight: 800; line-height: 1; }
.halqa-markaz .p { font-size: 10px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.diagramma-karta .past { font-size: 12px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }
.halqa-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: var(--text-dim); }
.halqa-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ---------- Chatlar (sayt jonli chatlari inbox'i) ---------- */
.tab-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  align-items: center; justify-content: center;
}
.tab-btn.active .tab-badge { box-shadow: 0 0 0 2px rgba(26,18,6,.25); }

/* Tablar 10 ta bo'lgach brend+tablar+statistika bitta qatorga sig'maydi (3 qator = 170px). Shu oraliqda statistika
   brend yoniga chiqadi, tablar alohida qatorda - yuqori panel 2 qatorda qoladi. */
@media (min-width: 769px) and (max-width: 1500px) {
  .topbar { row-gap: 8px; }
  .topbar .brand { order: 1; }
  .topbar .stats { order: 2; margin-left: auto; }
  .topbar .tabs { order: 3; flex: 0 0 100%; }
}

/* Panel balandligi: yuqori panel (topbar) haqiqiy balandligi JS'dan (--topbar-h) olinadi - telefonda tablar
   bir necha qatorga o'raladi, qat'iy 66/122px noto'g'ri chiqardi. */
#tab-chatlar {
  overflow: hidden;
  height: calc(100vh - var(--topbar-h, 66px));
  height: calc(100dvh - var(--topbar-h, 66px));
}
.chat-layout {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  height: 100%; max-width: 1500px; margin: 0 auto;
}

/* chap ustun: filtr + qidiruv + ro'yxat */
.chat-royxat-ustun { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--panel); border-right: 1px solid var(--border); }
.chat-royxat-bosh { flex: none; padding: 12px; border-bottom: 1px solid var(--border); }
.chat-filtrlar { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chat-chip:hover { border-color: var(--accent); color: var(--text); filter: none; }
.chat-chip.active { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.chat-chip .son {
  min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--panel-2); color: var(--text);
  font-size: 11px; font-weight: 800; text-align: center; line-height: 1.35;
}
.chat-chip .son:empty { display: none; }
.chat-chip .son.nol { opacity: .55; }
.chat-chip.active .son { background: rgba(26,18,6,.22); color: #1a1206; }
.chat-qidiruv-wrap { position: relative; margin-top: 8px; }
.chat-qidiruv-wrap > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-dim); display: flex; pointer-events: none; }
.chat-qidiruv-wrap input {
  width: 100%; padding: 9px 12px 9px 34px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 13px; font-family: inherit;
}
.chat-qidiruv-wrap input:focus { outline: none; border-color: var(--accent); }
.chat-royxat-xato { margin-top: 8px; font-size: 12px; color: var(--warn); }
.chat-royxat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-bosh { padding: 28px 18px; text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.5; }

.chat-el {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 12px 14px; border: none; border-radius: 0;
  border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left;
  font: inherit; cursor: pointer;
}
.chat-el:hover { background: var(--panel-2); filter: none; }
.chat-el:active { transform: none; }
.chat-el.tanlangan { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.chat-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; background: hsl(var(--h, 210) 38% 38%); letter-spacing: .02em;
}
.chat-el-asosiy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-el-qator1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-el-ism { min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-el-vaqt { flex: none; font-size: 11px; color: var(--text-dim); }
.chat-el.kutmoqda .chat-el-vaqt { color: var(--accent); font-weight: 700; }
.chat-el-matn { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-el-matn .kim { color: var(--info); font-weight: 600; }
.chat-el-qator3 { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.chat-el-xizmat { flex: 1; min-width: 0; font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-el-son {
  margin-left: auto; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* teglar: egasi (usta) va taklif holati */
.chat-teglar { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; }
.chat-teg {
  display: inline-flex; align-items: center; max-width: 100%; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.5;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-teg.usta { color: var(--text); }
.chat-teg.kutmoqda { color: var(--warn); border-color: rgba(240,180,41,.4); background: rgba(240,180,41,.1); }
.chat-teg.tasdiq { color: var(--accent-2); border-color: rgba(44,182,125,.35); background: rgba(44,182,125,.1); }
.chat-teg.bekor { opacity: .8; }
.chat-s-tafsilot > .chat-teg { padding: 1px 9px; }

/* belgi (holat) nishoni */
.chat-belgi {
  display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 9px 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim);
}
.chat-belgi::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chat-belgi.kutmoqda { color: #ff8a8d; background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.38); }
.chat-belgi.kutmoqda::before { animation: pulseDot 1.8s infinite; }
.chat-belgi.faol { color: var(--accent-2); background: rgba(44,182,125,.12); border-color: rgba(44,182,125,.32); }
.chat-belgi.qongiroq { color: var(--info); background: rgba(77,163,255,.12); border-color: rgba(77,163,255,.32); }
.chat-belgi.tugagan { color: var(--text-dim); }

/* o'ng ustun: suhbat */
.chat-suhbat-ustun { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-suhbat-bosh { margin: auto; padding: 24px; max-width: 320px; text-align: center; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-suhbat-bosh b { color: var(--text); font-size: 15px; }
.chat-suhbat-bosh small { font-size: 12.5px; line-height: 1.5; }
.chat-suhbat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-sarlavha { flex: none; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--border); }
.chat-sarlavha-ust { display: flex; align-items: center; gap: 12px; }
.chat-orqaga {
  display: none; flex: none; align-items: center; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 12.5px; font-weight: 700;
}
.chat-sarlavha-matn { flex: 1; min-width: 0; }
.chat-s-ism { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-s-tafsilot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 2px; font-size: 12.5px; color: var(--text-dim); }
.chat-s-tafsilot > span:empty { display: none; }
.chat-s-tafsilot > a:not([href]) { display: none; }
.chat-s-reklama { color: var(--info); font-weight: 600; }
.chat-amallar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-amal {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit;
}
.chat-amal:hover { border-color: var(--accent); filter: none; }
.chat-amal.xavfli:hover { border-color: var(--danger); color: var(--danger); }
.chat-amal:disabled { opacity: .55; cursor: default; }
.chat-holat-guruh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chat-amallar { align-items: center; }
.chat-amallar .chat-amal.xavfli { margin-left: auto; }
.chat-holat-guruh.band { opacity: .6; pointer-events: none; }
.chat-holat-yorliq { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-right: 2px; }
.chat-holat-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.chat-holat-btn:hover { border-color: var(--accent); color: var(--text); filter: none; }
.chat-holat-btn.active { background: rgba(44,182,125,.14); border-color: rgba(44,182,125,.4); color: var(--accent-2); cursor: default; }
.chat-tasdiq {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; font-size: 13px;
  background: rgba(229,72,77,.08); border-bottom: 1px solid rgba(229,72,77,.35);
}
.chat-tasdiq span { flex: 1; min-width: 200px; }

.chat-xabarlar-wrap { position: relative; flex: 1; min-height: 0; }
.chat-xabarlar { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-xabar-royxat { display: flex; flex-direction: column; gap: 6px; }
.chat-xabar {
  flex: none; max-width: min(78%, 560px); padding: 7px 12px 5px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  overflow-wrap: anywhere; word-break: break-word;
}
.chat-xabar.mijoz { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-xabar.operator { align-self: flex-end; background: rgba(255,122,26,.16); border: 1px solid rgba(255,122,26,.38); border-bottom-right-radius: 4px; }
.chat-xabar.tizim {
  align-self: center; max-width: 92%; padding: 4px 12px; border-radius: 999px; background: transparent;
  border: 1px dashed var(--border); color: var(--text-dim); font-size: 12px; text-align: center;
}
.chat-x-ism { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 1px; }
.chat-x-matn { white-space: pre-wrap; }
.chat-x-vaqt { margin-top: 2px; font-size: 10.5px; color: var(--text-dim); text-align: right; }
.chat-kun {
  align-self: center; flex: none; margin: 8px 0 2px; padding: 2px 11px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; font-weight: 600;
}
.chat-x-bosh { align-self: center; margin: 22px 0; color: var(--text-dim); font-size: 13px; text-align: center; }
.chat-yangi-btn {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #1a1206; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow);
}
.chat-yangi-btn:active { transform: translateX(-50%) scale(.97); }

/* AI bilan oldingi suhbat (yig'iladigan) */
.chat-tarix { flex: none; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.chat-tarix summary {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
}
.chat-tarix summary::-webkit-details-marker { display: none; }
.chat-tarix summary::before { content: '\203A'; display: inline-block; font-size: 15px; line-height: 1; transition: transform .15s ease; }
.chat-tarix[open] summary::before { transform: rotate(90deg); }
.chat-tarix-ichki { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; max-height: 260px; overflow-y: auto; }
.chat-tarix-izoh { font-size: 11px; font-style: italic; color: var(--text-dim); line-height: 1.4; }
.chat-tarix-sorov { font-size: 12.5px; color: var(--text-dim); padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-t-xabar { max-width: 88%; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-t-xabar.mijoz { align-self: flex-start; background: var(--panel-2); }
.chat-t-xabar.ai { align-self: flex-end; background: rgba(77,163,255,.14); border: 1px solid rgba(77,163,255,.28); }
.chat-t-kim { display: block; margin-bottom: 1px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }

/* javob maydoni */
.chat-javob { flex: none; padding: 10px 14px 10px; background: var(--panel); border-top: 1px solid var(--border); }
.chat-javob-izoh { margin-bottom: 8px; padding: 8px 12px; border-radius: 9px; background: rgba(240,180,41,.1); border: 1px solid rgba(240,180,41,.32); font-size: 13px; color: var(--text); }
.chat-javob-izoh.info { background: var(--panel-2); border-color: var(--border); color: var(--text-dim); font-size: 12.5px; }
.chat-javob-qator { display: flex; align-items: flex-end; gap: 8px; }
.chat-javob textarea {
  flex: 1; min-width: 0; max-height: 130px; resize: none; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.4;
}
.chat-javob textarea:focus { outline: none; border-color: var(--accent); }
.chat-javob textarea:disabled { opacity: .55; }
#chat-yuborish-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--accent); color: #1a1206; font-size: 13px;
}
#chat-yuborish-btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.chat-javob-past { display: flex; justify-content: space-between; gap: 10px; min-height: 0; font-size: 11.5px; }
.chat-javob-xato { color: var(--danger); }
.chat-javob-xato:not(:empty), .chat-javob-son:not(:empty) { margin-top: 5px; }
.chat-javob-son { margin-left: auto; color: var(--text-dim); }
.chat-toast {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 24px); padding: 8px 14px;
  border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; text-align: center;
}
.chat-toast.xato { border-color: var(--danger); color: #ff9a9d; }

@media (max-width: 820px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-layout .chat-suhbat-ustun { display: none; }
  .chat-layout.suhbat-ochiq .chat-royxat-ustun { display: none; }
  .chat-layout.suhbat-ochiq .chat-suhbat-ustun { display: flex; }
  .chat-orqaga { display: inline-flex; }
  .chat-sarlavha { padding: 10px 12px; }
  .chat-sarlavha-ust { gap: 9px; align-items: flex-start; }
  .chat-sarlavha-ust > .chat-avatar { display: none; }
  .chat-s-ism { font-size: 15px; }
  .chat-amal .m-yashir { display: none; }
  .chat-s-tafsilot a.tel-link { white-space: nowrap; }
  .chat-amallar { gap: 6px; margin-top: 8px; }
  .chat-amal { flex: 1 1 auto; justify-content: center; padding: 7px 8px; font-size: 12px; gap: 5px; }
  .chat-tasdiq { padding: 10px 12px; gap: 8px; }
  .chat-tasdiq span { flex: 1 1 100%; min-width: 0; }
  .chat-tasdiq button { flex: 1 1 0; }
  .chat-holat-guruh { order: 3; flex: 1 1 100%; gap: 5px; }
  .chat-amallar .chat-amal.xavfli { margin-left: 0; }
  .chat-holat-yorliq { display: none; }
  .chat-holat-btn { flex: 1 1 auto; justify-content: center; padding: 6px 6px; font-size: 11.5px; }
  .chat-avatar { width: 36px; height: 36px; font-size: 13px; }
  .chat-xabarlar { padding: 12px; }
  .chat-xabar { max-width: 86%; }
  .chat-javob { padding: 8px 10px; }
  .chat-javob textarea { font-size: 16px; }
  .chat-qidiruv-wrap input { font-size: 16px; }
  /* suhbat ochiq: yuqori panel yashiriladi - ekran to'liq suhbatga beriladi ("‹ Orqaga" ro'yxatga qaytaradi) */
  body.chat-toliq .topbar { display: none; }
}


/* ---------- Xaritalar: to'liq ekran, taxminiy nuqta, Google/Yandex havolalari ---------- */
.legend-dot.buyurtma.taxminiy { background: transparent; border: 2px dashed var(--info); opacity: .8; }
.buyurtma-marker-wrap.taxminiy .buyurtma-marker-pin { background: rgba(77,163,255,.45); border-style: dashed; }
.buyurtma-marker-wrap.taxminiy .buyurtma-marker-label { opacity: .75; }

/* Leaflet'ning pastki-o'ng burchagidagi "To'liq ekran" tugmasi */
.xarita-toliq-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 8px;
  background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.xarita-toliq-btn:hover { border-color: var(--accent); filter: none; }

/* To'liq ekran: panel butun oynani egallaydi (yuqori panel va ichki tablar ostida qoladi) */
.xarita-yopish {
  display: none; position: absolute; top: 12px; right: 12px; z-index: 1700; align-items: center; gap: 6px; padding: 9px 14px;
  border-radius: 10px; background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px;
}
.submap-panel.xarita-toliq {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1600; background: var(--bg);
}
.submap-panel.xarita-toliq .xarita-yopish { display: inline-flex; }
.submap-panel.xarita-toliq .xarita-legend { top: 64px; }
.submap-panel.xarita-toliq .kun-filter { top: 12px; left: 60px; }
.leaflet-popup-content-wrapper, .leaflet-popup-content { max-width: 80vw; }
.leaflet-popup-content-wrapper { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .xarita-yopish { padding: 0; width: 42px; height: 42px; justify-content: center; }
  .xarita-yopish-matn { display: none; }
  /* telefonda "Mijozlar" xaritasi legendasi pastga-chapga tushadi: tepada ichki tablar + kun filtri joy to'ldirib turibdi */
  #submap-mijozlar .xarita-legend { top: auto; right: auto; left: 12px; bottom: 28px; font-size: 11px; padding: 8px 10px; }
  .submap-panel.xarita-toliq .kun-filter { left: 12px; right: 66px; overflow-x: auto; scrollbar-width: none; }
  .submap-panel.xarita-toliq .kun-filter::-webkit-scrollbar { display: none; }
  .submap-panel.xarita-toliq .leaflet-control-zoom { display: none; }
  .submap-panel.xarita-toliq .xarita-legend { top: auto; right: auto; left: 12px; bottom: 28px; font-size: 11px; padding: 8px 10px; }
}

/* Google / Yandex havolalari (popup va jadvallarda) */
.xarita-havolalar { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.xarita-havola {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--info); font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.xarita-havola:hover { border-color: var(--info); text-decoration: none; }
.mijoz-popup .mp-havolalar, .mp-havolalar { margin-top: 8px; }
.mijoz-popup .mp-havolalar:empty, .mp-havolalar:empty { display: none; }
.mijoz-popup .mp-izoh, .mp-izoh { font-size: 11px; color: var(--text-dim); }

/* Buyurtmalar jadvali: joylashuv bloki */
.b-manzil { min-width: 0; overflow-wrap: anywhere; }
.lok-blok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.lok-manzil { flex-basis: 100%; font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) {
  .b-manzil { flex: 1; text-align: right; }
  .lok-blok { justify-content: flex-end; }
}
.usta-op-label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.usta-op-label input { width: auto; margin: 0; }

/* ---------- Sayt statistikasi ---------- */
.sayt-box { --g-kirish: var(--info); --g-ai: var(--accent); --g-forma: var(--warn); --g-aloqa: var(--accent-2); --g-bot: #a78bfa;
  --g-joylashuv: #2dd4bf; --g-boshqa: var(--text-dim); --g-server: #cbd5e1; --g-xato: var(--danger); }
.sayt-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; }
.sayt-davr { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
.sayt-chip { padding: 6px 14px; border-radius: 999px; background: transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 700; }
.sayt-chip:hover { color: var(--text); filter: none; }
.sayt-chip.active { background: var(--accent); color: #1a1206; }
.sayt-hozir { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(44,182,125,.1);
  border: 1px solid rgba(44,182,125,.3); font-size: 12.5px; color: var(--text); }
.sayt-hozir b { color: var(--accent-2); font-size: 14px; }
.sayt-yangilandi { font-size: 12px; color: var(--text-dim); }
#sayt-tarkib { transition: opacity .15s ease; }
#sayt-tarkib.yuklanmoqda { opacity: .55; }
.sayt-xato { margin-bottom: 14px; padding: 9px 12px; border-radius: 10px; background: rgba(240,180,41,.1); border: 1px solid rgba(240,180,41,.32); font-size: 13px; }
.sayt-bosh { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 40px auto; max-width: 380px; padding: 30px 20px; text-align: center;
  color: var(--text-dim); background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }
.sayt-bosh b { color: var(--text); font-size: 15px; }
.sayt-bosh small { font-size: 13px; line-height: 1.5; }
.sayt-bosh-qator { padding: 16px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* KPI kartalar */
.sayt-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sayt-kpi { position: relative; padding: 14px 14px 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sayt-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--g, var(--text-dim)); }
.sayt-kpi.kirish { --g: var(--g-kirish); } .sayt-kpi.ai { --g: var(--g-ai); } .sayt-kpi.aloqa { --g: var(--g-aloqa); } .sayt-kpi.bot { --g: var(--g-bot); }
.sayt-kpi.joylashuv { --g: var(--g-joylashuv); } .sayt-kpi.server { --g: var(--g-server); } .sayt-kpi.xato { --g: var(--g-xato); }
.sk-lbl { font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.sk-son { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.05; }
.sk-izoh { margin-top: 6px; font-size: 12px; color: var(--text-dim); line-height: 1.35; }

/* Kuzatuvlar */
.sayt-kuzatuv { display: flex; flex-direction: column; gap: 8px; }
.sayt-kuzatuv-qator { padding: 10px 14px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.5; }

/* Voronka */
.sayt-voronka { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.sv-bosh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sv-nom { font-size: 13.5px; font-weight: 700; }
.sv-nom small { font-weight: 500; color: var(--text-dim); font-size: 12px; }
.sv-soni { font-size: 18px; font-weight: 800; }
.sv-bar { height: 12px; margin-top: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.sv-tol { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--info), var(--accent-2)); transition: width .5s ease; }
.sv-qator.eng .sv-tol { background: linear-gradient(90deg, var(--info), var(--danger)); }
.sv-past { margin-top: 5px; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.sv-qator.eng .sv-past { color: #ff9a9d; }
.sv-nuqta { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(229,72,77,.22); }

/* Umumiy karta + ustunli mini grafiklar */
.sayt-karta { padding: 14px 16px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.sg-sarl { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.sg-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); }
.sg-leg i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.sg-maks { font-size: 11.5px; color: var(--text-dim); }
.sg-qator { display: flex; align-items: stretch; gap: 3px; height: 170px; padding-bottom: 20px;
  background: linear-gradient(var(--border), var(--border)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat; }
.sg-kun { position: relative; flex: 1 1 0; min-width: 0; max-width: 64px; margin: 0 auto; cursor: pointer; border-radius: 4px; outline: none; }
.sg-kun:hover, .sg-kun:focus-visible, .sg-kun.tanlangan { background: rgba(255,255,255,.06); }
.sg-ustlar { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; padding: 0 1px; }
.sg-ust { flex: 1 1 0; min-width: 1px; max-width: 18px; border-radius: 3px 3px 0 0; transition: height .4s ease; }
.sg-ust.tashrif { background: var(--info); }
.sg-ust.buyurtma { background: var(--accent-2); }
.sg-leg i.tashrif { background: var(--info); }
.sg-leg i.buyurtma { background: var(--accent-2); }
.sg-yorliq { position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%); font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.sg-info { min-height: 20px; margin-top: 6px; font-size: 12.5px; color: var(--text); }
.sg-bosh { padding: 28px 10px; text-align: center; color: var(--text-dim); font-size: 13px; }
.sayt-ikki { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.sayt-ikki h2:first-child { margin-top: 30px; }
.st-blok + .st-blok { margin-top: 18px; }
.st-sarl { font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.st-chiziq { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.st-qism { height: 100%; }
.st-qism.q1, .st-leg i.q1 { background: var(--info); }
.st-qism.q2, .st-leg i.q2 { background: var(--accent); }
.st-qism.q3, .st-leg i.q3 { background: var(--accent-2); }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--text-dim); }
.st-leg i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; }

/* Guruh belgisi, hodisalar jadvali, oxirgi hodisalar lentasi */
.sayt-g { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); }
.sayt-g::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gc, var(--text-dim)); flex-shrink: 0; }
.sayt-g.kirish { --gc: var(--g-kirish); } .sayt-g.ai { --gc: var(--g-ai); } .sayt-g.forma { --gc: var(--g-forma); } .sayt-g.aloqa { --gc: var(--g-aloqa); }
.sayt-g.bot { --gc: var(--g-bot); } .sayt-g.joylashuv { --gc: var(--g-joylashuv); } .sayt-g.boshqa { --gc: var(--g-boshqa); }
.sayt-g.server { --gc: var(--g-server); } .sayt-g.xato { --gc: var(--g-xato); }
.sayt-kod { color: var(--text-dim); font-size: 11px; }
.sayt-lenta { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sl-qator { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.sl-qator:last-child { border-bottom: none; }
.sl-qator:hover { background: var(--panel-2); }
.sl-vaqt { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.sl-asos { min-width: 0; overflow-wrap: anywhere; }
.sl-meta { color: var(--text-dim); }
.sl-kim { color: var(--text-dim); font-size: 11.5px; text-align: right; white-space: nowrap; }

/* ---------- Sayt: AI savollari, bo'limlar, mijozlar harakati (CONTRACT5) ---------- */
.sayt-juft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
#sayt-ai > .sayt-juft { margin-top: 12px; }
.sayt-juft .sayt-karta, .sayt-karta { min-width: 0; }
.sa-jami { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
/* gorizontal chiziqlar */
.sb-royxat { display: flex; flex-direction: column; gap: 11px; }
.sb-bosh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sb-nom { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.sb-soni { flex-shrink: 0; font-size: 14px; font-weight: 800; text-align: right; }
.sb-soni small { font-size: 11.5px; font-weight: 500; color: var(--text-dim); }
.sb-bar { height: 8px; margin-top: 5px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.sb-tol { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--info), var(--accent-2)); transition: width .4s ease; }
/* niyat chiplari */
.sn-chiplar { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.sn-chip b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #1a1206; font-size: 12px; text-align: center; }
/* savollar ro'yxati */
.sa-grid { margin-top: 12px; }
.sa-grid .uzun { grid-row: span 2; align-self: stretch; }   /* .sayt-juft: align-items:start - mavzu kartasi ikki qator balandligigacha cho'ziladi */
.ss-royxat { display: flex; flex-direction: column; }
.ss-qator { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.4; }
.ss-qator:first-child, .sq-qator:first-child { padding-top: 0; }
.ss-qator:last-child, .sq-qator:last-child { border-bottom: none; padding-bottom: 0; }
.ss-tr { color: var(--text-dim); font-size: 12px; font-weight: 700; text-align: center; }
.ss-matn { min-width: 0; overflow-wrap: anywhere; }
.ss-soni { padding: 1px 8px; border-radius: 999px; background: rgba(255,122,26,.14); color: var(--accent); font-size: 12.5px; }
#sayt-ai > .sayt-karta { margin-top: 12px; }
.sq-qator { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); }
.sq-qator.yashirin { display: none; }
.sq-bosh { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.sq-vaqt { color: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.sq-bel { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sq-bel.mavzu { background: rgba(77,163,255,.14); color: #86bfff; }
.sq-bel.niyat { background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }
.sq-odam { padding: 0 4px; background: transparent; color: var(--text-dim); font-size: 11px; font-family: ui-monospace, Menlo, monospace; text-align: right; }
button.sq-odam { text-decoration: underline dotted; cursor: pointer; }
button.sq-odam:hover { color: var(--text); filter: none; }
.sq-matn { font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.sq-kop { display: block; margin: 10px auto 0; padding: 7px 16px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 12.5px; font-weight: 700; }
/* Bo'limlar: 4 karta */
#sayt-bolim { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }

/* Mijozlar harakati */
.mj-filtr { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-bottom: 12px; padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
.mj-filtr .sayt-chip { display: inline-flex; align-items: center; gap: 6px; }
.mj-son { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11px; line-height: 18px; text-align: center; }
.sayt-chip.active .mj-son { background: rgba(0,0,0,.16); }
.mj-royxat { display: flex; flex-direction: column; gap: 8px; }
.mj { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mj.ochiq { border-color: #36506a; }
.mj-tugma { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; background: transparent; color: var(--text); text-align: left; border-radius: 0; }
.mj-tugma:hover { background: var(--panel-2); filter: none; }
.mj-avatar { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-2); color: var(--text-dim); font-size: 15px; font-weight: 800; }
.mj-avatar.bor { background: rgba(44,182,125,.18); color: #5fd9a8; }
.mj-asos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mj-nom-qator { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.mj-nom { font-size: 14.5px; overflow-wrap: anywhere; }
.mj-nom.anonim { color: var(--text-dim); font-weight: 700; }
.mj-sid { color: var(--text-dim); font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; }
.mj-meta { color: var(--text-dim); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.mj-m { white-space: nowrap; }
.mj-natija { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--panel-2); color: var(--text-dim); }
.mj-natija.bu { background: rgba(44,182,125,.16); color: #5fd9a8; }
.mj-natija.op { background: rgba(77,163,255,.16); color: #86bfff; }
.mj-natija.bo { background: rgba(167,139,250,.18); color: #c4b0ff; }
.mj-natija.qo { background: rgba(255,122,26,.16); color: #ffa05a; }
.mj-strelka { width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform .15s ease; }
.mj.ochiq .mj-strelka { transform: rotate(-135deg); }
.mj-aloqa { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 0 14px 12px 64px; margin-top: -4px; }
.mj-tel { padding: 4px 11px; border-radius: 999px; background: rgba(44,182,125,.14); color: #5fd9a8; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mj-tel:hover { background: rgba(44,182,125,.26); }
.mj-tur { color: var(--text-dim); font-size: 12px; }
.mj-tana-quti { border-top: 1px solid var(--border); background: rgba(0,0,0,.12); }
.mj-tana { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 12px; }
.mj-sarl { margin-bottom: 7px; font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.mj-chiplar { display: flex; flex-wrap: wrap; gap: 6px; }
.mj-chip { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.mj-yoq { color: var(--text-dim); font-size: 12.5px; }
.mj-vaqt { display: flex; flex-direction: column; border-left: 2px solid var(--border); margin-left: 4px; }
.mj-h { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; position: relative; padding: 4px 0 4px 16px; font-size: 13px; line-height: 1.4; }
.mj-h-vaqt { color: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.mj-h-matn { min-width: 0; overflow-wrap: anywhere; }
.mj-h-taf { color: var(--text-dim); }
.mj-h-n { margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; font-weight: 700; }
.mj-nuqta { position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gc, var(--text-dim)); box-shadow: 0 0 0 3px var(--panel); }
.mj-nuqta.kirish { --gc: var(--g-kirish); } .mj-nuqta.ai { --gc: var(--g-ai); } .mj-nuqta.forma { --gc: var(--g-forma); } .mj-nuqta.aloqa { --gc: var(--g-aloqa); }
.mj-nuqta.bot { --gc: var(--g-bot); } .mj-nuqta.joylashuv { --gc: var(--g-joylashuv); } .mj-nuqta.boshqa { --gc: var(--g-boshqa); }
.mj-nuqta.server { --gc: var(--g-server); } .mj-nuqta.xato { --gc: var(--g-xato); }
.mj-savollar { display: flex; flex-direction: column; gap: 6px; }
.mj-savol { padding: 7px 11px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.mj-foot { color: var(--text-dim); font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
.mj-pastki { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.mj-izoh { color: var(--text-dim); font-size: 12.5px; }
.mj-yana { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; font-size: 12.5px; }
.mj-yana-sarl { color: var(--text-dim); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mj-yana-odam { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.mj-yana-ism { font-weight: 700; overflow-wrap: anywhere; }
.mj-tel.kichik { padding: 2px 9px; font-size: 12px; }
.mj-orali { margin: 2px 0 2px -4px; padding: 4px 0 4px 16px; color: var(--text-dim); font-size: 12px; font-style: italic; }
.mj-vaqt.ko-kun .mj-h { grid-template-columns: 104px minmax(0, 1fr); }
@media (max-width: 820px) {
  .sayt-juft, #sayt-bolim { grid-template-columns: minmax(0, 1fr); }
  .sa-grid .uzun { grid-row: auto; }
  .sq-qator { grid-template-columns: minmax(0, 1fr) auto; }
  .sq-bosh { grid-column: 1; }
  .sq-odam { grid-column: 2; grid-row: 1; }
  .sq-matn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mj-filtr { border-radius: 14px; width: 100%; }
  .mj-filtr .sayt-chip { flex: 1 1 auto; justify-content: center; }
  .mj-tugma { grid-template-columns: 34px minmax(0, 1fr) 14px; gap: 10px; padding: 11px 12px; }
  .mj-avatar { width: 34px; height: 34px; font-size: 14px; }
  .mj-aloqa { padding: 0 12px 11px 56px; }
  .mj-h { grid-template-columns: 54px minmax(0, 1fr); gap: 6px; }
  .mj-vaqt.ko-kun .mj-h { grid-template-columns: 92px minmax(0, 1fr); }
  .mj-yana { gap: 6px 10px; }
  .mj-tana { padding: 12px; }
  .ss-qator { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; }
}

/* Tushunchalar */
.sayt-izoh { padding: 4px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.sayt-izoh summary { padding: 10px 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.sayt-izoh dl { margin: 0 0 8px; }
.sayt-izoh dt { margin-top: 10px; font-size: 13px; font-weight: 800; }
.sayt-izoh dd { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

@media (max-width: 820px) {
  .sayt-ikki { grid-template-columns: minmax(0, 1fr); }
}
/* Sayt jadvallari telefonda ham jadval bo'lib qoladi (kartaga aylanmaydi): ustunlar sig'adi, matn o'raladi */
.sayt-tabel { table-layout: fixed; }
.sayt-tabel td, .sayt-tabel th { overflow-wrap: anywhere; }
.sayt-tabel.hodisa th:nth-child(1) { width: 46%; }
@media (max-width: 768px) {
  .sayt-tabel { font-size: 12px; }
  .sayt-tabel th { font-size: 9.5px; padding: 8px 5px; letter-spacing: 0; }
  .sayt-tabel td { padding: 9px 5px; }
  .sayt-tabel .sayt-kod { display: none; }
  .sayt-tabel .sayt-g { font-size: 10px; padding: 2px 6px 2px 5px; gap: 4px; }
  .sayt-tabel.hodisa th:nth-child(1) { width: 40%; }
}
@media (max-width: 768px) {
  .sayt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sk-son { font-size: 24px; }
  .sayt-toolbar { gap: 8px; }
  .sayt-davr { width: 100%; justify-content: space-between; }
  .sayt-chip { flex: 1; padding: 7px 6px; }
  .sg-qator { height: 140px; gap: 1px; }
  .sg-ust { max-width: 12px; }
  .sl-qator { grid-template-columns: minmax(0, 1fr) auto; }
  .sl-vaqt { grid-column: 1; font-size: 11.5px; }
  .sl-kim { grid-column: 2; grid-row: 1; }
  .sl-asos { grid-column: 1 / -1; }
}

/* Reklama sahifasi ko'rsatkichlari: sahifalar jadvali va sahifada qolish/o'qish */
.sayt-tabel.sahifa th:nth-child(1) { width: 34%; }
.sayt-tabel.sahifa td:first-child b { overflow-wrap: anywhere; }
.sayt-tabel.sahifa .sh-nom { display: block; margin-top: 2px; font-size: 11px; color: var(--text-dim); }
#sayt-manba-table th { overflow-wrap: normal; word-break: normal; }   /* sarlavha so'zi o'rtasidan bo'linmasin (6 ustun) */
#sayt-manba-table th:nth-child(1) { width: 22%; } #sayt-manba-table th:nth-child(2) { width: 15%; } #sayt-manba-table th:nth-child(3) { width: 17%; }
#sayt-manba-table th:nth-child(4) { width: 17%; } #sayt-manba-table th:nth-child(5) { width: 12%; } #sayt-manba-table th:nth-child(6) { width: 17%; }
.ish-ikkinchi { margin-top: 18px; }
.ish-izoh { margin-top: 12px; font-size: 11.5px; line-height: 1.45; color: var(--text-dim); }
@media (max-width: 768px) {
  .sayt-tabel.sahifa .sh-nom { display: block !important; font-size: 10px; }
  .sayt-tabel.sahifa th:nth-child(1) { width: 30%; }
  #sayt-manba-table th { font-size: 8.5px; padding: 8px 3px; }
  #sayt-manba-table td { padding: 9px 3px; }
  #sayt-manba-table th:nth-child(1), #sayt-manba-table td:nth-child(1) { padding-left: 10px; }
  #sayt-manba-table th:nth-child(1) { width: 22%; } #sayt-manba-table th:nth-child(2) { width: 15%; } #sayt-manba-table th:nth-child(3) { width: 17%; }
  #sayt-manba-table th:nth-child(4) { width: 18%; } #sayt-manba-table th:nth-child(5) { width: 12%; } #sayt-manba-table th:nth-child(6) { width: 16%; }
}

/* ---------- Target: lidlar (CRM), Telegram AI va reklama buyurtmalari ---------- */
.target-izoh { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.target-qidiruv { max-width: none; margin: 0 0 14px; }
#target-tarkib { transition: opacity .15s ease; }
#target-tarkib.yuklanmoqda { opacity: .55; }
.target-kpi { margin-bottom: 14px; }
.sayt-kpi.t-jami { --g: var(--accent); } .sayt-kpi.t-ochiq { --g: var(--warn); } .sayt-kpi.t-jarayonda { --g: var(--info); } .sayt-kpi.t-bajarildi { --g: var(--accent-2); }
.lid-filtr { margin-bottom: 12px; border-radius: 14px; }
.lid-filtr .sayt-chip.bor .mj-son { background: rgba(229,72,77,.24); color: #ff9a9d; }
.lid-filtr .sayt-chip.active.bor .mj-son { background: rgba(0,0,0,.16); color: inherit; }
@media (min-width: 769px) and (max-width: 900px) {   /* 7 ta chip bu oraliqda bitta qatorga sig'sin (yolg'iz "Yopiq" keyingi qatorga tushib qolmasin) */
  .lid-filtr { width: 100%; }
  .lid-filtr .sayt-chip { flex: 1 1 auto; justify-content: center; padding: 6px 7px; font-size: 12px; }
}
#target-table td { overflow-wrap: anywhere; }
.lid-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--text-dim); }

/* Lid kartalari */
.lid-royxat { display: flex; flex-direction: column; gap: 8px; }
.lid { padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.lid:hover { background: var(--panel-2); }
.lid:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lid.yangi { border-left-color: var(--info); }
.lid.kechikkan { border-left-color: var(--danger); }
.lid.bugun { border-left-color: var(--warn); }
.lid.gaplash { border-left-color: var(--info); background: rgba(77,163,255,.045); }
.lid.gaplash:hover { background: rgba(77,163,255,.09); }
.lid.yopiq { opacity: .72; }
.lid-bosh { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lid-bosh .badge { flex-shrink: 0; }
.lid-nom-qator { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.lid-nom { font-size: 14.5px; overflow-wrap: anywhere; }
.lid-tag { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--panel-2); color: var(--text-dim); }
.lid-tag.yangi { background: rgba(77,163,255,.16); color: #86bfff; }
.lid-tag.kechikkan { background: rgba(229,72,77,.16); color: #ff9a9d; }
.lid-tag.bugun { background: rgba(240,180,41,.16); color: #f6cd63; }
.lid-tag.gaplash { max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: rgba(77,163,255,.16); color: #86bfff; }
.lid-tag.lok { background: rgba(44,182,125,.14); color: #5fd9a8; }
.lid-aloqa { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.lid-tg { padding: 4px 11px; border-radius: 999px; background: rgba(77,163,255,.14); color: #86bfff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lid-tg:hover { background: rgba(77,163,255,.26); }
.lid-xizmat { font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.lid-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; margin-top: 8px; font-size: 12px; color: var(--text-dim); }
.lid-meta b { color: var(--text); font-weight: 600; }
.lid-meta-aloqa { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.lid-izoh { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lid tafsiloti (drawer) */
.lid-drawer { display: none; position: fixed; inset: 0; z-index: 1000; justify-content: flex-end; background: rgba(6,9,13,.72); backdrop-filter: blur(2px); }
.lid-drawer.open { display: flex; }
.lid-drawer-panel { display: flex; flex-direction: column; width: 480px; max-width: 100%; height: 100%; background: var(--panel); border-left: 1px solid var(--border); box-shadow: -12px 0 36px rgba(0,0,0,.4); animation: lidSurish .2s ease; }
@keyframes lidSurish { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.lid-drawer-bosh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.lid-drawer-bosh h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.lid-drawer-xabar { align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13px; line-height: 1.4; border-bottom: 1px solid var(--border); }
.lid-drawer-xabar.ok { background: rgba(44,182,125,.12); color: #7be0b5; }
.lid-drawer-xabar.xato { background: rgba(229,72,77,.12); color: #ff9a9d; }
.lid-drawer-xabar.ogoh { background: rgba(240,180,41,.12); color: #f6cd63; }
.lid-drawer-xabar.ogoh { align-items: flex-start; }
.lid-xabar-btn { flex-shrink: 0; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.08); border: none; color: inherit; font-size: 12px; line-height: 1.4; }
.lid-drawer-tana { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 28px; }
.lid-drawer-belgilar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 12px; }
.lid-amallar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.lid-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.lid-btn:hover { border-color: var(--accent); }
.lid-btn.ok { background: rgba(44,182,125,.16); border-color: rgba(44,182,125,.4); color: #5fd9a8; }
.lid-btn.info { background: rgba(77,163,255,.14); border-color: rgba(77,163,255,.36); color: #86bfff; }
.lid-btn.katta { grid-column: 1 / -1; padding: 15px 12px; font-size: 16px; background: var(--accent); border-color: var(--accent); color: #1a1206; }
.lid-btn:disabled { opacity: .55; cursor: default; filter: none; }
/* Drawer tepasi: gaplashyapman / natija / Holat / Eslatma yaratish (guruh kartasi bilan bir xil amallar) */
.lid-holat-blok { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.lid-holat-blok .lid-amallar { margin-bottom: 0; }
.lid-gaplash-banner { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 10px; background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.36); color: #a9d0ff; }
.lid-gaplash-banner b { font-size: 15px; overflow-wrap: anywhere; }
.lid-gaplash-banner small { font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.lid-kichik-qator { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.lid-kichik-qator .lid-btn { padding: 10px; font-size: 13px; }
.lid-yopiq-quti { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
.lid-yopiq-quti.buyurtma { background: rgba(44,182,125,.1); border-color: rgba(44,182,125,.36); }
.lid-yopiq-quti b { font-size: 15px; }
.lid-yopiq-quti small { font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }
.lid-yopiq-quti .lid-btn { margin-top: 5px; }
/* Mijoz lokatsiyasi (faqat ma'lumot) */
.lid-lok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.lid-lok b { color: #5fd9a8; }
.lid-lok-manzil { flex-basis: 100%; font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.lid-lok-vaqt { flex-basis: 100%; color: var(--text-dim); font-size: 11.5px; }
.lid-lok-yoq { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.lid-savol .lid-lok { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.lid-savol .lid-lok.bor { background: rgba(44,182,125,.1); border-color: rgba(44,182,125,.36); }
/* Kelishildi'dan keyin: mijoz akkaunti bloki */
#lid-drawer-akkaunt { margin-bottom: 14px; }
.lid-akkaunt { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: rgba(44,182,125,.1); border: 1px solid rgba(44,182,125,.4); }
.lid-akkaunt.yoq { background: rgba(240,180,41,.1); border-color: rgba(240,180,41,.4); }
.lid-akk-sarl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.lid-akk-holat { font-size: 15px; font-weight: 800; color: #7be0b5; }
.lid-akk-kichik { font-size: 12.5px; line-height: 1.4; color: var(--text-dim); overflow-wrap: anywhere; }
.lid-akk-ulangan { padding: 7px 10px; border-radius: 8px; background: rgba(77,163,255,.12); color: #a9d0ff; font-size: 12.5px; line-height: 1.4; }
.lid-akk-ogoh { font-size: 13px; line-height: 1.45; color: #f6cd63; }
.lid-akk-yorliq { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.lid-akk-havola { display: block; padding: 9px 11px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: #86bfff; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-all; text-decoration: none; }
.lid-akk-havola:hover { border-color: var(--info); }
.lid-akk-tugmalar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lid-akk-tugmalar .lid-btn { padding: 10px; font-size: 13px; }
.lid-akk-matn { display: block; width: 100%; margin: 0; padding: 10px 12px; resize: vertical; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.lid-maydonlar { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lid-m { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.4; }
.lid-m:last-child { border-bottom: none; }
.lid-m-k { color: var(--text-dim); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.lid-m-v { min-width: 0; overflow-wrap: anywhere; }
.lid-m-v.izoh { white-space: pre-wrap; }
.lid-m-v .lid-tag { margin-left: 8px; }
.lid-tarix-sarl { margin-top: 18px; }
.lid-tarix { display: flex; flex-direction: column; border-left: 2px solid var(--border); margin-left: 4px; }
.lid-t { position: relative; padding: 6px 0 8px 16px; font-size: 13px; line-height: 1.4; }
.lid-t::before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--panel); }
.lid-t-bosh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.lid-t-vaqt { color: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lid-t-turi { font-size: 12px; }
.lid-t-kim { color: var(--text-dim); font-size: 12px; }
.lid-t-matn, .lid-t-izoh { margin-top: 2px; overflow-wrap: anywhere; white-space: pre-wrap; }
.lid-t-izoh { color: var(--text-dim); }
.lid-yoq { padding: 6px 0; color: var(--text-dim); font-size: 12.5px; }
.lid-xato { min-height: 18px; margin: 0 0 10px; color: #ff9a9d; font-size: 12.5px; line-height: 1.4; }

/* Holatni o'zgartirish oynasi */
.lid-holat-box { width: 460px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.lid-pastki { position: sticky; bottom: -20px; z-index: 2; margin: 0 -20px -20px; padding: 10px 20px 20px; background: var(--panel); box-shadow: 0 -10px 14px -10px rgba(0,0,0,.5); }
.lid-pastki .lid-xato { margin-bottom: 8px; min-height: 0; }
.lid-pastki .lid-xato:empty { display: none; }
.lid-pastki .modal-actions { padding-top: 2px; }
.lid-guruh { margin-bottom: 14px; }
.lid-guruh-sarl { margin-bottom: 7px; font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.lid-chiplar { display: flex; flex-wrap: wrap; gap: 6px; }
.lid-r-info { --rc: var(--info); } .lid-r-warn { --rc: var(--warn); } .lid-r-ok { --rc: var(--accent-2); } .lid-r-danger { --rc: var(--danger); } .lid-r-muted { --rc: var(--text-dim); }
.lid-hchip { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--rc, var(--text-dim)); background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 600; text-align: left; }
.lid-hchip:hover { border-color: var(--rc, var(--accent)); }
.lid-hchip.hozirgi { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--rc, var(--text-dim)); }
.lid-tanlangan { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lid-orqaga { padding: 6px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 12.5px; }
.lid-eslatma { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(77,163,255,.1); border: 1px solid rgba(77,163,255,.3); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.lid-savol { margin-bottom: 14px; scroll-margin: 8px 0 96px; }   /* xato bo'lsa scrollIntoView sticky tugmalar ostida qolmasin */
.lid-yorliq { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.lid-yorliq i { color: var(--danger); font-style: normal; }
.lid-savol .lid-soatlar { margin-top: 10px; }
.lid-savol input, .lid-savol textarea { margin-bottom: 0; }
.lid-savol.xato input, .lid-savol.xato textarea { border-color: var(--danger); }
.lid-savol-xato { margin-top: 5px; color: #ff9a9d; font-size: 12px; line-height: 1.4; }
.lid-savol-xato:empty { display: none; }
.lid-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; }
.lid-chip:hover { border-color: var(--accent); }
.lid-chip.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.lid-tozala { margin-top: 8px; padding: 4px 0; background: none; color: var(--info); font-size: 12px; text-decoration: underline; }
.soat-grid button.soat-btn:disabled { opacity: .35; cursor: default; filter: none; }
@media (max-width: 768px) {
  .lid-drawer-panel { width: 100%; border-left: none; }
  .lid-drawer-tana { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .lid-holat-box { width: 100%; }
  .lid-chip { padding: 10px 14px; }
  .lid-btn { min-height: 46px; }
  #lid-holat-modal .modal-actions button, #lid-tahrir-modal .modal-actions button, #lid-izoh-modal .modal-actions button { flex: 1; padding: 12px 10px; font-size: 14px; }   /* telefonda bosish oson bo'lsin */
  #lid-holat-modal .modal-actions button:first-child:not(.secondary), #lid-tahrir-modal .modal-actions button:first-child, #lid-izoh-modal .modal-actions button:first-child { flex: 1.7; white-space: nowrap; }   /* asosiy tugma kengroq, bir qatorda */
  .lid-hchip { padding: 12px 14px; }
  .lid-kichik-qator .lid-btn, .lid-akk-tugmalar .lid-btn { min-height: 44px; }
  /* iOS: 16px'dan kichik matn maydoniga bosilganda sahifa o'zi kattalashib ketadi */
  #lid-holat-modal input, #lid-holat-modal textarea, #lid-tahrir-modal input, #lid-tahrir-modal select, #lid-izoh-modal textarea, #target-qidiruv, .lid-akk-matn { font-size: 16px; }
}
@media (max-width: 520px) {
  .lid { padding: 11px 12px; }
  .lid-m { grid-template-columns: 112px minmax(0, 1fr); }
}

/* Target anketasidagi oy kalendari: telefonda kengroq */
.lid-kalendar { max-width: 360px; margin-bottom: 10px; }
@media (max-width: 768px) { .lid-kalendar { max-width: none; } .lid-kalendar .kal-kun { font-size: 14px; min-height: 40px; } }

/* ---------- deploy23: Target o'qilgan holati (R8), Eslatmalarda lid qayta aloqasi (R12), tarix/AI hodisalari ---------- */
.lid.okunmagan { background: rgba(77,163,255,.07); border-color: rgba(77,163,255,.5); }
.lid.okunmagan .lid-nom { font-weight: 800; }
.lid.yangi:not(.okunmagan) .lid-nom { font-weight: 500; }   /* ochilgan (o'qilgan) yangi lid - qalin emas; o'qilmagani qalin + nuqta */
.lid-nuqta { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px rgba(77,163,255,.25); }
.lid-filtr .sayt-chip.okunmagan::after { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.lid-tag.shoshilinch { background: rgba(229,72,77,.2); color: #ff9a9d; }
.lid.qayta-kech { border-left-color: var(--danger); background: rgba(229,72,77,.05); }
.lid-meta-aloqa.qayta { font-size: 13px; }
.lid-korildi-qator { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; }
.lid-korildi-qator .hisobot-btn { min-height: 40px; }
.lid-korildi-xabar { font-size: 13px; color: #7be0b5; }
.lid-korildi-xabar.xato { color: #ff9a9d; }
.eslatmalar-status.xato, #eslatma-holat.xato { color: #ff9a9d; }
.e-tur-filtr { margin-bottom: 12px; }
.kal-kun.has-qayta { position: relative; }
.kal-kun.has-qayta::before { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--info); }
.e-tur { display: inline-block; margin-top: 3px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.e-tur.lid { background: rgba(77,163,255,.16); color: #86bfff; }
.e-sub { margin-top: 2px; font-size: 11.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.e-cell { min-width: 0; overflow-wrap: anywhere; }
.e-cell.e-tel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }   /* telefon va Telegram belgilari: inline <a> ning padding'i qator bo'yiga kirmaydi - tor ustunda ikki qatorga o'tganda bir-birini ~6px bosardi */
#eslatmalar-table tr.e-lid-qator td:first-child { box-shadow: inset 3px 0 0 var(--info); }
#eslatmalar-table tr.e-lid-qator.kechikkan td:first-child, #eslatmalar-table tr.e-lid-qator.vaqti-keldi td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
#eslatmalar-table .e-lid-amallar { display: flex; flex-wrap: wrap; gap: 6px; min-width: 140px; max-width: 230px; }
#eslatmalar-table .e-lid-amallar .btn-mini { min-height: 36px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
#eslatmalar-table .e-lid-amallar .btn-mini.danger { background: rgba(229,72,77,.16); color: #ff9a9d; }
.qm-kim { margin: -6px 0 12px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); overflow-wrap: anywhere; }
#qayta-modal .modal-box { max-height: 92vh; overflow-y: auto; }
#qayta-modal .soat-grid { margin-bottom: 10px; }
#qayta-modal .soat-grid button.soat-btn { min-height: 44px; }
#qayta-modal .lid-kalendar .kalendar-header button { min-width: 44px; min-height: 44px; }
#qayta-modal .lid-kalendar .kal-kun { min-height: 44px; min-width: 0; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.tarix-tana { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 12px; }
.tarix-qator { padding: 8px 10px; margin-bottom: 6px; border-left: 3px solid var(--border); background: var(--panel-2); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.4; }
.tarix-qator.mijoz, .tarix-qator.ai { border-left-color: var(--info); }
.tarix-qator.usta { border-left-color: var(--accent); }
.tarix-qator.admin { border-left-color: var(--accent-2); }
.tarix-satr { overflow-wrap: anywhere; }
.tarix-izoh { margin-top: 2px; color: var(--text-dim); overflow-wrap: anywhere; }
.hodisa-jadval { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hodisa-jadval th, .hodisa-jadval td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.hodisa-jadval th { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
#hodisa-modal .modal-box { width: min(720px, 94vw); }
#tarix-modal .modal-box { width: min(520px, 94vw); }
.bildirish-korildi { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 12px 16px; min-height: 44px; background: none; border: none; border-top: 1px solid var(--border); color: var(--info); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bildirish-korildi:hover { background: var(--panel-2); }
.bildirish-korildi:disabled { opacity: .55; cursor: default; }
@media (max-width: 768px) {
  .e-tur-filtr { border-radius: 14px; }
  .e-tur-filtr .sayt-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .e-cell { text-align: right; }
  .e-cell.e-tel { justify-content: flex-end; }
  #eslatmalar-table tr.e-lid-qator { border-left: 3px solid var(--info); }
  #eslatmalar-table tr.e-lid-qator.kechikkan, #eslatmalar-table tr.e-lid-qator.vaqti-keldi { border-left-color: var(--danger); }
  #eslatmalar-table tr.e-lid-qator td:first-child { box-shadow: none; }
  #eslatmalar-table .e-lid-amallar { max-width: none; width: 100%; }
  #eslatmalar-table .e-lid-amallar .btn-mini { flex: 1 1 40%; min-height: 44px; }
  #qm-saqlash, #qm-yopish { min-height: 44px; }
  #qayta-modal .modal-box, #tarix-modal .modal-box, #hodisa-modal .modal-box { width: 100%; max-width: calc(100vw - 24px); }
  .lid-korildi-qator .hisobot-btn { min-height: 44px; }
}

/* ---------- deploy23h: "Holat belgilanmagan" (belgi eskirmaydi), bevosita holat o'zgarishi, "↩️ Qaytarish" toasti, tasdiq oynasi ---------- */
.lid-tag.ambar { background: rgba(240,180,41,.2); color: #f6cd63; }
.lid.gaplash.ambar { border-left-color: var(--warn); background: rgba(240,180,41,.05); }
.lid.gaplash.ambar:hover { background: rgba(240,180,41,.1); }
.lid-meta .lid-olingan { color: var(--text-dim); }
.lid-filtr .sayt-chip.ambar-bor .mj-son { background: rgba(240,180,41,.24); color: #f6cd63; }
.lid-filtr .sayt-chip.active.ambar-bor .mj-son { background: rgba(0,0,0,.16); color: inherit; }
.lid-gaplash-banner small.lid-olingan { color: var(--text); }
.lid-gaplash-banner.ambar { background: rgba(240,180,41,.1); border-color: rgba(240,180,41,.45); color: #f6cd63; }
.lid-gaplash-banner small.lid-ambar-izoh { color: #f6cd63; font-weight: 700; }
#lid-holat-tana.yuborilmoqda .lid-hchip { opacity: .5; cursor: default; }
.lid-izoh-taklif { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px dashed rgba(240,180,41,.5); background: rgba(240,180,41,.07); color: var(--text); text-align: left; }
.lid-izoh-taklif:hover { border-color: var(--warn); background: rgba(240,180,41,.12); }
.lid-izoh-taklif b { font-size: 14px; }
.lid-izoh-taklif small { font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--text-dim); overflow-wrap: anywhere; }
.lid-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1200; display: flex; align-items: center; gap: 10px; box-sizing: border-box; max-width: min(520px, calc(100vw - 32px)); padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; line-height: 1.35; }
.lid-toast.xato { border-color: var(--danger); color: #ff9a9d; }
.lid-toast.xarita-izoh { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }   /* "Xaritada ko'rsatilmaydi" xabari TEPADA: pastdagi "↩️ Qaytarish" xabari bilan to'qnashmaydi */
.lid-toast-matn { min-width: 0; overflow-wrap: anywhere; }
.lid-toast-btn { flex-shrink: 0; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid rgba(240,180,41,.6); background: rgba(240,180,41,.16); color: #f6cd63; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.lid-toast-btn:disabled { opacity: .55; cursor: default; }
.lid-toast-yop { flex-shrink: 0; min-width: 32px; min-height: 40px; padding: 4px 8px; border-radius: 8px; background: none; border: none; color: var(--text-dim); font-size: 13px; }
.lid-tasdiq-matn { margin: 0 0 16px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  #lid-holat-tana .lid-chiplar { gap: 8px; }   /* savolsiz holat chipi bosilgan zahoti o'zgaradi: telefonda chiplar orasi kengroq, bosish maydoni >= 44px (tasodifiy bosish kamayadi) */
  #lid-holat-tana .lid-hchip { min-height: 46px; }
  .lid-toast { left: 16px; right: 16px; transform: none; max-width: none; }
  .lid-toast-matn { flex: 1; }
  .lid-toast-btn { min-height: 44px; }
  .lid-toast-yop { min-height: 44px; min-width: 36px; }
  #lid-tasdiq-modal .modal-actions button { flex: 1; min-height: 46px; font-size: 14px; }
  #lid-tasdiq-modal .modal-box { width: 100%; }
}
