/* Keep the voice feedback above the fixed Search composer in both themes. */
body:has(#search-followup-composer) [class*="search_voiceLiveCaption"] {
  z-index: 10020 !important;
  bottom: calc(9rem + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 0 !important;
  background: #171922 !important;
  color: #fff9ec !important;
}
body:has(#search-followup-composer) [class*="search_voiceLiveText"] { color: inherit !important; }
body:has([data-appearance="light"]) [class*="search_voiceLiveCaption"] {
  background: #fffaf0 !important;
  color: #292016 !important;
  border-color: #977145 !important;
}
#search-followup-composer [class*="search_voiceGlassBtn"][data-pressed="true"] {
  background: #163b34 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px #83e6be, 0 0 18px 5px #5fbd9e !important;
}
body:has([data-appearance="light"]) #search-followup-composer [class*="search_voiceGlassBtn"][data-pressed="true"] {
  box-shadow: 0 0 0 3px #28654f, 0 0 18px 5px #6fc4a1 !important;
}
#search-followup-composer button:focus-visible,
.agicy-bento-drawer :is(button, a):focus-visible {
  outline: 3px solid #5caad8 !important;
  outline-offset: 3px;
}
section p[class*="MakeThisCard_frameText__"] {
  color: #fff !important;
  background: #14151c !important;
  border-radius: 8px;
  padding: .45em .55em;
}
@media (max-width: 1099px) {
  [class*="search_aiActiveBody"]:has(> #search-section-research > section) [class*="search_aiMainColumn"] {
    padding-bottom: 0 !important;
  }
  #search-section-research { margin-top: 12px !important; }
}
@media (max-width: 900px) {
  header:has(> details > .agicy-bento-drawer) {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  header > details[open] > .agicy-bento-drawer {
    inset: 64px 0 0 !important;
    padding: 6px 12px max(16px, env(safe-area-inset-bottom)) !important;
    overscroll-behavior: contain;
  }
  .agicy-bento-drawer .agicy-bd-top {
    position: sticky !important;
    top: 0;
    z-index: 4;
    flex: 0 0 auto;
    background: #06080f;
    color: #f2c472 !important;
  }
  .agicy-bento-drawer .agicy-bd-close {
    min-width: 44px;
    min-height: 44px;
    color: #f2c472 !important;
  }
  body.agicy-hdr-is-hidden:has(header > details > .agicy-bento-drawer) :is(#search-chrome-slot, [class*="search_aiChromeSlot"]) {
    position: sticky !important;
    top: 64px !important;
  }
  body:has(#search-followup-composer) [class*="search_voiceLiveCaption"] {
    bottom: calc(11rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  [class*="search_voiceLiveCaption"],
  #search-followup-composer [class*="search_voiceGlassBtn"]::after,
  .agicy-bd-wave i { animation: none !important; }
}
