/* ============================================================
   Tezkor qidiruv (js/cmdk.js) va «Ilovani oʻrnatish» yoʻriqnomasi (js/install.js) — v109.
   Ikkalasi document.body ga qoʻshiladi: kabinetda ham, xodim panelida ham bir xil koʻrinish (oʻz tokenlari, body.dark).
   ============================================================ */
.adx-k, .adx-inst {
  --k-bg: rgba(250, 251, 254, .97); --k-ink: #16223d; --k-mut: #5b6884; --k-line: rgba(31, 59, 115, .12);
  --k-act: rgba(31, 59, 115, .08); --k-act-b: rgba(31, 59, 115, .22); --k-ic: rgba(31, 59, 115, .07); --k-ic-ink: #1f3b73;
  --k-gold: #8a6510; --k-gold-bg: rgba(235, 198, 90, .2); --k-scrim: rgba(12, 22, 44, .42); --k-kbd: rgba(31, 59, 115, .07);
  position: fixed; inset: 0; z-index: 300; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; color: var(--k-ink);
}
body.dark .adx-k, body.dark .adx-inst {
  --k-bg: rgba(22, 32, 58, .97); --k-ink: #e7edfb; --k-mut: #9fb0d2; --k-line: rgba(140, 165, 215, .18);
  --k-act: rgba(120, 150, 215, .16); --k-act-b: rgba(140, 170, 230, .35); --k-ic: rgba(140, 165, 215, .12); --k-ic-ink: #b9cbf2;
  --k-gold: #f0cd6e; --k-gold-bg: rgba(235, 198, 90, .14); --k-scrim: rgba(3, 8, 20, .6); --k-kbd: rgba(140, 165, 215, .14);
}
.adx-k[hidden], .adx-inst[hidden] { display: none; }
html.adx-k-open, html.adx-k-open body { overflow: hidden; }
.adx-k-scrim, .adx-inst-scrim { position: absolute; inset: 0; background: var(--k-scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.adx-k svg, .adx-inst svg { flex: none; }

/* ---------- tezkor qidiruv ---------- */
.adx-k-box { position: relative; margin: min(12vh, 110px) auto 0; width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 2 * min(12vh, 110px)));
  display: flex; flex-direction: column; background: var(--k-bg); border: 1px solid var(--k-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(8, 18, 42, .32), 0 2px 8px rgba(8, 18, 42, .1); animation: adxKIn .16s ease-out; }
@keyframes adxKIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.adx-k-in { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--k-line); }
.adx-k-in > svg { width: 20px; height: 20px; color: var(--k-mut); }
.adx-k-in input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; color: var(--k-ink); font: 500 17px/1.2 inherit; font-family: inherit; }
.adx-k-in input::placeholder { color: var(--k-mut); opacity: .85; }
.adx-k-in input::-webkit-search-cancel-button { display: none; }
.adx-k-x { flex: none; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--k-line); background: var(--k-kbd); color: var(--k-mut);
  font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; }
.adx-k-x:hover { color: var(--k-ink); }
.adx-k-xm { display: none; }
.adx-k-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; scroll-padding: 34px 0 8px; }
.adx-k-g { position: sticky; top: 0; z-index: 1; padding: 10px 10px 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--k-mut);
  background: var(--k-bg); }
