#SOG-command-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: clamp(420px, 38vw, 640px);
  max-width: calc(100vw - 140px);
  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;
}

#SOG-command-settings {
  position: absolute;
  left: 100%;
  bottom: 4px;
  margin-left: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 240, 245, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 86, 142, 0.92);
  -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);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#SOG-command-settings svg {
  width: 21px;
  height: 21px;
  display: block;
  pointer-events: none;
}
#SOG-command-settings:hover {
  color: #fff;
  border-color: rgba(37, 226, 236, 0.6);
  transform: rotate(30deg);
}
#SOG-command-settings:active {
  transform: rotate(30deg) scale(0.92);
}

#SOG-command-menu {
  position: absolute;
  right: -78px;
  bottom: 64px;
  z-index: 2;
  width: 340px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: linear-gradient(170deg, #135a91 0%, #0c3d69 60%, #0a3055 100%) padding-box, linear-gradient(340deg, #25e2ec, #0a5f8e 60%, #ffc013) border-box;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  font-family: fontFamilyMedium, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.95);
  transform-origin: calc(100% - 46px) 100%;
  transition: opacity 0.2s cubic-bezier(0.55, 0, 0.75, 0.2), transform 0.2s cubic-bezier(0.55, 0, 0.75, 0.2), visibility 0s linear 0.2s;
}
#SOG-command-menu::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -3px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #25e2ec;
  transform: translateY(100%);
}
#SOG-command-menu .sog-command-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 20, 38, 0.5);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#SOG-command-menu .sog-command-row:focus-visible {
  outline: 2px solid #25e2ec;
  outline-offset: 2px;
}
#SOG-command-menu .sog-command-row-face {
  width: 46px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
  transition: filter 0.25s, opacity 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#SOG-command-menu .sog-command-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}
#SOG-command-menu .sog-command-row-label {
  font-family: fontFamilyUltra, sans-serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
#SOG-command-menu .sog-command-row-desc {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.6);
}
#SOG-command-menu .sog-toggle {
  position: relative;
  width: 52px;
  min-width: 52px;
  height: 28px;
  border-radius: 1000px;
  background: #3ec74b;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}
#SOG-command-menu .sog-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: translateX(24px);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#SOG-command-menu #SOG-command-quota {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 6px 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#SOG-command-menu .sog-command-quota-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#SOG-command-menu .sog-command-quota-label {
  font-family: fontFamilyBold, sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
#SOG-command-menu .sog-command-quota-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  text-align: right;
}
#SOG-command-menu .sog-command-quota-main {
  font-family: fontFamilyBold, sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: #fff;
}
#SOG-command-menu .sog-command-quota-note {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
}
#SOG-command-menu .sog-command-quota-note:empty {
  display: none;
}
#SOG-command-menu .sog-command-quota-row.is-unlimited .sog-command-quota-main {
  color: #3ec74b;
}
#SOG-command-menu .sog-command-quota-row.is-empty .sog-command-quota-main {
  color: #ff7b8a;
}
#SOG-command-menu .sog-command-quota-row.is-error .sog-command-quota-main {
  color: rgba(255, 255, 255, 0.6);
}
#SOG-command-menu .sog-command-row.is-off .sog-command-row-face {
  filter: grayscale(1) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
  opacity: 0.5;
  transform: scale(0.94);
}
#SOG-command-menu .sog-command-row.is-off .sog-toggle {
  background: #5b6b7d;
}
#SOG-command-menu .sog-command-row.is-off .sog-toggle-knob {
  transform: translateX(0);
}

#SOG-command-bar.has-menu #SOG-command-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
#SOG-command-bar.has-menu #SOG-command-settings {
  color: #25e2ec;
  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 22px rgba(37, 226, 236, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  #SOG-command-menu {
    right: -74px;
    bottom: 58px;
    width: 100%;
  }
  #SOG-command-menu::after {
    right: 30px;
  }
  #SOG-command-settings {
    bottom: 4px;
    width: 40px;
    height: 40px;
  }
}
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);
  }
}
#SOG-mic-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  height: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}
#SOG-mic-hint.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s 0s;
}
#SOG-mic-hint.is-on .sog-mic-hint-bubble {
  transform: translateY(0) scale(1);
}
#SOG-mic-hint .sog-mic-hint-hand {
  position: absolute;
  left: var(--mic-x, 0);
  bottom: 4px;
  width: 52px;
  height: 74px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
  animation: sogMicHintPoint 1s ease-in-out infinite;
}
#SOG-mic-hint .sog-mic-hint-bubble {
  position: absolute;
  right: calc(100% - var(--mic-x, 0px) - 34px);
  bottom: 82px;
  width: max-content;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 40px 12px 16px;
  border: 3px solid #0b2a4a;
  border-radius: 20px 20px 8px 20px;
  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;
  pointer-events: auto;
  transform: translateY(8px) scale(0.94);
  transform-origin: 100% 100%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#SOG-mic-hint .sog-mic-hint-text {
  font-family: fontFamilyBold, sans-serif;
  font-size: 15px;
  line-height: 1.3;
}
#SOG-mic-hint .sog-mic-hint-try {
  font-size: 13px;
  line-height: 1.3;
  color: #2b6fa8;
}
#SOG-mic-hint .sog-mic-hint-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 42, 74, 0.1);
  color: #0b2a4a;
  font-size: 12px;
  line-height: 24px;
  cursor: pointer;
}
#SOG-mic-hint .sog-mic-hint-close:hover {
  background: rgba(11, 42, 74, 0.2);
}

@media (max-width: 960px) {
  #SOG-mic-hint {
    display: none;
  }
}
@keyframes sogMicHintPoint {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}
