/* Sihat Band admin — yumshoq, havodor uslub: och fon, chegarasiz oq kartalar, ko'k faol tugma, Poppins. */
@font-face { font-family: Poppins; src: url(/admin/static/fonts/Poppins-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/admin/static/fonts/Poppins-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/admin/static/fonts/Poppins-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(/admin/static/fonts/Poppins-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F3F5FA;
  --panel: #FFFFFF;
  --panel-2: #F7F8FC;
  --line: #EDF0F5;
  --line-2: #E1E5EE;
  --text: #1B1F2E;
  --text-2: #3B4255;
  --muted: #7C8497;
  --dim: #A9B0C0;
  --brand: #2F6BFF;
  --brand-2: #1F57E6;
  --brand-soft: #EAF0FF;
  --green: #22B07D;
  --green-soft: #E6F7F0;
  --orange: #F08A24;
  --orange-soft: #FEF2E6;
  --red: #EF4B5F;
  --red-soft: #FDECEE;
  --purple: #7B61FF;
  --purple-soft: #F0EDFF;
  --teal: #12A6B8;
  --teal-soft: #E4F6F8;
  --pink: #E5508F;
  --pink-soft: #FCEBF3;
  --gray-soft: #F0F2F7;
  --amber: #C4870F;
  --amber-soft: #FFF5DE;
  --shadow-sm: 0 1px 2px rgba(27, 31, 46, .04);
  --shadow: 0 2px 6px rgba(27, 31, 46, .03), 0 10px 30px rgba(27, 31, 46, .045);
  --shadow-lg: 0 20px 60px rgba(27, 31, 46, .16);
  --r: 18px;
  --hover: #F6F8FD;
  --grad: linear-gradient(135deg, #2F6BFF 0%, #1E4FD8 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1119;
  --panel: #161A25;
  --panel-2: #1B2030;
  --line: #232838;
  --line-2: #2C3245;
  --text: #ECEFF5;
  --text-2: #C7CCD8;
  --muted: #8C93A6;
  --dim: #5D6477;
  --brand: #5B8CFF;
  --brand-2: #4A7BFF;
  --brand-soft: rgba(91, 140, 255, .14);
  --green: #3DCB93;
  --green-soft: rgba(61, 203, 147, .13);
  --orange: #F5A04C;
  --orange-soft: rgba(245, 160, 76, .13);
  --red: #F2667A;
  --red-soft: rgba(242, 102, 122, .14);
  --purple: #9C88FF;
  --purple-soft: rgba(156, 136, 255, .14);
  --teal: #3CC3D3;
  --teal-soft: rgba(60, 195, 211, .13);
  --pink: #EF7FB0;
  --pink-soft: rgba(239, 127, 176, .13);
  --gray-soft: rgba(140, 147, 166, .12);
  --amber: #E8B850;
  --amber-soft: rgba(232, 184, 80, .13);
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .03);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
  --hover: #1C2130;
  --grad: linear-gradient(135deg, #3A6FF5 0%, #2445B8 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.55 Poppins, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 24px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
::selection { background: var(--brand-soft); }

/* ---------- Joylashuv ---------- */
.layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.layout > div, .main { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg); padding: 26px 18px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 14px 28px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { display: block; font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.035em; line-height: 1.1; }
.brand b em { font-style: normal; color: var(--brand); margin-left: 6px; }
.brand span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 18px 14px 6px; }
.nav-group:first-of-type { padding-top: 0; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; color: var(--dim); }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a:hover svg { color: var(--text-2); }
.nav a.on { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47, 107, 255, .3); }
.nav a.on svg { color: #fff; }
.nav .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a .badge { margin-left: auto; }
.nav a.on .badge { background: #fff; color: var(--brand); }
.side-foot { margin-top: auto; padding-top: 20px; }
.side-foot button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; border: 0; background: none; border-radius: 12px; color: var(--muted); font-weight: 500; cursor: pointer; text-align: left; }
.side-foot button:hover { background: var(--panel); color: var(--red); }
.side-foot svg { width: 18px; height: 18px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 34px 0 10px; background: var(--bg); }
.gsearch { position: relative; flex: 1; max-width: 420px; }
.gsearch svg { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.gsearch input { width: 100%; height: 40px; padding: 0 70px 0 34px; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--text); cursor: pointer; }
.gsearch input::placeholder { color: var(--dim); }
.gresults { position: absolute; left: 0; right: 0; top: 46px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; max-height: 420px; overflow-y: auto; z-index: 40; }
.gresults .grp { font-size: 11px; color: var(--dim); padding: 8px 10px 4px; font-weight: 600; }
.gresults a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.gresults a:hover { background: var(--hover); }
.kbd { display: inline-flex; align-items: center; padding: 0 7px; height: 22px; border-radius: 6px; background: var(--panel); color: var(--dim); font-size: 11px; font-weight: 600; box-shadow: var(--shadow-sm); }
.gsearch .kbd { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.today { color: var(--muted); font-size: 13px; white-space: nowrap; margin-right: 6px; }
.bell { position: relative; }
.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg); }
.btn.menu-btn { display: none; }
.theme-btn { display: none !important; }

.main { padding: 0 34px 60px 10px; max-width: 1500px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.crumb a { color: var(--muted); }
.crumb svg { display: none; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; left: 0; width: 270px; transform: translateX(-105%); transition: transform .22s; box-shadow: var(--shadow-lg); background: var(--panel); }
  .side.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; height: 64px; }
  .today, .gsearch .kbd, .acc-name { display: none; }
  .main { padding: 0 16px 96px; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 14, 24, .35); z-index: 45; }
}

