/* Valben Daily Report V5.102 — visual-only overlay; no original voice nodes moved. */
:root { --vb-voice-bg:#0d2a41; --vb-voice-line:#83caed; }
#valbenVoiceLauncher {
  position:fixed!important;
  right:max(17px,env(safe-area-inset-right))!important;
  bottom:max(17px,calc(env(safe-area-inset-bottom) + 15px))!important;
  z-index:2147483000!important;
  width:62px!important; min-width:62px!important; height:62px!important;
  padding:0!important; margin:0!important;
  border:1px solid rgba(133,196,233,.53)!important;
  border-radius:50%!important;
  background:#0b2940!important; color:#fff!important;
  box-shadow:0 8px 28px rgba(5,24,41,.3)!important;
  display:grid!important; place-items:center!important;
  cursor:pointer!important; -webkit-tap-highlight-color:transparent;
  transition:transform .17s ease,box-shadow .17s ease;
}
#valbenVoiceLauncher:hover {transform:translateY(-2px)}
#valbenVoiceLauncher:active {transform:scale(.95)}
#valbenVoiceLauncher .valben-launch-orb {
  position:relative; width:46px; height:46px; border-radius:50%;
  background:#426f91; display:grid;place-items:center;
}
#valbenVoiceLauncher .valben-launch-orb:before,
#valbenVoiceLauncher .valben-launch-orb:after {
  content:"";position:absolute;border-radius:50%; pointer-events:none;
  border:1px solid #83cbed; inset:-5px;
  animation:valben5102-idle 2.5s ease-in-out infinite;
}
#valbenVoiceLauncher .valben-launch-orb:after {
  inset:-9px; border-color:rgba(126,199,235,.32);animation-delay:.38s;
}
#valbenVoiceLauncher svg {width:30px;height:30px;color:white}
#valbenVoiceLauncher #valbenVoiceLauncherLabel {display:none!important}
@keyframes valben5102-idle {
  0%,100% {opacity:.35;transform:scale(.94)}
  50% {opacity:.86;transform:scale(1.05)}
}
#valbenVoiceFullscreen {
  position:fixed!important;inset:0!important;
  width:100vw!important;height:100vh!important;height:100dvh!important;
  background:radial-gradient(circle at 50% 41%,#1c3e59 0%,#0d2a41 70%)!important;
  color:#fff!important;
  z-index:2147483640!important;
  overflow:hidden!important; overscroll-behavior:contain;
  display:none!important;
}
#valbenVoiceFullscreen.valben-open:not([hidden]) {display:block!important}
body.valben-voice-fullscreen-open {overflow:hidden!important;overscroll-behavior:none!important}
#valbenVoiceFullscreen .valben-fullscreen-inner {
  position:absolute!important;
  inset:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;
  min-height:0; display:flex;flex-direction:column;align-items:center;justify-content:center;
}
#valbenVoiceFullscreen .valben-visual-stage {
  flex:0 1 auto!important;
  width:min(80vw,420px)!important;
  height:min(55dvh,420px)!important;
  min-height:0!important;
  display:grid!important;place-items:center!important;
  overflow:visible!important;
}
#valbenVoiceFullscreen .valben-fallback-visual {
  position:relative;
  width:min(78vw,380px)!important;
  aspect-ratio:1;display:grid;place-items:center;
}
#valbenVoiceFullscreen .valben-fallback-ring {
  position:absolute;border-radius:50%;border:2px solid rgba(100,174,211,.35);
  transition:opacity .2s ease;
}
#valbenVoiceFullscreen .valben-fallback-ring.r1 {inset:10%}
#valbenVoiceFullscreen .valben-fallback-ring.r2 {inset:22%;border-color:rgba(128,210,245,.73)}
#valbenVoiceFullscreen .valben-fallback-core {
  width:46%;aspect-ratio:1;border-radius:50%;background:#426f91;
  display:grid;place-items:center; overflow:hidden;
}
#valbenVoiceFullscreen .valben-fallback-v {width:76%;height:76%;color:white}
#valbenVoiceFullscreen .valben-existing-graphic {
  display:block; width:80%!important;height:80%!important;max-width:100%;max-height:100%;
}
#valbenVoiceFullscreen[data-voice-state="connecting"] .valben-fallback-ring.r1,
#valbenVoiceFullscreen[data-voice-state="processing"] .valben-fallback-ring.r1 {
  border-top-color:#8addff; animation:valben5102-spin 1.65s linear infinite;
}
#valbenVoiceFullscreen[data-voice-state="connecting"] .valben-fallback-ring.r2,
#valbenVoiceFullscreen[data-voice-state="processing"] .valben-fallback-ring.r2 {
  animation:valben5102-softPulse 1.6s ease-in-out infinite;
}
#valbenVoiceFullscreen[data-voice-state="listening"] .valben-fallback-ring,
#valbenVoiceFullscreen[data-voice-state="speaking"] .valben-fallback-ring {
  animation:valben5102-softPulse 1.3s ease-in-out infinite;
}
#valbenVoiceFullscreen[data-voice-state="speaking"] .valben-fallback-ring.r2 {animation-delay:.2s}
@keyframes valben5102-spin {to{transform:rotate(360deg)}}
@keyframes valben5102-softPulse {50%{opacity:.45;transform:scale(1.045)}}
#valbenVoiceFullscreen .valben-caption-wrap {
  width:min(90vw,720px);flex:0 0 44px;min-width:0;max-width:100%;
  display:flex;align-items:center;justify-content:center;margin-top:clamp(8px,1.8vh,18px);
}
#valbenVoiceCaption {
  font:500 clamp(15px,2.8vw,20px)/1.5 Arial,sans-serif;
  color:rgba(249,253,255,.95);letter-spacing:.01em;
  width:100%;min-width:0;text-align:center;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  text-shadow:0 1px 7px rgba(0,0,0,.25);
}
#valbenVoiceClose {
  flex:0 0 58px;width:58px!important;height:58px!important;
  margin:clamp(14px,2vh,26px) 0 0!important;padding:0!important;
  border:1.5px solid rgba(255,255,255,.72)!important;
  border-radius:50%!important;background:rgba(255,255,255,.09)!important;color:white!important;
  display:grid!important;place-items:center!important;cursor:pointer!important;
}
#valbenVoiceClose:active {transform:scale(.95)}
#valbenVoiceClose svg {width:28px;height:28px}
.valben-voice-original-hidden {display:none!important}
@media (max-width:520px) {
  #valbenVoiceLauncher {width:58px!important;min-width:58px!important;height:58px!important;right:max(14px,env(safe-area-inset-right))!important}
  #valbenVoiceFullscreen .valben-visual-stage {width:min(92vw,370px)!important;height:min(57dvh,370px)!important}
  #valbenVoiceFullscreen .valben-fallback-visual {width:min(90vw,345px)!important}
}
@media (prefers-reduced-motion:reduce) {
  #valbenVoiceLauncher *,#valbenVoiceLauncher *:before,#valbenVoiceLauncher *:after,
  #valbenVoiceFullscreen *,#valbenVoiceFullscreen *:before,#valbenVoiceFullscreen *:after {
    animation:none!important;transition:none!important;
  }
}

