/* =====================================================================
 * webfusion-crm.css (2026-10-21) — capa del CRM sobre el widget webagentai
 * clonado (webfusion.js + webfusion.css, que no se tocan). Solo lo que el
 * CRM añade: apilado bajo modales y ficha, la bolita con vida (movimiento,
 * contador, estado de llamada), las pestañas Chat · Teléfono, el hueco del
 * teléfono y la conversación de Dalia (solo sus mensajes) dentro del cuerpo
 * del chat del widget. Tokens: los --dat-* que inyecta el propio widget
 * (claro con body.datyai-theme-light). Se carga DESPUÉS de dalia.css.
 * ===================================================================== */

/* 0 · apilado en el CRM (el widget trae z 2147483000: debe quedar bajo modales, bootbox y la ficha) */
body.wf-crm datalyse-aiagent,
body.wf-crm #datyai-widget-wrapper { z-index: 3049 !important; }
body.wf-crm.modal-open datalyse-aiagent,
body.wf-crm.modal-open #datyai-widget-wrapper { z-index: 999 !important; }
body.wf-crm:is(.rp-open, .rpn-open, .rpb-open) datalyse-aiagent,
body.wf-crm:is(.rp-open, .rpn-open, .rpb-open) #datyai-widget-wrapper { z-index: 1028 !important; }
/* la bolita NUNCA desaparece (Marc: "si se minimiza desaparece hasta la bolita, no puede ser"): con la ficha del lead abierta
   (drawers 1039-1045) se pone por encima; la ventana abierta sí se queda bajo la ficha (1028) y bajo las modales */
body.wf-crm:not(.wf-open) datalyse-aiagent,
body.wf-crm:not(.wf-open) #datyai-widget-wrapper { z-index: 3049 !important; } /* cerrada: por encima de modales, bootbox y ficha */
/* la bolita es permanente: fuera los cierres definitivos del widget y el botón de llamar junto al orbe */
body.wf-crm #datyai-btn-close-launcher,
body.wf-crm #datyai-btn-close-controls,
body.wf-crm #datyai-btn-close,
body.wf-crm #datyai-launcher-call,
body.wf-crm #datyai-legal-footer { display: none !important; }
body.wf-crm #datyai-widget-wrapper { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
/* ventana FLOTANTE (abierta sin ampliar): más alta que la del widget suelto */
body.wf-crm:not(.datyai-minimized) #datyai-chat-container { width: min(560px, calc(100vw - 40px)); height: min(780px, calc(100vh - 96px)); }
@media (max-width: 480px) {
  body.wf-crm:not(.datyai-minimized) #datyai-chat-container { width: calc(100vw - 24px); height: min(720px, calc(100vh - 90px)); }
}
/* AMPLIADA (botón expandir del widget) = acoplada a la DERECHA a toda altura empujando la página, como el "Architect" de
   ElevenLabs (Marc, 21-10, vídeo: "que Dalia o el agente de soporte esté a la derecha si se amplía"). La preferencia se
   recuerda en localStorage wf_dock ('1' acoplada) y la aplica sync() al abrir la ventana. */
body.wf-crm { --wf-dock-w: 420px; }
body.wf-crm.wf-phone { --wf-dock-w: 400px; }
body.wf-crm.datyai-expanded.datyai-chat-active:not(.datyai-minimized) #datyai-chat-container {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(var(--wf-dock-w), 100vw) !important;
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--dat-border) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12) !important;
  animation: none !important;
}
body.wf-crm.datyai-expanded.datyai-chat-active .page-wrapper { margin-right: min(var(--wf-dock-w), 100vw) !important; transition: margin-right .2s ease; }
body.wf-crm.datyai-expanded.wf-phone .js-phone.phone--opened { border-radius: 0; }
@media (max-width: 640px) {
  body.wf-crm.datyai-expanded.datyai-chat-active .page-wrapper { margin-right: 0 !important; }
}

/* 1 · la bolita: el orbe de siempre, con más movimiento, contador y estado de llamada */
body.wf-crm #datyai-launcher-orb {
  position: relative;
  overflow: visible;
  animation: wfOrbIdle 5.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes wfOrbIdle {
  0%, 100% { transform: translateY(0) rotate(0) scale(1, 1); }
  18%      { transform: translateY(-2px) rotate(-3deg) scale(1.02, 1.02); }
  38%      { transform: translateY(0) rotate(0) scale(1.06, .95); }
  46%      { transform: translateY(-8px) rotate(2deg) scale(.95, 1.08); }
  54%      { transform: translateY(0) rotate(0) scale(1.05, .96); }
  62%      { transform: translateY(-3px) rotate(-1deg) scale(1, 1.02); }
  70%      { transform: translateY(0) rotate(0) scale(1, 1); }
}
body.wf-crm #datyai-btn-open-voice.datyai-launcher:hover #datyai-launcher-orb,
body.wf-crm #datyai-launcher-orb.wf-bounce { animation: wfOrbHappy .9s cubic-bezier(.34, 1.56, .64, 1) 1; }
body.wf-crm #datyai-launcher-orb.wf-bounce { animation-iteration-count: 2; }
@keyframes wfOrbHappy {
  0%   { transform: scale(1, 1); }
  25%  { transform: translateY(-12px) scale(.92, 1.12) rotate(-7deg); }
  50%  { transform: translateY(0) scale(1.12, .9) rotate(0); }
  70%  { transform: translateY(-5px) scale(.98, 1.05) rotate(6deg); }
  100% { transform: scale(1, 1) rotate(0); }
}
body.wf-crm #datyai-launcher-orb.wf-ringing { animation: wfOrbRing .7s ease-in-out infinite; }
@keyframes wfOrbRing {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-3px) rotate(-8deg); }
  75%      { transform: translateY(-3px) rotate(8deg); }
}
body.wf-crm #datyai-launcher-orb.wf-incall {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .10), 0 0 0 3px rgba(34, 197, 94, .65), 0 10px 28px rgba(0, 0, 0, .14) !important;
}
body.wf-crm.datyai-call-active #datyai-launcher-orb { box-shadow: inset 0 2px 8px rgba(0, 0, 0, .10), 0 0 0 3px rgba(220, 38, 38, .55), 0 10px 28px rgba(0, 0, 0, .14) !important; }
.wf-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ff7a59;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.wf-orbcall {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 2;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
#datyai-launcher-orb.wf-ringing .wf-orbcall { background: #ff7a59; }
.wf-badge[hidden], .wf-orbcall[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  body.wf-crm #datyai-launcher-orb,
  body.wf-crm #datyai-launcher-orb.wf-bounce,
  body.wf-crm #datyai-launcher-orb.wf-ringing,
  body.wf-crm #datyai-btn-open-voice.datyai-launcher:hover #datyai-launcher-orb { animation: none; }
}

/* 2 · (las pestañas Chat · Teléfono se retiraron en la 292271163: la ventana solo es el chat de Dalia) */
@keyframes wfCallPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  100% { box-shadow: 0 0 0 7px transparent; }
}

