.voice-assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #20a9ee, #0784d0);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  font: 800 0.95rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-assistant-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
}

.voice-assistant-launcher:focus-visible,
.voice-assistant-close:focus-visible,
.voice-assistant-external:focus-visible {
  outline: 3px solid rgba(100, 201, 255, 0.75);
  outline-offset: 3px;
}

.voice-assistant-launcher svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.voice-assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1200;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  width: min(400px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(100, 201, 255, 0.35);
  border-radius: 24px;
  background: #08111f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.voice-assistant-panel[hidden] {
  display: none;
}

.voice-assistant-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: #0d1b2c;
}

.voice-assistant-title {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.voice-assistant-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-assistant-external,
.voice-assistant-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #c8dcf5;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.voice-assistant-external:hover,
.voice-assistant-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.voice-assistant-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #08111f;
}

body.voice-assistant-open {
  overflow: hidden;
}

@media (min-width: 621px) {
  body.voice-assistant-open {
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .voice-assistant-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding-inline: 15px;
  }

  .voice-assistant-launcher span {
    display: none;
  }

  .voice-assistant-panel {
    right: 8px;
    bottom: 76px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 92px);
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-assistant-launcher {
    transition: none;
  }
}