/* V5.103 - fullscreen outer layout ONLY. Canonical .vb-demo untouched. */
#valbenVoiceFullscreen .valben-visual-stage {
  width:min(94vw,560px)!important;
  height:auto!important;
  max-height:min(61dvh,410px)!important;
  flex:0 0 auto!important;
  display:block!important;
  overflow:visible!important;
}
#valbenVoiceFullscreen .valben-visual-stage > .vb-demo {
  box-sizing:border-box;
  width:100%;
}
#valbenVoiceFullscreen .valben-caption-wrap { flex:0 0 44px!important; }
@media (max-width:520px) {
 #valbenVoiceFullscreen .valben-visual-stage {width:min(94vw,560px)!important;height:auto!important;max-height:65dvh!important}
}

/* V5.104 - SOLO LA COMPOSICION EXTERNA, SVG/CSS CANONICOS SIN ALTERAR.
   Elimina el contenedor rectangular. El modulador queda sobre el fondo fullscreen. */
#valbenVoiceFullscreen .valben-visual-stage {
  position:relative!important;
  isolation:isolate;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
}
#valbenVoiceFullscreen .valben-visual-stage > .vb-demo {
  width:100%!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  position:relative;
  z-index:1;
}
/* Halo AMBIENTAL DETRAS del SVG canónico; no se toca el gradiente ni el
   movimiento internos del logo. Se extiende sin dejar un marco visible. */
