/* Vchat 0.58.6 — Header global search: precise geometry and isolated modal UI. */
.vchat-app-header .vchat-header-actions #vchat-global-search.vchat-global-search-button{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #ddd7ee!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#5d49ad!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  box-shadow:0 1px 2px rgba(36,29,67,.02)!important;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.vchat-app-header .vchat-header-actions #vchat-global-search.vchat-global-search-button:hover{
  border-color:#bdb1e4!important;
  background:#f7f4ff!important;
  color:#5844aa!important;
  box-shadow:0 7px 20px rgba(75,58,137,.09)!important;
  transform:translateY(-1px)!important;
}
.vchat-app-header .vchat-header-actions #vchat-global-search.vchat-global-search-button:active{
  transform:translateY(0)!important;
  background:#f0ebff!important;
  box-shadow:none!important;
}
.vchat-app-header .vchat-header-actions #vchat-global-search.vchat-global-search-button:focus-visible{
  outline:0!important;
  border-color:#6852c3!important;
  box-shadow:0 0 0 3px rgba(104,82,195,.14)!important;
}
#vchat-global-search .vchat-global-search-icon{
  display:block!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
  pointer-events:none!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Standalone search overlay — intentionally prefixed to avoid styling any other Vchat modal. */
.vchat-gsearch-overlay{
  position:fixed!important; inset:0!important; z-index:2147482000!important;
  display:flex!important; align-items:flex-start!important; justify-content:center!important;
  padding:clamp(78px,10vh,118px) 18px 28px!important;
  background:rgba(30,26,53,.48)!important;
  backdrop-filter:blur(6px)!important; -webkit-backdrop-filter:blur(6px)!important;
}
.vchat-gsearch-dialog{
  width:min(680px,calc(100vw - 36px))!important;
  max-height:min(720px,calc(100vh - 120px))!important;
  overflow:hidden!important;
  border:1px solid #e1dced!important; border-radius:24px!important;
  background:#fff!important; color:#211e3b!important;
  box-shadow:0 28px 90px rgba(32,27,61,.24)!important;
  display:flex!important; flex-direction:column!important;
}
.vchat-gsearch-head{
  min-height:68px!important; padding:14px 16px 14px 22px!important;
  border-bottom:1px solid #ece8f5!important;
  display:flex!important; align-items:center!important; justify-content:space-between!important; gap:16px!important;
}
.vchat-gsearch-head strong{font-size:18px!important;font-weight:850!important;letter-spacing:-.02em!important;color:#211e3b!important;}
.vchat-gsearch-close{
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border:0!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;background:#f5f2fb!important;color:#654fba!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;
}
.vchat-gsearch-close:hover{background:#ece6fb!important;color:#4f3c9c!important;}
.vchat-gsearch-body{padding:18px 20px 20px!important;overflow:auto!important;}
.vchat-gsearch-field{
  height:52px!important;display:flex!important;align-items:center!important;gap:11px!important;
  border:1px solid #dcd6ec!important;border-radius:16px!important;background:#fff!important;padding:0 15px!important;
  box-shadow:0 0 0 0 rgba(100,79,186,0)!important;transition:border-color .16s ease,box-shadow .16s ease!important;
}
.vchat-gsearch-field:focus-within{border-color:#705cc5!important;box-shadow:0 0 0 3px rgba(112,92,197,.11)!important;}
.vchat-gsearch-field svg{width:19px!important;height:19px!important;flex:0 0 19px!important;fill:none!important;stroke:#6651b7!important;stroke-width:1.9!important;stroke-linecap:round!important;pointer-events:none!important;}
.vchat-gsearch-input{
  width:100%!important;height:48px!important;border:0!important;outline:0!important;background:transparent!important;color:#211e3b!important;
  font:inherit!important;font-size:15px!important;box-shadow:none!important;padding:0!important;margin:0!important;
}
.vchat-gsearch-input::placeholder{color:#9a94aa!important;opacity:1!important;}
.vchat-gsearch-results{display:grid!important;gap:8px!important;margin-top:14px!important;}
.vchat-gsearch-state{margin:0!important;padding:18px 10px!important;text-align:center!important;color:#8b849d!important;font-size:13px!important;}
.vchat-gsearch-result{
  width:100%!important;min-height:64px!important;border:1px solid #ebe7f3!important;border-radius:15px!important;background:#fff!important;
  color:#211e3b!important;padding:11px 13px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;
  gap:11px!important;align-items:center!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease!important;
}
.vchat-gsearch-result:hover{background:#f8f6fd!important;border-color:#d7cfee!important;transform:translateY(-1px)!important;box-shadow:0 7px 20px rgba(47,37,88,.06)!important;}
.vchat-gsearch-result-icon{width:38px!important;height:38px!important;border-radius:12px!important;background:#f0ecfb!important;color:#604cb0!important;display:grid!important;place-items:center!important;}
.vchat-gsearch-result-icon svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important;}
.vchat-gsearch-result-text{min-width:0!important;display:block!important;}
.vchat-gsearch-result-text strong{display:block!important;color:#26213e!important;font-size:13px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.vchat-gsearch-result-text small{display:block!important;margin-top:3px!important;color:#8c859d!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.vchat-gsearch-result-type{font-size:10px!important;font-weight:800!important;color:#7664be!important;background:#f2eefc!important;border-radius:999px!important;padding:5px 8px!important;white-space:nowrap!important;}
@media(max-width:760px){
 .vchat-gsearch-overlay{padding:70px 12px 16px!important;align-items:flex-start!important;}
 .vchat-gsearch-dialog{width:100%!important;max-height:calc(100vh - 86px)!important;border-radius:20px!important;}
 .vchat-gsearch-body{padding:14px!important;}
 .vchat-gsearch-result{grid-template-columns:36px minmax(0,1fr)!important;}
 .vchat-gsearch-result-type{display:none!important;}
}
