/* =====================================================================
   6 oylik faoliyat natijalari — uslublar
   Tamoyil: bitta shrift oilasi (Geist), ingichka chiziqlar, bitta ma’lumot
   rangi va bitta urg‘u rangi. Ranglar dataviz validatoridan o‘tgan.

   1. Shriftlar        5. Natijalar zanjiri     9. Hududlar xaritasi
   2. Tokenlar         6. Panel                10. KPI qatori
   3. Asos             7. Grafik qatorlari     11. Ro‘yxatlar oynasi
   4. Sahna, sarlavha  8. Jadval va qo‘shimcha 12. Moslashuv, harakat
   ===================================================================== */

/* ---------- 1. Shriftlar (lokal) ---------- */
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 2. Tokenlar ---------- */
:root {
  color-scheme: dark;
  /* sirtlar */
  --bg: #142645;
  --surface: #1b2e50;
  --surface-2: #233a62;
  --line: #2c4470;
  --line-2: #3b5687;
  /* matn */
  --text: #f5f7fb;
  --text-2: #d0d8e5;
  --text-3: #a6b1c6;
  /* ma’lumot: bitta rang + ketma-ket shkala (validatsiyadan o‘tgan) */
  --data: #3b9edb;
  --data-track: #273f68;
  --ramp-1: #3576ab; --ramp-2: #4a90c8; --ramp-3: #62aadf; --ramp-4: #86c2ec; --ramp-5: #b6ddf7;
  /* urg‘u: tijorat va iqtisodiy natija */
  --accent: #c98500;
  --brand-gold: #ffcc00;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --s: 1; /* sahna masshtabi — JS hisoblaydi */
}

/* ---------- 3. Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 420; line-height: 1.45;
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(1, 174, 208, .30), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(255, 204, 0, .13), transparent 60%),
    radial-gradient(1300px 760px at 70% 112%, rgba(43, 208, 122, .16), transparent 62%),
    linear-gradient(165deg, #1a3157 0%, #142645 48%, #12223f 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01';
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(59, 158, 219, .35); }

.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- 4. Sahna va sarlavha ---------- */
/* 1920×1080 kanvas — har qanday ekranga proporsional sig‘adi */
.stage {
  position: fixed; left: 50%; top: 50%; width: 1920px; height: 1080px; padding: 30px 40px 32px;
  transform: translate(-50%, -50%) scale(var(--s)); transform-origin: center;
  display: grid; grid-template-rows: 62px 144px minmax(0, 1fr) 252px 100px; gap: 16px;
}
.hd { display: flex; align-items: center; gap: 24px; }
.hd-logo { height: 62px; width: auto; }
.hd-rule { width: 1px; height: 34px; background: var(--line-2); }
.hd-text { display: flex; flex-direction: column; gap: 3px; }
.hd-title { font-size: 26px; font-weight: 700; letter-spacing: .01em; line-height: 1.15; text-transform: uppercase; }
.hd-sub { font-size: 16px; color: var(--text-2); font-weight: 350; letter-spacing: .01em; }
.hd .icon-btn { margin-left: auto; }

