/* Classic Mart voice assistant: the original marketplace orange, capsule
   launcher and a small audio HUD. No typing form, modal or competing palette. */
.classic-guide-trigger {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 4100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 11px 18px;
  border: 1px solid var(--orange, #ff6500);
  border-radius: 999px;
  background: var(--orange, #ff6500);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgb(17 24 39 / 18%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.classic-guide-trigger[data-dragging="true"] { cursor: grabbing; }
.classic-guide-trigger svg { width: 22px; height: 22px; flex: none; pointer-events: none; }
.classic-guide-trigger:focus-visible,
.classic-voice-hud a:focus-visible,
.classic-voice-stop:focus-visible { outline: 3px solid var(--navy, #14253d); outline-offset: 3px; }
.classic-guide-trigger[data-voice-state="listening"] { box-shadow: 0 0 0 5px rgb(255 101 0 / 17%), 0 8px 24px rgb(17 24 39 / 18%); }
.classic-voice-hud {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4101;
  box-sizing: border-box;
  width: min(284px, calc(100vw - 16px));
  max-height: min(320px, calc(100dvh - 16px));
  overflow: auto;
  padding: 14px 16px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  color: var(--text, #172033);
  font-family: inherit;
  box-shadow: 0 14px 42px rgb(17 24 39 / 19%);
  overscroll-behavior: contain;
}
.classic-voice-hud[hidden], .classic-voice-hud [hidden] { display: none !important; }
.classic-voice-hud-head { display: flex; align-items: center; gap: 9px; }
.classic-voice-hud-head strong { flex: 1; min-width: 0; font-size: 13px; font-weight: 750; }
.classic-voice-indicator {
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange, #ff6500);
}
.classic-voice-stop {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dde2e8;
  border-radius: 50%;
  background: #f7f8fa;
  color: var(--navy, #14253d);
  cursor: pointer;
}
.classic-voice-stop svg { width: 16px; height: 16px; }
.classic-voice-waves {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 42px;
  margin: 5px 0;
}
.classic-voice-waves i {
  display: block;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: var(--orange, #ff6500);
  transform-origin: center;
}
.classic-voice-waves i:nth-child(2), .classic-voice-waves i:nth-child(4) { height: 23px; }
.classic-voice-waves i:nth-child(3) { height: 33px; }
.classic-voice-hud[data-voice-state="listening"] .classic-voice-waves i,
.classic-voice-hud[data-voice-state="speaking"] .classic-voice-waves i {
  animation: classicVoiceBar 900ms ease-in-out infinite alternate;
}
.classic-voice-hud[data-voice-state="listening"] .classic-voice-waves i:nth-child(2),
.classic-voice-hud[data-voice-state="speaking"] .classic-voice-waves i:nth-child(2) { animation-delay: -250ms; }
.classic-voice-hud[data-voice-state="listening"] .classic-voice-waves i:nth-child(3),
.classic-voice-hud[data-voice-state="speaking"] .classic-voice-waves i:nth-child(3) { animation-delay: -450ms; }
.classic-voice-hud[data-voice-state="listening"] .classic-voice-waves i:nth-child(4),
.classic-voice-hud[data-voice-state="speaking"] .classic-voice-waves i:nth-child(4) { animation-delay: -620ms; }
@keyframes classicVoiceBar { to { transform: scaleY(.35); opacity: .65; } }
.classic-voice-status {
  margin: 4px 0 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.classic-voice-notice { margin: 0; color: #56606d; font-size: 10px; line-height: 1.45; text-align: center; }
.classic-voice-fallback {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 7px 12px;
  border: 1px solid var(--orange, #ff6500);
  border-radius: 999px;
  color: var(--orange-dark, #ea5600);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 760px) {
  .classic-guide-trigger {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(78px + env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 10px 15px;
  }
  body[data-dashboard-workspace] .classic-guide-trigger { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .classic-voice-hud .classic-voice-waves i { animation: none !important; }
  .classic-guide-trigger { transition: none !important; }
}
@media print { .classic-guide-trigger, .classic-voice-hud { display: none !important; } }
