#SOG-command-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: clamp(420px, 38vw, 640px);
  max-width: calc(100vw - 32px);
  z-index: 9000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: fontFamilyMedium, sans-serif;
}
#SOG-command-bar > * {
  pointer-events: auto;
}

#SOG-command-scrim {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 168px;
  z-index: 8998;
  pointer-events: none;
}
#SOG-command-scrim::before, #SOG-command-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
}
#SOG-command-scrim::before {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.987) 5.022%, rgba(0, 0, 0, 0.951) 9.61%, rgba(0, 0, 0, 0.896) 13.95%, rgba(0, 0, 0, 0.825) 17.98%, rgba(0, 0, 0, 0.741) 21.886%, rgba(0, 0, 0, 0.648) 25.544%, rgba(0, 0, 0, 0.55) 29.202%, rgba(0, 0, 0, 0.45) 32.798%, rgba(0, 0, 0, 0.352) 36.456%, rgba(0, 0, 0, 0.259) 40.114%, rgba(0, 0, 0, 0.175) 44.02%, rgba(0, 0, 0, 0.104) 48.05%, rgba(0, 0, 0, 0.049) 52.39%, rgba(0, 0, 0, 0.013) 56.978%, rgba(0, 0, 0, 0) 62%);
  mask-image: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.987) 5.022%, rgba(0, 0, 0, 0.951) 9.61%, rgba(0, 0, 0, 0.896) 13.95%, rgba(0, 0, 0, 0.825) 17.98%, rgba(0, 0, 0, 0.741) 21.886%, rgba(0, 0, 0, 0.648) 25.544%, rgba(0, 0, 0, 0.55) 29.202%, rgba(0, 0, 0, 0.45) 32.798%, rgba(0, 0, 0, 0.352) 36.456%, rgba(0, 0, 0, 0.259) 40.114%, rgba(0, 0, 0, 0.175) 44.02%, rgba(0, 0, 0, 0.104) 48.05%, rgba(0, 0, 0, 0.049) 52.39%, rgba(0, 0, 0, 0.013) 56.978%, rgba(0, 0, 0, 0) 62%);
}
#SOG-command-scrim::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.57246) 8.1%, rgba(0, 0, 0, 0.55158) 15.5%, rgba(0, 0, 0, 0.51968) 22.5%, rgba(0, 0, 0, 0.4785) 29%, rgba(0, 0, 0, 0.42978) 35.3%, rgba(0, 0, 0, 0.37584) 41.2%, rgba(0, 0, 0, 0.319) 47.1%, rgba(0, 0, 0, 0.261) 52.9%, rgba(0, 0, 0, 0.20416) 58.8%, rgba(0, 0, 0, 0.15022) 64.7%, rgba(0, 0, 0, 0.1015) 71%, rgba(0, 0, 0, 0.06032) 77.5%, rgba(0, 0, 0, 0.02842) 84.5%, rgba(0, 0, 0, 0.00754) 91.9%, rgba(0, 0, 0, 0) 100%);
}

#SOG-command-shell {
  position: relative;
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 20px;
  border-radius: 1000px;
  background: linear-gradient(180deg, rgba(30, 86, 142, 0.9) 0%, rgba(15, 52, 94, 0.93) 100%);
  border: 1.5px solid rgba(127, 240, 245, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -10px 18px rgba(0, 0, 0, 0.14);
  cursor: text;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#SOG-command-shell:focus-within {
  background: linear-gradient(180deg, rgba(34, 96, 156, 0.95) 0%, rgba(17, 58, 104, 0.96) 100%);
  border-color: rgba(37, 226, 236, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(37, 226, 236, 0.16), 0 0 26px rgba(37, 226, 236, 0.35);
}
#SOG-command-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(127, 240, 245, 0.22) 50%, transparent 70%);
  background-size: 250% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#SOG-command-shell .voice-nav-indicator {
  position: static;
  flex: none;
  width: 16px;
  height: auto;
  margin-left: -6px;
}

#header-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}
#header-search-input[data-transcript="1"] {
  text-overflow: clip;
}
#header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}
#header-search-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
#header-search-input:disabled {
  cursor: progress;
}

#SOG-command-send, #header-search-mic {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s, filter 0.2s;
}
#SOG-command-send svg, #header-search-mic svg {
  width: 19px;
  height: 19px;
  display: block;
  pointer-events: none;
}
#SOG-command-send:hover, #header-search-mic:hover {
  filter: brightness(1.15);
  transform: scale(1.06);
}
#SOG-command-send:active, #header-search-mic:active {
  transform: scale(0.93);
}

