/* Portal uslublari — bitta fayl, tashqi shrift va CDN YO'Q.
   CSP `default-src 'self'` shuni talab qiladi va bu ataylab.

   ⭐ PORTAL.DASHBOARD.UIUX.FOUNDATION.1 — YAGONA token tizimi.
   Ilgari ikki qatlam bor edi (eski asos + qorong'i rejim bloki va
   ustidan WEB.2 palitrasi); endi BITTA `:root` — barcha sahifalar
   (kirish, panel, karta, formalar) shu tokenlardan foydalanadi.
   v1 — faqat YORUG' mavzu: qorong'i rejim keyin, tokenlar orqali.

   ⚠️⚠️ INLINE `style=""` YO'Q. CSP `style-src` ni alohida bermaydi →
   `default-src 'self'` inline style ATRIBUTLARINI bloklaydi (brauzerda
   o'lchandi: yuklama ustuni 100% bo'lib chiqardi, legend kvadratlari
   yo'qolardi). Dinamik geometriya — SVG atributlari (`width`, `fill`),
   rang — klasslar. `'unsafe-inline'` hech qachon qo'shilmaydi. */
:root {
  color-scheme: light;
  /* Sirtlar va matn */
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #F9FAFB;
  --fg: #101828; --muted: #475467; --subtle: #667085;
  --line: #E4E7EC; --line-soft: #F2F4F7;
  /* Asosiy va holat ranglari (matn / fon juftligi — hammasi WCAG AA) */
  --primary: #1D4ED8; --primary-soft: #EFF4FF;
  --success: #067647; --success-bg: #ECFDF3;
  --warning: #B54708; --warning-bg: #FFFAEB;
  --danger: #B42318; --danger-bg: #FEF3F2;
  --info: #175CD3; --info-bg: #EFF8FF;
  --waiting: #5925DC; --waiting-bg: #F4F3FF;
  --neutral: #344054; --neutral-bg: #F2F4F7;
  --focus: #2E90FA;
  /* Yon panel */
  --nav-bg: #152238; --nav-fg: #C3CBDA; --nav-muted: #A3B1C9; --nav-on: #22385E;
  /* O'lchamlar */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-card: 10px; --r-ctl: 8px; --r-pill: 999px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --page-max: 1440px;
}
* { box-sizing: border-box; }
/* ⚠️⚠️ ILDIZ SABAB EDI: bu blok `align-items: center` bilan BARCHA
   sahifalarga tegardi. Panel mazmuni ekrandan baland bo'lganda
   markazlashtirilgan flex element YUQORIGA chiqib ketardi va
   sarlavhaga qaytib bo'lmasdi — «tepaga qaytolmayman» shikoyati
   aynan shundan. Markazlashtirish endi FAQAT kirish kartasida. */
html { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.5 var(--font);
  min-height: 100vh;
}
/* Kirish/kod/parol sahifalari — karta markazda, avvalgidek. */
body:has(> main.card) { display: flex; align-items: center;
  justify-content: center; padding: 24px 16px; font-size: 16px; }
