/* LL AI v65.95 — temporary chat return motion + precise topbar alignment. */
.topbar .topActions{gap:10px!important}

/* The collapsed search label used to leave flex gap behind and push the glyph off-center. */
.topbar #topCommands.commandTopBtn{
  display:grid!important;
  place-items:center!important;
  gap:0!important;
  padding:0!important;
}
.topbar #topCommands.commandTopBtn>svg{
  grid-area:1/1!important;
  margin:0!important;
  transform:none!important;
  justify-self:center!important;
  align-self:center!important;
}
.topbar #topCommands.commandTopBtn .llTopSearchLabel{
  position:absolute!important;
  pointer-events:none!important;
}
body.llChatStarted .topbar #topCommands.commandTopBtn.llSearchExpanded{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
}
body.llChatStarted .topbar #topCommands.commandTopBtn.llSearchExpanded .llTopSearchLabel{
  position:static!important;
  pointer-events:auto!important;
}

/* When a fresh chat replaces a started chat, Temporary Chat returns with a light spring instead of popping in. */
#tempChatBtn.llTempReturning{
  animation:llTempReturn6595 .52s cubic-bezier(.18,.9,.25,1.14) both!important;
  transform-origin:center!important;
}
@keyframes llTempReturn6595{
  0%{opacity:0;transform:translateX(13px) scale(.72) rotate(7deg);filter:blur(2px)}
  45%{opacity:1;transform:translateX(-2px) scale(1.055) rotate(-1deg);filter:blur(0)}
  72%{transform:translateX(1px) scale(.985)}
  100%{opacity:1;transform:none;filter:none}
}
@media(prefers-reduced-motion:reduce){#tempChatBtn.llTempReturning{animation:llTempReturnFade6595 .16s ease-out both!important}@keyframes llTempReturnFade6595{from{opacity:0}to{opacity:1}}}

@media(max-width:640px){
  .topbar .topActions{gap:8px!important}
  body.llChatStarted .topbar #topCommands.commandTopBtn.llSearchExpanded{display:grid!important;place-items:center!important;gap:0!important;padding:0!important}
  body.llChatStarted .topbar #topCommands.commandTopBtn.llSearchExpanded>svg{justify-self:center!important;align-self:center!important}
}