#SOG-command-send {
  display: none;
  position: relative;
  background: linear-gradient(180deg, #3ff0f8, #0a8fb0);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
#SOG-command-send::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
}

#header-search-mic {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
#header-search-mic.mic-on {
  background: #4cb152;
  box-shadow: inset 0 -2px 0 #388548, 0 0 0 3px rgba(76, 177, 82, 0.28);
}
#header-search-mic.mic-off {
  background: #c94b4b;
  box-shadow: inset 0 -2px 0 #8c3232;
}

#SOG-command-reply {
  display: none;
  position: relative;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  align-items: flex-end;
  margin: 0 0 -16px -14px;
  cursor: pointer;
  font-family: fontFamilyBold, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.heyu-say-mascot {
  position: relative;
  flex: none;
  width: 100px;
  height: 116px;
  margin-right: 12px;
  clip-path: inset(-60px -60px 0 -60px);
}
.heyu-say-mascot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 84px;
  height: 84px;
  margin-left: -42px;
  border-radius: 50%;
  border: 3px solid rgba(37, 226, 236, 0.7);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.heyu-say-img {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 96px;
  height: auto;
  margin-left: -48px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.heyu-say-bubble {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-bottom: 18px;
  padding: 11px 10px 12px 18px;
  border: 3px solid #0b2a4a;
  border-radius: 22px 22px 22px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eefbff 100%);
  box-shadow: 0 4px 0 #0b2a4a, 0 14px 26px rgba(0, 0, 0, 0.4);
  color: #0b2a4a;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  text-align: left;
  overflow-wrap: anywhere;
  transform-origin: 0 100%;
  will-change: transform, opacity;
}
.heyu-say-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  background: #eefbff;
  border-left: 3px solid #0b2a4a;
  border-bottom: 3px solid #0b2a4a;
  border-radius: 0 0 0 4px;
  transform: rotate(45deg) skew(8deg, 8deg);
}

.heyu-say-text {
  flex: 1 1 auto;
  min-width: 0;
}

.heyu-say-close {
  flex: none;
  width: 40px;
  height: 32px;
  margin: -5px -18px -5px 5px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}
.heyu-say-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.heyu-say-close:hover {
  filter: brightness(1.1);
  transform: scale(1.08) rotate(4deg);
}
.heyu-say-close:active {
  transform: scale(0.94);
}

#SOG-command-reply.is-one-line .heyu-say-bubble {
  align-items: center;
}

.heyu-word {
  display: inline-block;
  white-space: pre;
  animation: heyuWordIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 32ms + 320ms);
}
.heyu-word.is-hl {
  color: #0679a0;
}

.heyu-say-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.heyu-say-dots:first-child {
  margin: 4px 2px;
}
.heyu-say-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a8fb0;
  animation: heyuDot 1.2s ease-in-out infinite;
}
.heyu-say-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.heyu-say-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