/* ---------- 5. Natijalar zanjiri ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 32px -18px rgba(4,10,24,.55); }
.step { position: relative; display: flex; flex-direction: column; padding: 18px 26px 16px; border-left: 1px solid var(--line); text-align: left; color: inherit; }
.step:first-child { border-left: 0; }
.step-name { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.step-name::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--data); }
.step.is-key .step-name::before { background: var(--brand-gold); }
.step-title { font-size: 16.5px; color: var(--text); font-weight: 550; margin-top: 6px; letter-spacing: -.005em; }
.step-val { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.step-val b { font-size: 52px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.step-val span { font-size: 16px; color: var(--text-2); font-weight: 450; }
.step.clickable { cursor: pointer; transition: background .2s; }
.step.clickable:hover { background-color: var(--surface-2); }
.step.is-key::after { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--brand-gold); border-radius: 0 0 2px 2px; }
.conv { position: absolute; left: -1px; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 4px 12px -4px rgba(4,10,24,.6); }

/* ---------- 6. Panel ---------- */
.grid { display: grid; grid-template-columns: 600px 560px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 252px; gap: 16px; grid-row: 3 / 5; }
.panel { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 32px -18px rgba(4,10,24,.55); }
.panel.clickable { cursor: pointer; transition: border-color .2s, background .2s; }
.panel.clickable:hover { border-color: var(--line-2); background: var(--surface-2); }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.panel-hd h2 { font-size: 17px; font-weight: 650; letter-spacing: -.012em; white-space: nowrap; }
.panel-hd > span { font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
.src { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

/* ---------- 7. Grafik qatorlari ---------- */
/* gorizontal ustunlar: nom | ustun | qiymat | ulush */
.bars { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-height: 0; }
.bar-row { display: grid; grid-template-columns: 186px 1fr 64px 52px; align-items: center; gap: 12px; height: 32px; padding: 0 8px; margin: 0 -8px; border-radius: 7px; color: inherit; text-decoration: none; transition: background .15s; }
.bar-row:hover { background: var(--surface-2); }
.bar-row .nm { font-size: 14.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row:hover .nm { color: var(--text); }
.bar-row .tr { height: 12px; position: relative; }
.bar-row .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; min-width: 3px; background: linear-gradient(90deg, #2f8bc6, var(--data)); border-radius: 0 6px 6px 0; }
.bar-row .v { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .p { font-size: 13.5px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }

.periods { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.period { padding: 0 14px; border-left: 1px solid var(--line); }
.period:first-child { padding-left: 0; border-left: 0; }
.period small { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.period b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.period span { font-size: 13.5px; color: var(--text-3); margin-left: 4px; }

/* saralash: nom | konversiya ustuni | saralangan */
.sel { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-height: 0; }
.sel-row { display: grid; grid-template-columns: 178px 1fr 70px; align-items: center; gap: 16px; padding: 7px 0; }
.sel-row .nm { font-size: 14.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-row .mid { display: flex; flex-direction: column; gap: 5px; }
.sel-row .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sel-row .meta b { color: var(--text-2); font-weight: 500; }
.sel-row .tr { height: 8px; background: var(--data-track); border-radius: 4px; overflow: hidden; }
.sel-row .tr i { display: block; height: 100%; width: 0; min-width: 3px; background: linear-gradient(90deg, #2f8bc6, var(--data)); border-radius: 4px; }
.sel-row .v { font-size: 19px; font-weight: 650; text-align: right; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ---------- 8. Ta’lim muassasalari, TRL, tijorat ---------- */
.edu { display: flex; flex-direction: column; gap: 9px; }
.edu-row { display: grid; grid-template-columns: 186px 1fr 92px; align-items: center; gap: 12px; }
.edu-row .nm { font-size: 14.5px; color: var(--text-2); }
.edu-row .tr { height: 12px; background: var(--data-track); border-radius: 0 6px 6px 0; position: relative; }
.edu-row .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #2f8bc6, var(--data)); border-radius: 0 6px 6px 0; }
.edu-row .v { font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }
.edu-row .v b { color: var(--text); font-weight: 600; }
.edu-key { display: flex; gap: 16px; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.edu-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--data); }
.edu-key i.t { background: var(--data-track); }
.roles { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.role { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 13.5px; color: var(--text-3); }
.role span { color: var(--text-2); }
.role b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.trl { display: flex; flex-direction: column; justify-content: space-evenly; flex: 1; min-height: 0; }
.trl-row { display: grid; grid-template-columns: 84px 150px 1fr 44px; align-items: center; gap: 12px; }
.trl-row .lv { justify-self: start; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); }
.trl-row .nm { font-size: 14px; color: var(--text-2); }
.trl-row .tr { height: 16px; position: relative; }
.trl-row .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; min-width: 3px; border-radius: 0 6px 6px 0; }
.trl-row:nth-child(1) .tr i { background: var(--ramp-2); }
.trl-row:nth-child(2) .tr i { background: var(--ramp-4); }
.trl-row:nth-child(3) .tr i { background: var(--ramp-5); }
.trl-row .v { font-size: 18px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }

.com { display: grid; grid-template-columns: 220px 1fr; gap: 24px; flex: 1; min-height: 0; }
.com-share { display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid var(--line); }
.com-share small { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.com-share b { font-size: 50px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; }
.com-share p { font-size: 13.5px; color: var(--text-3); margin-top: 6px; line-height: 1.4; }
.com-share p strong { color: var(--text-2); font-weight: 500; }
.com-meter { display: flex; height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; background: var(--data-track); }
.com-meter i { display: block; width: 0; background: linear-gradient(90deg, #a96f00, var(--accent)); border-radius: 4px; }
.tbl { width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--text); font-weight: 600; }
.tbl .mini { display: inline-block; width: 64px; height: 8px; margin-right: 10px; vertical-align: 1px; background: var(--data-track); border-radius: 3px; overflow: hidden; }
.tbl .mini i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a96f00, var(--accent)); border-radius: 3px; }

/* ---------- 9. Hududlar xaritasi ---------- */
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.seg button { padding: 5px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-3); transition: color .2s, background .2s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.map-body { display: grid; grid-template-columns: 1fr 196px; gap: 20px; flex: 1; min-height: 0; }
.map-box { position: relative; min-height: 0; display: grid; place-items: center; }
.uzmap { width: 100%; height: 100%; overflow: visible; }
.uzmap .rg { stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; transition: fill .4s var(--ease), opacity .2s; cursor: default; }
.uzmap .rg[data-b="0"] { fill: var(--ramp-1); } .uzmap .rg[data-b="1"] { fill: var(--ramp-2); } .uzmap .rg[data-b="2"] { fill: var(--ramp-3); }
.uzmap .rg[data-b="3"] { fill: var(--ramp-4); } .uzmap .rg[data-b="4"] { fill: var(--ramp-5); }
.uzmap.has-hi .rg:not(.hi) { opacity: .4; }
.uzmap .rg.hi { stroke: var(--text); stroke-width: 2; }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); white-space: nowrap; opacity: 0; transition: opacity .15s; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.tip.on { opacity: 1; }
.tip b { display: block; color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-side { display: flex; flex-direction: column; min-height: 0; }
.map-cap { font-size: 13.5px; color: var(--text-3); line-height: 1.35; margin-bottom: 8px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; font-size: 14px; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); cursor: default; }
.rank li::before { content: counter(r); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.rank li:first-child::before { color: #0b1a2e; background: var(--ramp-5); }
.rank li span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rank li.hi span { color: var(--text); }
.legend { margin-top: auto; padding-top: 10px; }
.legend .sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.legend .sw i { height: 10px; }
.legend .sw i:first-child { border-radius: 2px 0 0 2px; } .legend .sw i:last-child { border-radius: 0 2px 2px 0; }
.legend .sw i:nth-child(1) { background: var(--ramp-1); } .legend .sw i:nth-child(2) { background: var(--ramp-2); } .legend .sw i:nth-child(3) { background: var(--ramp-3); }
.legend .sw i:nth-child(4) { background: var(--ramp-4); } .legend .sw i:nth-child(5) { background: var(--ramp-5); }
.legend .lb { display: flex; justify-content: space-between; margin-top: 5px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 10. KPI qatori ---------- */
.kpis { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 32px -18px rgba(4,10,24,.55); }
.kpi { display: flex; flex-direction: column; justify-content: center; padding: 0 18px 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi small { padding-right: 40px; font-size: 13.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .kv { display: flex; align-items: baseline; gap: 6px; margin: 5px 0 3px; }
.kpi .kv b { font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.kpi .kv span { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.kpi p { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 10.1 Sichqoncha effektlari ----------
   Raqam ko‘tariladi va qayta sanaladi, ustun yorishadi, yozuv biroz siljiydi. */
.step { background-image: linear-gradient(var(--data), var(--data)); background-repeat: no-repeat; background-position: 26px 100%; background-size: 0 2px; transition: background-size .45s var(--ease), background-color .25s; }
.step.is-key { background-image: linear-gradient(var(--brand-gold), var(--brand-gold)); }
.step:hover { background-size: calc(100% - 52px) 2px; }
.step-name::before { transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover .step-name::before { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(59, 158, 219, .2); }
.step.is-key:hover .step-name::before { box-shadow: 0 0 0 4px rgba(255, 204, 0, .2); }
.step-title { transition: transform .35s var(--ease); }
.step:hover .step-title { transform: translateX(3px); }
.step-val b, .kpi .kv b, .period b, .com-share b { display: inline-block; transform-origin: left bottom; transition: transform .4s var(--ease); }
.step-val span, .kpi .kv span { display: inline-block; transition: transform .4s var(--ease), color .3s; }
.step:hover .step-val b { transform: translateY(-3px) scale(1.035); }
.step:hover .step-val span { transform: translateX(4px); color: var(--text); }

.kpi { position: relative; transition: background-color .25s; }
.kpi::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--data); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.kpi:hover { background-color: rgba(255, 255, 255, .03); }
.kpi:hover::after { transform: scaleX(1); }
.kpi small { transition: color .25s; }
.kpi:hover small { color: var(--text); }
.kpi:hover .kv b { transform: translateY(-2px) scale(1.05); }
.kpi:hover .kv span { transform: translateX(3px); color: var(--text-2); }

.period:hover b, .com-share:hover b { transform: translateY(-2px) scale(1.04); }

.bar-row .nm, .sel-row .nm, .edu-row .nm, .trl-row .nm { transition: transform .3s var(--ease), color .25s; }
.bar-row .v, .sel-row .v, .edu-row .v, .trl-row .v { transition: transform .3s var(--ease), color .25s; transform-origin: right center; }
.bar-row .tr i, .sel-row .tr i, .edu-row .tr i, .trl-row .tr i, .tbl .mini i { transition: filter .25s, transform .3s var(--ease); transform-origin: left center; }
.bar-row:hover .nm { transform: translateX(4px); }
.bar-row:hover .v { transform: scale(1.08); }
.bar-row:hover .tr i { filter: brightness(1.25); transform: scaleY(1.3); }
.sel-row { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 7px; transition: background-color .2s; }
.sel-row:hover { background-color: var(--surface-2); }
.sel-row:hover .nm, .edu-row:hover .nm, .trl-row:hover .nm { transform: translateX(4px); color: var(--text); }
.sel-row:hover .v, .trl-row:hover .v { transform: scale(1.1); }
.sel-row:hover .tr i, .edu-row:hover .tr i, .trl-row:hover .tr i { filter: brightness(1.25); }
.edu-row:hover .v b { color: var(--data); }
.trl-row:hover .tr i { transform: scaleY(1.2); }

.rank li span, .rank li b { transition: transform .3s var(--ease), color .25s; }
.rank li:hover span, .rank li.hi span { transform: translateX(3px); color: var(--text); }
.rank li:hover b, .rank li.hi b { color: var(--ramp-5); }
.tbl tbody tr td { transition: color .25s; }
.tbl tbody tr:hover td { color: var(--text); }
.tbl tbody tr:hover .mini i { filter: brightness(1.3); }

/* ---------- 10.2 KPI ikonkalari ----------
   Har bir ko‘rsatkich o‘z brend rangida: shisha kvadrat + ingichka chiziqli ikonka. */
.kpi-ico {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--ic);
  background: linear-gradient(150deg, color-mix(in srgb, var(--ic) 26%, transparent), color-mix(in srgb, var(--ic) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 42%, transparent), inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px -8px var(--ic);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.kpi-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kpi:hover .kpi-ico { transform: rotate(-6deg) scale(1.1); box-shadow: inset 0 0 0 1px var(--ic), inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px -8px var(--ic); }
.kpi::after { background: var(--ic); }

/* ---------- 10.3 Gradient chegaralar ----------
   Bloklar chegarasi brend ranglarida (firuza → yashil → oltin → to‘q sariq);
   sichqoncha olib borilganda yorishadi va sekin aylanadi. */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 135deg; }
.pipeline, .panel, .kpis { position: relative; border-color: transparent; }
.panel, .pipeline, .kpis { border-width: 0; }
.pipeline::before, .panel::after, .kpis::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(1,174,208,.75), rgba(43,208,122,.45), rgba(255,204,0,.55), rgba(254,127,46,.45), rgba(91,155,255,.4), rgba(1,174,208,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .85; transition: opacity .4s;
}
.pipeline:hover::before, .panel:hover::after, .kpis:hover::before { opacity: 1; animation: ang 6s linear infinite; }
@keyframes ang { to { --ang: 495deg; } }

/* ---------- 11. Ro‘yxatlar oynasi ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 34, .66); opacity: 0; }
.modal-panel { position: relative; display: flex; flex-direction: column; width: min(94vw, 1440px); height: min(90vh, 980px); height: min(90dvh, 980px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); opacity: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 26px 30px 18px; }
.modal-kicker { font-size: 13.5px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
.modal-head h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.modal-sub { margin-top: 6px; font-size: 14.5px; color: var(--text-2); max-width: 820px; }
.modal-tabs { display: flex; gap: 24px; padding: 0 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tabs button { position: relative; padding: 10px 0 12px; font-size: 14.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; transition: color .2s; }
.modal-tabs button span { margin-left: 6px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.modal-tabs button:hover { color: var(--text-2); }
.modal-tabs button.on { color: var(--text); }
.modal-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--data); }
.modal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 30px; border-bottom: 1px solid var(--line); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .2s; }
.search:focus-within { border-color: var(--data); }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 400 14.5px var(--font); }
.search input::placeholder { color: var(--text-3); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.fg button { padding: 5px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; transition: color .2s, background .2s; }
.fg button:hover { color: var(--text); }
.fg button.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.result-count { margin-left: auto; font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.modal-body { flex: 1; overflow-y: auto; padding: 8px 30px 30px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.grp { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; font-size: 16px; font-weight: 650; color: var(--text); }
.grp span { font-size: 14px; color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }
/* ro‘yxat: katta portret + ism, loyiha, muassasa */
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.item { display: grid; grid-template-columns: 30px 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 10px; }
.item .ix { font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.av.ph { object-fit: cover; border: 0; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px rgba(59,158,219,.6), 0 10px 22px -10px rgba(0,0,0,.6); background: var(--surface-2); transition: transform .4s var(--ease), box-shadow .3s; }
.item:hover { background: var(--surface-2); }
.item:hover .av.ph { transform: scale(1.06); box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 4.5px var(--data), 0 12px 26px -10px rgba(0,0,0,.7); }
.item .pn { font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }
.item .pp { font-size: 15.5px; color: var(--text-2); line-height: 1.4; margin-top: 4px; }
.item .po { font-size: 14px; color: var(--text-3); margin-top: 4px; line-height: 1.35; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.team { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.team .tt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.team .tt b { font-size: 18px; font-weight: 650; }
.team .tt span { font-size: 13.5px; color: var(--text-3); white-space: nowrap; }
.team .pp { font-size: 15px; color: var(--text-2); margin-top: 8px; line-height: 1.45; }
.team ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; color: var(--text); }
.item, .team { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.item.in, .team.in { opacity: 1; transform: none; }
.empty { padding: 60px 0; text-align: center; color: var(--text-3); }
/* tijorat ro‘yxati */
.cm { display: grid; grid-template-columns: 30px minmax(0, 1fr) 200px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cm .ix { font-size: 13px; color: var(--text-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.cm .badge { font-size: 13px; color: var(--text-3); }
.cm h4 { font-size: 14.5px; font-weight: 600; line-height: 1.4; margin-top: 2px; }
.cm p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.cm .val { text-align: right; }
.cm .val b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cm .val span { font-size: 13.5px; color: var(--text-3); }
.cm.pending h4 { color: var(--text-3); font-weight: 500; }
.cm.pending .val b { color: var(--text-3); font-weight: 500; font-size: 14px; }
/* manbalar oynasi */
.formula { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.formula em { font-style: normal; color: var(--text-3); }
.formula b { color: var(--text); font-weight: 600; font-size: 16px; }
.src-table { width: 100%; margin-top: 8px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.src-table th { text-align: right; font-size: 13px; font-weight: 500; color: var(--text-3); padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.src-table td { text-align: right; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.src-table th:nth-child(1), .src-table td:nth-child(1), .src-table th:nth-child(2), .src-table td:nth-child(2) { text-align: left; }
.src-table td:nth-child(1) { width: 32px; color: var(--text-3); }
.src-table td .t { color: var(--text); font-weight: 500; }
.src-table td .n { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.src-table td b { color: var(--text); font-weight: 600; }
.src-table .bar { width: 200px; padding-left: 24px; }
.src-table .bar span { display: block; height: 8px; background: var(--data-track); border-radius: 0 4px 4px 0; }
.src-table .bar i { display: block; height: 100%; width: 0; min-width: 2px; background: var(--data); border-radius: 0 4px 4px 0; }
.src-table a { color: var(--text-3); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; transition: color .2s, background .2s; }
.src-table a:hover { color: var(--text); background: var(--surface-2); }
.src-table a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 12. Moslashuv va harakat ---------- */
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  body { overflow-y: auto; }
  .stage { position: static; width: auto; height: auto; transform: none; padding: 16px 14px 32px; display: flex; flex-direction: column; gap: 12px; }
  .hd { flex-wrap: wrap; gap: 12px; }
  .hd-logo { height: 44px; } .hd-rule { display: none; }
  .hd-title { order: 3; width: 100%; font-size: 24px; }
  .pipeline { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); min-height: 112px; }
  .step:first-child { border-top: 0; }
  .step-val b { font-size: 38px; margin-top: 12px; }
  .conv { left: auto; right: 16px; top: -1px; transform: translateY(-50%); }
  .step.is-key::after { display: none; }
  .grid { display: flex; flex-direction: column; gap: 12px; }
  .panel { padding: 16px; }
  .panel-hd { flex-wrap: wrap; }
  .bar-row { grid-template-columns: 120px 1fr 56px 44px; gap: 8px; }
  .sel-row { grid-template-columns: 1fr 64px; }
  .sel-row .mid { grid-column: 1 / 3; grid-row: 2; }
  .edu-row, .role { grid-template-columns: 120px 1fr 80px; }
  .role { grid-template-columns: 1fr; gap: 2px; }
  .trl-row { grid-template-columns: 60px 1fr 40px; } .trl-row .nm { display: none; }
  .com { grid-template-columns: 1fr; } .com-share { border-right: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
  .com-meter { margin-top: 12px; }
  .map-body { grid-template-columns: 1fr; } .map-box { min-height: 220px; }
  .periods { margin-top: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 14px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; } .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .modal-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .modal-head, .modal-tools { padding-left: 16px; padding-right: 16px; } .modal-tabs { padding: 0 16px; } .modal-body { padding: 4px 16px 24px; }
  .list, .team-list { grid-template-columns: 1fr; }
  .item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; } .item .ix { display: none; } .av { width: 56px; height: 56px; font-size: 17px; }
  .cm { grid-template-columns: 1fr; } .cm .ix { display: none; } .cm .val { text-align: left; }
  .src-table .bar, .src-table th:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .stage { position: static; transform: none; }
  .icon-btn, .modal { display: none !important; }
}
