/* VEXMIRA v4.7.0 HF14 — install-safe profile chrome and viewport-bound messages */
:root{--vx514-topbar:72px;--vx514-gap:12px}
html.vx-hf14-stable,html.vx-hf14-stable body{max-width:100%;overflow-x:clip!important}
html.vx-hf14-stable .page:not(.active){display:none!important}
html.vx-hf14-stable img{image-rendering:auto!important;object-position:center}
html.vx-hf14-stable :is(button,a,input,textarea,select){font-synthesis:none;text-rendering:geometricPrecision}

/* The desktop header always owns a finite, in-viewport account column. */
html.vx-hf14-stable #topbar{
  width:100%!important;max-width:100vw!important;box-sizing:border-box!important;
  overflow:visible!important;transform:none!important;contain:layout style!important;
}
html.vx-hf14-stable #topbar .vx320-actions{
  min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;
  flex:0 0 auto!important;overflow:visible!important;transform:none!important;
}
html.vx-hf14-stable #topbar #authArea{
  position:relative!important;inset:auto!important;min-width:48px!important;width:48px!important;max-width:48px!important;
  height:48px!important;flex:0 0 48px!important;margin:0!important;padding:0!important;overflow:visible!important;transform:none!important;
}
html.vx-hf14-stable #topbar #authArea :is(.vx410-account-hud,.vx420-account-hud,.vx400-account-hud,.vx370-account-chip,.nav-avatar){
  position:relative!important;inset:auto!important;display:grid!important;place-items:center!important;grid-template-columns:1fr!important;
  width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;
  margin:0!important;padding:4px!important;border:1px solid rgba(170,101,255,.44)!important;border-radius:15px!important;
  overflow:visible!important;background:linear-gradient(145deg,#12182d,#0a0e20)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 12px 28px -20px rgba(145,61,255,.9)!important;
}
html.vx-hf14-stable #topbar #authArea :is(.vx410-account-copy,.vx410-account-facts,.vx420-account-copy,.vx420-account-facts,.vx420-account-stats,.vx400-account-main,.vx400-account-stats,.vx370-account-copy,.vx-profile-orb-meta,.nav-avatar>span:last-child){display:none!important}
html.vx-hf14-stable #topbar #authArea :is(.vx410-account-avatar,.vx420-account-avatar,.vx400-account-avatar,.vx370-account-avatar,.hexav){
  display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;border-radius:11px!important;overflow:hidden!important;background:#0d1329!important;
}
html.vx-hf14-stable #topbar #authArea :is(.vx410-account-avatar,.vx420-account-avatar,.vx400-account-avatar,.vx370-account-avatar,.hexav) img,
html.vx-hf14-stable #topbar #authArea :is(.vx410-account-hud,.vx420-account-hud,.vx400-account-hud,.vx370-account-chip,.nav-avatar)>img{
  display:block!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;
  border-radius:11px!important;object-fit:cover!important;object-position:center!important;
}
html.vx-hf14-stable #topbar #authArea .vx514-account-trigger{outline:none!important}
html.vx-hf14-stable #topbar #authArea .vx514-account-trigger:focus-visible{box-shadow:0 0 0 3px rgba(162,88,255,.28),0 12px 28px -20px rgba(145,61,255,.9)!important}
html.vx-hf14-stable #topbar #authArea .vx514-account-trigger::after{
  content:"";position:absolute;right:-2px;bottom:-2px;width:10px;height:10px;border:2px solid #090e20;border-radius:50%;background:#35d399;z-index:6;
}