#SOG-command-bar.has-reply #SOG-command-reply {
  display: flex;
}
#SOG-command-bar.has-reply #SOG-command-reply .heyu-say-img {
  animation: heyuRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, heyuBob 3.2s ease-in-out 0.7s infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply .heyu-say-mascot::before {
  animation: heyuRing 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
#SOG-command-bar.has-reply #SOG-command-reply .heyu-say-bubble {
  animation: heyuBubbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap .heyu-say-bubble {
  animation: heyuBubbleSwap 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap .heyu-word {
  animation-delay: calc(var(--i, 0) * 32ms + 60ms);
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap .heyu-say-img {
  animation: heyuBob 3.2s ease-in-out infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap .heyu-say-mascot::before {
  animation: none;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-pending .heyu-say-bubble {
  padding-right: 18px;
  color: rgba(11, 42, 74, 0.7);
  font-style: italic;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-pending .heyu-say-close {
  display: none;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-pending .heyu-say-img {
  animation: heyuRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, heyuThink 2.4s ease-in-out 0.7s infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap.is-pending .heyu-say-img {
  animation: heyuThink 2.4s ease-in-out infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-error .heyu-say-bubble {
  border-color: #7a0f22;
  background: linear-gradient(180deg, #fff 0%, #ffe6ea 100%);
  box-shadow: 0 4px 0 #7a0f22, 0 14px 26px rgba(0, 0, 0, 0.4);
  color: #5b0b18;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-error .heyu-say-bubble::before {
  background: #ffe6ea;
  border-color: #7a0f22;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-error .heyu-word.is-hl {
  color: #b3122b;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-error .heyu-say-img {
  animation: heyuRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, heyuShake 0.7s ease-in-out 0.7s, heyuBob 3.2s ease-in-out 1.4s infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-swap.is-error .heyu-say-img {
  animation: heyuShake 0.7s ease-in-out, heyuBob 3.2s ease-in-out 0.7s infinite;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-leaving {
  pointer-events: none;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-leaving .heyu-say-bubble {
  animation: heyuBubbleOut 0.28s cubic-bezier(0.55, 0, 0.75, 0.2) both;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-leaving .heyu-say-img {
  animation: heyuDive 0.5s cubic-bezier(0.55, 0, 0.75, 0.2) 0.08s both;
}
#SOG-command-bar.has-reply #SOG-command-reply.is-leaving .heyu-say-mascot::before {
  animation: none;
  opacity: 0;
}

@media (max-width: 600px) {
  #SOG-command-reply {
    margin: 0 0 -14px -10px;
  }
  .heyu-say-mascot {
    width: 76px;
    height: 92px;
    margin-right: 8px;
  }
  .heyu-say-img {
    width: 74px;
    margin-left: -37px;
  }
  .heyu-say-bubble {
    margin-bottom: 16px;
    padding: 9px 44px 10px 14px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #SOG-command-bar.has-reply #SOG-command-reply .heyu-say-img, #SOG-command-bar.has-reply #SOG-command-reply .heyu-say-bubble, #SOG-command-bar.has-reply #SOG-command-reply .heyu-word, #SOG-command-bar.has-reply #SOG-command-reply .heyu-say-mascot::before {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
@keyframes heyuRise {
  0% {
    transform: translateY(100%) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes heyuBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes heyuThink {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}
@keyframes heyuShake {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}
@keyframes heyuDive {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6%);
  }
  100% {
    transform: translateY(105%);
  }
}
@keyframes heyuRing {
  0% {
    opacity: 0.6;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes heyuBubbleIn {
  0% {
    opacity: 0;
    transform: translate(-10px, 6px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes heyuBubbleSwap {
  0% {
    transform: scale(0.97);
  }
  100% {
    transform: none;
  }
}
@keyframes heyuBubbleOut {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translate(-10px, 6px) scale(0.8);
  }
}
@keyframes heyuWordIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes heyuDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
#SOG-command-bar.has-text #SOG-command-send {
  display: flex;
}
#SOG-command-bar.is-busy #SOG-command-send {
  display: flex;
  cursor: progress;
}
#SOG-command-bar.is-busy #SOG-command-send svg {
  opacity: 0;
}
#SOG-command-bar.is-busy #SOG-command-send::after {
  opacity: 1;
  animation: sogCommandSpin 0.8s linear infinite;
}
#SOG-command-bar.is-busy #header-search-input {
  opacity: 0.55;
}
#SOG-command-bar.is-busy #header-search-mic {
  opacity: 0.45;
}
#SOG-command-bar.is-flash #SOG-command-shell {
  animation: sogCommandFlash 0.6s ease-out;
}
#SOG-command-bar[data-state=listening] #SOG-command-shell {
  border-color: rgba(255, 255, 255, 0.26);
  animation: sogCommandListen 2.6s ease-in-out infinite;
}
#SOG-command-bar[data-state=thinking] #SOG-command-shell::before {
  opacity: 1;
  animation: sogCommandSweep 1.4s linear infinite;
}

body.sog-fullscreen #SOG-command-bar, body.sog-fullscreen #SOG-command-scrim {
  display: none;
}

@media (max-width: 600px) {
  #SOG-command-scrim {
    height: 140px;
  }
  #SOG-command-bar {
    bottom: 14px;
  }
  #SOG-command-shell {
    height: 48px;
    padding-left: 16px;
  }
  #header-search-input {
    font-size: 16px;
  }
}
@keyframes sogCommandSpin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes sogCommandSweep {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}
@keyframes sogCommandFlash {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 226, 236, 0.7);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 14px rgba(37, 226, 236, 0);
  }
}
@keyframes sogCommandListen {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -10px 18px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(37, 226, 236, 0), 0 0 0 rgba(37, 226, 236, 0);
  }
  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -10px 18px rgba(0, 0, 0, 0.14), 0 0 0 3px rgba(37, 226, 236, 0.14), 0 0 22px rgba(37, 226, 236, 0.3);
  }
}