/* ---------- Kartalar ---------- */
.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); border: 0; }
.card-pad { padding: 24px 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 12px; }
.card-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.two { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.two.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.two.stretch { align-items: stretch; }
@media (max-width: 1150px) { .two, .two.rev { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Ko'rsatkichlar qatori — bitta kartada 4 ta ustun */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 6px; }
.stat { padding: 2px 26px; border-left: 1px solid var(--line); min-width: 0; color: inherit; text-decoration: none; }
a.stat:hover { text-decoration: none; }
.stat:first-child { border-left: 0; }
.stat .top { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.stat .ic { display: none; } /* ko'rsatkich nomlari belgisiz */
.stat .ic svg { width: 15px; height: 15px; }
.stat .bottom { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.stat .value { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .stat:nth-child(3) { border-left: 0; } }
@media (min-width: 1201px) { .stats.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat { border-left: 0; } }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.delta.flat { background: var(--gray-soft); color: var(--muted); }

.kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.kpi .value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

/* E'lon kartasi (ko'k) */
.promo { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: var(--r); padding: 28px 30px; display: flex; flex-direction: column; min-height: 320px; box-shadow: 0 14px 34px rgba(47, 107, 255, .28); }
.promo::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.promo::after { content: ""; position: absolute; right: 40px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(120, 200, 255, .22); }
.promo > * { position: relative; z-index: 1; }
.promo .tag { align-self: flex-start; background: #fff; color: var(--brand); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.promo h2 { color: #fff; font-size: 22px; font-weight: 600; line-height: 1.3; margin: 18px 0 10px; }
.promo p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); font-size: 13.5px; max-width: 300px; }
.promo .btn { margin-top: auto; align-self: flex-start; background: #fff; color: var(--brand); height: 44px; padding: 0 30px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.promo .btn:hover { background: #F1F5FF; }
.promo.red { background: linear-gradient(135deg, #F0485E, #C92F49); box-shadow: 0 14px 34px rgba(239, 75, 95, .3); }
.promo.red .tag, .promo.red .btn { color: #E03A52; }

/* Ustunli grafik */
.bars-chart { display: flex; align-items: flex-end; gap: 12px; height: 220px; padding-top: 48px; }
.bars-chart .col-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; position: relative; min-width: 0; }
.bars-chart .bar-b { width: 100%; max-width: 36px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 30%, var(--panel)); min-height: 6px; transition: background .15s, box-shadow .15s; cursor: pointer; }
.bars-chart .col-b:hover .bar-b { background: #1D4ED8; box-shadow: 0 8px 18px rgba(29, 78, 216, .35); }

.bars-chart .lbl { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.bars-chart .tip { position: absolute; background: #1B1F2E; color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 9px; white-space: nowrap; display: none; transform: translateY(-46px); }
.bars-chart .tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; transform: rotate(45deg); width: 10px; height: 10px; background: #1B1F2E; }
.bars-chart .col-b:hover .tip { display: block; } /* yorliq faqat sichqoncha ustiga kelganda */

.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }

/* Faoliyat lentasi */
.feed { list-style: none; margin: 0; padding: 6px 26px 24px; }
.feed li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.feed li::before { content: ""; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.feed li:last-child { padding-bottom: 0; }
.feed li:last-child::before { display: none; }
.feed .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.feed .ic svg { width: 16px; height: 16px; }
.feed .tag { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.feed .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.feed .t { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.4; margin: 3px 0 2px; }
.feed .w { font-size: 12px; color: var(--dim); }
.feed a { color: inherit; text-decoration: none; display: block; }
.feed a:hover .t { color: var(--brand); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 26px; margin: 0; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* ---------- Jadval ---------- */
.table-wrap { overflow-x: auto; padding: 0 10px 10px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--hover); }
tr.click:hover td:first-child { border-radius: 10px 0 0 10px; }
tr.click:hover td:last-child { border-radius: 0 10px 10px 0; }
td.go, th:last-child:empty { display: none; }
td .t { font-weight: 600; color: var(--text); }
td .s { font-size: 12px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; }
.ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.ava.sm { width: 28px; height: 28px; font-size: 11px; }
.ava.lg { width: 52px; height: 52px; font-size: 18px; }
.ava svg { width: 15px; height: 15px; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ei { display: none; }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---------- Belgilar ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.chip::before { display: none; }
.c-blue { background: var(--brand-soft); color: var(--brand); }
.c-green { background: var(--green-soft); color: var(--green); }
.c-orange { background: var(--orange-soft); color: var(--orange); }
.c-red { background: var(--red-soft); color: var(--red); }
.c-purple { background: var(--purple-soft); color: var(--purple); }
.c-teal { background: var(--teal-soft); color: var(--teal); }
.c-pink { background: var(--pink-soft); color: var(--pink); }
.c-gray { background: var(--gray-soft); color: var(--muted); }
.c-amber { background: var(--amber-soft); color: var(--amber); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }

/* ---------- Tugmalar va maydonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 11px; border: 0; background: var(--panel); font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap; color: var(--text-2); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-2) inset; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 1px var(--brand) inset; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(.icon) svg { display: none; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .28); }
.btn.primary:hover { background: var(--brand-2); }
.btn.green { background: var(--green); color: #fff; box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.danger.solid { background: var(--red); color: #fff; box-shadow: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: transparent; box-shadow: none; color: var(--muted); }
.btn.icon:hover { background: var(--panel); color: var(--text); }
.btn.icon.sm { width: 32px; height: 32px; }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); outline: none; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input:disabled { background: var(--panel-2); color: var(--muted); }
.search { max-width: 300px; }
label.f { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 500; }
label.f small { color: var(--muted); font-weight: 400; }
.form { display: grid; gap: 16px; }
.form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .two-col { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--panel); border-radius: 13px; box-shadow: var(--shadow); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--brand); color: #fff; }
.tabs .n { font-size: 11px; padding: 0 7px; border-radius: 9px; background: var(--gray-soft); color: var(--muted); line-height: 18px; }
.tabs button.on .n { background: rgba(255, 255, 255, .25); color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 13px; }
.seg button.on { background: var(--brand-soft); color: var(--brand); }
.seg svg { display: none; }

/* ---------- Boshqa grafiklar ---------- */
.area { width: 100%; height: 220px; display: block; }
.area .grid-l { stroke: var(--line); stroke-width: 1; }
.area .lbl { fill: var(--dim); font-size: 11px; font-family: Poppins, sans-serif; }
.area .ln { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.area .pt { fill: var(--panel); stroke: var(--brand); stroke-width: 2.5; }
.area .pt.last { fill: var(--brand); }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 130px; height: 130px; flex: none; }
.donut text { font-family: Poppins, sans-serif; }
.dn-total { fill: var(--text); }
.dn-sub { fill: var(--dim); }
.dn-track { stroke: var(--gray-soft); }
.legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 140px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars .b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 13.5px; }
.bars .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--gray-soft); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 4px; background: var(--brand); }
.spark { width: 88px; height: 30px; }
.spark path.l { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark path.a { fill: currentColor; opacity: .1; }

/* ---------- Ro'yxatlar ---------- */
.list { display: flex; flex-direction: column; padding: 0 12px 12px; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; }
.list .li > svg, .list .li > .ava:has(> svg) { display: none; }
a.li:hover { background: var(--hover); text-decoration: none; }
.li .t { font-weight: 600; }
.li .s { font-size: 12px; color: var(--muted); }
.wait { font-size: 12px; font-weight: 600; color: var(--orange); white-space: nowrap; }
.wait.late { color: var(--red); }
.todo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.li.todo { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--panel); color: var(--text); font-weight: 500; box-shadow: var(--shadow); text-decoration: none; }
.li.todo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent); }
.li.todo > svg, .li.todo .ava { display: none; }
.li.todo b, .li.todo span { color: inherit !important; font-weight: 500; }
.li.todo:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(27, 31, 46, .08); }
.tone-red { --tone: var(--red); }
.tone-pink { --tone: var(--pink); }
.tone-purple { --tone: var(--purple); }
.tone-green { --tone: var(--green); }
.tone-teal { --tone: var(--teal); }

/* ---------- Kanban ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: color-mix(in srgb, var(--panel) 50%, var(--bg)); border-radius: 16px; padding: 10px; min-height: 160px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; font-weight: 600; }
.col-head i { width: 9px; height: 9px; border-radius: 50%; }
.col-head .n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--panel); border-radius: 8px; padding: 1px 8px; }
.kcard { display: block; background: var(--panel); border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.kcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 31, 46, .09); text-decoration: none; }
.kcard .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kcard .t { font-weight: 600; line-height: 1.35; }
.kcard .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.col .none { text-align: center; color: var(--dim); font-size: 12px; padding: 18px 0; }

/* ---------- Bosqichlar, banner, tarix ---------- */
.steps { display: flex; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--brand); }
.step .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line-2); color: var(--dim); font-weight: 600; font-size: 12px; }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.cur .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.step .dot svg { width: 14px; height: 14px; }
.step span { font-size: 12px; color: var(--muted); font-weight: 500; }
.step.cur span, .step.done span { color: var(--text); }
@media (max-width: 600px) { .step span { font-size: 10px; } }
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 13.5px; }
.banner > svg { display: none; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner.good { background: var(--green-soft); color: var(--green); }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.note::before { background: var(--dim); box-shadow: 0 0 0 4px var(--gray-soft); }
.timeline .when { font-size: 12px; color: var(--dim); }
.items-list .it { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.items-list .it:last-child { border-bottom: 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-top: 10px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; font-size: 17px; color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stars { color: #F5A524; letter-spacing: 1px; }
.contact-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-card b { display: block; font-size: 16px; font-weight: 600; }

/* ---------- Oyna va xabarlar ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14, 18, 30, .45); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .16s; }
.modal .card-head { position: sticky; top: 0; background: var(--panel); z-index: 1; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal .card-pad { padding-top: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
#toasts { position: fixed; left: 50%; top: 86px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
#toasts .toast { pointer-events: auto; }
.toast { display: flex; align-items: center; gap: 10px; background: #1B1F2E; color: #fff; padding: 11px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 420px; font-weight: 500; animation: drop .2s; }
.toast.err { background: var(--red); }
.toast > svg { display: none; }
.staff-pick { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.staff-pick label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.staff-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.staff-pick input { accent-color: var(--brand); width: 17px; height: 17px; }

/* ---------- Kirish ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.login-art { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: rgba(120, 200, 255, .2); }
.login-art > * { position: relative; z-index: 1; }
.login-art .brand { padding: 0; }
.login-art .brand b { color: #fff; }
.login-art .brand b em { color: #A9C8FF; }
.login-art .brand span { color: rgba(255, 255, 255, .6); }
.login-art h1 { font-size: 34px; line-height: 1.25; max-width: 460px; color: #fff; }
.login-art p { color: rgba(255, 255, 255, .8); max-width: 420px; }
.login-art .feats { display: grid; gap: 12px; margin-top: 26px; }
.login-art .feats div { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .92); }
.login-art .feats svg { width: 18px; height: 18px; }
.login-box { display: grid; place-items: center; padding: 32px; }
.login-box .card { width: 100%; max-width: 410px; padding: 36px; }
.login-box ol { padding-left: 20px; color: var(--muted); margin: 18px 0 24px; }
.login-box li { margin: 8px 0; }
.login-box code { background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------- Buyruqlar oynasi, skelet, pastki menyu ---------- */
.cmdk-bg { position: fixed; inset: 0; z-index: 80; background: rgba(14, 18, 30, .35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .1s; }
.cmdk { width: 100%; max-width: 600px; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .14s; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--dim); }
.cmdk-in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-grp { font-size: 11px; font-weight: 600; color: var(--dim); padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: .06em; }
.cmdk-it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.cmdk-it .ic { display: none; }
.cmdk-it.on { background: var(--brand); color: #fff; }
.cmdk-it.on .dim { color: rgba(255, 255, 255, .75); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.page { animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.skel { background: linear-gradient(90deg, var(--gray-soft) 25%, var(--panel) 37%, var(--gray-soft) 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-title { height: 28px; width: 240px; margin: 4px 0 10px; }
.sk-sub { height: 14px; width: 340px; margin-bottom: 24px; }
.sk-card { height: 120px; border-radius: var(--r); }
.sk-big { height: 300px; border-radius: var(--r); }
.bnav { display: none; }
@media (max-width: 960px) {
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--panel); box-shadow: 0 -6px 20px rgba(27, 31, 46, .06); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a, .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px 0; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; }
  .bnav .on { color: var(--brand); font-weight: 600; }
  .bnav .badge { position: absolute; top: 2px; left: 60%; min-width: 16px; height: 16px; font-size: 10px; }
}

/* ---------- Bildirishnomalar va akkaunt menyusi ---------- */
.notif-wrap { position: relative; }
.notif { position: absolute; right: 0; top: 48px; width: 400px; max-width: calc(100vw - 24px); background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; animation: pop .14s; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 460px; overflow-y: auto; padding: 6px; }
.notif-it { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; }
.notif-it:hover { background: var(--hover); text-decoration: none; }
.notif-it.unread { background: var(--brand-soft); }
.notif-it .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif-it .ic svg { width: 15px; height: 15px; }
.notif-it .t { font-weight: 600; font-size: 13.5px; }
.notif-it .s { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-it .w { color: var(--dim); font-size: 12px; white-space: nowrap; }
.notif-foot { padding: 12px; text-align: center; font-size: 13px; border-top: 1px solid var(--line); }
.acc-btn { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 14px; cursor: pointer; text-align: left; }
.acc-btn:hover { background: var(--panel); }
.acc-btn .ava { width: 38px; height: 38px; font-size: 13px; }
.acc-name b { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.2; }
.acc-name span { font-size: 12px; color: var(--muted); }
.acc-menu { position: absolute; right: 0; top: 52px; width: 240px; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 60; padding: 8px; animation: pop .14s; }
.acc-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acc-head b { display: block; font-size: 14px; font-weight: 600; }
.acc-head span { font-size: 12px; color: var(--muted); }
.acc-it { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none; }
.acc-it:hover { background: var(--hover); text-decoration: none; }
.acc-it.danger { color: var(--red); }
.acc-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- Hisobotlar ---------- */
.range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range input[type=date] { width: 160px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.metrics > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.metric { padding: 20px 24px; }
.metric .label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.metric .value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.metric .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Xarita ---------- */
.mapbox { height: calc(100vh - 250px); min-height: 420px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 0; }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pin.sos { background: #EF4B5F; animation: pulse 1.4s infinite; }
.pin.req { background: #2F6BFF; }
.pin.staff { background: #22B07D; border-radius: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 75, 95, .55); } 70% { box-shadow: 0 0 0 16px rgba(239, 75, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 75, 95, 0); } }
.leaflet-container { font: inherit !important; background: var(--panel-2) !important; }
.leaflet-popup-content { font-size: 13px; line-height: 1.5; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }

/* ---------- Sozlamalar ---------- */
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.set-sec:last-of-type { border-bottom: 0; }
.set-sec p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .set-sec { grid-template-columns: 1fr; gap: 12px; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 12px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0; background: linear-gradient(transparent, var(--bg) 40%); }
@media (max-width: 960px) { #toasts { top: 72px; width: calc(100vw - 32px); } }

/* ---------- Hisobotlar ---------- */
.rep-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; }
.rep-bar .seg { box-shadow: none; background: var(--panel-2); }
.sec-title { display: flex; align-items: baseline; gap: 12px; margin: 10px 2px -6px; }
.sec-title h2 { font-size: 17px; }
.sec-title span { color: var(--muted); font-size: 13px; }
.grid.two-eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1050px) { .grid.two-eq { grid-template-columns: minmax(0, 1fr); } }
.quality { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .quality { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quality .q { padding: 18px 20px; }
.quality .label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.quality .value { font-size: 22px; font-weight: 600; margin-top: 8px; letter-spacing: -.02em; }
.quality .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bars-chart.dense { gap: 4px; }
.bars-chart.dense .bar-b { border-radius: 4px; }
.bars-chart.mini { height: 150px; gap: 6px; padding-top: 34px; }
.bars-chart.mini .col-b.peak .bar-b { background: color-mix(in srgb, var(--brand) 60%, var(--panel)); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gray-soft); color: var(--muted); font-weight: 700; font-size: 12px; }
.rank.r1 { background: #FFF1C9; color: #B7791F; }
.rank.r2 { background: #EEF1F6; color: #6B7280; }
.rank.r3 { background: #FDE7D6; color: #B4581B; }

/* Hisobot: daromad manbalari */
.streams { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stream { --sc: var(--brand); text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.stream:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20, 30, 60, .08); }
.stream.on { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 18%, transparent); }
.stream.all { --sc: var(--text, #1B1F2E); }
.stream .st-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stream .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); flex: none; }
.stream .st-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream .st-share { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--sc); }
.stream .st-sum { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.stream .st-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.stream .st-track { height: 5px; border-radius: 4px; background: color-mix(in srgb, var(--dim) 15%, transparent); overflow: hidden; margin-top: auto; }
.stream .st-track > div { height: 100%; background: var(--sc); border-radius: 4px; }
.stream .st-mix { display: flex; height: 5px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: auto; }
.st-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.st-kpis > div { background: color-mix(in srgb, var(--bc, var(--brand)) 8%, var(--panel)); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-kpis span { font-size: 12px; color: var(--dim); }
.st-kpis b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colored .bars-chart .bar-b { background: color-mix(in srgb, var(--bc) 35%, var(--panel)); }
.colored .bars-chart .col-b:hover .bar-b { background: var(--bc); box-shadow: 0 8px 18px color-mix(in srgb, var(--bc) 35%, transparent); }
.bars-chart.stacked .stack-b { width: 100%; max-width: 36px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px; overflow: hidden; min-height: 6px; background: color-mix(in srgb, var(--dim) 12%, transparent); cursor: pointer; transition: filter .15s; }
.bars-chart.stacked .col-b:hover .stack-b { filter: brightness(.88) saturate(1.2); }
.bars-chart.dense .stack-b { border-radius: 4px; gap: 1px; }
.bars-chart .tip.multi { transform: none; z-index: 5; }
.bars-chart .tip.multi .tt { margin-bottom: 4px; }
.bars-chart .tip.multi .tr { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12px; opacity: .92; }
.bars-chart .tip.multi .tr i { width: 8px; height: 8px; border-radius: 2px; }
.bars-chart .tip.multi .tr b { margin-left: auto; padding-left: 12px; }
@media (max-width: 1280px) { .streams { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .streams { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Xabar yuborish */
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.bc-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.bc-form { display: flex; flex-direction: column; gap: 22px; }
.bc-step { display: flex; flex-direction: column; gap: 12px; }
.bc-step-h { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.bc-step-h i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.bc-auds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bc-aud { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--panel); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; min-width: 0; }
.bc-aud span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-aud b { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); flex: none; }
.bc-aud:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.bc-aud.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.bc-aud.on b { background: var(--brand); color: #fff; }
.bc-region { max-width: 360px; }
.bc-chans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-chan { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.bc-chan div { display: flex; flex-direction: column; gap: 2px; }
.bc-chan b { font-size: 13.5px; font-weight: 600; }
.bc-chan div span { font-size: 12px; color: var(--muted); }
.bc-tools { display: inline-flex; gap: 8px; align-items: center; }
.bc-tpl { height: 32px; padding: 0 10px; font-size: 12.5px; width: auto; }
.bc-count { align-self: flex-end; font-size: 12px; color: var(--dim); }
.bc-count.warn { color: var(--orange); }
.bc-when { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc-when .input { width: 240px; }
.bc-actions { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bc-reach { display: flex; flex-direction: column; gap: 2px; }
.bc-reach b { font-size: 15px; }
.bc-reach span { font-size: 12.5px; color: var(--muted); }
.bc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.phone { position: relative; margin: 0 auto; width: 100%; max-width: 330px; min-height: 440px; border-radius: 34px; padding: 44px 14px 18px; background: linear-gradient(160deg, #DCE6FF, #EEF1F8 55%, #E3ECF3); border: 8px solid #1B1F2E; display: flex; flex-direction: column; gap: 14px; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #1B1F2E; }
.pv-push { background: rgba(255, 255, 255, .88); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; color: #1B1F2E; box-shadow: 0 6px 18px rgba(20, 30, 60, .12); font-size: 12.5px; }
.pv-push b { font-size: 13px; }
.pv-push span { color: #3B4255; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-app { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6B7385; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pv-app i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; background: #fff; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: #2F6BFF; box-shadow: 0 0 0 1px #E1E5EE inset; }
.pv-app em { margin-left: auto; font-style: normal; font-weight: 500; text-transform: none; }
.pv-chat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pv-tg { background: #fff; color: #1B1F2E; border-radius: 4px 16px 16px 16px; padding: 9px 12px 6px; max-width: 92%; box-shadow: 0 2px 6px rgba(20, 30, 60, .08); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pv-bot { font-size: 12px; font-weight: 600; color: #2F6BFF; }
.pv-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.pv-time { align-self: flex-end; font-size: 10.5px; color: #A9B0C0; }
.pv-btn { width: 92%; text-align: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .7); color: #2F6BFF; font-weight: 600; font-size: 12.5px; }
.bc-tips h2 { margin-bottom: 8px; }
.bc-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 13px; }
.bc-list { display: flex; flex-direction: column; }
.bc-item { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bc-head, .bc-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.bc-foot { color: var(--muted); }
.bc-foot b { color: var(--text-2); font-weight: 600; }
.bc-chips { display: inline-flex; gap: 6px; }
.mini-chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-weight: 500; box-shadow: 0 0 0 1px var(--line) inset; }
.bc-title { font-weight: 600; }
.bc-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bc-btnline { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.bc-prog { height: 6px; }
.bc-prog > div { background: var(--brand); }
@media (max-width: 1280px) { .bc-grid { grid-template-columns: 1fr; } .bc-side { position: static; } .bc-auds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bc-auds, .bc-chans { grid-template-columns: 1fr; } }
.bc-prog { height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--dim) 15%, transparent); overflow: hidden; }
.bc-prog > div { height: 100%; border-radius: 4px; }

/* Promokod: mijozda qanday ko'rinadi */
.promo-pv { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.promo-pv-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.promo-pv-head .muted { font-weight: 400; }
.promo-code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 500; }
.promo-code b { letter-spacing: .05em; color: var(--text); font-weight: 700; }
.promo-code.off { background: var(--red-soft); color: var(--red); }
.promo-plans { display: flex; flex-direction: column; gap: 8px; }
.promo-plan { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.promo-plan .t { font-weight: 600; font-size: 13.5px; }
.promo-plan .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.promo-plan .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.promo-plan .pr s { font-size: 12px; color: var(--dim); }
.promo-plan .pr b { font-size: 14.5px; }
.promo-plan .save { font-size: 11.5px; color: var(--green); font-weight: 600; }

/* Shifokor qabullari */
.appt-list { display: flex; flex-direction: column; }
.appt { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.appt-time { font-size: 18px; font-weight: 700; width: 64px; color: var(--brand); }
.appt .t { font-weight: 600; }
.appt .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.appt .actions { display: flex; gap: 6px; }
/* Tariflar */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { text-align: left; font: inherit; color: inherit; padding: 22px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border: 1.5px solid var(--line); transition: border-color .15s, transform .15s; }
.plan-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.plan-price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: 1fr; } }

/* Onlayn maslahat */
.li.waiting { background: color-mix(in srgb, var(--orange) 6%, transparent); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.msg.usr { align-self: flex-start; background: var(--panel-2); border-top-left-radius: 4px; }
.msg.doc { align-self: flex-end; background: var(--brand-soft); border-top-right-radius: 4px; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.msg img { max-width: 260px; max-height: 260px; border-radius: 10px; display: block; }
.msg .when { font-size: 11.5px; color: var(--muted); }