main.card { margin: auto; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow);
}
.card.wide { max-width: 560px; }
h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
.sub { margin: 0 0 18px; color: var(--muted); }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
input {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
button {
  margin-top: 20px; width: 100%; padding: 12px; font: inherit; font-size: 16px; font-weight: 600;
  color: #fff; background: var(--primary); border: 0; border-radius: var(--r-ctl); cursor: pointer;
}
button.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.err, .ok, .warn { padding: 10px 12px; border-radius: var(--r-ctl); font-size: 14px; margin: 0 0 14px; }
.err { color: var(--danger); background: var(--danger-bg); border: 1px solid #FECDCA; }
.ok { color: var(--success); background: var(--success-bg); border: 1px solid #ABEFC6; }
.warn { color: var(--warning); background: var(--warning-bg); border: 1px solid #FEDF89; }
.hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
a { color: var(--primary); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; }

/* ─── Kirish imkoniyati (accessibility) poydevori ─────────────────── */
/* Fokus — FAQAT klaviatura bilan kelganda, lekin DOIM ko'rinadigan. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
.skip { position: absolute; left: var(--s2); top: -48px; z-index: 20;
        background: var(--surface); color: var(--primary); padding: var(--s2) var(--s3);
        border-radius: var(--r-ctl); border: 1px solid var(--line); font-weight: 600; }
.skip:focus { top: var(--s2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }

/* ─── ILOVA QOBIG'I ───────────────────────────────────────────────────
   ⭐⭐ YAGONA vertikal surilish maydoni. `.shell` aynan 100vh; yon
   panel va sarlavha qimirlamaydi; suriladigan yagona joy —
   `.main-scroll`. Ikkinchi to'liq sahifali `overflow-y` konteyner YO'Q. */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr);
         height: 100vh; overflow: hidden;
         background: var(--bg); color: var(--fg); }

/* Yon panel */
.side { background: var(--nav-bg); color: var(--nav-fg); height: 100vh;
        display: flex; flex-direction: column; padding: 20px 0 16px;
        overflow: hidden; }
.brand { font-weight: 700; letter-spacing: .16em; font-size: 13px;
         color: #fff; padding: 0 20px 20px; }
.side nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px;
            overflow-y: auto; min-height: 0; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px;
       color: var(--nav-fg); text-decoration: none; font-size: 14px; border-radius: var(--r-ctl);
       border-left: 3px solid transparent; }
.nav:hover { background: var(--nav-on); color: #fff; }
.nav.on { background: var(--nav-on); color: #fff; border-left-color: #60A5FA; font-weight: 600; }
.nav .ic { width: 16px; text-align: center; opacity: .85; font-size: 13px; }
.side .nav:focus-visible, .side-foot :focus-visible { outline-color: #84CAFF; }
.side-foot { margin-top: auto; padding: 14px 20px 0; border-top: 1px solid #23375C; }
.side-foot b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.side-foot span { display: block; color: var(--nav-muted); font-size: 11px; margin: 2px 0 10px; }
.side-foot button { width: 100%; padding: 7px 10px; border-radius: var(--r-ctl); cursor: pointer;
       border: 1px solid #2E4571; background: transparent; color: var(--nav-fg); font: inherit;
       font-size: 14px; margin-top: 0; }
.side-foot button:hover { background: var(--nav-on); color: #fff; }

/* Sarlavha */
.main { min-width: 0; height: 100vh; display: flex; flex-direction: column;
        overflow: hidden; }
/* ⛔ LOKAL UAT ogohlantirishi — `.topbar` dan YUQORIDA, qimirlamaydi.
   Rang ataylab keskin: uni tasodifan e'tibordan qochirib bo'lmasin. */
.uat-warn { flex: 0 0 auto; background: var(--danger); color: #fff;
            font-size: 12px; font-weight: 700; letter-spacing: .06em;
            text-align: center; padding: 6px 10px; }
.topbar { flex: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line);
          z-index: 5; }
.topbar-in { display: flex; justify-content: space-between; align-items: center;
             gap: var(--s4); flex-wrap: wrap; min-height: 64px; padding: 10px var(--s5);
             max-width: var(--page-max); margin: 0 auto; }
.topbar h1 { font-size: 20px; margin: 0 0 1px; color: var(--fg); font-weight: 650; }
.topbar .sub { font-size: 13px; color: var(--muted); margin: 0; }
/* ⚠️ «Jonli» — sahifa YANGILANGANDA o'qiladi. Real-time EMAS va
   shunday deb atalmaydi ham: push kanali yo'q. */
.live { color: var(--success); font-weight: 600; }
.snap { color: var(--warning); font-weight: 600; }
.topbar .dot { color: var(--subtle); margin: 0 2px; }
/* ⭐ YAGONA vertikal suriluvchi konteyner. */
.main-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
               scrollbar-gutter: stable; }
.page { padding: var(--s5) var(--s5) var(--s7); max-width: var(--page-max); margin: 0 auto; }
.tools { display: flex; align-items: center; gap: 10px; }
.tools form { display: flex; }
.tools input { width: 220px; padding: 7px 11px; border: 1px solid var(--line);
       border-radius: var(--r-ctl); font: inherit; font-size: 13px; background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
          color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ─── Bo'limlar (regions) ─────────────────────────────────────────── */
.region { margin: 0 0 var(--s6); }
.region-h { display: flex; align-items: baseline; justify-content: space-between;
            gap: var(--s3); margin: 0 0 var(--s3); }
.region-h h2 { margin: 0; font-size: 16px; font-weight: 650; color: var(--fg); }
.region-h p { margin: 0; font-size: 13px; color: var(--subtle); }
/* Grafik/karta panjarasi: ≥1024 — ikki ustun, aks holda bitta. */
.cards { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.wide-first { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* ─── KPI komponenti ──────────────────────────────────────────────── */
.kpis { display: grid; gap: var(--s3); margin: 0;
        grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.kpi { position: relative; display: flex; flex-direction: column; gap: var(--s1);
       min-height: 112px; padding: var(--s4); background: var(--surface);
       border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
       text-decoration: none; color: inherit; }
.kpi:hover { border-color: #B2CCFF; }
/* Tanlangan holat (kelgusi kross-filtr uchun TAYYOR; hozir server
   `aria-current` qo'ymaydi — soxta xulq ulanmagan). */
.kpi[aria-current="true"], .kpi.is-selected { border-color: var(--primary);
       box-shadow: inset 3px 0 0 var(--primary), var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.kpi-l { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.kpi-i { flex: 0 0 26px; width: 26px; height: 26px; border-radius: var(--r-ctl); display: grid;
         place-items: center; font-size: 13px; }
.kpi-n { display: block; font-size: 28px; font-weight: 600; line-height: 1.15; margin-top: auto;
         color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2);
            min-height: 18px; }
.kpi-c { font-size: 12px; color: var(--subtle); }
.kpi-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
           color: var(--muted); background: var(--neutral-bg); border-radius: var(--r-pill);
           padding: 1px 8px; white-space: nowrap; }
.kpi-tag.now::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
                       background: var(--success); }
.kpi-delta { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-delta.up { color: var(--danger); } .kpi-delta.down { color: var(--success); }
.i-blue { background: var(--primary-soft); color: var(--primary); }
.i-ok { background: var(--success-bg); color: var(--success); }
.i-warn { background: var(--warning-bg); color: var(--warning); }
.i-bad { background: var(--danger-bg); color: var(--danger); }
.i-wait { background: var(--waiting-bg); color: var(--waiting); }

/* ─── Grafik kartasi komponenti ───────────────────────────────────── */
.cc { display: flex; flex-direction: column; min-width: 0; background: var(--surface);
      border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.cc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
        padding: var(--s4) var(--s4) 0; }
.cc-h h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--fg); }
.cc-desc { margin: 2px 0 0; font-size: 12.5px; color: var(--subtle); }
.cc-slot { flex: 0 0 auto; display: flex; gap: var(--s2); align-items: center; }
.cc-body { flex: 1 1 auto; padding: var(--s4); min-width: 0; }
.cc-body.flush { padding: var(--s3) 0 0; }
.cc-f { padding: var(--s2) var(--s4); border-top: 1px solid var(--line-soft);
        font-size: 12px; color: var(--subtle); display: flex; gap: var(--s3); flex-wrap: wrap; }
.cc-f a { font-weight: 600; text-decoration: none; }
/* Holatlar: yuklanmoqda / bo'sh / xato */
.cc-body.is-loading { min-height: 180px; border-radius: var(--r-ctl);
       background: var(--line-soft); margin: var(--s4); padding: 0; }
.cc-empty, .cc-error { display: flex; align-items: center; gap: var(--s2); min-height: 96px;
       justify-content: center; text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.cc-error { color: var(--danger); }
@media (prefers-reduced-motion: no-preference) {
  .cc-body.is-loading { animation: nz-pulse 1.4s ease-in-out infinite; }
  @keyframes nz-pulse { 50% { opacity: .55; } }
}

/* Grafik ichidagi elementlar */
.chart-body { display: flex; gap: var(--s4); align-items: center; }
.chart-body svg { flex: 0 0 auto; }
.legend { display: flex; flex-direction: column; gap: 7px; font-size: 13px; flex: 1; min-width: 0; }
.legend div { display: flex; align-items: center; gap: 8px; color: var(--muted); }
/* ⭐ CSP-xavfsiz legend belgisi: SVG `fill` atributi (inline style EMAS). */
.legend .sw { flex: 0 0 10px; width: 10px; height: 10px; }
.legend b { margin-left: auto; color: var(--fg); font-weight: 600;
            font-variant-numeric: tabular-nums; }
.trend { display: block; width: 100%; height: auto; max-height: 240px; }
.hbars { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hbar { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) 36px; gap: 10px;
        align-items: center; font-size: 13px; }
.hbar > span:first-child { color: var(--muted); overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap; }
/* ⭐ CSP-xavfsiz ustun: SVG `width` atributi geometriyani beradi. */
.bar { display: block; width: 100%; height: 10px; }
.bar .bar-bg { fill: var(--line-soft); }
.bar .bar-fg { fill: var(--primary); }
.bar .bar-fg.ok { fill: #12B76A; }
.bar .bar-fg.warn { fill: #F79009; }
.bar .bar-fg.bad { fill: #D92D20; }
.hbar b { text-align: right; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar-key { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s3) 0 0;
            font-size: 12px; color: var(--subtle); }
.hbar-key span { display: inline-flex; align-items: center; gap: 6px; }

/* ─── Panellar (karta, ro'yxat va boshqa sahifalar) ───────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
         box-shadow: var(--shadow); margin-bottom: var(--s4); min-width: 0; }
.cards > .panel, .region > .panel:last-child { margin-bottom: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center;
           gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 15px; margin: 0; color: var(--fg); font-weight: 650; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.more { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }

/* ─── Jadval ──────────────────────────────────────────────────────── */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.grid th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 12px;
           border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 11.5px;
           text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); }
.grid td { padding: 8px 12px; height: 40px; border-bottom: 1px solid var(--line-soft);
           vertical-align: middle; }
.grid tbody tr:hover { background: #F8FAFF; }
.grid tbody tr:focus-within { background: #F8FAFF; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody th { text-align: left; font-weight: 500; font-size: 13px; color: var(--fg);
                 text-transform: none; letter-spacing: 0; background: none; white-space: normal;
                 padding: 8px 12px; height: 40px; border-bottom: 1px solid var(--line-soft); }
.grid td.t { max-width: 320px; color: var(--fg); font-weight: 500; }
.grid a { color: var(--primary); text-decoration: none; font-weight: 600; }
.grid a:hover { text-decoration: underline; }
.grid th.num, .grid td.num, .num { text-align: right; font-variant-numeric: tabular-nums; }
/* Xodimlar kesimi: 2–7 ustunlar sonli — sarlavha ham o'ngga. */
.grid.people thead th:nth-child(n+2):nth-child(-n+7) { text-align: right; }
.mono { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.dim { color: var(--subtle); white-space: nowrap; }
.go { color: var(--subtle); text-decoration: none; font-weight: 400; }

/* Nishonlar (holat chiplari) — rang + MATN (faqat rangga tayanmaydi). */
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
         font-size: 12px; font-weight: 500; white-space: nowrap;
         background: var(--neutral-bg); color: var(--neutral); }
.b-blue { background: var(--info-bg); color: var(--info); }
.b-ok { background: var(--success-bg); color: var(--success); }
.b-warn { background: var(--warning-bg); color: var(--warning); }
.b-bad { background: var(--danger-bg); color: var(--danger); }
.ack { color: var(--success); margin-left: 6px; font-size: 12px; }
.role { background: var(--nav-on); color: var(--nav-fg); border-radius: var(--r-pill);
        padding: 1px 8px; font-size: 10.5px; }

/* Bo'sh holat — ixcham */
.empty { padding: 14px 16px; color: var(--muted); margin: 0; font-size: 13px;
         display: flex; align-items: center; gap: 8px; }
.pager { display: flex; gap: 14px; align-items: center; padding: 10px 16px;
         border-top: 1px solid var(--line); font-size: 13px; }
.pager a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ─── Filtr paneli (server GET formasi, JavaScript YO'Q) ─────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
           margin-bottom: 14px; background: var(--surface); padding: 10px 12px;
           border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.filters input, .filters select { padding: 7px 10px; border: 1px solid var(--line);
       border-radius: var(--r-ctl); font: inherit; font-size: 13px; background: var(--surface);
       color: var(--fg); min-width: 0; width: auto; }
.filters input[type=search] { flex: 1 1 200px; }
.filters button { margin: 0; width: auto; padding: 7px 14px; border-radius: var(--r-ctl);
       border: 1px solid var(--primary); background: var(--primary); color: #fff; font: inherit;
       font-size: 13px; font-weight: 600; cursor: pointer; }
.filters .reset { background: var(--surface); color: var(--muted); border: 1px solid var(--line);
       text-decoration: none; padding: 7px 12px; border-radius: var(--r-ctl); font-size: 13px; }
.filters .res { margin-left: auto; font-size: 12px; color: var(--muted); }
.fbar { display: flex; flex-direction: column; gap: var(--s2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-ctl);
       overflow: hidden; background: var(--surface); }
.seg a { padding: 7px 12px; font-size: 13px; color: var(--muted); text-decoration: none;
         font-weight: 500; border-right: 1px solid var(--line); white-space: nowrap; }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--surface-2); color: var(--fg); }
.seg a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.fnote { font-size: 12px; color: var(--subtle); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: 0 0 14px; }
.chips .chips-l { font-size: 12px; color: var(--subtle); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px;
        border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary);
        font-size: 12.5px; font-weight: 500; text-decoration: none; border: 1px solid #C7D7FE; }
.chip .x { display: inline-grid; place-items: center; width: 18px; height: 18px;
           border-radius: 50%; font-size: 12px; }
.chip:hover .x { background: #D1E0FF; }

/* Karta sahifasi */
.crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
         flex-wrap: wrap; }
.back { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.note { background: var(--warning-bg); border: 1px solid #FEDF89; border-radius: var(--r-ctl);
        padding: 10px 14px; font-size: 13px; color: var(--warning); margin: 0 0 14px; }
.facts.two { display: grid; grid-template-columns: max-content 1fr max-content 1fr;
             gap: 8px 16px; padding: 14px 16px; margin: 0; font-size: 13px; }
.facts.two dt { color: var(--muted); }
.facts.two dd { margin: 0; color: var(--fg); font-weight: 500; }
.body { padding: 0 16px 14px; margin: 0; font-size: 14px; white-space: pre-wrap;
        color: var(--fg); }
.panel h3 { font-size: 11.5px; margin: 14px 16px 5px; color: var(--muted);
            font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.panel .panel-h h3 { margin: 0; font-size: 15px; color: var(--fg); font-weight: 650;
                     text-transform: none; letter-spacing: 0; }
.timeline { list-style: none; margin: 0; padding: 10px 16px 14px; font-size: 13px; }
.timeline li { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--subtle); white-space: nowrap; min-width: 126px; }
.ev { flex: 1; color: var(--fg); }

/* Kelgusi bo'lim (FAQAT lokal UAT da chiziladi — production'da YO'Q). */
.roadmap { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-card); }
.roadmap summary { cursor: pointer; padding: var(--s3) var(--s4); font-weight: 600; color: var(--muted); }
.roadmap p { margin: 0; padding: 0 var(--s4) var(--s4); font-size: 13px; color: var(--subtle); }

/* Planshet/telefon */
/* ⚠️ Tor ekranda 232px doimiy panel MAJBURLANMAYDI: yon panel
   yuqoridagi tasmaga aylanadi va sahifa odatdagidek suriladi. */
@media (max-width: 1023px) {
  .shell { display: block; height: auto; overflow: visible; }
  .main { height: auto; overflow: visible; }
  .main-scroll { overflow: visible; }
  .topbar { position: sticky; top: 0; }
  .topbar-in { padding: 8px 14px; min-height: 56px; }
  .page { padding: var(--s4) 14px var(--s6); }
  .side { height: auto; flex-direction: row; align-items: center;
          gap: 4px; padding: 8px 12px; overflow-x: auto;
          position: sticky; top: 0; z-index: 6; }
  .side nav { overflow: visible; }
  .brand { padding: 0 12px 0 2px; }
  .side nav { flex-direction: row; padding: 0; }
  .nav { border-left: 0; white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; padding: 0 0 0 12px; border: 0;
               display: flex; align-items: center; gap: 8px; }
  .side-foot b { font-size: 12px; }
  .facts.two { grid-template-columns: max-content 1fr; }
  .chart-body { flex-direction: column; align-items: stretch; }
  .chart-body svg { align-self: center; }
}
/* ⭐ Keng ekranda jadval sarlavhasi YOPISHQOQ: `.scroll` bu yerda
   surilish konteyneri emas, shuning uchun `sticky` `.main-scroll`
   ga nisbatan ishlaydi.
   ⚠️ FAQAT ≥1280: 1024–1279 da monitoring jadvali ustunga sig'maydi
   (o'lchandi: 1024 da kesilib qolardi) — u yerda gorizontal surilish. */
@media (min-width: 1280px) {
  .scroll:has(> .mtable) { overflow: visible; }
  .mtable thead th { position: sticky; top: 0; z-index: 1; }
  .mtable thead th:first-child { border-top-left-radius: var(--r-card); }
  .mtable thead th:last-child { border-top-right-radius: var(--r-card); }
}

/* ═══════════════════════════════════════════════════════════════════
   WEB.HUMAN.UAT.1 — BOSILGANLIK JAVOBI (inson UAT topgan nuqson).

   Portal server tomonda chiziladi: har bir havola, filtr va tartib
   bosilishi butun sahifani qaytadan yuklaydi. ⛔ Portal CSP'si
   `script-src 'none'` — progress bar JavaScript talab qiladi, shuning
   uchun javob CSS bilan beriladi: bosilgan element DARHOL ko'rinishini
   o'zgartiradi va kursor «kutish» holatiga o'tadi.
   ═══════════════════════════════════════════════════════════════════ */
a:active, button:active, .kpi:active, .go:active { cursor: progress; }
a:active { opacity: .55; }
button:active { transform: translateY(1px); filter: brightness(.92); }
.kpi:active { border-color: var(--primary); background: #F4F7FD; transform: translateY(1px); }
.grid tbody tr:active { background: #EEF3FC; }
.go:active { opacity: .5; }
.nav:active { background: #2B4577; color: #fff; }
.filters:active { cursor: progress; }

/* ⭐ Harakat — vazmin, va `prefers-reduced-motion` ni HURMAT qiladi. */
@media (prefers-reduced-motion: no-preference) {
  .page { animation: nz-in .18s ease-out; }
  @keyframes nz-in { from { opacity: .4; } to { opacity: 1; } }
  .kpi, .chip, .seg a, .nav { transition: background-color .12s ease, border-color .12s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   WEB.DIRECTOR.TASKS.1 — vazifa MONITORINGI.

   ⭐ «Rahbariyat javobi kutilmoqda» (binafsha, ⏸) VA «Kechikkan»
   (qizil) HECH QACHON bir xil rangda emas: kutayotgan xodim
   kechikkan emas — javob rahbar tomonida.
   ═══════════════════════════════════════════════════════════════════ */
.b-wait { background: var(--waiting-bg); color: var(--waiting); }
.b-mute { background: var(--neutral-bg); color: #475467; }
.mtable td { vertical-align: top; }
.mtable .badge { margin: 0 4px 3px 0; }
.mtable tr.r-wait td:first-child { box-shadow: inset 3px 0 0 #7A5AF8; }
.mtable tr.r-late td:first-child { box-shadow: inset 3px 0 0 #D92D20; }
.mtable td.t .mono { display: block; font-size: 12px; }
.dl { font-weight: 500; color: var(--fg); white-space: nowrap; }
.dl.late-t, .late-t { color: var(--danger); font-weight: 600; }
.ttl { display: block; white-space: normal; overflow-wrap: anywhere;
       color: var(--fg); font-weight: 500; margin-top: 2px; }
.sm { display: block; font-size: 12px; color: var(--subtle); white-space: normal; }
.clip { white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-title { font-size: 18px; margin: 0 0 12px; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px; }
.wait-box { margin: 12px 16px; padding: 10px 12px; border-radius: var(--r-ctl);
            background: var(--waiting-bg); border: 1px solid #D9D6FE; color: #3E1C96; }
.wait-box .facts.two { padding: 8px 0 0; }
.hint.pad { padding: 0 16px 14px; margin: 8px 0 0; }
.note-l { display: block; font-size: 12px; white-space: normal; }
.facts dd .badge { white-space: normal; }
.mats { list-style: none; margin: 0; padding: 4px 16px 10px; font-size: 13px; }
.mats li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0;
           border-bottom: 1px solid var(--line-soft); }
.mats li:last-child { border-bottom: 0; }
.mats .mk { white-space: nowrap; color: var(--muted); }
.mats .mf { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--fg); }
.filters details.dates { font-size: 13px; }
.filters details.dates summary { cursor: pointer; color: var(--primary); padding: 6px 4px; font-weight: 600; }
.filters details.dates label { display: flex; gap: 6px; align-items: center;
       flex-wrap: wrap; margin: 6px 0; font-weight: 500; }

/* ⭐ TELEFON (≈360–430px): jadval KARTALARGA aylanadi — gorizontal
   surilish yo'q, holat va muddat birinchi qarashda ko'rinadi.
   ⚠️ JavaScript YO'Q (CSP `script-src 'none'`): faqat CSS. */
@media (max-width: 760px) {
  .scroll:has(> .mtable) { overflow-x: visible; }
  .mtable, .mtable tbody, .mtable tr, .mtable td { display: block; width: 100%; }
  .mtable thead { display: none; }
  .mtable tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .mtable td { border: 0; padding: 3px 0; height: auto; white-space: normal; }
  .mtable td[data-l]::before { content: attr(data-l); display: block;
       font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em;
       color: var(--subtle); margin-top: 4px; }
  .mtable td:first-child::before { display: none; }
  .mtable td.go-cell { display: none; }
  .mtable tr.r-wait, .mtable tr.r-late { padding-left: 11px; }
  .mtable tr.r-wait { border-left: 3px solid #7A5AF8; }
  .mtable tr.r-late { border-left: 3px solid #D92D20; }
  .mtable tr.r-wait td:first-child, .mtable tr.r-late td:first-child { box-shadow: none; }
  .filters { gap: 6px; }
  .filters input[type=search] { flex: 1 1 100%; }
  /* ⚠️ `select` ning tabiiy kengligi ENG UZUN variantga teng (xodim
     ismlari) — flex-basis uni toraytirmaydi va forma ekrandan chiqib
     ketardi (390px skrinshotda ko'rindi). Kenglik ANIQ beriladi. */
  .filters > * { min-width: 0; max-width: 100%; }
  .filters select, .filters button, .filters .reset {
    flex: 0 0 calc(50% - 3px); width: calc(50% - 3px); min-height: 40px; }
  .filters details.dates input[type=date] { flex: 1 1 40%; min-width: 0; }
  .filters details.dates { flex: 1 1 100%; }
  .filters .res { flex: 1 1 100%; margin: 0; }
  .seg { display: flex; width: 100%; overflow-x: auto; }
  .seg a { flex: 1 0 auto; text-align: center; min-height: 40px; display: grid; place-items: center; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .kpi { min-height: 100px; padding: var(--s3); }
  .kpi-n { font-size: 24px; }
  .region { margin-bottom: var(--s5); }
  .facts.two { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
  .facts.two dd { overflow-wrap: anywhere; }
  .timeline li { flex-wrap: wrap; gap: 2px 10px; }
  .timeline time { min-width: 0; }
  /* Vaqt va aktyor — birinchi qatorda, hodisa matni — TO'LIQ kenglikda. */
  .timeline .ev { order: 2; flex: 1 1 100%; }
  .task-title { font-size: 16px; }
  .tools input { width: 150px; }
}

/* ⭐ PASSWORD.CHANGE.1 */
.side-foot .pw { display: block; color: var(--nav-fg); font-size: 12px; margin: 6px 0 8px;
                 text-decoration: none; }
.side-foot .pw:hover { color: #fff; text-decoration: underline; }
main.card form.inline { margin-top: 14px; }
@media (max-width: 1023px) { .side-foot .pw { margin: 0; white-space: nowrap; } }

/* ⭐ WEB.TASK.CREATE.UI.1 — vazifa formasi (mavjud boshqaruv uslubi bilan). */
.task-form { padding: 0 16px 16px; max-width: 760px; }
.task-form form { margin: 0; }
textarea, select {
  width: 100%; padding: 11px 12px; color: var(--fg); font: inherit; font-size: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
textarea { resize: vertical; min-height: 120px; }
.task-form .req { color: var(--danger); }
.task-form .field-err { margin: 6px 0 0; }
.task-form fieldset.deadline { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.task-form fieldset.deadline legend { font-size: 14px; font-weight: 600; padding: 0; }
.task-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.task-form .row2 label { margin-top: 8px; font-weight: 500; }
.task-form .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.task-form .form-actions form { flex: 0 0 auto; }
.task-form .form-actions button { margin-top: 0; width: auto; padding: 12px 18px; min-height: 44px; }
.task-form .btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.task-form .pre { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.new-task { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
            border-radius: var(--r-ctl); background: var(--primary); color: #fff; font-weight: 600;
            text-decoration: none; }
@media (max-width: 760px) {
  .task-form { padding: 0 12px 12px; }
  .task-form .row2 { grid-template-columns: 1fr; gap: 0; }
  .task-form .form-actions { flex-direction: column; align-items: stretch; }
  .task-form .form-actions form, .task-form .form-actions button { width: 100%; }
  .task-form .btn-link { justify-content: center; }
}
.tasks-actions { display: flex; justify-content: flex-end; margin: 0 0 10px; }

/* WEB.PORTAL.WAIT.QUESTION.TEXT.2 — xodimning savol/muammo matni.
   Qator uzilishlari saqlanadi (pre-wrap), uzun so'z sig'adi. */
.wait-msg { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.wait-prev { white-space: normal; overflow-wrap: anywhere; min-width: 140px; max-width: 280px;
             font-size: 12.5px; color: var(--muted); }
/* WEB.PORTAL.WAIT.RESPONSE.TEXT.1 — tarixda savol/muammo va javob alohida qatorda. */
.wp-line { display: block; }
.wp-line + .wp-line { margin-top: 3px; }
.wp-l { font-weight: 600; color: var(--fg); }

/* ⭐ PORTAL.INTERACTIVE.RUNTIME.1 — analitika sahifasi (SSR + ES modul).
   Faqat token'lar; inline style YO'Q (CSP). Harakat faqat
   `prefers-reduced-motion: no-preference` da. */
.an-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); }
.an-tab { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
          background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
          text-decoration: none; white-space: nowrap; }
.an-tab.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.an-filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; }
.an-field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--subtle);
            min-width: 0; max-width: 100%; }
.an-field select, .an-field input { max-width: 100%; }
/* ⚠️ Umumiy `.filters input[type=search] { flex: 1 1 100% }` ustun yo'nalishida
   BALANDLIKKA aylanardi (1440 skrinshotida 180 px quti) — maydon ichida o'chiriladi. */
.an-filters .an-field > *, .an-filters .an-field input[type=search] { flex: 0 0 auto; }
.an-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
.an-chips .chip { cursor: pointer; font-family: var(--font); line-height: 1.4; max-width: 100%;
                  overflow-wrap: anywhere; }
.chip.clear { background: var(--surface); color: var(--muted); border-color: var(--line); }
.an-range { margin: var(--s2) 0 0; font-size: 12px; color: var(--subtle); }
.an-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger);
            border-radius: var(--r-ctl); padding: 10px 14px; font-size: 13px; margin: 0 0 var(--s4); }
.an-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-wide { grid-column: 1 / -1; }
}
.an-na { margin: 0; padding: 6px var(--s4) 0; font-size: 12px; color: var(--warning); }
.an-na-k { font-size: 11.5px; color: var(--warning); }
.an-w.is-na .cc-body, .an-kpi.is-na .kpi-n { opacity: .45; }
.an-empty, .an-more, .an-warn { margin: 0 0 var(--s2); font-size: 13px; color: var(--subtle); }
.an-warn { color: var(--warning); }
/* ⚠️ `.bar`/`.bars` — poydevorda BOSHQA ma'noda (10 px SVG): `an-` prefiksi shart. */
.an [hidden] { display: none !important; }
.an-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto;
           grid-template-areas: "l b v" "s s s"; align-items: center; column-gap: var(--s3);
           padding: 6px 8px; border-radius: var(--r-ctl); color: var(--fg); text-decoration: none; }
a.bar-row:hover { background: var(--surface-2); }
.bar-l { grid-area: l; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-svg { grid-area: b; width: 100%; height: 8px; display: block; }
.bar-bg { fill: var(--line-soft); }
.bar-fg { fill: var(--primary); }
.an-bar.muted .bar-fg { fill: var(--subtle); }
.bar-v { grid-area: v; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-s { grid-area: s; font-size: 11.5px; color: var(--subtle); }
.series { width: 100%; height: auto; display: block; }
.s-axis { stroke: var(--line); }
.s-grid { stroke: var(--line-soft); stroke-dasharray: 4 4; }
.s-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.s-line.s-0 { stroke: var(--primary); } .sw .s-0 { fill: var(--primary); }
.s-line.s-1 { stroke: var(--waiting); } .sw .s-1 { fill: var(--waiting); }
.s-line.s-2 { stroke: var(--success); } .sw .s-2 { fill: var(--success); }
.s-hit { fill: transparent; }
a.s-pt:hover .s-hit, a.s-pt:focus .s-hit { fill: var(--primary-soft); }
.s-lab { font-size: 12px; fill: var(--subtle); }
.s-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s2) 0 0;
            padding: 0; font-size: 12px; color: var(--muted); }
.s-legend li { display: flex; align-items: center; gap: 6px; }
.s-legend .sw { width: 10px; height: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: flex-end;
         margin: var(--s3) 0 0; font-size: 13px; }
.pager .off { color: var(--subtle); }
.f-link { color: inherit; text-decoration: underline dotted; }
.an.is-loading .an-kpis, .an.is-loading .an-grid { opacity: .55; }
.an.is-stale .an-kpis { outline: 1px dashed var(--warning); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .an-kpis, .an-grid { transition: opacity .15s ease; }
  .an.is-loading .kpi-n { animation: an-pulse 1s ease-in-out infinite; }
  @keyframes an-pulse { 50% { opacity: .4; } }
}
@media (max-width: 760px) {
  .an-filters .an-field { flex: 0 0 calc(50% - 4px); }
  .an-filters .an-field select, .an-filters .an-field input { width: 100%; }
  .bar-row { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) auto; }
}
/* ⚠️ Keng analitika jadvallari (11 ustun) — ≥1280 da ham o'z ichida suriladi;
   umumiy `.scroll:has(> .mtable) { overflow: visible }` qoidasi ularni sahifadan
   chiqarib yuborardi (1280 E2E da o'lchandi). */
@media (min-width: 761px) {
  .scroll:has(> .an-table) { overflow-x: auto; }
}

/* ⭐ PORTAL.ECHARTS.1 — ECharts vizual qatlami (canvas). Balandlik JS'da
   CSSOM orqali (vidjet o'lchamiga qarab); markup'da inline style YO'Q. */
/* ⚠️ padding YO'Q: ECharts ichki qatlami padding ichiga joylashadi va bosish
   koordinatasi siljiydi — bo'shliq tashqi margin bilan. */
.an-chart { min-height: 140px; margin: var(--s3) var(--s4) 0; }
.an-chart.is-hot { cursor: pointer; }
.an-w.is-na .an-chart { opacity: .45; filter: grayscale(.7); }
.has-chart > .cc-body { padding-top: var(--s2); }
details.an-alt > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--muted); padding: 2px 0; list-style: none; }
details.an-alt > summary::-webkit-details-marker { display: none; }
details.an-alt > summary::before { content: "▸"; font-size: 10px; color: var(--subtle); }
details.an-alt[open] > summary::before { content: "▾"; }
details.an-alt > summary:hover { color: var(--fg); }
details.an-alt > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px;
  border-radius: 4px; }
details.an-alt[open] > summary { margin-bottom: var(--s3); }

/* ⭐ PORTAL.ECHARTS.VISUAL.UAT.FIX.1 — analitika KPI tori desktopda muvozanatli:
   8 → 4×2, 6 → 3×2, 7 → 4+3, 9 → (≥1280) 5+4. Tor ekran qoidalari o'zgarmaydi. */
@media (min-width: 1024px) {
  .an-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-kpis:has(> .kpi:nth-child(6)):not(:has(> .kpi:nth-child(7))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .an-kpis:has(> .kpi:nth-child(9)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ⭐ PORTAL.LEADERBOARD.1 — xodimlar reytingi. Ishbilarmon uslub: medal/neon yo'q,
   top-3 faqat vazmin urg'u; asosiy ko'rsatkich (foiz) vizual ustun. */
.lb.is-na .cc-body { opacity: 1; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.lb-item { position: relative; border: 1px solid var(--line); border-radius: var(--r-card);
           background: var(--surface); will-change: transform; }
.lb-item.is-top { border-left: 3px solid var(--primary); }
.lb-item.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.lb-row { display: grid; align-items: center; column-gap: var(--s3); row-gap: 2px;
          grid-template-columns: 3.2rem 7.5rem 2.5rem minmax(0, 1fr) 9rem minmax(0, 18rem);
          grid-template-areas: "rank move av who main meta";
          padding: 10px var(--s4); color: var(--fg); text-decoration: none; border-radius: inherit; }
.lb-row:hover { background: var(--surface-2); }
.lb-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lb-rank { grid-area: rank; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--neutral); }
.lb-item.is-top .lb-rank { color: var(--primary); font-size: 20px; }
.lb-move { grid-area: move; justify-self: start; font-size: 12px; font-weight: 600; line-height: 1;
           padding: 4px 6px; border-radius: var(--r-pill); background: var(--neutral-bg); color: var(--neutral);
           white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-move.mv-up { background: var(--success-bg); color: var(--success); }
.lb-move.mv-down { background: var(--danger-bg); color: var(--danger); }
/* Taqqoslash yo'q — neytral, o'qiladigan izoh (o'q emas). */
.lb-move.mv-no_previous, .lb-move.mv-insufficient_previous { white-space: normal; font-weight: 500;
  font-size: 11px; line-height: 1.25; border-radius: var(--r-ctl); color: var(--muted); }
.lb-av { grid-area: av; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
         background: var(--neutral-bg); color: var(--neutral); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.lb-item.is-top .lb-av { background: var(--primary-soft); color: var(--primary); }
.lb-who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.lb-name { font-weight: 600; overflow-wrap: anywhere; }
.lb-dep { font-size: 12px; color: var(--subtle); overflow-wrap: anywhere; }
.lb-main { grid-area: main; display: flex; flex-direction: column; align-items: flex-end; }
.lb-pct { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lb-lab { font-size: 11.5px; color: var(--subtle); }
.lb-trend { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted);
           font-variant-numeric: tabular-nums; }
.lb-od.is-bad { color: var(--danger); font-weight: 600; }
.lb-none { margin: 0 0 var(--s2); font-size: 13px; color: var(--subtle); }
.lb-insuff { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line); }
.lb-insuff h4 { margin: 0 0 var(--s2); font-size: 13px; font-weight: 600; color: var(--muted); }
.lb-small .lb-row { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 18rem);
                    grid-template-areas: "av who meta"; padding: 8px var(--s4); }
.lb-small .lb-item { background: var(--surface-2); }
.lb-nn { font-weight: 600; color: var(--warning); }
@media (max-width: 760px) {
  .lb-row { grid-template-columns: 2.6rem 2.5rem minmax(0, 1fr) auto;
            grid-template-areas: "rank av who main" "move move meta meta"; padding: 10px var(--s3); }
  .lb-move { justify-self: start; }
  .lb-pct { font-size: 20px; }
  .lb-small .lb-row { grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-areas: "av who" "meta meta"; }
}
@media (prefers-reduced-motion: reduce) { .lb-item { will-change: auto; } }

/* ⭐ PORTAL.LIVE.WALL.AVATAR.1 — xodim portretlari boshqaruvi (JS'siz formalar). */
.av-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.av-row { display: grid; grid-template-columns: 96px minmax(160px, 1fr) auto minmax(150px, auto); align-items: center; gap: var(--s4);
          padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.av-face { position: relative; width: 96px; height: 96px; border-radius: 48% 48% 16% 16% / 42% 42% 12% 12%; overflow: hidden;
           background: var(--nav-bg); color: var(--nav-fg); display: grid; place-items: center; }
.av-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; color: transparent; font-size: 0; }
.av-init { font-size: 28px; font-weight: 800; letter-spacing: .03em; }
.av-big { width: 256px; height: 256px; }
.av-big .av-init { font-size: 72px; }
.av-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-up, .av-del { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.av-up input[type=file] { width: 250px; margin: 0; padding: 6px 8px; font-size: 13px; }
.av-up button, .av-del button { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.av-compare { display: flex; gap: var(--s6); flex-wrap: wrap; margin: var(--s4) 0; }
.av-compare figure { margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.av-compare figcaption { color: var(--muted); font-weight: 600; }
.av-preview .form-actions { display: flex; gap: var(--s3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .av-row { grid-template-columns: 72px 1fr; }
  .av-row .av-face { width: 72px; height: 72px; }
  .av-up, .av-del { grid-column: 1 / -1; flex-wrap: wrap; }
  .av-up input[type=file] { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE.WALL.VIRTUAL.OFFICE.1 — «Virtual ofis» (faqat .vo ichida amal qiladi)
   ═══════════════════════════════════════════════════════════════════════════ */
/* ⭐ Bitta izometrik zal: fon (`.vo-plate`) + pol belgilari + odamlar va mebel (chuqurlik
      bo'yicha `z-index`) bitta `.vo-world` ichida, PLATE piksellarida; kamera — shu
      qatlamning `transform`i (JS band joylarga moslaydi). Kartochkalar alohida qatlamda:
      ular zal bilan kichraymaydi, faqat joyi ergashadi.
   ⚠️ Joylashuv (left/top/transform) JS'dan CSSOM orqali — inline style atributi yo'q.
   ⭐ Holat rangi yagona ko'rsatkich EMAS: har kartochkada holat MATNI bor.
   ⭐ Harakat: xodim videosi; doimiy CSS harakati faqat `no-preference` blokida. */
.vo { --vo-working: #1F9D63; --vo-idle: #6F7B90; --vo-blocked: #E5484D; --vo-late: #E8590C; --vo-review: #B7791F;
      --vo-verified: #2F6FED; --vo-card-bg: #FFFFFF; --vo-ink: #17202E; --vo-soft: #5F6B7D; gap: 8px; }
.vo .wall-scene { position: relative; overflow: hidden; }
.vo-stage { position: absolute; inset: 0; overflow: hidden; }
.vo-stage[hidden] { display: none; }
/* kichik ekran (telefon): zal kichraymaydi — sahna barmoq bilan suriladi (JS `is-pan` qo'yadi) */
.vo-stage.is-pan { overflow: auto; overscroll-behavior: contain; }
.vo-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .9s ease; }
.vo-plate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.vo-floor, .vo-actors { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.vo-actors { isolation: isolate; }
.vo-prop, .vo-unit { position: absolute; display: block; pointer-events: none; }
.vo-unit { transition: opacity .4s ease; }
.vo-unit.is-leaving { opacity: 0; }
.vo-still, .vo-clip { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.vo-clip { opacity: 0; }
/* Safari/iOS: avtomatik ijro o'chiq bo'lsa (tejash rejimi) klip ustida «play» belgisi chiqmasin — kadr qoladi */
.vo-clip::-webkit-media-controls, .vo-clip::-webkit-media-controls-start-playback-button { display: none; -webkit-appearance: none; }
.vo-unit.is-playing .vo-clip { opacity: 1; }
.vo-unit.is-playing .vo-still { opacity: 0; }
/* zona nomi: old qatorlarda polga, orqa qatorda devorga «yozilgan» (izometrik matritsa JS'dan) */
.vo-zone { position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap; font-size: 31px; font-weight: 800;
           letter-spacing: .16em; color: rgba(23, 32, 46, .26); }
.vo-zone.on-wall { font-size: 23px; letter-spacing: .2em; color: rgba(255, 255, 255, .92); }
.vo-zone[hidden] { display: none; }
/* holat doirasi: poldagi aylana = 2:1 ellips */
.vo-ring { position: absolute; width: 276px; height: 138px; margin: -69px 0 0 -138px; border-radius: 50%;
           background: color-mix(in srgb, var(--c) 30%, transparent); border: 3px solid color-mix(in srgb, var(--c) 78%, transparent); }
.vo-s-working { --c: var(--vo-working); } .vo-s-idle { --c: var(--vo-idle); } .vo-s-blocked { --c: var(--vo-blocked); }
.vo-s-late { --c: var(--vo-late); } .vo-s-review { --c: var(--vo-review); } .vo-s-verified { --c: var(--vo-verified); }
/* kartochka: ism + holat, ostida bo'lim va sonlar */
.vo-cards { position: absolute; inset: 0; pointer-events: none; }
.vo-card { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) translateY(-9px) scale(var(--vo-card, 1));
           transform-origin: 50% 100%; display: flex; align-items: center; gap: 7px; max-width: 250px;
           padding: 5px 9px 6px; background: var(--vo-card-bg); color: var(--vo-ink); border-radius: 10px;
           border-top: 4px solid var(--c); box-shadow: 0 5px 14px rgba(4, 8, 18, .4); transition: left .9s ease, top .9s ease; }
.vo-card::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
                  background: var(--vo-card-bg); transform: rotate(45deg); }
.vo-pic { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #E3E7EE; }
.vo-pic[hidden] { display: none; }
.vo-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.vo-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vo-name { font-size: 14.5px; font-weight: 750; line-height: 1.15; max-width: 214px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vo-chip { flex: none; padding: 2px 7px; border-radius: var(--r-pill); background: var(--c); color: #fff; font-size: 10.5px;
           font-weight: 750; letter-spacing: .03em; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.vo-sub { font-size: 11px; line-height: 1.2; color: var(--vo-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-more { position: absolute; left: 0; bottom: 6px; max-width: 70%; margin: 0; padding: 6px 12px; border-radius: 10px;
           background: var(--w-panel); border: 1px solid var(--w-line); color: var(--w-muted); font-size: 13px; }
.vo-more[hidden], .vo-nopack[hidden] { display: none; }
.vo-nopack { margin: 0 0 12px; font-size: 18px; color: var(--w-warn); }
/* JS'siz (yoki to'plam o'rnatilmagan) holat: oddiy ro'yxat — ism, holat, sonlar */
.vo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.vo.is-live .vo-list { display: none; }
.vo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; border-radius: 10px;
          background: var(--w-panel); border: 1px solid var(--w-line); border-left: 4px solid var(--c); }
.vo-row-n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-row-s { color: var(--w-fg); font-size: 13px; }
.vo-row-b { grid-column: 1 / -1; color: var(--w-muted); font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .vo-ring.vo-s-blocked, .vo-ring.vo-s-late { animation: vo-alarm 1.4s ease-in-out infinite; }
  .vo-ring.vo-s-verified { animation: vo-cheer 1.8s ease-out infinite; }
}
@keyframes vo-alarm { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes vo-cheer { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: .3; transform: scale(1.18); } }
.vo.vo-instant .vo-world, .vo.vo-instant .vo-card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .vo-world, .vo-card, .vo-unit { transition: none; }
}
/* tor yoki past ekran (telefon): sarlavha ixcham — zal bor joyni oladi */
@media (max-width: 900px), (max-height: 520px) {
  .vo { padding: 6px 10px 0; gap: 4px; }
  .vo .uat-warn { margin: -6px -10px 0; }
  .vo .wall-top { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .vo .wall-brand { font-size: 15px; }
  .vo .wall-sub, .vo .wall-upd { font-size: 11px; }
  .vo .wall-meta { flex-direction: row; align-items: center; gap: 8px; font-size: 11px; }
  .vo .wall-kpis { grid-column: 1 / -1; grid-row: 2; gap: 4px; }
  .vo .wall-kpi { flex-direction: column; align-items: flex-start; gap: 0; padding: 3px 6px; border-radius: 8px; }
  .vo .wall-kpi-n { font-size: 16px; }
  .vo .wall-kpi-l { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .vo .wall-ticker { margin: 0 -10px; }
  .vo .wall-actions { align-items: center; }
  .vo .wall-btn { white-space: nowrap; padding: 3px 8px; }
}
@media (max-width: 560px) {
  .vo .wall-top { grid-template-columns: minmax(0, 1fr); }
  .vo .wall-meta { flex-wrap: wrap; justify-content: flex-start; white-space: normal; }
  .vo .wall-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE.WALL.3D.AVATAR.1 — «Jonli ofis» prototipi (faqat .ow ichida amal qiladi)
   ═══════════════════════════════════════════════════════════════════════════ */
/* ⭐ LIVE.WALL.3D.AVATAR.1 — «Jonli ofis» PROTOTIPI (2.5D izometrik, SVG + CSS).
   ⚠️ Faqat transform/opacity animatsiyasi (TV'da kompozitor ishlaydi); reduced-motion — harakatsiz.
   ⚠️ Inline style YO'Q — rang/teri/soch/kiyim klasslar bilan. */

.ow {
  --ow-bg1: #0e1a2b; --ow-bg2: #142a3f;
  --ow-ink: #f2f6fb; --ow-mute: #9fb3c8;
  --ow-tile: #2a4460; --ow-tile2: #23394f; --ow-wall: #34536f; --ow-wall2: #2c4762;
  --ow-desk: #c99a6b; --ow-desk-l: #a97c52; --ow-desk-r: #8d6542;
  --ow-outline: #0c1624;
  --ow-c-working: #3fb37f; --ow-c-idle: #8aa4bf; --ow-c-blocked: #e5484d; --ow-c-late: #f2a33a;
  --ow-c-review: #4c8dff; --ow-c-verified: #2ecc71;
  --ow-d: 0s; --ow-t: 1;
  background: var(--ow-bg1);
  color: var(--ow-ink);
}
.ow .wall-top { position: relative; z-index: 2; }

.ow-scene { flex: 1 1 auto; min-height: 0; padding: 8px 14px 4px; overflow: hidden; }
.ow-floor { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; justify-content: center; height: 100%; }

/* ── Xona (bo'lim) ─────────────────────────────────────────────── */
.ow-room {
  --ow-room: #3b5d7d;
  border-radius: 16px; padding: 4px 8px 6px;
  background: #172c43;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 10px 30px rgba(0,0,0,.25);
}
/* ⚠️ Sarlavha xona kengligini BELGILAMAYDI (width:0 + min-width:100%) — kenglik = ish joylari. */
.ow-room-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 6px 4px; white-space: nowrap; overflow: hidden; width: 0; min-width: 100%; box-sizing: border-box; }
.ow-room-n, .ow-room-tag { flex: none; }
.ow-room-s { min-width: 0; flex: 1 1 auto; }
.ow-room-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--ow-room); color: #fff; }
.ow-room-n { margin: 0; font-size: 17px; font-weight: 800; }
.ow-room-s { margin: 0; font-size: 12px; color: var(--ow-mute); overflow: hidden; text-overflow: ellipsis; }
.ow-desks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 6px; grid-template-columns: repeat(var(--ow-cols, 1), var(--ow-cw)); }
.ow { --ow-cw: 170px; }
.ow-cols-1 { --ow-cols: 1; } .ow-cols-2 { --ow-cols: 2; } .ow-cols-3 { --ow-cols: 3; } .ow-cols-4 { --ow-cols: 4; }
.ow-cols-5 { --ow-cols: 5; } .ow-cols-6 { --ow-cols: 6; } .ow-cols-7 { --ow-cols: 7; } .ow-cols-8 { --ow-cols: 8; }

.ow-rs-office { --ow-room: #5b7894; } .ow-rs-leadership { --ow-room: #8a6bd1; } .ow-rs-sales { --ow-room: #e0794a; }
.ow-rs-logistics { --ow-room: #b07a3c; } .ow-rs-construction { --ow-room: #d9a521; } .ow-rs-marketing { --ow-room: #d65aa0; }
.ow-rs-finance { --ow-room: #2f9e8f; } .ow-rs-technician { --ow-room: #4a90c2; }

/* ── Ish joyi (xodim) ──────────────────────────────────────────── */
.ow-desk { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ow-name { font-size: 14px; font-weight: 800; line-height: 1.12; max-width: 100%; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.ow-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.15; font-weight: 700; color: var(--ow-mute); }
.ow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ow-c-idle); }
.ow-badges { font-size: 11px; line-height: 1.15; color: var(--ow-mute); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.ow-s-working .ow-dot { background: var(--ow-c-working); } .ow-s-working .ow-state { color: #bfeed6; }
.ow-s-blocked .ow-dot { background: var(--ow-c-blocked); } .ow-s-blocked .ow-state { color: #ffc2c4; }
.ow-s-late .ow-dot { background: var(--ow-c-late); } .ow-s-late .ow-state { color: #ffdcae; }
.ow-s-review .ow-dot { background: var(--ow-c-review); } .ow-s-review .ow-state { color: #c3d8ff; }
.ow-s-verified .ow-dot { background: var(--ow-c-verified); } .ow-s-verified .ow-state { color: #b9f5cf; }

/* Muhit */
.ow-tile { fill: var(--ow-tile); stroke: rgba(255,255,255,.08); }
.ow-wall-l { fill: var(--ow-wall); } .ow-wall-r { fill: var(--ow-wall2); }
.ow-desk-t { fill: var(--ow-desk); } .ow-desk-l { fill: var(--ow-desk-l); } .ow-desk-r { fill: var(--ow-desk-r); }
.ow-s-blocked .ow-tile { fill: #4a2b35; } .ow-s-late .ow-tile { fill: #4b3d26; } .ow-s-verified .ow-tile { fill: #234b3c; }
.ow-s-review .ow-tile { fill: #263f62; }

/* Odam — teri, soch, kiyim */
.sk-0 { --sk: #f5d0b5; } .sk-1 { --sk: #e8b48f; } .sk-2 { --sk: #d29a72; } .sk-3 { --sk: #b07a52; } .sk-4 { --sk: #8b5a3c; }
.hc-0 { --hc: #2b211c; } .hc-1 { --hc: #4a2f20; } .hc-2 { --hc: #6b4428; } .hc-3 { --hc: #1d1d27; }
.sh-0 { --sh-mix: 0%; } .sh-1 { --sh-mix: 18%; } .sh-2 { --sh-mix: 34%; }
.ow-st-office { --sh: #4f7cb8; } .ow-st-leadership { --sh: #4a3f78; } .ow-st-sales { --sh: #e07a4c; }
.ow-st-logistics { --sh: #8a6a3e; } .ow-st-construction { --sh: #5b6b7a; } .ow-st-marketing { --sh: #c4508e; }
.ow-st-finance { --sh: #2f8f82; } .ow-st-technician { --sh: #3d6f99; }
.ow-desk { --shirt: color-mix(in srgb, var(--sh) calc(100% - var(--sh-mix)), #ffffff var(--sh-mix)); }

.ow-face, .ow-neck, .ow-hand { fill: var(--sk); stroke: var(--ow-outline); stroke-width: 1.4; }
.ow-torso, .ow-sleeve { fill: var(--shirt, var(--sh)); stroke: var(--ow-outline); stroke-width: 1.4; }
.ow-eye { fill: #1c2230; } .ow-blush { fill: #ff8fa0; opacity: .45; }
.ow-mouth, .ow-brow { fill: none; stroke: #2a2230; stroke-width: 1.8; stroke-linecap: round; }
.ow-hair > * { display: none; fill: var(--hc); stroke: var(--ow-outline); stroke-width: 1.2; }
.ow-hair .h2 circle, .ow-hair .h4 path, .ow-hair .h4 circle { fill: var(--hc); }
.hs-0 .ow-hair .h0, .hs-1 .ow-hair .h1, .hs-2 .ow-hair .h2, .hs-3 .ow-hair .h3, .hs-4 .ow-hair .h4 { display: inline; }
.ow-badge { fill: #fff; stroke: var(--ow-outline); stroke-width: 1; }
.ow-badge-t { font: 800 7px system-ui, sans-serif; fill: #24364b; text-anchor: middle; }

/* Portret — yuz o'rnida; soch/ko'z yashiriladi (shlyapa qoladi) */
.ow-photo-ring { fill: none; stroke: #fff; stroke-width: 2; }
.has-photo .ow-features, .has-photo .ow-hair { display: none; }
.has-photo .ow-hat.glasses { display: none; }

/* Kiyim/aksessuarlar */
.ow-tie { fill: #c0392b; stroke: var(--ow-outline); stroke-width: 1; }
.ow-st-finance .ow-tie { fill: #1f6f66; }
.ow-vest { fill: #ff8a1c; stroke: var(--ow-outline); stroke-width: 1; } .ow-vest-band { fill: #f5f5d0; }
.ow-overall { fill: #2f5577; stroke: var(--ow-outline); stroke-width: 1; } .ow-strap { stroke: #2f5577; stroke-width: 4; stroke-linecap: round; }
.hat-hard path, .hat-hard rect { fill: #ffc21a; stroke: var(--ow-outline); stroke-width: 1.2; } .hat-hard .hat-ridge { fill: #f0a800; }
.hat-cap path { fill: #2e6da4; stroke: var(--ow-outline); stroke-width: 1.2; } .ow-st-logistics .hat-cap path { fill: #8a5a2b; }
.hat-cap .goggles { fill: #9fe3ff; stroke: var(--ow-outline); stroke-width: 1.2; opacity: .9; }
.hat-beret ellipse, .hat-beret circle { fill: #7d2d6b; stroke: var(--ow-outline); stroke-width: 1.2; }
.hat-headset rect { fill: #2b2f3a; } .hat-headset .hs-band, .hat-headset .hs-mic { fill: none; stroke: #2b2f3a; stroke-width: 3; stroke-linecap: round; }
.glasses circle, .glasses path { fill: rgba(200,235,255,.25); stroke: #1c2230; stroke-width: 1.6; }

/* Asboblar */
.ow-tool { display: inline; } .tool-handle { fill: #8b5a2b; } .tool-head { fill: #8f9aa6; stroke: var(--ow-outline); }
.tool-wrench { fill: none; stroke: #9aa6b2; stroke-width: 4; stroke-linecap: round; }
.tool-brush { stroke: #8b5a2b; stroke-width: 3; stroke-linecap: round; } .tool-tip { fill: #ff5fa2; }
.tool-phone { fill: #2b2f3a; stroke: #9fb3c8; stroke-width: 1; }
.ow-doc { display: none; } .ow-doc rect { fill: #fff; stroke: var(--ow-outline); } .ow-doc path { stroke: #9fb3c8; stroke-width: 1.3; }

/* Jihozlar */
.pr-shelf { fill: #6b4a33; } .pr-book { fill: #e8655a; } .pr-book.b2 { fill: #4c8dff; } .pr-book.b3 { fill: #f2c94c; }
.pr-pot { fill: #c46a3c; } .pr-leaf { fill: #3fb37f; } .pr-leaf.l2 { fill: #2e9566; }
.pr-frame { fill: #f4f1e8; stroke: #6b4a33; stroke-width: 2; }
.pr-chart-up { fill: none; stroke: #2ecc71; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pr-arrow { fill: none; stroke: #2ecc71; stroke-width: 3; stroke-linecap: round; }
.pr-brick { fill: #c0583c; stroke: #7d3324; } .pr-brick.b2 { fill: #b04e34; } .pr-brick.b3 { fill: #cf6446; }
.pr-cone { fill: #ff7a1a; stroke: var(--ow-outline); } .pr-cone-band { fill: #fff; }
.pr-crane { fill: none; stroke: #ffc21a; stroke-width: 3; stroke-linecap: square; }
.pr-gen { fill: #3a8f4f; stroke: var(--ow-outline); stroke-width: 1.4; } .pr-gen-top { fill: #2f7a42; }
.pr-grille rect { fill: #1f3d2a; } .pr-gauge { fill: #f4f1e8; stroke: var(--ow-outline); } .pr-needle { stroke: #e5484d; stroke-width: 2; }
.pr-smoke circle { fill: rgba(220,230,240,.35); } .pr-toolbox { fill: #e5484d; stroke: var(--ow-outline); }
.pr-easel { fill: none; stroke: #8b5a2b; stroke-width: 3; } .pr-canvas { fill: #fbf7ef; stroke: #8b5a2b; stroke-width: 2; }
.pr-canvas-art { fill: none; stroke: #d65aa0; stroke-width: 3; stroke-linecap: round; }
.pr-paint.p1 { fill: #ff5fa2; } .pr-paint.p2 { fill: #4c8dff; } .pr-paint.p3 { fill: #f2c94c; }
.pr-board { fill: #10263b; stroke: #6e8aa6; stroke-width: 2; }
.pr-bar { fill: #2ecc71; } .pr-bar.b2 { fill: #3fd17f; } .pr-bar.b3 { fill: #f2c94c; } .pr-bar.b4 { fill: #4c8dff; }
.pr-coins ellipse { fill: #f2c94c; stroke: #a37a12; stroke-width: 1; }
.pr-globe { fill: #4c8dff; stroke: var(--ow-outline); } .pr-globe-l { fill: none; stroke: #bfe0ff; stroke-width: 1.5; }
.pr-box { fill: #c99a6b; stroke: #7a5a38; stroke-width: 1.4; } .pr-box.b2 { fill: #b8895c; } .pr-box.b3 { fill: #d4a877; }
.pr-tape { stroke: #f4e1b8; stroke-width: 3; }
.pr-truck rect { fill: #e8eef5; stroke: var(--ow-outline); } .pr-truck .cab { fill: #4c8dff; } .pr-truck .wheel { fill: #1c2230; }
.lap-base { fill: #b8c4d1; stroke: var(--ow-outline); } .lap-screen { fill: #22303f; stroke: var(--ow-outline); }
.lap-glow { fill: #5fb3ff; opacity: .75; }
.pr-mug rect { fill: #fff; stroke: var(--ow-outline); } .steam { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-linecap: round; }
.pr-nameplate { fill: #2b2f3a; stroke: #f2c94c; stroke-width: 1; }
.pr-blueprint polygon { fill: #2f6fb5; stroke: #cfe4ff; } .pr-blueprint path { stroke: #cfe4ff; stroke-width: 1; }
.pr-parts circle { fill: #9aa6b2; stroke: var(--ow-outline); } .pr-parts rect { fill: #e5484d; }
.pr-mega path { fill: #f2c94c; stroke: var(--ow-outline); } .pr-tablet { fill: #22303f; stroke: var(--ow-outline); }
.pr-calc polygon { fill: #3a4656; stroke: var(--ow-outline); } .pr-calc path { stroke: #9fe3ff; stroke-width: 1.5; }
.pr-clip rect { fill: #fff; stroke: #7a5a38; stroke-width: 2; }

/* Pufakcha (holat belgisi) */
.ow-bubble .bub { fill: #fff; stroke: var(--ow-outline); stroke-width: 1.5; }
.ow-bubble .bi { display: none; }
.bi-working circle { fill: var(--ow-c-working); }
.bi-idle path { fill: none; stroke: var(--ow-c-idle); stroke-width: 2; stroke-linecap: round; }
.bi-blocked rect, .bi-blocked circle { fill: var(--ow-c-blocked); }
.bi-late circle { fill: none; stroke: var(--ow-c-late); stroke-width: 2.4; } .bi-late path { stroke: var(--ow-c-late); stroke-width: 2.4; stroke-linecap: round; }
.bi-review path { fill: none; stroke: var(--ow-c-review); stroke-width: 2.4; stroke-linejoin: round; }
.bi-verified path { fill: none; stroke: var(--ow-c-verified); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ow-s-working .bi-working, .ow-s-idle .bi-idle, .ow-s-blocked .bi-blocked, .ow-s-late .bi-late,
.ow-s-review .bi-review, .ow-s-verified .bi-verified { display: inline; }
.ow-s-blocked .ow-bubble .bub { stroke: var(--ow-c-blocked); stroke-width: 2.5; }
.ow-s-late .ow-bubble .bub { stroke: var(--ow-c-late); stroke-width: 2.5; }
.ow-s-verified .ow-bubble .bub { stroke: var(--ow-c-verified); stroke-width: 2.5; }
.ow-sweat { display: none; } .ow-sweat path { fill: #8fd3ff; stroke: #3b7fb0; stroke-width: .8; }
.ow-s-late .ow-sweat { display: inline; }
.ow-confetti { display: none; } .ow-s-verified .ow-confetti { display: inline; }
.ow-confetti .c1 { fill: #ff5fa2; } .ow-confetti .c2 { fill: #f2c94c; }
.ow-confetti .c3 { fill: #4c8dff; } .ow-confetti .c4 { fill: #2ecc71; }
.ow-confetti .c5, .ow-confetti .c6 { fill: #ff8a1c; }
.ow-s-review .ow-doc { display: inline; } .ow-s-review .ow-tool { display: none; }
.ow-s-blocked .ow-tool, .ow-s-verified .ow-tool { display: none; }

/* ── Harakat ───────────────────────────────────────────────────── */
.ow-svg * { transform-box: view-box; }
.ow-char { transform-origin: 110px 150px; }
.ow-head { transform-origin: 110px 88px; }
.ow-arm-l { transform-origin: 90px 106px; }
.ow-arm-r { transform-origin: 130px 106px; }
.ow-torso { transform-origin: 110px 150px; }
.ow-bubble .bub, .ow-bubble .bi { transform-origin: 110px 24px; }
.mp-0 { --ow-d: 0s; } .mp-1 { --ow-d: -.27s; } .mp-2 { --ow-d: -.55s; } .mp-3 { --ow-d: -.83s; }
.mp-4 { --ow-d: -1.1s; } .mp-5 { --ow-d: -1.38s; } .mp-6 { --ow-d: -1.66s; } .mp-7 { --ow-d: -1.93s; }
.mp-8 { --ow-d: -2.21s; } .mp-9 { --ow-d: -2.49s; } .mp-10 { --ow-d: -2.76s; } .mp-11 { --ow-d: -3.04s; }
.mt-0 { --ow-t: .9; } .mt-1 { --ow-t: .97; } .mt-2 { --ow-t: 1.04; } .mt-3 { --ow-t: 1.11; } .mt-4 { --ow-t: 1.18; }
.ow-desk .ow-char, .ow-desk .ow-head, .ow-desk .ow-arm, .ow-desk .ow-bubble .bub, .ow-desk .ow-bubble .bi, .ow-desk .ow-torso,
.ow-desk .ow-sweat, .ow-desk .ow-confetti > *, .ow-desk .steam, .ow-desk .pr-smoke, .ow-desk .clock-h,

/* IDLE — nafas, bosh sekin buriladi, kofe bug'i */
/* WORKING — qo'llar ishlaydi, bosh qimirlaydi; ish joyiga mos */
.ow-s-working.ow-st-technician .pr-needle { transform-origin: 183px 116px; }
.ow-s-working.ow-st-sales .ow-arm-r { transform: rotate(-138deg); }
/* BLOCKED — qo'llar ko'tarilgan, bosh chayqaladi, qizil pufakcha urinadi */
.ow-s-blocked .ow-arm-l { transform: rotate(118deg); }
.ow-s-blocked .ow-arm-r { transform: rotate(-118deg); }
/* LATE — shoshilib yozadi, titraydi, ter tomadi, soat aylanadi */
.ow-s-late .bi-late .clock-h { transform-origin: 110px 24px; }
/* REVIEW — hujjatni ko'tarib kutadi, qum soati aylanadi */
.ow-s-review .ow-arm-r { transform: rotate(-150deg); }
/* VERIFIED — sakraydi, qo'llar tepada, konfetti */
.ow-s-verified .ow-arm-l { transform: rotate(150deg); }
.ow-s-verified .ow-arm-r { transform: rotate(-150deg); }

/* ⚠️ Doimiy harakat FAQAT shu blokda (Jonli devor konventsiyasi): reduced-motion'da
   animatsiya umuman ulanmaydi, holat pozasi + pufakcha qoladi. */
@media (prefers-reduced-motion: no-preference) {
  .ow-desk .lap-glow, .ow-desk .pr-needle { animation-delay: var(--ow-d); }
  .ow-s-idle .ow-char { animation: ow-breathe calc(4s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-idle .ow-head { animation: ow-look calc(7s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-idle .ow-bubble .bub, .ow-s-idle .ow-bubble .bi { animation: ow-float calc(3s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-working .ow-arm-l { animation: ow-type-l calc(.55s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-working .ow-arm-r { animation: ow-type-r calc(.5s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-working .ow-head { animation: ow-nod calc(1.6s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-working .lap-glow { animation: ow-glow calc(1.2s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-working .bi-working .d1 { animation: ow-dot 1.2s ease-in-out infinite; }
  .ow-s-working .bi-working .d2 { animation: ow-dot 1.2s ease-in-out .2s infinite; }
  .ow-s-working .bi-working .d3 { animation: ow-dot 1.2s ease-in-out .4s infinite; }
  .ow-s-working.ow-st-construction .ow-arm-r { animation: ow-hammer calc(.7s * var(--ow-t)) cubic-bezier(.5,0,.8,.4) infinite alternate; }
  .ow-s-working.ow-st-technician .ow-arm-r { animation: ow-wrench calc(.9s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-working.ow-st-technician .pr-needle { animation: ow-needle calc(1.4s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-working.ow-st-technician .pr-smoke { animation: ow-smoke calc(2.4s * var(--ow-t)) linear infinite; }
  .ow-s-working.ow-st-marketing .ow-arm-r { animation: ow-paint calc(1.1s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-working.ow-st-sales .ow-arm-r { animation: none; }
  .ow-s-working.ow-st-sales .ow-head { animation: ow-talk calc(.9s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-working.ow-st-logistics .ow-arm-l, .ow-s-working.ow-st-logistics .ow-arm-r { animation: ow-lift calc(1.3s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-working.ow-st-leadership .ow-arm-r { animation: ow-point calc(2.2s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-blocked .ow-arm-l { animation: ow-shrug-l calc(1.4s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-blocked .ow-arm-r { animation: ow-shrug-r calc(1.4s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-blocked .ow-head { animation: ow-shake calc(.9s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-blocked .ow-bubble .bub, .ow-s-blocked .ow-bubble .bi { animation: ow-pulse calc(1s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-late .ow-char { animation: ow-jitter calc(.25s * var(--ow-t)) linear infinite; }
  .ow-s-late .ow-arm-l { animation: ow-type-l calc(.28s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-late .ow-arm-r { animation: ow-type-r calc(.26s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-late .ow-sweat { animation: ow-drop calc(1.3s * var(--ow-t)) ease-in infinite; }
  .ow-s-late .bi-late .clock-h { animation: ow-spin 1.6s linear infinite; }
  .ow-s-review .ow-arm-r { animation: ow-hold calc(2.4s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-review .ow-char { animation: ow-sway calc(3.2s * var(--ow-t)) ease-in-out infinite; }
  .ow-s-review .bi-review { animation: ow-flip 2.6s ease-in-out infinite; }
  .ow-s-verified .ow-char { animation: ow-jump calc(1.1s * var(--ow-t)) cubic-bezier(.3,0,.4,1) infinite; }
  .ow-s-verified .ow-arm-l { animation: ow-cheer-l calc(.55s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-verified .ow-arm-r { animation: ow-cheer-r calc(.55s * var(--ow-t)) ease-in-out infinite alternate; }
  .ow-s-verified .ow-bubble .bub, .ow-s-verified .ow-bubble .bi { animation: ow-pop calc(1.1s * var(--ow-t)) ease-out infinite; }
  .ow-s-verified .ow-confetti > * { animation: ow-confetti calc(1.6s * var(--ow-t)) ease-out infinite; }
  .ow-s-verified .ow-confetti .c2, .ow-s-verified .ow-confetti .c4 { animation-duration: calc(1.9s * var(--ow-t)); }
  .ow-s-verified .ow-confetti .c3, .ow-s-verified .ow-confetti .c6 { animation-duration: calc(1.4s * var(--ow-t)); }
  .ow .steam { animation: ow-steam 3s ease-in-out infinite; }
}

@keyframes ow-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes ow-look { 0%, 60%, 100% { transform: rotate(0); } 70%, 80% { transform: rotate(-7deg); } 88% { transform: rotate(5deg); } }
@keyframes ow-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ow-type-l { from { transform: rotate(-4deg); } to { transform: rotate(8deg); } }
@keyframes ow-type-r { from { transform: rotate(5deg); } to { transform: rotate(-8deg); } }
@keyframes ow-nod { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(2deg) translateY(1.5px); } }
@keyframes ow-glow { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
@keyframes ow-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes ow-hammer { from { transform: rotate(-70deg); } to { transform: rotate(18deg); } }
@keyframes ow-wrench { from { transform: rotate(-30deg); } to { transform: rotate(14deg); } }
@keyframes ow-needle { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@keyframes ow-smoke { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes ow-paint { from { transform: rotate(-40deg); } to { transform: rotate(10deg); } }
@keyframes ow-talk { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
@keyframes ow-lift { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-24deg); } }
@keyframes ow-point { 0%, 30%, 100% { transform: rotate(0); } 45%, 75% { transform: rotate(-95deg); } }
@keyframes ow-shrug-l { 0%, 100% { transform: rotate(118deg); } 50% { transform: rotate(132deg); } }
@keyframes ow-shrug-r { 0%, 100% { transform: rotate(-118deg); } 50% { transform: rotate(-132deg); } }
@keyframes ow-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes ow-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes ow-jitter { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.2px); } 75% { transform: translateX(1.2px); } }
@keyframes ow-drop { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes ow-spin { to { transform: rotate(360deg); } }
@keyframes ow-hold { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-140deg); } }
@keyframes ow-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes ow-flip { 0%, 40% { transform: rotate(0); } 60%, 100% { transform: rotate(180deg); } }
@keyframes ow-jump { 0%, 100% { transform: translateY(0) scaleY(1); } 15% { transform: translateY(0) scaleY(.94); } 45% { transform: translateY(-14px) scaleY(1.04); } 70% { transform: translateY(0) scaleY(.97); } }
@keyframes ow-cheer-l { from { transform: rotate(140deg); } to { transform: rotate(165deg); } }
@keyframes ow-cheer-r { from { transform: rotate(-140deg); } to { transform: rotate(-165deg); } }
@keyframes ow-pop { 0% { transform: scale(.7); } 30% { transform: scale(1.15); } 60%, 100% { transform: scale(1); } }
@keyframes ow-confetti { 0% { transform: translateY(14px) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-22px) rotate(220deg); opacity: 0; } }
@keyframes ow-steam { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-3px); } }

/* ⚠️ Reduced motion: harakat YO'Q, holat pozasi + pufakcha qoladi. */

/* Telefon / tor ekran — yengil zaxira: kichik ish joylari, jihozlarsiz */
@media (max-width: 900px) {
  .ow { --ow-cw: 132px; }
  .ow-scene { overflow: auto; }
  .ow-back, .ow-wall-l, .ow-wall-r, .ow-confetti { display: none; }
  .ow-name { font-size: 12px; }
  .ow-room-s { display: none; }
}
@media (max-width: 560px) {
  .ow { --ow-cw: 104px; }
  .ow-desks { grid-template-columns: repeat(3, var(--ow-cw)); }
  .ow .wall-top { display: flex; flex-wrap: wrap; gap: 8px; height: auto; }
  .ow .wall-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; order: 3; }
  .ow .wall-kpi { min-width: 0; padding: 6px 8px; }
  .ow .wall-kpi-n { font-size: 22px; }
  .ow .wall-kpi-l { font-size: 11px; white-space: normal; }
  .ow .wall-meta { margin-left: auto; }
}


/* ⭐ PORTAL.LIVE.WALL.1 + POLISH.1 — «Jonli operatsiyalar devori» (TV: 1920×1080 asosiy).
   Qorong'i, xotirjam palitra FAQAT `.wall` ichida (portal mavzusi o'zgarmaydi).
   ⭐ O'LCHAM: hammasi bitta `--A` (portret o'lchami) dan. `--A` balandlikdan
      (10.8vh) VA kenglikdan (≥10 xona ustuni sig'sin) — kichigi. 1920×1080 da ≈116px.
   ⭐ XONALAR: pol — `grid-auto-flow: dense` (kichik xona bo'sh joyni to'ldiradi);
      xona `rc-N` = N ustun (≤10, `portal_live_wall.MAX_ROOM_COLS`). Har TV o'lchamida
      kamida 10 ustun → xona hech qachon gorizontal toshmaydi.
   ⭐ HARAKAT: faqat `transform`/`opacity`; har xodimning fazasi/tempi id'dan
      (`mp-N`, `mt-N`) — guruh bo'lib sinxron emas. `prefers-reduced-motion` → yo'q. */
.wall { --w-bg: #0B1220; --w-panel: #111B2E; --w-panel-2: #16233A; --w-line: #243450; --w-fg: #E8EEF8;
        --w-muted: #9AAAC4; --w-ok: #3FD08A; --w-work: #4DA3FF; --w-review: #C38BFF; --w-warn: #F2B550;
        --w-bad: #FF6B6B; --w-idle: #6B7A93; --w-ink: #0B1220;
        --w-wall-a: #15223A; --w-wall-b: #182742; --w-floor-a: #0F192B; --w-floor-b: #111D31; --w-skirt: #2B3D5E;
        --w-head: #2D4470; --w-bust: #253A60; --w-desk: #2C3E60; --w-desk-front: #1B2944; --w-bezel: #3A4E74; --w-screen: #0E1726; --w-portrait: #1C2B47;
        --A0: 10.6vh;
        --cellmax: calc((100vw - 120px) / 10.3);
        --A: min(var(--A0), calc((var(--cellmax) - 20px) / 1.34));
        --SW: calc(var(--A) * 1.34);
        --cell: calc(var(--SW) + 20px);
        position: fixed; inset: 0; overflow: hidden; background: var(--w-bg); color: var(--w-fg);
        font-family: var(--font); display: flex; flex-direction: column; gap: calc(var(--A) * .08);
        padding: 10px 20px 0; }
.wall .uat-warn { margin: -10px -20px 0; }
.wall-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.wall-brand { display: flex; align-items: center; gap: 10px; font-size: max(18px, calc(var(--A) * .2)); font-weight: 800; letter-spacing: .06em; }
.wall-brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.wall-mark { color: var(--w-work); }
.wall-sub { font-size: max(12px, calc(var(--A) * .115)); font-weight: 500; letter-spacing: 0; color: var(--w-muted); }
.wall-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: max(12px, calc(var(--A) * .12));
             color: var(--w-muted); white-space: nowrap; }
.wall-meta b { color: var(--w-fg); font-variant-numeric: tabular-nums; }
.wall-live { display: inline-flex; align-items: center; gap: 8px; color: var(--w-ok); font-weight: 700; }
.wall-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--w-ok); }
.wall.is-stale .wall-live { color: var(--w-warn); }
.wall.is-stale .wall-dot { background: var(--w-warn); }
.wall-stale { color: var(--w-warn); font-weight: 600; }
.wall-actions { display: flex; gap: 6px; }
.wall-btn { font: inherit; font-size: 12px; line-height: 1.2; color: var(--w-fg); background: var(--w-panel); border: 1px solid var(--w-line);
            border-radius: var(--r-ctl); padding: 4px 9px; text-decoration: none; cursor: pointer; }
.wall-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wall-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.wall-kpi { background: var(--w-panel); border: 1px solid var(--w-line); border-radius: 12px; padding: calc(var(--A) * .06) 14px;
            display: flex; align-items: center; gap: 10px; min-width: 0; transition: border-color .6s ease; }
.wall-kpi-n { font-size: max(24px, calc(var(--A) * .38)); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wall-kpi-l { font-size: max(12px, calc(var(--A) * .125)); color: var(--w-muted); line-height: 1.1; min-width: 0; }
.wall-kpi.k-overdue .wall-kpi-n { color: var(--w-warn); }
.wall-kpi.k-problem .wall-kpi-n { color: var(--w-bad); }
.wall-kpi.k-review .wall-kpi-n { color: var(--w-review); }
.wall-kpi.k-active .wall-kpi-n { color: var(--w-work); }
.wall-kpi.k-done_today .wall-kpi-n { color: var(--w-ok); }
.wall-kpi.is-changed { border-color: var(--w-work); }
.wall-scene { flex: 1; min-height: 0; overflow: hidden auto; }
.wall-empty { font-size: 22px; color: var(--w-muted); }
/* ── Pol va xonalar ─────────────────────────────────────────────────────── */
.wall-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); grid-auto-flow: row dense;
              gap: calc(var(--A) * .09) 10px; align-content: start; padding: 2px 0 8px; }
.rc-1 { grid-column: span 1; --cols: 1; }
.rc-2 { grid-column: span 2; --cols: 2; }
.rc-3 { grid-column: span 3; --cols: 3; }
.rc-4 { grid-column: span 4; --cols: 4; }
.rc-5 { grid-column: span 5; --cols: 5; }
.rc-6 { grid-column: span 6; --cols: 6; }
.rc-7 { grid-column: span 7; --cols: 7; }
.rc-8 { grid-column: span 8; --cols: 8; }
.rc-9 { grid-column: span 9; --cols: 9; }
.rc-10 { grid-column: span 10; --cols: 10; }
.wall-room { position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: 16px;
             border: 1px solid var(--w-line); background: var(--w-floor-a); padding: 0 10px calc(var(--A) * .06);
             transition: opacity .45s ease, border-color .6s ease; }
.wall-room.z-b { background: var(--w-floor-b); }
/* orqa devor + plintus: boshlar devor oldida, stollar polda — xona chuqurligi */
.wall-room::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--A) * 1.2);
                     background: var(--w-wall-a); border-radius: 15px 15px 0 0; border-bottom: 2px solid var(--w-skirt); }
.wall-room.z-b::before { background: var(--w-wall-b); }
.wall-room.has-overdue { border-color: rgb(242 181 80 / .6); }
.wall-room.has-problem { border-color: rgb(255 107 107 / .7); }
.wall-room.is-exit { opacity: 0; }
.room-head { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0;
             height: calc(var(--A) * .3); padding: calc(var(--A) * .05) 4px 0; }
.wall-zone-n { margin: 0; font-size: max(13px, calc(var(--A) * .15)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 100%; }
.wall-zone-s { margin: 0; font-size: max(11px, calc(var(--A) * .1)); color: var(--w-muted); white-space: nowrap; overflow: hidden;
               text-overflow: ellipsis; min-width: 0; }
.rc-1 .wall-zone-s, .rc-2 .wall-zone-s { display: none; }
.room-floor { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-items: start;
              grid-template-columns: repeat(var(--cols), var(--SW)); justify-content: space-evenly; }
/* ── Ish joyi (stansiya): portret → stol + monitor → ism → holat → sonlar ── */
.wall-st { --ph: 0s; --tp: 6.4s; position: relative; width: var(--SW); display: flex; flex-direction: column; align-items: center;
           text-align: center; padding-top: calc(var(--A) * .04); transition: opacity .5s ease, transform .5s ease; }
.wall-st.is-enter, .wall-st.is-exit { opacity: 0; transform: translateY(14px) scale(.96); }
.st-scene { position: absolute; inset: 0; pointer-events: none; }
.st-scene > span { position: absolute; display: block; }
.st-floor { z-index: 0; left: calc(50% - var(--A) * .68); top: calc(var(--A) * 1.0); width: calc(var(--A) * 1.36); height: calc(var(--A) * .24);
            border-radius: 50%; background: rgb(0 0 0 / .34); }
.st-desk { z-index: 2; left: calc(50% - var(--A) * .62); top: calc(var(--A) * .84); width: calc(var(--A) * 1.24); height: calc(var(--A) * .27); }
.st-desk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62%; background: var(--w-desk); border-radius: 5px 5px 0 0;
                   transform: perspective(200px) rotateX(50deg); transform-origin: 50% 100%; }
.st-desk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--w-desk-front); border-radius: 0 0 4px 4px; }
.st-screen { z-index: 3; left: calc(50% + var(--A) * .3); top: calc(var(--A) * .54); width: calc(var(--A) * .36); height: calc(var(--A) * .26);
             background: var(--w-screen); border: 2px solid var(--w-bezel); border-radius: 4px; transform: perspective(200px) rotateY(-28deg); }
.st-screen::before { content: ""; position: absolute; inset: 2px; border-radius: 2px; background: var(--w-work); opacity: 0; }
.st-screen::after { content: ""; position: absolute; left: 42%; width: 16%; top: 100%; height: calc(var(--A) * .06); background: var(--w-bezel); }
.st-beacon { z-index: 4; left: calc(50% + var(--A) * .28); top: 0; width: calc(var(--A) * .2); height: calc(var(--A) * .2); border-radius: 50%;
             border: 3px solid var(--w-bg); opacity: 0; }
.st-beacon::after { content: ""; position: absolute; inset: -45%; border-radius: 50%; background: currentColor; opacity: 0; }
.st-av { position: relative; z-index: 1; width: var(--A); height: var(--A); margin-bottom: calc(var(--A) * .1);
         border-radius: 48% 48% 16% 16% / 42% 42% 12% 12%; background: var(--w-portrait); display: flex; flex-direction: column;
         align-items: center; justify-content: flex-end; padding-bottom: calc(var(--A) * .25); box-shadow: 0 6px 14px rgb(0 0 0 / .4); }
/* bosh + yelka silueti (rasm/3D büst kelguncha): bosh harflar «bosh»da */
.st-init { position: relative; z-index: 1; width: calc(var(--A) * .56); height: calc(var(--A) * .56); border-radius: 50%; background: var(--w-head);
           display: grid; place-items: center; font-size: calc(var(--A) * .25); font-weight: 800; letter-spacing: .02em; }
.st-av::after { content: ""; position: absolute; left: 50%; bottom: 0; width: calc(var(--A) * .8); height: calc(var(--A) * .34);
                margin-left: calc(var(--A) * -.4); border-radius: 50% 50% 14% 14% / 72% 72% 12% 12%; background: var(--w-bust); }
.st-ring { position: absolute; inset: calc(var(--A) * -.045); border-radius: inherit; border: calc(var(--A) * .03) solid var(--w-idle);
           transition: border-color .5s ease; }
.st-av::before { content: ""; position: absolute; inset: calc(var(--A) * -.14); border-radius: inherit; border: calc(var(--A) * .05) solid var(--w-ok);
                 opacity: 0; }
.st-ok { position: absolute; z-index: 6; left: calc(50% - var(--A) * .66); top: 0; font-size: max(12px, calc(var(--A) * .13)); font-weight: 800;
         line-height: 1.2; color: var(--w-ink); background: var(--w-ok); border-radius: var(--r-pill); padding: .12em .55em; opacity: 0;
         box-shadow: 0 0 0 3px var(--w-bg); }
.wall-st.is-done .st-ok { opacity: 1; }
.st-done { position: absolute; z-index: 5; top: calc(var(--A) * .965); left: 0; right: 0; margin: 0 auto; width: max-content;
           font-size: max(11px, calc(var(--A) * .1)); font-weight: 700; color: var(--w-ok); line-height: 1.3;
           background: var(--w-ink); border-radius: var(--r-pill); padding: 0 .5em; }
.st-done:empty { display: none; }
.st-name { position: relative; z-index: 1; font-size: max(13px, calc(var(--A) * .145)); font-weight: 700; line-height: 1.15; max-width: 100%;
           min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
           overflow-wrap: anywhere; }
.st-state { margin-top: calc(var(--A) * .03); display: inline-flex; align-items: center; gap: .3em; font-size: max(12px, calc(var(--A) * .135));
            font-weight: 800; line-height: 1.25; padding: .12em .65em; border-radius: var(--r-pill); color: var(--w-idle);
            border: 1px solid var(--w-line); transition: color .5s ease, background-color .5s ease; }
.st-badges { margin-top: calc(var(--A) * .025); font-size: max(11px, calc(var(--A) * .11)); color: var(--w-muted); line-height: 1.15; max-width: 100%;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* holatlar: RANG + belgi + ramka shakli + chiroq (faqat istisnolarda) */
.st-working .st-ring { border-color: var(--w-work); border-width: calc(var(--A) * .045); }
.st-working .st-state { background: var(--w-work); border-color: var(--w-work); color: var(--w-ink); }
.st-working .st-screen { border-color: var(--w-work); }
.st-working .st-screen::before { opacity: .8; }
.st-review .st-ring { border-color: var(--w-review); border-width: calc(var(--A) * .045); border-style: dashed; }
.st-review .st-state { background: var(--w-review); border-color: var(--w-review); color: var(--w-ink); }
.st-review .st-screen::before { background: var(--w-review); opacity: .35; }
.st-overdue .st-ring { border-color: var(--w-warn); border-width: calc(var(--A) * .055); }
.st-overdue .st-state { background: var(--w-warn); border-color: var(--w-warn); color: var(--w-ink); }
.st-overdue .st-beacon { opacity: 1; background: var(--w-warn); color: var(--w-warn); }
.st-overdue .st-floor { background: rgb(242 181 80 / .2); }
.st-problem .st-ring { border-color: var(--w-bad); border-width: calc(var(--A) * .06); }
.st-problem .st-state { background: var(--w-bad); border-color: var(--w-bad); color: var(--w-ink); }
.st-problem .st-beacon { opacity: 1; background: var(--w-bad); color: var(--w-bad); }
.st-problem .st-floor { background: rgb(255 107 107 / .24); }
.st-idle .st-av { opacity: .8; }
/* ⭐ AVATAR.1 — portret (foto yoki 3D büst): oynani to'ldiradi, stol ortida o'tiradi.
   Holat — ramka/chiroq/pol/monitor/belgi orqali; YUZ RANGI O'ZGARTIRILMAYDI. */
.st-photo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
            border-radius: inherit; color: transparent; font-size: 0; }
.st-ring { z-index: 3; }
.has-photo .st-init { visibility: hidden; }
.has-photo .st-av::after { display: none; }
.st-idle.has-photo .st-av { opacity: 1; }
.wall-ticker { flex: none; margin: 0 -20px; border-top: 1px solid var(--w-line); background: var(--w-panel); overflow: hidden;
               height: max(28px, calc(var(--A) * .3)); display: flex; align-items: center; }
.wall-ticker-track { display: inline-flex; gap: 48px; padding: 0 20px; white-space: nowrap; font-size: max(13px, calc(var(--A) * .13)); color: var(--w-muted); }
/* ism: real ismlar 31 belgigacha (3 so'z) — katta TV'da 3 qatorgacha, kichikda 2 (uzuni «…», to'liq ism aria-label'da).
   kichik TV (≤ 820px balandlik): sonlar bitta qatorda, ism bo'sh qatorni ushlamaydi */
@media (max-height: 820px) {
  .st-name { min-height: 0; -webkit-line-clamp: 2; }
  .st-badges { -webkit-line-clamp: 1; }
  .wall-kpi-l { font-size: 12px; }
}
.wall-tick::before { content: "●"; color: var(--w-work); margin-right: 10px; font-size: 11px; vertical-align: middle; }
.mp-0 { --ph: -0.00s; }
.mp-1 { --ph: -0.46s; }
.mp-2 { --ph: -0.92s; }
.mp-3 { --ph: -1.38s; }
.mp-4 { --ph: -1.84s; }
.mp-5 { --ph: -2.30s; }
.mp-6 { --ph: -2.76s; }
.mp-7 { --ph: -3.22s; }
.mp-8 { --ph: -3.68s; }
.mp-9 { --ph: -4.14s; }
.mp-10 { --ph: -4.60s; }
.mp-11 { --ph: -5.06s; }
.mt-0 { --tp: 5.6s; }
.mt-1 { --tp: 6.3s; }
.mt-2 { --tp: 7.1s; }
.mt-3 { --tp: 7.9s; }
.mt-4 { --tp: 8.8s; }
@media (prefers-reduced-motion: no-preference) {
  .st-av { animation: wall-breathe var(--tp) ease-in-out var(--ph) infinite; }
  .st-working .st-screen::before { animation: wall-glow calc(var(--tp) * .55) ease-in-out var(--ph) infinite; }
  .st-problem .st-beacon::after, .st-overdue .st-beacon::after { animation: wall-beacon calc(var(--tp) * .5) ease-out var(--ph) infinite; }
  .wall-dot { animation: wall-glow 2.4s ease-in-out infinite; }
  .wall-st.is-done .st-av::before { animation: wall-success 1.8s ease-out 2; }
  .wall-st.is-done .st-ok { animation: wall-pop .6s ease-out 1; }
  .wall.is-live-js .wall-ticker-track { animation: wall-ticker 70s linear infinite; }
}
@keyframes wall-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes wall-glow { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }
@keyframes wall-beacon { 0% { transform: scale(.7); opacity: .55; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes wall-success { 0% { transform: scale(.94); opacity: .95; } 100% { transform: scale(1.16); opacity: 0; } }
@keyframes wall-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wall-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .wall-st, .wall-kpi, .wall-room, .st-ring, .st-state { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAFF.WALL.1 — xodimlar devori (ofis televizori): virtual ofis + bonus summasi (.sw)
   va ekranni ulash sahifasi (.swp). Faqat shu sinflar ichida amal qiladi.
   ⭐ Summa har kartochkada DOIM ko'rinadi (egasining qarori): alohida, yorqin qator.
   ═══════════════════════════════════════════════════════════════════════════ */
.sw { --sw-gold: #F5C451; --sw-gold-ink: #6B4A00; --sw-gold-bg: #FFF4D6; }
.sw .wall-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.75fr); }
.sw .wall-kpi.k-bonus_month { border-color: color-mix(in srgb, var(--sw-gold) 55%, var(--w-line)); }
.sw .wall-kpi.k-bonus_month .wall-kpi-n { color: var(--sw-gold); white-space: nowrap; font-size: max(20px, calc(var(--A) * .3)); }
.vo-money { align-self: flex-start; margin-top: 1px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--sw-gold-bg, #FFF4D6);
            color: var(--sw-gold-ink, #6B4A00); font-size: 12.5px; font-weight: 800; line-height: 1.25; white-space: nowrap;
            font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(107, 74, 0, .18); }
.vo-money[hidden] { display: none; }
.vo-row-m { grid-column: 1 / -1; color: var(--sw-gold); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px), (max-height: 520px) {
  .sw .wall-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sw .wall-kpi.k-bonus_month { grid-column: span 2; }
  .sw .wall-kpi.k-bonus_month .wall-kpi-n { font-size: 16px; }
}
@media (max-width: 560px) {
  .sw .wall-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw .wall-kpi.k-bonus_month { grid-column: 1 / -1; }
}

/* ekranni ulash — televizordan uzoqdan o'qiladigan katta kod */
.swp { --swp-bg: #0B1220; --swp-panel: #111B2E; --swp-line: #243450; --swp-fg: #E8EEF8; --swp-muted: #9AAAC4;
       --swp-accent: #4DA3FF; --swp-bad: #FF6B6B;
       position: fixed; inset: 0; overflow: auto; display: grid; place-items: center; padding: 24px 16px;
       background: var(--swp-bg); color: var(--swp-fg); font-family: var(--font); }
.swp-card { width: min(720px, 100%); background: var(--swp-panel); border: 1px solid var(--swp-line); border-radius: 20px;
            padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.swp-brand { margin: 0; color: var(--swp-muted); font-weight: 700; letter-spacing: .06em; font-size: 15px; }
.swp-brand .wall-mark { color: var(--swp-accent); }
.swp-h { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.swp-steps { margin: 0; padding-left: 1.4em; font-size: clamp(16px, 2.2vw, 22px); color: var(--swp-fg); }
.swp-code { margin: 4px 0 8px; text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
            font-size: clamp(34px, 7vw, 84px); font-weight: 800; letter-spacing: .08em; color: var(--swp-accent); white-space: nowrap;
            background: #0B1526; border: 2px dashed var(--swp-line); border-radius: 16px; padding: 12px 6px; }
.swp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.swp-label { grid-column: 1 / -1; color: var(--swp-muted); font-size: 14px; }
.swp-in { font: inherit; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(22px, 3.4vw, 34px);
          letter-spacing: .1em; text-transform: uppercase; min-width: 0; padding: 10px 14px; border-radius: 12px;
          border: 2px solid var(--swp-line); background: #0B1526; color: var(--swp-fg); }
.swp-in:focus-visible, .swp-btn:focus-visible { outline: 3px solid var(--swp-accent); outline-offset: 2px; }
.swp-btn { font: inherit; font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; padding: 12px 22px; border-radius: 12px; border: 0;
           background: var(--swp-accent); color: #06101F; cursor: pointer; }
.swp-err { margin: 0; color: var(--swp-bad); font-weight: 700; font-size: 17px; }
.swp-note { margin: 0; color: var(--swp-muted); font-size: 14px; }
@media (max-width: 520px) {
  .swp-form { grid-template-columns: minmax(0, 1fr); }
}
