#voice_mode-panel {
  position: relative;
  overflow: hidden;
}

#voice_mode-bg {
  opacity: 0.15;
}

.voice-mode-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  border: 3px solid rgba(34, 197, 94, 0.72);
  box-sizing: border-box;
  --voice-level: 0;
  /* Fallback only. Main mask controls live in voice_mode.js as
   * [screen_percent, transparency_percent] pairs. */
  --voice-overlay-mask: rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 1) 100%;
  --voice-overlay-tint: rgba(0, 0, 0, 0.62);
  animation: voiceModePulse 1.1s ease-in-out infinite;
  box-shadow:
    inset 0 0 18px rgba(34, 197, 94, 0.35),
    inset 0 0 34px rgba(34, 197, 94, 0.18);
}

.voice-mode-shell.voice-hot {
  box-shadow:
    inset 0 0 calc(20px + (28px * var(--voice-level))) rgba(34, 197, 94, 0.60),
    inset 0 0 calc(38px + (40px * var(--voice-level))) rgba(34, 197, 94, 0.34);
}

@keyframes voiceModePulse {
  0% { border-color: rgba(34, 197, 94, 0.48); }
  50% { border-color: rgba(34, 197, 94, 0.98); }
  100% { border-color: rgba(34, 197, 94, 0.48); }
}

.voice-mode-topbar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  background: rgba(0, 0, 0, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-header-voice {
  justify-content: initial;
  padding: 8px 10px;
}

.voice-top-btn {
  width: 40px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  justify-self: center;
}

.voice-top-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.voice-top-btn.danger {
  background: rgba(239, 68, 68, 0.34);
}

.voice-top-btn.danger:hover {
  background: rgba(239, 68, 68, 0.48);
}

@media (hover: none), (pointer: coarse), (max-width: 699px) {
  .voice-mode-topbar {
    grid-template-columns: 64px 1fr 64px;
    min-height: 62px;
    padding: 9px 10px;
  }

  .voice-top-btn {
    width: 48px;
    height: 43px;
    border-radius: 12px;
    font-size: 20px;
  }

  .voice-top-btn.btn-panel-header-icon-only .btn-panel-header-icon {
    width: 24px;
    height: 24px;
  }
}

.voice-mode-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.voice-mode-title {
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.voice-mode-profile-pill {
  max-width: 100%;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #d9ffe5;
  border: 1px solid rgba(34, 197, 94, 0.34);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#voice_mode-story-header-host {
  --story-header-bg: rgba(0, 0, 0, 0.40);
  --story-header-border: rgba(255, 255, 255, 0.12);
  --story-header-title-color: #f8fff9;
  --story-header-progress-color: #d8ffe3;
  --story-header-track-bg: rgba(255, 255, 255, 0.18);
  --story-header-track-border: transparent;
  --story-header-bar-height: 6px;
  --story-header-bar-bg: linear-gradient(90deg, #34d399 0%, #22c55e 100%);
}

#voice_mode-session-header-host {
  --session-header-bg: rgba(0, 0, 0, 0.40);
  --session-header-border: rgba(255, 255, 255, 0.12);
  --session-header-title-color: #f8fff9;
  --session-header-progress-color: #d8ffe3;
  --session-header-track-bg: rgba(255, 255, 255, 0.18);
  --session-header-track-border: transparent;
  --session-header-bar-bg: linear-gradient(90deg, #f59e0b 0%, #22c55e 100%);
}

/* Stage stacks the media (z 0) and the chat overlay (z 1) in the same box. */
.voice-mode-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.voice-mode-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.voice-professional-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  background: #11161a;
  pointer-events: none;
}

.voice-professional-visual[hidden] {
  display: none;
}

.voice-professional-visual__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.voice-professional-visual__guides line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.voice-professional-visual__shade {
  fill: rgba(74, 171, 160, 0.14);
}

.voice-professional-visual__wave {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.voice-professional-visual__wave--primary {
  stroke: #58b7aa;
  stroke-width: 3;
}

.voice-professional-visual__wave--secondary {
  stroke: #78a9c3;
  stroke-width: 2;
  opacity: 0.58;
}

.voice-professional-visual[data-voice-state="thinking"] .voice-professional-visual__wave--secondary {
  stroke-dasharray: 4 10;
}

@media (prefers-reduced-motion: reduce) {
  .voice-professional-visual__wave,
  .voice-professional-visual__shade {
    transition: none;
  }
}

.voice-camera-stage-active .voice-mode-media-wrap {
  left: var(--voice-pip-left, auto);
  top: var(--voice-pip-top, auto);
  right: var(--voice-pip-right, 12px);
  bottom: var(--voice-pip-bottom, 104px);
  z-index: 3;
  width: min(118px, 30vw);
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  background: #050505;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.voice-camera-stage-active .voice-mode-chat-overlay {
  z-index: 2;
  background: transparent;
  -webkit-mask-image: none;
          mask-image: none;
  justify-content: flex-end;
}

.voice-camera-stage-active .voice-mode-chat-overlay::before {
  display: none;
}

.voice-camera-stage-active .voice-mode-transcript {
  display: none;
}

.voice-camera-stage-active .voice-mode-mic-panel,
.voice-camera-stage-active .voice-mode-status {
  flex: 0 0 auto;
}

.voice-mode-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 260ms ease;
  will-change: opacity;
}

.voice-mode-state-video {
  opacity: 0;
}

.voice-mode-idle-video {
  opacity: 1;
}

.voice-mode-speak-video.voice-mode-media-active {
  opacity: 1;
}

.voice-mode-puppet-canvas {
  background: #000;
}

/* The chat overlay layers on top of the media. The dark tint + the bubbles
 * both fade together via mask-image, so the upper portion of the media is
 * fully visible and the lower portion gets a readable backdrop. */
.voice-mode-chat-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--voice-overlay-mask));
  background-color: transparent;
  /* The mask uses the same stop list so bubbles fade in lockstep with the
   * dark backdrop (since the backdrop is painted by the gradient itself,
   * the mask can stay simple — but we keep the mask so future per-element
   * tweaks remain consistent). */
  -webkit-mask-image: linear-gradient(to bottom, var(--voice-overlay-mask));
          mask-image: linear-gradient(to bottom, var(--voice-overlay-mask));
}