#valbenVoiceFullscreen .valben-visual-stage::before {
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  width:min(146vw,740px);
  height:min(146vw,740px);
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,
    rgba(130,211,255,.42) 0%,
    rgba(85,177,233,.28) 24%,
    rgba(48,120,182,.16) 40%,
    rgba(18,77,123,.06) 58%,
    rgba(18,77,123,0) 71%);
  filter:blur(21px);
}
#valbenVoiceFullscreen .valben-visual-stage > .vb-demo svg {
  display:block;
  margin:0 auto;
}
/* Una linea de texto flotante, tenue, con ascenso corto y desaparicion. */
#valbenVoiceFullscreen .valben-caption-wrap {
  flex:0 0 58px!important;
  min-height:58px;
  overflow:visible!important;
  margin-top:clamp(6px,1.7vh,18px)!important;
}
#valbenVoiceCaption {
  width:100%;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible!important;
  color:rgba(225,239,249,.84);
}
#valbenVoiceCaption[data-caption-kind="transcript"] {
  color:#a4d9f5!important;
  text-shadow:0 0 18px rgba(110,193,241,.26)!important;
}
#valbenVoiceCaption .valben-spoken-line {
  display:block;
  width:auto;
  max-width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  font-weight:500;
  will-change:opacity,transform;
  animation:valben104-floatUpFade 2.4s ease-out both;
}
@keyframes valben104-floatUpFade {
  0% {opacity:0;transform:translate3d(0,8px,0)}
  12% {opacity:.95;transform:translate3d(0,0,0)}
  58% {opacity:.87;transform:translate3d(0,-3px,0)}
  100% {opacity:0;transform:translate3d(0,-17px,0)}
}
@media(max-width:520px) {
  #valbenVoiceFullscreen .valben-visual-stage::before {
    width:146vw;height:146vw;filter:blur(20px);
  }
  #valbenVoiceCaption {font-size:clamp(15px,4vw,18px)!important}
}
@media(prefers-reduced-motion:reduce) {
  #valbenVoiceCaption .valben-spoken-line {
    animation:none!important;opacity:1!important;transform:none!important;
  }
}

/* V5.105 - CONNECTING = TRUE VISUAL IDLE.
   Overrides operate only outside the LOCKED canonical CSS.
   No bars, rings or glow may pulse while connecting; the ambient fullscreen
   glow (V5.104) is intentionally preserved.
   As soon as readiness is confirmed, normal canonical voice motion resumes. */
#valbenVoiceFullscreen .vb-demo[data-mode="idle"] .vbd-ray {
  animation: none !important;
  transform: scaleY(.24) !important;
  opacity: .42 !important;
}
#valbenVoiceFullscreen .vb-demo[data-mode="idle"] .vbd-ring {
  animation: none !important;
  transform: scale(1) !important;
  opacity: .25 !important;
}
#valbenVoiceFullscreen .vb-demo[data-mode="idle"] .vbd-glow {
  animation: none !important;
  opacity: .35 !important;
}