/* 3 · vista Teléfono: el iframe de dataphonev8 sobre el hueco del cuerpo (no se mueve del DOM) */
#datyai-phone-slot { display: none; }
body.wf-phone #datyai-phone-slot { display: block; flex: 1 1 auto; min-height: 0; }
body.wf-phone #datyai-chat-body,
body.wf-phone #datyai-input-container,
body.wf-phone #datyai-scroll-bottom { display: none !important; }
body.wf-phone .js-phone.phone--opened {
  position: fixed !important;
  top: var(--wf-top, 0) !important;
  left: var(--wf-left, 0) !important;
  width: var(--wf-w, 0) !important;
  height: var(--wf-h, 0) !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  box-shadow: none;
  transform: none;
  transition: none;
  background: var(--dat-card);
  z-index: 3051; /* sobre la ventana del widget (3049) y el panel de Dalia (3050) */
}
body.wf-phone .js-phone.phone--opened > .phone__header { display: none; }
body.wf-phone .js-phone.phone--opened .phone__body { height: 100% !important; background: var(--dat-card); }
body.wf-phone .js-phone.phone--opened #webphoneiframe { width: 100%; height: 100%; }
/* mismos espejos de apilado que el widget */
body.wf-crm.modal-open.wf-phone .js-phone.phone--opened { z-index: 1000; }
body.wf-crm:is(.rp-open, .rpn-open, .rpb-open).wf-phone .js-phone.phone--opened { z-index: 1029; }
/* con la ventana abierta en otra vista (o en llamada con el asistente) la geometría vieja del cajón (400 px
   abajo-derecha, z 99999) no asoma: la llamada sigue, el iframe se esconde como al plegar el cajón */
body.wf-open:not(.wf-phone) .js-phone.phone--opened { display: none; }

/* 4 · vista Chat: la conversación de Dalia (solo sus mensajes) sobre el cuerpo del chat del widget */
body.wf-dalia #daliaPanel.dalia-panel {
  position: fixed !important;
  top: var(--wf-top, 0) !important;
  left: var(--wf-left, 0) !important;
  width: var(--wf-w, 0) !important;
  height: var(--wf-h, 0) !important;
  right: auto !important;
  bottom: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: var(--dat-card) !important;
  transform: none !important;
  transition: none !important;
  z-index: 3050;
}
body.wf-dalia #daliaPanel::before { display: none !important; }
body.wf-dalia #daliaPanel .dalia-panel__head,
body.wf-dalia #daliaPanel .dalia-panel__bar,
body.wf-dalia #daliaPanel .dalia-panel__resizer,
body.wf-dalia #daliaPanel .dalia-panel__notes,
body.wf-dalia #daliaPanel .dalia-chat__composer,
body.wf-dalia #daliaPanel .dalia-chat__expandrow { display: none !important; }
body.wf-dalia #daliaPanel .dalia-panel__pane[data-dalia-pane="chat"] { height: auto !important; max-height: none !important; flex: 1 1 auto !important; min-height: 0; }
body.wf-dalia #daliaPanel .dalia-chat__hero { inset: 0 !important; }
/* el dock de Dalia ya no empuja la página: vive dentro de la ventana */
body.wf-dalia.dalia-docked .page-wrapper { margin-right: 0 !important; }
/* lo propio del widget bajo el panel (estado vacío, transcripción del asistente) no se ve */
body.wf-dalia #datyai-chat-body > * { visibility: hidden; }

