/* Vero voice-mode UI — proper call layout. Additive overlay only. */

:root {
  --vero-ink: #001438;
  --vero-ink-soft: #1a3358;
  --vero-accent: #f97211;
}

/* ── Drawer chrome in voice ── */
.vero-drawer.is-voice .vero-drawer-coming-soon-banner {
  display: none !important;
}

.vero-drawer.is-voice {
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(249, 114, 17, 0.2) 0%, transparent 55%),
    linear-gradient(180deg, #fff9f4 0%, #f4f6fa 50%, #e8eef6 100%);
}

.vero-drawer.is-voice .vero-drawer-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 20, 56, 0.06);
  grid-template-rows: auto !important;
  padding: 12px 14px !important;
}

/* Credits strip is noise during a call — hide it */
.vero-drawer.is-voice .vero-drawer-header [data-vero-credits] {
  display: none !important;
}

.vero-drawer.is-voice .vero-header-title .vero-badge {
  background: rgba(249, 114, 17, 0.12);
  color: #9a3412;
  border: 1px solid rgba(249, 114, 17, 0.28);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
}

.vero-drawer-voice {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* ── Call stage: fill panel, center orb, pin End ── */
.vero-voice-stage,
.vero-voice-stage.is-compact {
  --ink: var(--vero-ink);
  --accent: var(--vero-accent);
  position: absolute !important;
  inset: 0 !important;
  z-index: 80;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  min-height: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
  padding: 28px 22px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 90% 55% at 50% 18%, rgba(249, 114, 17, 0.26) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(0, 20, 56, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #fff8f2 0%, #f5f7fb 48%, #edf1f7 100%) !important;
}

.vero-voice-stage.is-compact {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
}

/* Hide stage X — drawer header already closes */
.vero-voice-stage__close {
  display: none !important;
}

/* Orb */
.vero-voice-stage__orb-hit {
  width: min(52vw, 200px) !important;
  height: min(52vw, 200px) !important;
  flex-shrink: 0;
  filter: drop-shadow(0 16px 36px rgba(0, 20, 56, 0.18));
  margin: 0 !important;
}

.vero-voice-stage.is-compact .vero-voice-stage__orb-hit {
  width: min(44vw, 168px) !important;
  height: min(44vw, 168px) !important;
}

.vero-voice-stage.has-cards .vero-voice-stage__orb-hit {
  width: min(38vw, 140px) !important;
  height: min(38vw, 140px) !important;
}

.vero-voice-stage__halo {
  background: radial-gradient(
    circle,
    rgba(249, 114, 17, calc(0.22 + var(--voice-energy) * 0.4)) 0%,
    rgba(249, 114, 17, 0.1) 40%,
    transparent 72%
  );
  filter: blur(14px);
  animation: 2.8s ease-in-out infinite vero-voice-halo-29;
}

.vero-voice-stage__halo--2 {
  background: radial-gradient(
    circle,
    rgba(0, 20, 56, 0.18) 0%,
    rgba(249, 114, 17, calc(0.1 + var(--voice-energy) * 0.22)) 42%,
    transparent 74%
  );
}

.vero-voice-stage__ring {
  border: 3px solid var(--vero-accent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 12px 32px rgba(0, 20, 56, 0.22),
    0 0 calc(22px + var(--voice-energy) * 32px)
      rgba(249, 114, 17, calc(0.28 + var(--voice-energy) * 0.4));
}

.vero-voice-stage__dash {
  border-color: rgba(255, 255, 255, 0.85);
  inset: 18%;
}

.vero-voice-stage__face {
  box-shadow: 0 10px 28px rgba(0, 20, 56, 0.28);
  background: #f6e6d2;
}

.vero-voice-stage.is-listening .vero-voice-stage__halo {
  animation-duration: 1.55s;
}

.vero-voice-stage.is-speaking .vero-voice-stage__ring {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 20, 56, 0.25),
    0 0 56px rgba(249, 114, 17, 0.5);
}

/* Status copy */
.vero-voice-stage__hint {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--vero-ink);
  font-size: clamp(1.25rem, 4.2vw, 1.65rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  margin: 6px 0 0 !important;
  max-width: 18rem;
}

.vero-voice-stage__sub {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--vero-ink-soft);
  opacity: 0.7;
  font-size: 0.92rem !important;
  font-weight: 500;
  text-align: center;
  max-width: 16rem;
  line-height: 1.35;
  margin: 0 !important;
}

/* Drop duplicate interrupt line while speaking (hint already says it) */
.vero-voice-stage.is-speaking .vero-voice-stage__sub {
  display: none !important;
}

.vero-voice-stage__left-hint {
  color: #9a3412;
  background: rgba(255, 244, 235, 0.95);
  border: 1px solid rgba(253, 186, 116, 0.65);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 114, 17, 0.1);
}

/* Live caption */
.vero-voice-stage__said {
  width: min(100%, 320px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 20, 56, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 20, 56, 0.08);
  padding: 10px 14px;
  text-align: left;
}

.vero-voice-stage__said--vero {
  background: rgba(255, 244, 235, 0.96);
  border-color: rgba(253, 186, 116, 0.6);
}

.vero-voice-stage__said span {
  color: #7a8699;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vero-voice-stage__said p {
  margin: 4px 0 0;
  color: var(--vero-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.vero-voice-stage__cards {
  width: min(100%, 340px);
  max-height: 28vh;
  overflow: auto;
}

/* End — always pinned in the call panel */
.vero-voice-stage__end {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%);
  z-index: 20;
  margin: 0 !important;
  width: min(calc(100% - 40px), 240px) !important;
  min-width: 0 !important;
  padding: 14px 22px !important;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: var(--vero-ink) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(0, 20, 56, 0.3);
  cursor: pointer;
  flex-shrink: 0;
}

.vero-voice-stage__end:hover {
  background: #0a2550 !important;
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 20, 56, 0.34);
}

.vero-voice-stage__end:active {
  transform: translateX(-50%) translateY(0);
}

/* Full-page /vero voice — stay flat like the sleek chat shell */
.vero-page.is-voice {
  background: #ffffff;
}

.vero-page.is-voice .vero-page__topbar {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.vero-page.is-voice [data-vero-credits] {
  display: none !important;
}

.vero-page.is-voice .vero-page__voice-hint {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
}

.vero-page.is-voice .vero-voice-end,
.vero-page .vero-voice-end {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 700;
  background: var(--vero-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-width: 200px;
  padding: 14px 28px !important;
  box-shadow: 0 12px 28px rgba(0, 20, 56, 0.28);
}

@keyframes vero-voice-halo-29 {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (max-width: 480px) {
  .vero-voice-stage,
  .vero-voice-stage.is-compact {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .vero-voice-stage__orb-hit {
    width: min(56vw, 180px) !important;
    height: min(56vw, 180px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vero-voice-stage__halo,
  .vero-voice-stage__dash,
  .vero-voice-stage__end {
    animation: none !important;
    transition: none !important;
  }
}