.adx-k-it { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.adx-k-it[aria-selected="true"] { background: var(--k-act); border-color: var(--k-act-b); }
.adx-k-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--k-ic); color: var(--k-ic-ink); flex: none; }
.adx-k-ic svg { width: 18px; height: 18px; }
.adx-k-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adx-k-t b { font-size: 14.5px; font-weight: 650; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.adx-k-t small { font-size: 12.5px; color: var(--k-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adx-k-badge { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--k-gold); background: var(--k-gold-bg); }
.adx-k-go { flex: none; color: var(--k-mut); opacity: 0; }
.adx-k-go svg { width: 16px; height: 16px; }
.adx-k-it[aria-selected="true"] .adx-k-go { opacity: 1; }
.adx-k-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; text-align: center; color: var(--k-mut); }
.adx-k-empty svg { width: 36px; height: 36px; opacity: .6; }
.adx-k-empty p { max-width: 380px; font-size: 14px; line-height: 1.5; }
.adx-k-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--k-line); font-size: 12px; color: var(--k-mut); }
.adx-k-foot span { display: inline-flex; align-items: center; gap: 4px; }
.adx-k-kb { margin-left: auto; }
.adx-k kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--k-line); background: var(--k-kbd);
  font: 600 11px/1 inherit; font-family: inherit; color: var(--k-ink); }
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
  .adx-k-box { margin: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; animation: none; padding-top: env(safe-area-inset-top); }
  .adx-k-in { padding: 0 10px 0 14px; }
  .adx-k-in input { font-size: 16px; height: 56px; }   /* 16px — iOS maydonga kattalashtirmaydi */
  .adx-k-xd, .adx-k-foot { display: none; }
  .adx-k-xm { display: inline; }
  .adx-k-x { height: 36px; padding: 0 12px; font-size: 13.5px; }
  .adx-k-list { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- ilovani oʻrnatish (iPhone / iPad yoʻriqnomasi) ---------- */
.adx-inst-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); padding: 22px 22px 18px;
  background: var(--k-bg); border: 1px solid var(--k-line); border-radius: 22px; box-shadow: 0 28px 80px rgba(8, 18, 42, .32); }
.adx-inst-h { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.adx-inst-h img { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 4px 12px rgba(20, 42, 82, .25); }
.adx-inst-h h2 { font-family: 'Manrope', 'Inter', sans-serif; font-size: 18px; font-weight: 800; line-height: 1.25; }
.adx-inst-h p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--k-mut); }
.adx-inst-steps { list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: s; }
.adx-inst-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--k-line); }
.adx-inst-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adx-inst-steps b { font-size: 14.5px; font-weight: 650; }
.adx-inst-steps b::before { counter-increment: s; content: counter(s) ". "; color: var(--k-mut); font-weight: 700; }
.adx-inst-steps small { font-size: 12.5px; color: var(--k-mut); line-height: 1.4; }
.adx-inst-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--k-ic); color: var(--k-ic-ink); flex: none; }
.adx-inst-ic svg { width: 20px; height: 20px; }
.adx-inst-ok { width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 14px; background: linear-gradient(145deg, #3a62b8, #1f3b73); color: #fff;
  font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; }
.adx-inst-ok:focus-visible, .adx-k-x:focus-visible { outline: 3px solid rgba(235, 198, 90, .75); outline-offset: 2px; }
@media (max-width: 560px) {
  .adx-inst-box { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .adx-k-box { animation: none; } }
@media (forced-colors: active) { .adx-k-it[aria-selected="true"] { outline: 2px solid Highlight; } }

/* ---------- kabinet: boʻlim sahifalaridagi qidiruv tugmasi (org-ui headHTML, data-op="cmdk") ---------- */
.op-kbtn { flex: 0 1 380px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 15px; border-radius: var(--op-r-ctl, 14px);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--op-line); box-shadow: var(--shadow-sm); color: #5d6b85; font: 400 14px 'Inter', sans-serif;
  cursor: pointer; text-align: left; transition: border-color .18s, box-shadow .18s; }
.op-kbtn:hover { border-color: var(--navy-light, #2f54a8); }
.op-kbtn:focus-visible { outline: none; border-color: var(--navy-light, #2f54a8); box-shadow: 0 0 0 4px rgba(47, 84, 168, .14); }
.op-kbtn svg { width: 18px; height: 18px; flex: none; }
.op-kbtn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-kbtn kbd { padding: 2px 8px; border-radius: 6px; font: 600 12px/1.4 'Inter', sans-serif; color: #5d6b85; border: 1px solid var(--op-line); background: rgba(255, 255, 255, .7); }
body.dark .op-kbtn { background: rgba(20, 32, 60, .72); color: #8395b8; }
body.dark .op-kbtn kbd { color: #b9c7e6; background: rgba(120, 145, 195, .14); }