/* 4b · piel: los mensajes de Dalia con las burbujas del widget (paleta --dat-*) */
body.wf-dalia #daliaPanel {
  --dt-surface: var(--dat-card);
  --dt-overlay: var(--dat-card);
  --dt-surface-2: var(--dat-secondary);
  --dt-hover: var(--dat-secondary);
  --dt-active: var(--dat-secondary);
  --dt-border: var(--dat-border);
  --dt-border-strong: var(--dat-border);
  --dt-text: var(--dat-fg);
  --dt-muted: var(--dat-muted);
  --dt-faint: var(--dat-muted);
  --d9-card-shadow: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dat-fg);
}
body.wf-dalia #daliaPanel .dalia-chat__msgs { padding: 16px; gap: 10px; background: var(--dat-card); }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg { padding: 5px 0; align-items: flex-end; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg .avatar { padding-top: 0; align-self: flex-end; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg .avatar .dalia-orb-mini {
  width: 24px; height: 24px;
  background: radial-gradient(circle at 35% 35%, var(--ai-orb-c1), var(--ai-orb-c2));
  box-shadow: 0 0 0 1px var(--dat-border);
  animation: none;
}
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.is-pending .avatar .dalia-orb-mini,
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.is-streaming .avatar .dalia-orb-mini { animation: wfOrbBreathe 1.6s ease-in-out infinite; }
@keyframes wfOrbBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.assistant:not(.is-push):not(.is-pending) .bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--dat-secondary);
  color: var(--dat-fg);
}
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.assistant .body { font-size: 14px; line-height: 1.5; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.user .body {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  background: var(--dat-primary);
  color: var(--dat-primary-fg);
  font-size: 14px; line-height: 1.5;
}
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.is-push .bubble { background: transparent; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.assistant:not(.is-push) .role-row { top: -16px; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg.assistant:not(.is-push) .msg-actions { border-color: var(--dat-border); background: var(--dat-card); }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg .body code { background: color-mix(in srgb, var(--dat-fg) 10%, transparent); border: 0; }
body.wf-dalia #daliaPanel .dalia-chat__msgs .msg .body pre { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--dat-fg) 8%, transparent); }
body.wf-dalia #daliaPanel .chat-table-wrap { border-color: var(--dat-border); border-radius: 10px; }
body.wf-dalia #daliaPanel .chat-table th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dat-muted); background: color-mix(in srgb, var(--dat-fg) 5%, transparent); }
body.wf-dalia #daliaPanel .stream-steps { border-color: var(--dat-border); }
body.wf-dalia #daliaPanel .qr-btn { border-color: var(--dat-border); background: var(--dat-card); color: var(--dat-fg); }
body.wf-dalia #daliaPanel .qr-btn:hover { background: var(--dat-secondary); }
/* estado vacío: orbe 48 que respira, saludo 15/600, texto 12 */
body.wf-dalia #daliaPanel .dalia-chat__hero { padding: 36px 20px 20px; text-align: center; }
body.wf-dalia #daliaPanel .dalia-chat__hero-orb.dalia-orb-mini {
  width: 48px; height: 48px; margin-bottom: 10px;
  background: radial-gradient(circle at 35% 35%, var(--ai-orb-c1), var(--ai-orb-c2));
  box-shadow: none;
  animation: wfOrbBreathe 3.2s ease-in-out infinite;
}
body.wf-dalia #daliaPanel .dalia-chat__hero-greet { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--dat-fg); }
body.wf-dalia #daliaPanel .dalia-chat__hero-tag { font-size: 12px; color: var(--dat-muted); }
body.wf-dalia #daliaPanel .dalia-starter__category { border-color: var(--dat-border); background: var(--dat-card); border-radius: 12px; }
body.wf-dalia #daliaPanel .dalia-starter__category:hover { background: var(--dat-secondary); border-color: var(--dat-border); }
body.wf-dalia #daliaPanel .dalia-starter__icon { background: var(--dat-secondary); color: var(--dat-muted); }
body.wf-dalia #daliaPanel .dalia-chat__history { background: var(--dat-card); }
body.wf-dalia #daliaPanel .dalia-hist-row:hover { background: var(--dat-secondary); }
body.wf-dalia #daliaPanel .dalia-note { background: var(--dat-secondary); border-color: var(--dat-border); }

/* 5 · la ISLA de llamada pegada a la bolita (ventana cerrada): quién, tiempo y mandos; entrante con aceptar/rechazar */
.wf-island {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--dat-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dat-card) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--dat-fg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .04);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transform-origin: right center;
  animation: wfIslandIn .5s cubic-bezier(.2, .9, .25, 1.15) both;
}
.wf-island[hidden] { display: none; }
.wf-island__body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wf-island__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  animation: wfCallPulse 1.6s ease-out infinite;
}
.wf-island.is-ringing .wf-island__dot { background: #ff7a59; animation-duration: .9s; }
.wf-island__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wf-island__who { max-width: 190px; overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.wf-island__sub { max-width: 190px; overflow: hidden; color: var(--dat-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.wf-island.is-ringing .wf-island__sub { color: #ff7a59; }
.wf-island__acts { display: flex; align-items: center; gap: 4px; }
.wf-island__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dat-secondary);
  color: var(--dat-fg);
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, filter .15s ease;
}
.wf-island__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wf-island__btn:disabled { opacity: .45; cursor: default; transform: none; }
.wf-island__btn.is-on, .wf-island__btn--end { background: #dc2626; color: #fff; }
.wf-island__btn--ok { background: #22c55e; color: #fff; animation: wfBtnPulse 1.2s ease-in-out infinite; }
@keyframes wfIslandIn {
  0%   { opacity: 0; transform: translateX(26px) scale(.85); }
  60%  { opacity: 1; transform: translateX(-4px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes wfBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
@media (max-width: 640px) {
  .wf-island { margin-right: 8px; padding-left: 10px; }
  .wf-island__who, .wf-island__sub { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-island, .wf-island__dot, .wf-island__btn--ok { animation: none; }
}

/* 5b · marcar desde la bolita (Marc, 21-10: "hacer llamadas pulsando en la bolita… una línea como la de recibir llamadas"):
   botón verde pegado al orbe y la misma isla con una línea para el número */
.wf-orbdial {
  position: absolute;
  right: 46px;
  top: -4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid var(--dat-card);
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.wf-orbdial:hover { transform: scale(1.1); filter: brightness(1.08); }
.wf-orbdial.is-open { background: var(--dat-fg); color: var(--dat-card); }
.wf-orbdial[hidden] { display: none; }
/* popover del botón: "Llamar a un teléfono" (texto en data-wf-tip), estilo bocadillo del widget */
.wf-orbdial::after {
  content: attr(data-wf-tip);
  position: absolute;
  right: -8px;
  bottom: calc(100% + 10px);
  padding: 8px 12px;
  border: 1px solid var(--dat-border);
  border-radius: 999px;
  background: var(--dat-card);
  color: var(--dat-fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(4px) scale(.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.wf-orbdial::before {
  content: '';
  position: absolute;
  right: 6px;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--dat-border);
  border-bottom: 1px solid var(--dat-border);
  background: var(--dat-card);
  transform: rotate(45deg) translateY(4px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.wf-orbdial:hover::after, .wf-orbdial:focus-visible::after { opacity: 1; transform: none; }
.wf-orbdial:hover::before, .wf-orbdial:focus-visible::before { opacity: 1; transform: rotate(45deg); }
.wf-orbdial.is-open::after, .wf-orbdial.is-open::before { display: none; }
@media (hover: none) { .wf-orbdial::after, .wf-orbdial::before { display: none; } }
/* selector de país de la línea: bandera del usuario + prefijo (flag-icons.css solo pide el SVG de la clase pintada) */
.wf-dial__cc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 8px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--dat-secondary);
  color: var(--dat-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  white-space: nowrap;
}
.wf-dial__cc:hover { filter: brightness(1.06); }
.wf-dial__cc .fi { width: 20px; height: 15px; border-radius: 3px; flex: 0 0 auto; }
.wf-dial__cc .ti { font-size: 13px; color: var(--dat-muted); }
.wf-island.is-dial .wf-dial__in { width: 150px; }
.wf-country { right: auto; left: 0; transform-origin: left bottom; width: min(320px, calc(100vw - 48px)); }
.wf-xfer__item.wf-country__item { flex-direction: row; align-items: center; gap: 10px; }
.wf-country__item .fi { width: 22px; height: 16px; border-radius: 3px; flex: 0 0 auto; background-color: var(--dat-secondary); }
.wf-country__name { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.wf-country__code { flex: 0 0 auto; color: var(--dat-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wf-country__item.is-current { background: var(--dat-secondary); }
/* desplegable de empleados colgado de la isla, junto a Llamar */
.wf-agents { width: min(320px, calc(100vw - 48px)); }
.wf-xfer__item.wf-agents__item { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.wf-agents__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wf-agents__item .wf-xfer__name, .wf-agents__item .wf-xfer__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 230px; }
.wf-agents__ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dat-secondary); color: var(--dat-fg); font-size: 15px; }
.wf-agents__item:hover .wf-agents__ico { background: #22c55e; color: #fff; }
.wf-agents__item:disabled { opacity: .5; cursor: default; }
.wf-agents__item:disabled:hover { background: transparent; }
.wf-agents__item:disabled:hover .wf-agents__ico { background: var(--dat-secondary); color: var(--dat-fg); }
.wf-agents__note { margin: 0 10px 8px; padding: 8px 10px; border-radius: 10px; background: var(--dat-secondary); color: var(--dat-muted); font-size: 12px; line-height: 1.3; }
.wf-island.is-dial { padding-left: 10px; }
.wf-island.is-dial:not(.is-dialing) .wf-island__body { display: none; }
.wf-dial__ico { flex: 0 0 auto; margin: 0 2px 0 4px; color: #22c55e; font-size: 16px; }
.wf-dial__in {
  width: 170px;
  height: 36px;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dat-fg) !important;
  font: inherit;
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  outline: 0 !important;
}
.wf-dial__in::placeholder { color: var(--dat-muted); font-size: 13.5px; letter-spacing: 0; }
.wf-dial__in.wf-shake { animation: wfShake .35s ease; }
.wf-island__btn--call { background: #22c55e; color: #fff; }
.wf-island__btn--agents { background: #2563eb; color: #fff; }
.wf-island__btn--agents.is-open { background: #1d4ed8; }
/* sin el saludo del widget ("¿Cómo podemos ayudarte?", Marc 21-10): el bocadillo solo con nuestros avisos (body.wf-aviso, lo pone
   el envoltorio de api.bubble en armarWidget) */
body.wf-crm:not(.wf-aviso) #datyai-welcome-text { display: none !important; }
body.wf-crm:not(.wf-aviso) #datyai-btn-open-voice.datyai-welcome-visible[data-wf-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }

/* popover de la bolita: "Live Support" (data-wf-tip en #datyai-btn-open-voice, lo pone traducir()), mismo estilo que el del botón de
   marcar; no sale con un aviso en el bocadillo, durante la voz, con la ventana abierta ni en pantallas táctiles */
body.wf-crm #datyai-btn-open-voice[data-wf-tip]::after,
body.wf-crm #datyai-btn-open-voice[data-wf-tip]::before { position: absolute; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
body.wf-crm #datyai-btn-open-voice[data-wf-tip]::after {
  content: attr(data-wf-tip);
  right: 0; bottom: calc(100% + 12px);
  padding: 8px 12px;
  border: 1px solid var(--dat-border); border-radius: 999px;
  background: var(--dat-card); color: var(--dat-fg);
  font: 600 12.5px/1.2 'Inter', system-ui, -apple-system, sans-serif; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transform: translateY(4px) scale(.96); transform-origin: right bottom;
}
body.wf-crm #datyai-btn-open-voice[data-wf-tip]::before {
  content: '';
  right: 26px; bottom: calc(100% + 7px);
  width: 10px; height: 10px;
  border-right: 1px solid var(--dat-border); border-bottom: 1px solid var(--dat-border);
  background: var(--dat-card);
  transform: rotate(45deg) translateY(4px) scale(.96);
  z-index: 1;
}
body.wf-crm:not(.wf-voz) #datyai-btn-open-voice[data-wf-tip]:not(.datyai-welcome-visible):is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
body.wf-crm:not(.wf-voz) #datyai-btn-open-voice[data-wf-tip]:not(.datyai-welcome-visible):is(:hover, :focus-visible)::before { opacity: 1; transform: rotate(45deg); }
@media (hover: none) { body.wf-crm #datyai-btn-open-voice[data-wf-tip]::after, body.wf-crm #datyai-btn-open-voice[data-wf-tip]::before { display: none; } }

/* popover de los botones de la línea (texto en data-wf-tip), como el del botón del orbe */
.wf-island__btn, .wf-dial__cc { position: relative; }
.wf-island__btn[data-wf-tip]::after, .wf-dial__cc[data-wf-tip]::after {
  content: attr(data-wf-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 7px 11px;
  border: 1px solid var(--dat-border);
  border-radius: 999px;
  background: var(--dat-card);
  color: var(--dat-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translate(-50%, 4px) scale(.96);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 4;
}
.wf-island__btn[data-wf-tip]:hover::after, .wf-island__btn[data-wf-tip]:focus-visible::after,
.wf-dial__cc[data-wf-tip]:hover::after, .wf-dial__cc[data-wf-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .wf-island__btn[data-wf-tip]::after, .wf-dial__cc[data-wf-tip]::after { display: none; } }
@keyframes wfShake {
  0%, 100% { transform: none; }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
@media (max-width: 640px) {
  .wf-dial__in, .wf-island.is-dial .wf-dial__in { width: 104px; }
  .wf-dial__cc .wf-dial__code { display: none; }
}

/* 6 · vista Teléfono al tamaño natural del webphone (Marc: "¿por qué se amplía tanto el webphone al darle a la bolita?"):
   el cajón de dataphonev8 está hecho a 400 px; la ventana expandida de 560 queda para el Chat */
body.wf-crm.wf-phone #datyai-chat-container { width: min(400px, calc(100vw - 24px)); height: min(760px, calc(100vh - 96px)); }

/* 7 · desplegable de transferencia sobre la isla */
.wf-island { position: relative; }
.wf-xfer {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 3;
  width: min(300px, calc(100vw - 48px));
  max-height: 340px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dat-border);
  border-radius: 16px;
  background: var(--dat-card);
  color: var(--dat-fg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
  overflow: hidden;
  animation: wfIslandIn .35s cubic-bezier(.2, .9, .25, 1.1) both;
  transform-origin: right bottom;
}
.wf-xfer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--dat-muted); text-transform: uppercase; }
.wf-xfer__x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--dat-muted); font-size: 16px; cursor: pointer; }
.wf-xfer__x:hover { background: var(--dat-secondary); color: var(--dat-fg); }
.wf-xfer__search { margin: 0 10px 8px; height: 34px; padding: 0 12px; border: 1px solid var(--dat-border); border-radius: 10px; background: transparent; color: var(--dat-fg); font: inherit; font-size: 13px; outline: 0; }
.wf-xfer__search:focus { border-color: var(--dat-muted); }
.wf-xfer__list { overflow: auto; padding: 0 6px 8px; scrollbar-width: thin; }
.wf-xfer__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--dat-fg); font: inherit; text-align: left; cursor: pointer; }
.wf-xfer__item:hover { background: var(--dat-secondary); }
.wf-xfer__name { font-size: 13px; font-weight: 600; }
.wf-xfer__meta { font-size: 11.5px; color: var(--dat-muted); }
.wf-xfer__empty { padding: 14px; color: var(--dat-muted); font-size: 12.5px; text-align: center; }

/* 8 · estado vacío del chat de Neo (sin sesión / sin IA): el hero de Dalia, con el diseño del widget (Marc, 21-10: "cuando es
   Datalyse AI se ve mejor que cuando es Neo… deberían estar los dos en un mismo diseño"). Lo cuelga webfusion-crm.js (heroSync)
   como hijo flex de #datyai-chat-body; el #datyai-empty-state del clon (webfusion.js:3393) se oculta y NO se toca. */
body.wf-crm #datyai-chat-body > #datyai-empty-state { display: none !important; }
body.wf-crm #datyai-chat-body > .wf-hero {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: auto 0;               /* centrado vertical en el cuerpo, igual que el empty-state del clon y que Dalia (inset:0) */
  padding: 20px 4px 4px;        /* 16 del cuerpo + 20 = los 36/20 del hero de Dalia (§4b) */
  text-align: center;
  color: var(--dat-fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  animation: none;
}
/* nunca con Dalia o el teléfono dentro, ni en llamada/valoración con el asistente (el clon usa el cuerpo para la transcripción),
   ni cuando heroSync lo marca hidden porque ya hay mensajes */
body.wf-crm #datyai-chat-body > .wf-hero[hidden],
body.wf-crm.wf-dalia #datyai-chat-body > .wf-hero,
body.wf-crm.wf-phone #datyai-chat-body > .wf-hero,
body.wf-crm.datyai-call-active #datyai-chat-body > .wf-hero,
body.wf-crm.datyai-connecting #datyai-chat-body > .wf-hero,
body.wf-crm.datyai-rating #datyai-chat-body > .wf-hero { display: none !important; }
body.wf-crm .wf-hero__orb {
  width: 48px; height: 48px; margin-bottom: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--ai-orb-c1), var(--ai-orb-c2));
  animation: wfOrbBreathe 3.2s ease-in-out infinite;   /* keyframes en §4b */
}
body.wf-crm .wf-hero__greet {
  margin: 0;
  font: 600 15px/1.3 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;  /* --dalia-font-display (dalia.css:1724) + §4b */
  letter-spacing: -.025em;
  color: var(--dat-fg);
}
body.wf-crm .wf-hero__tag {
  max-width: 300px; margin: 2px 0 0;
  font-size: 12px; line-height: 1.5; color: var(--dat-muted);
  text-wrap: balance;
}
body.wf-crm .wf-hero__actions { width: min(100%, 520px); margin-top: 14px; text-align: left; }
body.wf-crm .wf-hero__label {
  margin: 0 0 8px 2px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dat-muted);
}
body.wf-crm .wf-hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
body.wf-crm .wf-hero__card {
  display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--dat-border); border-radius: 11px;
  background: var(--dat-card); color: var(--dat-fg);
  font: inherit; text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
body.wf-crm .wf-hero__card[hidden] { display: none; }   /* "More questions" las despliega; la regla display:flex pisaría el [hidden] del UA */
body.wf-crm .wf-hero__card:hover { background: var(--dat-secondary); transform: translateY(-1px); }
body.wf-crm .wf-hero__card:focus-visible { outline: 2px solid var(--dat-muted); outline-offset: 2px; }
body.wf-crm .wf-hero__icon {
  display: grid; place-items: center;
  flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 9px; background: var(--dat-secondary); color: var(--dat-muted);
  font-size: 16px;
}
body.wf-crm .wf-hero__copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 2px; }
body.wf-crm .wf-hero__title { font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
body.wf-crm .wf-hero__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
  font-size: 11px; line-height: 1.3; color: var(--dat-muted);
}
body.wf-crm .wf-hero__arrow { flex: 0 0 auto; font-size: 13px; color: var(--dat-muted); }
body.wf-crm .wf-hero__all {
  display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 7px;
  margin-top: 8px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--dat-muted); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; appearance: none; -webkit-appearance: none;
}
body.wf-crm .wf-hero__all[hidden] { display: none; }
body.wf-crm .wf-hero__all:hover { color: var(--dat-fg); background: var(--dat-secondary); }
@media (max-width: 380px) { body.wf-crm .wf-hero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  body.wf-crm .wf-hero__orb { animation: none; }
  body.wf-crm .wf-hero__card:hover { transform: none; }
}

/* 9 · mensajes de Neo con la misma piel que los de Dalia (§4b). El clon inyecta sus <style> en <head> DESPUÉS de este <link>:
   cada regla lleva body.wf-crm #datyai-chat-body delante para ganar por especificidad, y !important solo donde el clon lo usa. */
body.wf-crm #datyai-chat-body .datyai-message { padding: 5px 0 !important; }            /* Dalia: .msg padding 5px 0 → 20 px de aire con el gap 10 */
body.wf-crm #datyai-chat-body .datyai-msg-bubble { padding: 10px 14px !important; font-size: 14px; line-height: 1.5 !important; }
body.wf-crm #datyai-chat-body .datyai-message.user .datyai-msg-bubble { max-width: 80% !important; border-radius: 12px 12px 4px 12px; }
body.wf-crm #datyai-chat-body .datyai-message.ia .datyai-msg-bubble { border-radius: 12px 12px 12px 4px; }
/* avisos del clon ("Error: No conectado"): en caja neutra como los .is-error de Dalia, no texto suelto */
body.wf-crm #datyai-chat-body .datyai-message.system .datyai-msg-bubble {
  padding: 7px 11px !important;
  border: 1px solid var(--dat-border); border-radius: 10px;
  background: var(--dat-secondary); color: var(--dat-muted); font-size: 12px;
}
/* la barra de acciones (copiar) flota fuera del flujo, como la .role-row de Dalia (top:-16px right:0): sin fila vacía bajo
   cada respuesta, y el orbe de 24 (align-self:flex-end del clon) queda al pie de la burbuja como el avatar de Dalia */
body.wf-crm #datyai-chat-body .datyai-message.ia .datyai-msg-col { position: relative; max-width: 92%; }
body.wf-crm #datyai-chat-body .datyai-msg-actions {
  position: absolute; top: -16px; right: 0; z-index: 2;
  margin: 0; padding: 1px; gap: 0;
  border: 1px solid var(--dat-border); border-radius: 7px; background: var(--dat-card);
  pointer-events: none;        /* invisible = intocable (el fallo del primer toque que cazó la revisión de Dalia) */
}
body.wf-crm #datyai-chat-body .datyai-message.ia:hover .datyai-msg-actions,
body.wf-crm #datyai-chat-body .datyai-msg-actions:focus-within { pointer-events: auto; }   /* la opacidad 0→1 ya la hace el clon */
body.wf-crm #datyai-chat-body .datyai-msg-action { width: 20px; height: 20px; border-radius: 5px; }
body.wf-crm #datyai-chat-body .datyai-msg-action svg { width: 12px; height: 12px; }
@media (hover: none) {
  /* táctil, como Dalia: en flujo, visible, bajo el texto y a la derecha */
  body.wf-crm #datyai-chat-body .datyai-message.ia .datyai-msg-col { align-items: stretch; }
  body.wf-crm #datyai-chat-body .datyai-msg-actions {
    position: static; justify-content: flex-end;
    margin: 2px 0 0; padding: 0; border: 0; background: transparent;
    pointer-events: auto;
  }
}

/* 10 · cabecera con Dalia dentro: "Datalyse AI · Online" (el nombre lo pone sync(); el estado del clon se tapa porque
   setVoiceStatus lo reescribe en cada cambio) — con Neo (sin sesión, sin IA, en llamada) vuelve "Neo · Text mode" */
body.wf-crm #wfAgentStatus { display: none; min-height: 14px; font-size: 11px; line-height: 14px; color: var(--dat-muted); }
body.wf-crm.wf-dalia #datyai-agent-status { display: none !important; }
body.wf-crm.wf-dalia #wfAgentStatus { display: block; }

/* 11 · OPCIONAL · acoplada (datyai-expanded = dock de 420 px): sugerencias en UNA columna, igual para Neo y para Dalia
   (a 420 − 32 − 7 ≈ 190 px por tarjeta los títulos parten y las descripciones se cortan). Quitar este bloque si Marc prefiere el 2×2. */
body.wf-crm.datyai-expanded .wf-hero__grid,
body.wf-crm.wf-dalia.datyai-expanded #daliaPanel .dalia-starter__suggestions { grid-template-columns: minmax(0, 1fr); }
body.wf-crm.datyai-expanded .wf-hero__card,
body.wf-crm.wf-dalia.datyai-expanded #daliaPanel .dalia-starter__action { min-height: 52px; }

/* 12 · el webphone SIEMPRE abajo en la bolita (Marc, 21-10): con la ventana abierta y una llamada, una entrante o la línea de
   marcar, la bolita y su isla se quedan visibles DEBAJO de la ventana (que encoge para dejarles sitio); acoplada, a la izquierda
   del dock */
body.wf-crm.datyai-chat-active.wf-isla #datyai-launcher-shell { display: flex !important; }
body.wf-crm.datyai-chat-active.wf-isla #datyai-call-widget-horizontal { display: flex !important; }
body.wf-crm.wf-isla:not(.datyai-minimized):not(.datyai-expanded) #datyai-chat-container { height: min(780px, calc(100vh - 170px)); }
body.wf-crm.datyai-expanded.datyai-chat-active.wf-isla #datyai-call-widget-horizontal {
  position: fixed;
  right: calc(min(var(--wf-dock-w), 100vw) + 16px);
  bottom: 20px;
}

/* 13 · un solo chat y un solo webphone: con sesión fuera el botón de voz del widget (la voz con Neo la arranca la bolita) y la
   tarjeta grande de llamada entrante del CRM (la isla de la bolita lleva Aceptar/Rechazar) */
body.wf-crm.wf-sesion #datyai-btn-voice-call,
body.wf-crm.wf-mini #webphone_noti_incomingcalldiv { display: none !important; }
.wf-island__body { cursor: default; }

/* §15 — la bolita: menú Chat · Voz a su IZQUIERDA, chat de Dalia siempre acoplado y limpio, voz con Neo desde la bolita con
   bocadillos de cómic encima (Marc, 21-10: "menú a la izquierda; si es chat a la derecha del todo; si es voz que hable desde el
   globo y salgan los mensajes como cómic"; "cuando se va a la derecha todo debe adaptarse; deja el chat muy limpio") */

/* píldora de la llamada con Neo (#wfOrbMenu, a la izquierda del botón de la bolita): estado + Ampliar (chat de Dalia) + Detener.
   Desde la 292271161 no hay menú Chat/Voz: la bolita llama siempre a Neo (Marc) */
.wf-orbmenu {
  display: flex; align-items: center; gap: 4px;
  margin-right: 12px; padding: 4px;
  background: var(--dat-card); color: var(--dat-fg);
  border: 1px solid var(--dat-border); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16), 0 1px 2px rgba(0, 0, 0, .06);
  transform-origin: right center;
  animation: wfMenuIn .18s cubic-bezier(.2, .8, .2, 1) both;
}
.wf-orbmenu[hidden] { display: none; }
@keyframes wfMenuIn { from { opacity: 0; transform: translateX(10px) scale(.96); } to { opacity: 1; transform: none; } }
.wf-orbmenu__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px;
  background: transparent; color: var(--dat-fg);
  font: 600 13px/1 'Inter', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.wf-orbmenu__btn i { font-size: 17px; }
.wf-orbmenu__btn:hover, .wf-orbmenu__btn:focus-visible { background: var(--dat-secondary); outline: none; }
.wf-orbmenu__btn:active { transform: scale(.97); }
.wf-orbmenu.is-voz { padding: 4px 4px 4px 12px; gap: 8px; }
.wf-orbmenu__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: wfDotPulse 1.6s ease-out infinite; flex: none; }
.wf-orbmenu__dot.is-wait { background: #f59e0b; }
@keyframes wfDotPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }
.wf-orbmenu__txt { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.wf-orbmenu__btn--stop { height: 30px; padding: 0 12px 0 9px; background: #dc2626; color: #fff; font-size: 12.5px; }
.wf-orbmenu__btn--stop:hover, .wf-orbmenu__btn--stop:focus-visible { background: #b91c1c; }
body.wf-crm.wf-voz #wfOrbDial,
body.wf-crm.wf-menu-open #wfOrbDial { display: none !important; }
/* menú de la bolita sin llamada (soporte o teléfono) */
.wf-orbmenu__btn[data-wf-menu="soporte"] i { color: #2563eb; }
.wf-orbmenu__btn--tel i { color: #16a34a; }
/* campo para escribirle a la llamada y micro on/off (mismo lenguaje que la línea de marcar de la isla) */
.wf-orbmenu__field { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 3px 0 10px; border-radius: 999px; background: var(--dat-secondary); }
#wfOrbMenu input.wf-orbmenu__in, #wfOrbMenu input.wf-orbmenu__in:focus { /* con el id: el estilo global de los inputs del CRM le ponía marco */
  width: 190px; min-height: 0 !important; border-radius: 0 !important; height: 30px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--dat-fg) !important; font: 500 13px/1 'Inter', system-ui, sans-serif !important; outline: 0 !important;
}
#wfOrbMenu input.wf-orbmenu__in::placeholder { color: var(--dat-muted); }
.wf-orbmenu__in:disabled { opacity: .6; }
.wf-orbmenu__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: var(--dat-secondary); color: var(--dat-fg); font-size: 16px; cursor: pointer;
  transition: transform .15s ease, background .15s ease, filter .15s ease;
}
.wf-orbmenu__icon:hover { transform: translateY(-1px); filter: brightness(1.08); }
.wf-orbmenu__icon:disabled { opacity: .45; cursor: default; transform: none; }
.wf-orbmenu__icon--send { width: 26px; height: 26px; font-size: 14px; background: transparent; }
.wf-orbmenu__icon--mic.is-off { background: #dc2626; color: #fff; }
@media (max-width: 900px) {
  #wfOrbMenu input.wf-orbmenu__in { width: 130px; }
  .wf-orbmenu__btn--chat span, .wf-orbmenu__btn--stop span { display: none; }
  .wf-orbmenu__btn--chat, .wf-orbmenu__btn--stop { width: 30px; padding: 0; justify-content: center; }
}
.wf-orbmenu__btn--chat { height: 30px; padding: 0 12px 0 9px; font-size: 12.5px; background: var(--dat-secondary); }
.wf-orbmenu__btn--chat:hover, .wf-orbmenu__btn--chat:focus-visible { background: color-mix(in srgb, var(--dat-fg) 12%, var(--dat-secondary)); }

/* voz con Neo: la ventana no se ve; la bolita (y su fila) siguen a la vista aunque el clon las esconda en llamada */
body.wf-crm.wf-voz #datyai-call-widget-horizontal,
body.wf-crm.wf-voz #datyai-launcher-shell { display: flex !important; }
body.wf-crm.wf-voz #datyai-btn-open-voice { display: flex !important; cursor: default; }
body.wf-crm.wf-voz #datyai-chat-container,
body.wf-crm.wf-voz #datyai-floating-messages,
body.wf-crm.wf-voz #datyai-welcome-text { display: none !important; }
body.wf-crm.wf-voz #datyai-launcher-orb { animation: wfOrbTalk 2.4s ease-in-out infinite; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .10), 0 0 0 3px rgba(34, 197, 94, .55), 0 10px 28px rgba(0, 0, 0, .16) !important; }
body.wf-crm.wf-voz #datyai-btn-open-voice:disabled #datyai-launcher-orb { opacity: 1; }
/* conversación escrita (sin micro): la bolita sin el anillo ni el latido de "hablando" */
body.wf-crm.wf-voz.wf-neo-texto #datyai-launcher-orb { animation: wfOrbIdle 4.2s ease-in-out infinite; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .10), 0 10px 28px rgba(0, 0, 0, .16) !important; }
.wf-orbmenu__icon[hidden] { display: none; }
@keyframes wfOrbTalk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* globos de la conversación con Neo encima de la bolita (#wfComic): el mismo aspecto que la isla del webphone (Marc, 21-10: "los
   globos ponlos igual que el webphone"): cápsula translúcida con desenfoque, borde fino, sombra suave, quién en una línea pequeña
   y entrada deslizando desde la bolita */
.wf-comic { order: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: min(320px, calc(100vw - 40px)); margin-bottom: 4px; pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.wf-comic:empty { display: none; }
.wf-comic.is-fading { opacity: 0; transform: translateY(6px); }
.wf-comic__b {
  display: flex; flex-direction: column; gap: 3px; /* los de Neo, solo el texto (Marc: ni su chat ni el nombre Neo) */
  max-width: 300px; padding: 9px 14px 10px;
  border: 1px solid var(--dat-border); border-radius: 18px 18px 6px 18px;
  background: color-mix(in srgb, var(--dat-card) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: var(--dat-fg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .04);
  font: 500 13.5px/1.4 'Inter', system-ui, -apple-system, sans-serif; overflow-wrap: anywhere;
  transform-origin: right bottom;
  animation: wfIslandIn .5s cubic-bezier(.2, .9, .25, 1.15) both;
}
.wf-comic__who { display: inline-flex; align-items: center; gap: 6px; color: var(--dat-muted); font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.wf-comic__who::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.wf-comic__b--dalia .wf-comic__who::before { background: radial-gradient(circle at 35% 35%, #8ab4ff, #4f46e5); width: 9px; height: 9px; }
/* los anteriores, más discretos (is-old la pone comicPinta) */
.wf-comic__b.is-old { padding: 6px 12px 7px; font-size: 12.5px; transition: padding .25s ease, font-size .25s ease; }
.wf-comic__b.is-old .wf-comic__t { color: var(--dat-muted); }
.wf-comic__b--dots { flex-direction: row; align-items: center; gap: 5px; padding: 12px 16px; }
.wf-comic__b--dots i, .wf-comic__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dat-muted); animation: wfDotJump 1s ease-in-out infinite; }
.wf-comic__b--dots i:nth-child(2), .wf-comic__dots i:nth-child(2) { animation-delay: .15s; }
.wf-comic__b--dots i:nth-child(3), .wf-comic__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wfDotJump { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wf-comic__dalia-row { display: flex; align-items: center; gap: 8px; }
.wf-comic__dots { display: inline-flex; gap: 4px; }
.wf-comic__dots i { width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) {
  .wf-orbmenu, .wf-orbmenu__dot, .wf-comic__b, .wf-comic__b--dots i, .wf-comic__dots i, body.wf-crm.wf-voz #datyai-launcher-orb { animation: none !important; }
}

/* chat de Dalia: siempre acoplado a la derecha y limpio (sin botón de reducir) */
body.wf-crm.wf-sesion #datyai-btn-expand { display: none !important; }

/* con el chat acoplado TODO se aparta: la web ya se encoge (.page-wrapper, arriba); las fichas laterales y los avisos también */
@media (min-width: 641px) {
  /* la ficha queda a la izquierda del chat (no se tapan): el widget va por encima de ella para que la barrita de la llamada
     (a la izquierda del chat) no quede debajo de la ficha */
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:is(.rp-open, .rpn-open, .rpb-open):not(.modal-open) datalyse-aiagent,
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:is(.rp-open, .rpn-open, .rpb-open):not(.modal-open) #datyai-widget-wrapper { z-index: 1046 !important; }
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:not(.datyai-minimized) :is(#rp-panel:not(.wide), #rpn-panel, #rpb-panel) { right: min(var(--wf-dock-w), 100vw) !important; transition: right .2s ease; }
  /* la ficha AMPLIADA (record-panel.css §15) ocupa la zona de contenido: su borde derecho es el del chat acoplado */
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:not(.datyai-minimized) { --rp-area-right: min(var(--wf-dock-w), 100vw); }
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:not(.datyai-minimized) #toast-container { right: calc(min(var(--wf-dock-w), 100vw) + 16px) !important; }
  /* la barra de arriba es fija y ocupa el ancho de la ventana menos el leftbar (datalyse-sidebar.css §3): también se encoge */
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:not(.datyai-minimized) :is(.topbar, .app-header, .header, .navbar.topbar) { width: calc(100vw - var(--wf-dock-w)) !important; }
  body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active[data-sidebartype="mini-sidebar"]:not(.datyai-minimized) :is(.topbar, .app-header, .header, .navbar.topbar) { width: calc(100vw - 60px - var(--wf-dock-w)) !important; }
}
@media (min-width: 1300px) {
  [data-layout="vertical"] body.wf-crm.wf-sesion.datyai-expanded.datyai-chat-active:not([data-sidebartype="mini-sidebar"]):not(.datyai-minimized) :is(.topbar, .app-header, .header, .navbar.topbar) { width: calc(100vw - 260px - var(--wf-dock-w)) !important; }
}

/* §16 — el chat acoplado se redimensiona en horizontal (Marc, 21-10): asa #wfDockResizer en su borde izquierdo (la crea
   armarWidget; cambia --wf-dock-w en línea sobre body, que manda sobre los 420/400 de arriba). Doble clic = 420 px */
#wfDockResizer { display: none; }
@media (min-width: 641px) {
  /* fijo sobre el borde izquierdo del chat (right = su ancho - 5 px), por encima del panel de Dalia (3050) y del teléfono (3051) */
  body.wf-crm.datyai-expanded.datyai-chat-active:not(.datyai-minimized) #wfDockResizer {
    display: block; position: fixed; top: 0; bottom: 0; right: calc(min(var(--wf-dock-w), 100vw) - 5px); width: 10px; z-index: 3052;
    cursor: col-resize; touch-action: none; outline: 0;
  }
  body.wf-crm.modal-open #wfDockResizer { z-index: 999; }
  #wfDockResizer::after { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .15s ease; }
  #wfDockResizer::before {
    content: ''; position: absolute; top: 50%; left: 3px; width: 4px; height: 40px; border-radius: 4px;
    background: var(--dat-muted); opacity: 0; transform: translateY(-50%); transition: opacity .15s ease;
  }
  #wfDockResizer:hover::after, #wfDockResizer:focus-visible::after, body.wf-dock-resizing #wfDockResizer::after { background: color-mix(in srgb, var(--dat-fg) 35%, transparent); }
  #wfDockResizer:hover::before, #wfDockResizer:focus-visible::before, body.wf-dock-resizing #wfDockResizer::before { opacity: .8; }
}
/* mientras se arrastra: sin animaciones (la web y las fichas siguen al ratón al instante), sin seleccionar texto y sin que los
   iframes (webphone, vídeos) se queden el ratón */
body.wf-dock-resizing, body.wf-dock-resizing * { cursor: col-resize !important; user-select: none !important; }
body.wf-dock-resizing iframe { pointer-events: none !important; }
body.wf-dock-resizing .page-wrapper,
body.wf-dock-resizing :is(#rp-panel, #rpn-panel, #rpb-panel, #datyai-chat-container) { transition: none !important; }

/* §17 — la barra del webphone con identidad propia (Marc, 21-10: "mejora el diseño de la barra del webphone para que se diferencie
   más de la de soporte"): oscura como un teléfono en los dos temas, con el distintivo del teléfono a la izquierda (verde en llamada,
   naranja sonando, ámbar en espera) y un anillo verde; la píldora de soporte (#wfOrbMenu) sigue clara y neutra. Arriba, en la línea
   de marcar, la línea para salientes (caller ID) con su aviso si es el número dinámico de pruebas. */
.wf-island {
  gap: 8px;
  padding: 5px 6px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #1c1f24 0%, #0f1114 100%);
  color: #f5f6f7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .30), 0 0 0 1px rgba(34, 197, 94, .30), inset 0 1px 0 rgba(255, 255, 255, .06);
  color-scheme: dark;
}
.wf-island.is-ringing { box-shadow: 0 16px 40px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 122, 89, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.wf-island.is-dial { padding-left: 5px; }
.wf-island__dot { display: none; }
.wf-island__badge {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
  color: #fff;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.wf-island__badge::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: wfBadgePulse 1.8s ease-out infinite; pointer-events: none; }
.wf-island.is-dial:not(.is-dialing) .wf-island__badge::after { animation: none; }
.wf-island.is-ringing .wf-island__badge { background: linear-gradient(180deg, #ff9a76 0%, #f4511e 100%); }
.wf-island.is-ringing .wf-island__badge::after { animation: wfBadgePulseOrange 1s ease-out infinite; }
.wf-island.is-ringing .wf-island__badge .ti { animation: wfRingWiggle 1s ease-in-out infinite; }
.wf-island.is-held .wf-island__badge { background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%); }
.wf-island.is-held .wf-island__badge::after { animation: none; }
@keyframes wfBadgePulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
@keyframes wfBadgePulseOrange { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 89, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 122, 89, 0); } }
@keyframes wfRingWiggle { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.wf-island__body { padding-right: 6px; }
.wf-island__who { color: #fff; }
.wf-island__sub { color: rgba(245, 246, 247, .6); }
.wf-island.is-ringing .wf-island__sub { color: #ffab91; }
.wf-island .wf-island__btn { background: rgba(255, 255, 255, .10); color: #f5f6f7; }
.wf-island .wf-island__btn:hover { background: rgba(255, 255, 255, .18); filter: none; }
.wf-island .wf-island__btn:disabled { opacity: .4; }
.wf-island .wf-island__btn.is-on, .wf-island .wf-island__btn--end { background: #dc2626; color: #fff; }
.wf-island .wf-island__btn--end:hover, .wf-island .wf-island__btn.is-on:hover { background: #ef4444; }
.wf-island .wf-island__btn--ok, .wf-island .wf-island__btn--call { background: #22c55e; color: #fff; }
.wf-island .wf-island__btn--ok:hover, .wf-island .wf-island__btn--call:hover { background: #2fd96b; }
.wf-island .wf-island__btn--agents { background: #2563eb; color: #fff; }
.wf-island .wf-island__btn--agents:hover, .wf-island .wf-island__btn--agents.is-open { background: #3b82f6; }
/* la línea de marcar: campo de verdad (hundido) y el país en el mismo tono */
.wf-island .wf-dial__in {
  height: 36px;
  padding: 0 14px !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
  caret-color: #22c55e;
  transition: box-shadow .15s ease, background .15s ease;
}
.wf-island .wf-dial__in:focus { background: rgba(255, 255, 255, .10) !important; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .6) !important; }
.wf-island .wf-dial__in::placeholder { color: rgba(245, 246, 247, .45); }
.wf-island .wf-dial__cc { height: 36px; padding: 0 9px 0 8px; background: rgba(255, 255, 255, .10); color: #fff; }
.wf-island .wf-dial__cc:hover { background: rgba(255, 255, 255, .18); filter: none; }
.wf-island .wf-dial__cc .ti { color: rgba(245, 246, 247, .55); }

/* línea para salientes (caller ID): fila de arriba en la línea de marcar */
/* rejilla: la fila de arriba ocupa todo el ancho pero NO lo marca (width 0 + min-width 100%): manda la línea de marcar, y el aviso
   se parte en líneas en vez de estirar la isla (con flex-wrap la isla medía la suma de todo en una sola línea) */
.wf-island.has-cid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 7px; border-radius: 24px; padding-top: 8px; }
.wf-island.has-cid .wf-island__badge { grid-column: 1; grid-row: 2; }
.wf-island.has-cid .wf-island__acts { grid-column: 2; grid-row: 2; }
.wf-island.has-cid .wf-island__cid { grid-column: 1 / -1; grid-row: 1; width: 0; min-width: 100%; box-sizing: border-box; }
.wf-island__cid { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 0 4px 0 8px; color: rgba(245, 246, 247, .55); font-size: 12px; font-weight: 600; }
.wf-island__cid[hidden] { display: none; }
.wf-cid__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font: 600 12.5px/1 'Inter', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .15s ease;
}
.wf-cid__chip:hover, .wf-cid__chip.is-open { background: rgba(255, 255, 255, .18); }
.wf-cid__chip:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; }
.wf-cid__chip .ti-phone-outgoing { color: #4ade80; font-size: 14px; }
.wf-cid__chip .ti-chevron-down { color: rgba(245, 246, 247, .5); font-size: 13px; }
.wf-cid__num { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wf-cid__chip.is-test { background: rgba(245, 158, 11, .16); color: #fcd34d; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .38); }
.wf-cid__chip.is-test:hover, .wf-cid__chip.is-test.is-open { background: rgba(245, 158, 11, .24); }
.wf-cid__chip.is-test .ti-phone-outgoing { color: #fbbf24; }
.wf-cid__warn { flex: 1 0 100%; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 12px; background: rgba(245, 158, 11, .13); color: #fcd34d; font-size: 12px; font-weight: 600; line-height: 1.3; }
.wf-cid__warn .ti { flex: none; font-size: 15px; }
.wf-cid__chip[data-wf-tip]::after {
  content: attr(data-wf-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  padding: 7px 11px;
  border: 1px solid var(--dat-border);
  border-radius: 999px;
  background: var(--dat-card);
  color: var(--dat-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(4px) scale(.96);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 4;
}
.wf-cid__chip[data-wf-tip]:hover::after, .wf-cid__chip[data-wf-tip]:focus-visible::after { opacity: 1; transform: none; }
.wf-cid__chip.is-open::after { display: none; }
@media (hover: none) { .wf-cid__chip[data-wf-tip]::after { display: none; } }
/* su desplegable (colgado de la isla, a la izquierda, como el de países) */
.wf-cidpop { width: min(330px, calc(100vw - 48px)); }
.wf-xfer__item.wf-cid__item { flex-direction: row; align-items: center; gap: 10px; }
.wf-cid__item .wf-agents__txt { flex: 1 1 auto; }
.wf-cid__item.is-current { background: var(--dat-secondary); }
.wf-cid__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dat-secondary); color: #16a34a; font-size: 15px; }
.wf-cid__ico.is-test { background: rgba(245, 158, 11, .15); color: #d97706; }
.wf-cid__tag { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(245, 158, 11, .16); color: #b45309; font-size: 11px; font-weight: 700; white-space: nowrap; }
.wf-cid__ok { flex: none; color: #16a34a; font-size: 16px; }
.wf-cid__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 9px 11px; border-radius: 12px; background: rgba(245, 158, 11, .12); color: #b45309; font-size: 12px; font-weight: 500; line-height: 1.35; }
.wf-cid__note > .ti { flex: none; font-size: 15px; }
.wf-cid__note > span { flex: 1 1 200px; }
.wf-cid__get { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--dat-fg); color: var(--dat-card); font: 600 12px/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.wf-cid__get:hover { filter: brightness(1.1); }
:root[data-bs-theme="dark"] :is(.wf-cid__tag, .wf-cid__note) { color: #fcd34d; }
:root[data-bs-theme="dark"] .wf-cid__ico:not(.is-test), :root[data-bs-theme="dark"] .wf-cid__ok { color: #4ade80; }
@media (max-width: 640px) {
  .wf-cid__lbl { display: none; }
  .wf-cid__chip { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-island__badge::after, .wf-island.is-ringing .wf-island__badge .ti { animation: none !important; }
}

/* §18 — la grabación de la última llamada en la barra (Marc, 21-10: "en el webphone ponle el mismo reproductor que hay en el
   monitor"): al colgar, la barra se queda con la llamada (punto gris con el teléfono y ✓) y, cuando la centralita sube la grabación,
   la tarjeta del reproductor único debajo, a todo el ancho; con los tonos de la barra oscura */
.wf-island.is-last .wf-island__badge { background: rgba(255, 255, 255, .12); color: #f5f6f7; box-shadow: none; }
.wf-island.is-last .wf-island__badge::after { animation: none; }
.wf-island__rec[hidden] { display: none; }
.wf-island.has-rec { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 8px;
  width: min(460px, calc(100vw - 110px)); border-radius: 24px; padding: 6px 6px 8px 5px; }
.wf-island.has-rec .wf-island__badge { grid-column: 1; grid-row: 1; }
.wf-island.has-rec .wf-island__body { grid-column: 2; grid-row: 1; }
.wf-island.has-rec .wf-island__acts { grid-column: 3; grid-row: 1; }
.wf-island.has-rec .wf-island__rec { grid-column: 1 / -1; grid-row: 2; width: 0; min-width: 100%; box-sizing: border-box; }
.wf-island.has-rec .wf-island__who, .wf-island.has-rec .wf-island__sub { max-width: none; }
.wf-island .drec { --drec-ink: #f5f6f7; --drec-mute: rgba(245, 246, 247, .6); --drec-line: rgba(255, 255, 255, .1); --drec-bg: #16191d; --drec-bg2: rgba(255, 255, 255, .1); }
.wf-island .drec--card { max-width: none; padding: 8px 10px; border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); box-shadow: none; }
.wf-island .drec .drec-lines { max-height: 200px; }
/* en la barra las ondas van en su línea, bajo los botones: "Ocultar transcripción" es más largo que "Transcribir" y empujaba la
   tarjeta fuera de la barra */
.wf-island .drec-main { flex-wrap: wrap; row-gap: 6px; }
.wf-island .drec-wave { order: 5; flex: 1 0 100%; height: 28px; }
.wf-island .drec-tx { margin-left: auto; }
