/* OSONGO | ZIYO AI — chat pastki paneli: yakuniy sayqal (yorug' mavzu, mobil, harakat) */

/* Mobil brauzerlarda manzil paneli va klaviatura bilan to'g'ri balandlik */
@supports (height: 100dvh) {
  body.chat-on { height: 100dvh; }
  body.chat-on .app { height: 100dvh; }
}
.messages { overscroll-behavior: contain; }

/* Panel doim pastda, kontent ustida "suzib" turadi (sticky) */
body.chat-on .composer-wrap { position: sticky; bottom: 0; }

/* Yorug' mavzuda eski umumiy uslublar yumaloq panelni buzmasin */
body.chat-on .cz .icon-action {
  background: transparent; border: 0; border-radius: 50%; box-shadow: none;
}
body.chat-on .cz .icon-action:hover { background: var(--surface2); color: var(--accent); transform: none; }
body.chat-on .cz .send { border-radius: 50%; }
body.chat-on .cz .send:not(:disabled):hover { transform: none; filter: brightness(1.07); }
body.chat-on .qbar .qchip select.model {
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
body.chat-on .cz {
  background: var(--bg2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
:root[data-theme="light"] body.chat-on .cz,
:root:not([data-theme="dark"]) body.chat-on .cz {
  border-color: #dfe4f3;
  box-shadow: 0 1px 2px rgba(30,41,90,.05), 0 22px 44px -26px rgba(79,70,229,.4);
}

/* Bosish effekti va tegish qulayligi */
.qchip, .cz button, .seg button, .vp-switch { -webkit-tap-highlight-color: transparent; }
.cz button:focus-visible, .qchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Yuborish tugmasi: matn yozilganda "uyg'onadi" */
.cz .send:not(:disabled) { animation: cxPop .28s cubic-bezier(.2,.9,.3,1.3); }
@keyframes cxPop { from { transform: scale(.82); } to { transform: scale(1); } }

/* Kichik ekranlarda: chiplar bir qo'l bilan siljiydi, panel ekranga to'liq sig'adi */
@media (max-width: 520px) {
  .qbar { padding-left: 2px; padding-right: 2px; gap: 6px; }
  .qchip select.model { max-width: 118px; }
  .vpanel { max-height: 60dvh; overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cz .send:not(:disabled), .vpanel { animation: none !important; }
  .qchip, .cz button { transition: none !important; }
}

/* Model nomi to'liq ko'rinsin: 150px/118px cheklovi olib tashlandi (index.php dagi zh-css dan ustun) */
.qbar .qchip select.model { max-width: 100% !important; width: auto; min-width: 0; field-sizing: content; }