/* Account popover is fixed to the viewport, never to an overflowing nav cell. */
.vx514-account-menu{
  position:fixed;z-index:18050;top:calc(var(--vx514-topbar) + 8px);right:max(12px,env(safe-area-inset-right));
  width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - var(--vx514-topbar) - 20px);
  visibility:hidden;opacity:0;pointer-events:none;overflow:auto;overscroll-behavior:contain;
  border:1px solid rgba(166,97,255,.46);border-radius:20px;background:linear-gradient(165deg,#111730,#080d1e 62%,#09091b);
  box-shadow:0 28px 78px rgba(0,0,0,.58),0 0 34px rgba(123,48,231,.18);transform:translateY(-6px);
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
.vx514-account-menu.open{visibility:visible;opacity:1;pointer-events:auto;transform:none}
.vx514-account-head{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px;padding:18px;overflow:hidden;background:radial-gradient(260px 120px at 100% 0,rgba(48,202,242,.14),transparent 66%),linear-gradient(125deg,rgba(139,57,244,.22),transparent 72%)}
.vx514-account-head::after{content:"";position:absolute;inset:auto 16px 0;border-bottom:1px solid rgba(157,94,239,.19)}
.vx514-account-avatar{display:grid;place-items:center;width:58px;height:58px;border:2px solid rgba(181,112,255,.58);border-radius:17px;overflow:hidden;background:#0b1126;color:#fff;font-weight:900}
.vx514-account-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:15px}
.vx514-account-id{min-width:0}.vx514-account-id b,.vx514-account-id small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx514-account-id b{color:#fff;font-size:14px;line-height:1.3}.vx514-account-id small{margin-top:3px;color:#9da7c0;font-size:10px;line-height:1.35}
.vx514-account-id span{display:inline-flex;align-items:center;margin-top:7px;padding:5px 8px;border:1px solid rgba(60,217,157,.22);border-radius:99px;background:rgba(36,190,124,.08);color:#48dda1;font-size:8px;font-weight:850;letter-spacing:.05em}
.vx514-account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:12px 14px 4px}
.vx514-account-stats span{min-width:0;padding:10px 7px;border:1px solid rgba(141,91,218,.18);border-radius:11px;background:rgba(255,255,255,.018);text-align:center}
.vx514-account-stats b,.vx514-account-stats small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vx514-account-stats b{color:#f5f2ff;font-size:12px}.vx514-account-stats small{margin-top:4px;color:#76839f;font-size:7px;text-transform:uppercase;letter-spacing:.08em}
.vx514-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 14px 14px}
.vx514-account-actions button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;height:42px;padding:0 11px;border:1px solid rgba(143,91,219,.20);border-radius:11px;background:#0b1125;color:#dfe4f5;font-size:10px;font-weight:800;cursor:pointer}
.vx514-account-actions button:hover,.vx514-account-actions button:focus-visible{border-color:rgba(175,102,255,.55);background:rgba(126,50,224,.15);color:#fff;outline:none}
.vx514-account-actions button[data-vx514-action="logout"]{color:#ff9bad;border-color:rgba(244,63,94,.20)}

/* Messages consume the available viewport instead of enforcing a 620px minimum. */
html.vx-hf14-stable.vx514-messages-open body{overflow-y:hidden!important}
html.vx-hf14-stable #page-messages.vx480-messages.active{
  display:block!important;width:100%!important;height:calc(100dvh - var(--vx514-topbar))!important;min-height:0!important;
  margin:0!important;padding:var(--vx514-gap)!important;overflow:hidden!important;scroll-margin-top:0!important;
}
html.vx-hf14-stable #page-messages.vx480-messages .vx11-dm-page{height:100%!important;min-height:0!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11DmShell.vx480-shell{
  width:min(1450px,100%)!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0 auto!important;
  grid-template-columns:clamp(292px,25vw,350px) minmax(0,1fr)!important;border-radius:18px!important;
}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar{
  grid-template-rows:90px 68px 52px 40px minmax(0,1fr)!important;min-height:0!important;height:100%!important;
}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar-head{height:90px!important;padding:13px 14px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-icon{width:46px!important;height:46px!important;min-width:46px!important;flex-basis:46px!important;border-radius:14px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-icon img{width:34px!important;height:34px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-copy b{font-size:18px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-social-trigger{height:58px!important;margin:5px 10px!important;padding:7px 9px!important;grid-template-columns:40px minmax(0,1fr) 16px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-social-icon{width:40px!important;height:40px!important;border-radius:12px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-search{height:42px!important;margin:4px 10px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-search input{height:40px!important;min-height:40px!important;line-height:40px!important;font-size:11px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-conversations-head{height:40px!important;padding:4px 13px 5px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11Conversations{height:100%!important;min-height:0!important;padding:0 7px 8px!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
html.vx-hf14-stable #page-messages.vx480-messages .vx11-conv{
  min-height:62px!important;margin-bottom:5px!important;cursor:pointer!important;touch-action:manipulation!important;user-select:none!important;contain:layout paint;
}
html.vx-hf14-stable #page-messages.vx480-messages .vx11-conv>*{pointer-events:none!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx11-conv-main b{font-size:11px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx11-conv-main small{font-size:9px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-chat{grid-template-rows:64px minmax(0,1fr) 68px!important;min-height:0!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11ChatHead{height:64px!important;padding:8px 12px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11ChatThread{min-height:0!important;height:100%!important;padding:14px 16px 20px!important;overscroll-behavior:contain;scrollbar-gutter:stable}
html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer{height:68px!important;padding:8px!important;grid-template-columns:40px 40px minmax(0,1fr) 88px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer>.btn{width:40px!important;min-width:40px!important;height:40px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer textarea{height:42px!important;min-height:42px!important;max-height:42px!important;font-size:11px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer .send{width:88px!important;min-width:88px!important;height:42px!important}
html.vx-hf14-stable #page-messages.vx480-messages .vx480-empty-chat{min-height:0!important;margin:clamp(18px,8vh,72px) auto 0!important;padding:22px!important}
html.vx-hf14-stable #page-messages.vx480-messages #vx11DmShell[aria-busy="true"] .vx11-conv.active{cursor:progress!important}

@media (min-width:981px) and (max-width:1420px){
  html.vx-hf14-stable #topbar{grid-template-columns:50px minmax(0,1fr) auto!important;gap:6px!important;padding-inline:10px!important}
  html.vx-hf14-stable #topbar .vx320-brand{width:48px!important;min-width:48px!important;max-width:48px!important}
  html.vx-hf14-stable #topbar .vx320-brand-name{display:none!important}
  html.vx-hf14-stable #topbar #vx320DesktopNav{width:100%!important;min-width:0!important;max-width:600px!important}
  html.vx-hf14-stable #topbar .vx900-nav-primary{grid-auto-columns:minmax(58px,1fr)!important;gap:4px!important}
  html.vx-hf14-stable #topbar :is(.vx900-route,.vx900-discover-trigger){min-width:0!important;height:40px!important;padding-inline:5px!important;gap:4px!important}
  html.vx-hf14-stable #topbar :is(.vx900-route,.vx900-discover-trigger)>b{font-size:9px!important}
  html.vx-hf14-stable #topbar .vx320-actions{gap:4px!important}
  html.vx-hf14-stable #topbar .vx320-lang{height:40px!important}
  html.vx-hf14-stable #topbar .vx320-lang button{min-width:31px!important;height:34px!important}
  html.vx-hf14-stable #topbar :is(.vx320-icon-btn,.vx320-theme-btn){width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important}
}
@media (min-width:981px) and (max-width:1180px){
  html.vx-hf14-stable #topbar .vx320-lang button:not(.active){display:none!important}
  html.vx-hf14-stable #topbar .vx320-theme{display:none!important}
  html.vx-hf14-stable #topbar #vx320DesktopNav{max-width:560px!important}
}
@media (max-width:980px){
  :root{--vx514-topbar:66px;--vx514-gap:8px}
  html.vx-hf14-stable #topbar #authArea{display:none!important}
  .vx514-account-menu{top:74px}
}
@media (max-width:800px){
  html.vx-hf14-stable #page-messages.vx480-messages.active{padding:6px!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11DmShell.vx480-shell{display:block!important;height:100%!important;border-radius:14px!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar,html.vx-hf14-stable #page-messages.vx480-messages .vx480-chat{height:100%!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar{grid-template-rows:84px 64px 48px 38px minmax(0,1fr)!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar-head{height:84px!important}
}
@media (max-width:560px){
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-copy em{display:none!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-chat{grid-template-rows:60px minmax(0,1fr) 108px!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11ChatHead{height:60px!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer{height:108px!important;grid-template-columns:38px 38px minmax(0,1fr)!important;align-content:center!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer .send{grid-column:1/-1!important;width:100%!important;min-width:0!important;height:38px!important}
  .vx514-account-actions{grid-template-columns:1fr}
}
@media (max-height:620px) and (min-width:801px){
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar{grid-template-rows:74px 58px 46px 34px minmax(0,1fr)!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-sidebar-head{height:74px!important;padding:8px 12px!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-copy em{display:none!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-icon{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-brand-icon img{width:30px!important;height:30px!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-social-trigger{height:52px!important;margin:3px 8px!important}
  html.vx-hf14-stable #page-messages.vx480-messages .vx480-chat{grid-template-rows:58px minmax(0,1fr) 62px!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11ChatHead{height:58px!important}
  html.vx-hf14-stable #page-messages.vx480-messages #vx11Composer{height:62px!important;padding:7px!important}
}
@media (prefers-reduced-motion:reduce){.vx514-account-menu{transition:none!important}}