/* The dark tint is drawn by background; the gradient stops act as opacity. */
.voice-mode-chat-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--voice-overlay-tint);
  -webkit-mask-image: linear-gradient(to bottom, var(--voice-overlay-mask));
          mask-image: linear-gradient(to bottom, var(--voice-overlay-mask));
  pointer-events: none;
  z-index: 0;
}

.voice-mode-action-balloon-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  height: 156px;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.voice-action-balloon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate3d(calc(-50% + var(--balloon-x-start, 0px)), 14px, 0) scale(0.82);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(220px, calc(100vw - 48px));
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  animation: voiceActionBalloonRise 2400ms cubic-bezier(0.18, 0.78, 0.2, 1) forwards;
  animation-delay: var(--balloon-delay, 0ms);
  will-change: transform, opacity;
}

.voice-action-balloon-icon {
  font-size: 16px;
  line-height: 1;
}

.voice-action-balloon-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-action-balloon-success {
  background: rgba(21, 128, 61, 0.88);
  border-color: rgba(187, 247, 208, 0.52);
}

.voice-action-balloon-memory {
  background: rgba(67, 56, 202, 0.86);
  border-color: rgba(199, 210, 254, 0.46);
}

.voice-action-balloon-reminder {
  background: rgba(14, 116, 144, 0.88);
  border-color: rgba(165, 243, 252, 0.48);
}

.voice-action-balloon-web {
  background: rgba(3, 105, 161, 0.88);
  border-color: rgba(186, 230, 253, 0.48);
}

.voice-action-balloon-media {
  background: rgba(147, 51, 234, 0.86);
  border-color: rgba(233, 213, 255, 0.48);
}

.voice-action-balloon-warning {
  background: rgba(180, 83, 9, 0.92);
  border-color: rgba(254, 215, 170, 0.54);
}

@keyframes voiceActionBalloonEnter {
  from {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--balloon-x-start, 0px)), 14px, 0) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--balloon-x-end, 0px)), -54px, 0) scale(1);
  }
}

@keyframes voiceActionBalloonRise {
  0% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--balloon-x-start, 0px)), 18px, 0) scale(0.78);
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--balloon-x-end, 0px)), -92px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--balloon-x-end, 0px)), -138px, 0) scale(0.96);
  }
}

.voice-mode-mic-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: auto;
  box-sizing: border-box;
}

.voice-audio-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-camera-btn,
.voice-mic-btn,
.voice-settings-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: none;
  border-radius: 22px;
  background: rgba(34, 197, 94, 0.30);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-camera-btn {
  background: rgba(239, 68, 68, 0.42);
  font-size: 20px;
  position: relative;
}

.voice-camera-btn.active {
  background: rgba(14, 165, 233, 0.62);
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.25);
}

.voice-camera-btn:not(.active)::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: #fff;
  transform: rotate(-32deg);
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.voice-camera-btn.loading {
  opacity: 0.70;
}

.voice-camera-btn:hover {
  background: rgba(239, 68, 68, 0.52);
}

.voice-camera-btn.active:hover {
  background: rgba(14, 165, 233, 0.70);
}

.voice-mic-btn:hover {
  background: rgba(34, 197, 94, 0.46);
}

.voice-settings-btn {
  background: rgba(255, 255, 255, 0.18);
  font-size: 23px;
}

.voice-settings-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.voice-mic-btn.muted {
  background: rgba(239, 68, 68, 0.42);
  position: relative;
}

