/* Quick search: the button that turns into the popup -- static/js/search-morph.js */
.sm-ghost { position: fixed; z-index: 2001; pointer-events: none; overflow: hidden; box-sizing: border-box;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.sm-ghost .sm-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--brand-alt));
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 55%, transparent); }
.sm-ghost .sm-ico { position: absolute; left: 0; top: 0; width: 20px; height: 20px; color: #fff; }
.sm-ghost .sm-ico svg { width: 100%; height: 100%; display: block; }
/* while the ghost is moving the real popup is there (for measuring) but unseen */
.cmd-palette-modal.sm-morphing .cmd-palette-content { opacity: 0; }
.cmd-palette-modal .cmd-palette-content { transition: opacity .16s ease, transform .32s cubic-bezier(.25,.8,.25,1); }
.cmd-palette-modal .cmd-palette-input { caret-color: var(--brand-alt, #38C6FF); }
/* an idle halo around the search button: a slow 2s pulse */
#cmdPaletteBtn, #cmdPaletteBtnMobile { position: relative; }
#cmdPaletteBtn::after, #cmdPaletteBtnMobile::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--brand-alt, #6E5BFF) 75%, #fff); opacity: .3; animation: smHalo 2s ease-in-out infinite;
}
@keyframes smHalo { 0%, 100% { inset: -3px; opacity: .22; } 50% { inset: -7px; opacity: .5; } }
@media (prefers-reduced-motion: reduce) { #cmdPaletteBtn::after, #cmdPaletteBtnMobile::after { animation: none; } }