.voice-mic-btn.muted::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: #fff;
  transform: rotate(-32deg);
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.voice-sensitivity-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.voice-camera-preview {
  position: absolute;
  left: var(--voice-pip-left, auto);
  top: var(--voice-pip-top, auto);
  right: var(--voice-pip-right, 12px);
  bottom: var(--voice-pip-bottom, 104px);
  z-index: 4;
  width: min(118px, 30vw);
  aspect-ratio: 3 / 4;
  --voice-camera-zoom: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.voice-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1) scale(var(--voice-camera-zoom));
  transform-origin: center center;
}

.voice-camera-preview.camera-environment .voice-camera-video {
  transform: scale(var(--voice-camera-zoom));
}

.voice-camera-preview.camera-stage-mode {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  touch-action: none;
  cursor: default;
}

.voice-camera-preview.camera-stage-mode,
.voice-camera-preview.camera-stage-mode .voice-camera-video {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.voice-camera-preview.voice-pip-dragging,
.voice-camera-stage-active .voice-mode-media-wrap.voice-pip-dragging {
  cursor: grabbing;
}

.voice-camera-stage-active .voice-camera-preview-actions {
  left: auto;
  right: 12px;
  top: 12px;
  bottom: auto;
  width: auto;
  justify-content: flex-end;
}

.voice-camera-preview-actions {
  position: absolute;
  z-index: 2;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: auto;
}

.voice-camera-preview-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.voice-camera-preview-btn:hover {
  background: rgba(0, 0, 0, 0.74);
}

.voice-sensitivity-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(234, 255, 245, 0.78);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  user-select: none;
}

.voice-sensitivity-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  outline: none;
  margin: 0;
}

.voice-sensitivity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 2px solid #04140a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.voice-sensitivity-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  border: 2px solid #04140a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.voice-settings-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.46);
  box-sizing: border-box;
}

.voice-settings-overlay[hidden] {
  display: none;
}

.voice-settings-dialog {
  width: min(360px, 100%);
  max-height: min(620px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.voice-settings-header {
  flex: 0 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ec4899;
  color: #fff;
  box-sizing: border-box;
}

.voice-settings-title {
  font-size: 18px;
  font-weight: 800;
}

.voice-settings-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.voice-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.voice-settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-settings-section + .voice-settings-section {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.voice-settings-section-title {
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.voice-settings-note {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}

.voice-settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
  color: #111827;
}

.voice-settings-row strong,
.voice-settings-field span {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.voice-settings-row small {
  display: block;
  margin-top: 3px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.3;
}

.voice-settings-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.voice-settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.voice-settings-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.72);
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.voice-settings-field .voice-sensitivity-slider {
  height: 6px;
  background: rgba(17, 24, 39, 0.18);
}

.voice-settings-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px 12px 12px;
  background: rgba(248, 250, 252, 0.95);
  box-sizing: border-box;
}

.voice-settings-footer button {
  min-width: 120px;
}

.voice-mode-status {
  position: relative;
  z-index: 2;
  min-height: 38px;
  padding: 9px 12px 10px 12px;
  color: #eafff5;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
}

.voice-mode-transcript {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 42px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.voice-mode-transcript::-webkit-scrollbar {
  width: 6px;
}
.voice-mode-transcript::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}

/* Bubbles — slim, modeled after chat bubble style without coupling to it. */
.voice-bubble {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.voice-bubble.voice-bubble-user {
  align-self: flex-end;
  background: rgba(34, 197, 94, 0.85);
  color: #04140a;
  border-bottom-right-radius: 4px;
}

.voice-bubble.voice-bubble-assistant {
  align-self: flex-start;
  background: rgba(28, 35, 44, 0.92);
  color: #f3f9ff;
  border-bottom-left-radius: 4px;
}

.voice-bubble-assistant:has(> .voice-web-search-results) {
  width: min(92%, 430px);
  max-width: 92%;
}

.voice-bubble .voice-web-search-results {
  white-space: normal;
  color: #172033;
}

.voice-bubble.voice-bubble-streaming::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  opacity: 0.7;
  animation: voiceModeCaret 0.9s steps(2, end) infinite;
}

@keyframes voiceModeCaret {
  0%, 50% { opacity: 0.85; }
  51%, 100% { opacity: 0.15; }
}

@media (max-width: 699px) {
  .voice-mode-action-balloon-layer {
    bottom: 88px;
    height: 148px;
  }

  .voice-action-balloon {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-action-balloon {
    animation: voiceActionBalloonFade 1800ms ease-out forwards;
  }

  @keyframes voiceActionBalloonFade {
    0% {
      opacity: 0;
      transform: translate3d(-50%, 0, 0) scale(0.96);
    }
    12%,
    80% {
      opacity: 1;
      transform: translate3d(-50%, -40px, 0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate3d(-50%, -50px, 0) scale(0.98);
    }
  }
}
