/* Helix · panel v5 · bandeja: todo cuelga de html.hx-v5 (plan: docs/plans/panel-v5-fd90).
   T3 + T3b + T9b: la Bandeja del prototipo aprobado (gen.py: bandeja() y las capas v1…v14 que la tocan)
   sobre el DOM real de helix-inbox.js y helix-chat.js; el marcado nuevo lo pone helix-v5-bandeja.js.
   La maquetación va solo en escritorio (min-width 1024px): el móvil v5 se diseña aparte.
   Los pocos !important que hay son para ganar a estilos EN LÍNEA (helixLeadRow y helixAvatar ponen alto,
   relleno, hueco, tamaño y cuerpo de letra en el atributo style). */

/* Coral legible para texto (hora de no leídos): el del prototipo móvil, AA en los dos temas. */
html.hx-v5[data-theme="dark"] .helix-app { --hx5-acct: #FF8A84; }
html.hx-v5:not([data-theme="dark"]) .helix-app { --hx5-acct: #B92E27; }
/* Lo inyectado por helix-v5-bandeja.js que el móvil no usa (su lista la viste helix-v5-movil-bandeja.css). */
html.hx-v5 .hx5-bcab, html.hx-v5 .hx5-vacio, html.hx-v5 .hx5-agent, html.hx-v5 .hx5-sugerir, html.hx-v5 .hx5-vf,
html.hx-v5 .hx5-bigdeg, html.hx-v5 .hx5-meta-canal, html.hx-v5 .hx5-meta-llego, html.hx-v5 .hx5-filtros-pop { display: none; }

@media (min-width: 1024px) {
  /* ═══ Cabecera de la pantalla (.title y .tools del prototipo), dentro de la hoja ═══ */
  html.hx-v5 body[data-screen="inbox"] .helix-app .helix-shell.inbox-active .hx5-bcab.is-on { display: flex; flex: none; position: relative; z-index: 3;
    align-items: flex-start; justify-content: space-between; gap: 16px; height: 84px; box-sizing: border-box; padding: 22px 20px 0 28px; }
  html.hx-v5 .helix-app .hx5-bcab h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 34px; color: var(--v5-t1);
    animation: hx5-entraL .5s var(--v5-eo) both; }
  html.hx-v5 .helix-app .hx5-bcab-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--v5-t2); font-variant-numeric: tabular-nums;
    animation: hx5-entraL .5s var(--v5-eo) .05s both; }
  html.hx-v5 .helix-app .hx5-bcab-tools { display: flex; align-items: center; gap: 10px; animation: hx5-entra .6s var(--v5-eo) .08s both; }
  html.hx-v5 .helix-app .hx5-capg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--v5-glass);
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 8px 22px -12px rgba(0, 0, 0, .35); }
  html.hx-v5 .helix-app .hx5-capg button { height: 32px; min-width: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent;
    color: var(--v5-t1); font: inherit; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    transition: background .3s var(--v5-eo), color .3s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-capg button[hidden] { display: none; }
  html.hx-v5 .helix-app .hx5-capg button:hover { background: color-mix(in srgb, var(--v5-t1) 7%, transparent); }
  html.hx-v5 .helix-app .hx5-capg button[aria-pressed="true"] { background: var(--v5-acc); color: #fff; font-weight: 600; }
  html.hx-v5 .helix-app .hx5-capg button:active { transform: scale(.97); }
  html.hx-v5 .helix-app .hx5-capg button:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 1px; }
  html.hx-v5 .helix-app .hx5-capg-ic button { position: relative; width: 40px; padding: 0; }
  html.hx-v5 .helix-app .hx5-capg-ic svg { width: 15px; height: 15px; }
  html.hx-v5 .helix-app .hx5-capg-ic button[aria-pressed="true"],
  html.hx-v5 .helix-app .hx5-capg-ic button[aria-expanded="true"] { background: color-mix(in srgb, var(--v5-acc) 16%, transparent); color: var(--v5-acc); }
  html.hx-v5 .helix-app .hx5-capg-ic .hx5-activo::after { content: ""; position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--v5-acc); box-shadow: 0 0 0 1.5px var(--v5-glass); }
  html.hx-v5 .helix-app .hx5-bcab-tools { position: relative; }
  /* desplegable de filtros: canal, vista, etiquetas y no leídos (acciona los controles reales) y «Más filtros» */
  html.hx-v5 .helix-app .hx5-filtros-pop { display: flex; flex-direction: column; gap: 10px; position: absolute; z-index: 20; top: calc(100% + 8px); right: 0;
    width: 340px; padding: 12px; border-radius: 18px; background: var(--v5-sheet); -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%); box-shadow: var(--v5-sheetsh), 0 0 0 .5px var(--v5-edge); animation: hx5-entra .3s var(--v5-eo) both; }
  html.hx-v5 .helix-app .hx5-filtros-fichas { display: flex; flex-wrap: wrap; gap: 6px; }
  html.hx-v5 .helix-app .hx5-filtros-pop .hx5f { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 13px; font-weight: 500; color: var(--v5-t1); background: color-mix(in srgb, var(--v5-t1) 7%, transparent); cursor: pointer; }
  html.hx-v5 .helix-app .hx5-filtros-pop .hx5f em { font-style: normal; color: var(--v5-t3); font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app .hx5-filtros-pop .hx5f.on { color: var(--hx5-acct); font-weight: 600; background: color-mix(in srgb, var(--v5-acc) 16%, transparent); }
  html.hx-v5 .helix-app .hx5-filtros-pop .hx5f.on em { color: inherit; }
  html.hx-v5 .helix-app .hx5-filtros-pop .hx5f i { width: 7px; height: 7px; border-radius: 50%; }
  html.hx-v5 .helix-app .hx5-filtros-mas { align-self: flex-start; padding: 6px 2px 2px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500;
    color: var(--hx5-acct); cursor: pointer; }

  /* ═══ Columna de la lista: 370 px como el prototipo (340 + márgenes), en la misma hoja que la ficha ═══ */
  html.hx-v5 .helix-app .helix-shell.inbox-active #helix-content { flex: 0 0 370px; border-right: 0; background: transparent; box-shadow: none; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll { padding: 0 0 22px; }
  html.hx-v5 .helix-app .helix-workspace:not(.hx5-con-cab) #helix-content .helix-inbox-scroll { padding-top: 14px; }

  /* buscador: cápsula de cristal (el filtro fino sigue en su botón) */
  html.hx-v5 .helix-app #helix-content .helix-inbox-search-wrap { padding: 8px 22px 10px 20px; background: transparent; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search { height: 38px; padding: 0 5px 0 14px; gap: 9px; border: 0; border-image: none; border-radius: 999px;
    color: var(--v5-t3); background: var(--v5-glass); background-image: none;
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 10px 26px -14px rgba(0, 0, 0, .35); transition: box-shadow .25s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search:focus-within { box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge),
    0 0 0 3px color-mix(in srgb, var(--v5-acc) 28%, transparent), 0 10px 26px -14px rgba(0, 0, 0, .35); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search input { font-size: 13.5px; color: var(--v5-t1); background: transparent; border: 0; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search input::placeholder { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn[hidden] { display: none; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll:not([data-hx5-busca]) .helix-inbox-search-wrap,
  html.hx-v5 .helix-app #helix-content .helix-inbox-search [data-action="filter"],
  html.hx-v5 .helix-app #helix-content .helix-canal-pills { display: none; }   /* el filtro de la cabecera los acciona (su .click() sigue valiendo) */
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-busca] .helix-inbox-search-wrap { animation: hx5-entra .3s var(--v5-eo) both; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn:hover { color: var(--v5-t1); background: color-mix(in srgb, var(--v5-t1) 8%, transparent); }

  /* canales, vistas, etiquetas y «No leídos»: los mismos chips, más discretos */
  html.hx-v5 .helix-app #helix-content .helix-canal-pills { margin: 0 22px 12px 20px; padding: 0; gap: 5px; border: 0; border-image: none; border-radius: 0;
    background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; scrollbar-width: none; }
  html.hx-v5 .helix-app #helix-content .helix-canal-pills::-webkit-scrollbar { display: none; }
  html.hx-v5 .helix-app #helix-content .helix-canal-pill,
  html.hx-v5 .helix-app #helix-content .helix-vista-chip { flex: none; height: 28px; min-height: 28px; padding: 0 11px; border: 0; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; color: var(--v5-t2); text-shadow: none; background: var(--v5-card2); box-shadow: none;
    transition: background .25s var(--v5-eo), color .25s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-canal-pill { min-width: 30px; padding: 0 8px; }
  html.hx-v5 .helix-app #helix-content .helix-canal-pill:hover,
  html.hx-v5 .helix-app #helix-content .helix-vista-chip:hover { color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .helix-canal-pill.is-on,
  html.hx-v5 .helix-app #helix-content .helix-vista-chip.is-on { color: var(--v5-acc); font-weight: 600; box-shadow: none;
    background: color-mix(in srgb, var(--v5-acc) 15%, transparent); }
  html.hx-v5 .helix-app #helix-content .helix-canal-pill::after,
  html.hx-v5 .helix-app #helix-content .helix-vista-chip::after { content: none; }
  html.hx-v5 .helix-app #helix-content .helix-vista-chip-n { color: inherit; opacity: .7; }
  html.hx-v5 .helix-app #helix-content .helix-canal-pills-sep { flex: none; width: 1px; margin: 7px 3px; background: var(--v5-line); }

  /* ═══ Bloque «Hoy» como tarjeta v5 (con las tareas dentro) ═══ */
  html.hx-v5 .helix-app #helix-content .helix-hoy-caja { margin: 0 22px 14px 20px; gap: 9px; }
  html.hx-v5 .helix-app #helix-content .helix-hoy,
  html.hx-v5 .helix-app #helix-content .helix-primeros { padding: 11px 10px 7px; border: 0; border-radius: 18px; background: var(--v5-card);
    box-shadow: var(--v5-sh1); animation: none; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-entra] .helix-hoy,
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-entra] .helix-primeros { animation: hx5-entra .6s var(--v5-eo) backwards; }
  html.hx-v5 .helix-app #helix-content .helix-hoy-titulo { margin: 0 6px 5px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-linea { min-height: 34px; padding: 4px 6px; gap: 9px; border-radius: 11px; font-size: 13px; color: var(--v5-t1);
    transition: background .2s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-linea:hover { background: color-mix(in srgb, var(--v5-t1) 6%, transparent); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-linea > svg:first-child { color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-linea > svg:last-child { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-n { background: color-mix(in srgb, var(--v5-acc) 16%, transparent); color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-hoy.is-vacio { padding: 10px 12px; }
  html.hx-v5 .helix-app #helix-content .helix-hoy.is-vacio:has(.hx5-tareas) { flex-direction: column; align-items: stretch; gap: 4px; }
  html.hx-v5 .helix-app #helix-content .helix-hoy-ok { color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-primeros-barra i { background: var(--v5-acc); }
  /* «Hoy» en una línea de contadores; al pulsarla se despliega la tarjeta de siempre con las tareas */
  html.hx-v5 .helix-app #helix-content .helix-hoy-caja:not(.hx5-hoy-abierto) > .helix-hoy { display: none; }
  html.hx-v5 .helix-app .hx5-hoy-res { display: flex; align-items: flex-start; gap: 9px; width: 100%; min-height: 42px; padding: 9px 12px 9px 14px; border: 0;
    border-radius: 16px; background: var(--v5-card); box-shadow: var(--v5-sh1); color: var(--v5-t1); font: inherit; font-size: 13px; text-align: left;
    cursor: pointer; transition: transform .2s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-hoy-res:hover:not(:disabled) { transform: translateY(-1px); }
  html.hx-v5 .helix-app .hx5-hoy-res:disabled { cursor: default; }
  html.hx-v5 .helix-app .hx5-hoy-res:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app .hx5-hoy-res-t { flex: none; font-weight: 600; }
  /* si no cabe en una línea baja a dos, sin partir «3 calientes» */
  html.hx-v5 .helix-app .hx5-hoy-res-c { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 15px; row-gap: 1px; overflow: hidden; color: var(--v5-t2); }
  html.hx-v5 .helix-app .hx5-hoy-res-c > span { position: relative; white-space: nowrap; }
  /* el «·» va en el hueco de la izquierda: al empezar línea queda fuera de la caja y no cuelga al final de la anterior */
  html.hx-v5 .helix-app .hx5-hoy-res-c > span + span::before { content: "·"; position: absolute; left: -10px; color: var(--v5-t3); }
  html.hx-v5 .helix-app .hx5-hoy-res-c b { color: var(--v5-t1); font-weight: 600; font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app .hx5-hoy-res-c i { font-style: normal; color: var(--v5-t3); }
  html.hx-v5 .helix-app .hx5-hoy-res svg { flex: none; align-self: center; color: var(--v5-t3); transition: transform .3s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-hoy-abierto > .hx5-hoy-res svg { transform: rotate(180deg); }
  html.hx-v5 .helix-app .hx5-hoy-abierto > .helix-hoy { animation: hx5-entra .35s var(--v5-eo) both; }

  /* tareas pendientes (en «Hoy» y en la ficha del lead) */
  html.hx-v5 .helix-app .hx5-tareas { display: block; }
  html.hx-v5 .helix-app .helix-hoy .hx5-tareas { margin: 6px 0 0; padding: 8px 0 0; border-top: .5px solid var(--v5-line); }
  /* sin tarjeta «Hoy» (cuenta sin conversaciones): las tareas van en su propia tarjeta */
  html.hx-v5 .helix-app .helix-hoy-caja > .hx5-tareas { margin: 0; padding: 11px 10px 7px; border: 0; border-radius: 18px; background: var(--v5-card); box-shadow: var(--v5-sh1); }
  html.hx-v5 .helix-app .hx5-tareas-cab { display: flex; align-items: center; gap: 6px; margin: 0 6px 3px; font-size: 11.5px; font-weight: 600; color: var(--v5-t3); }
  html.hx-v5 .helix-app .hx5-tareas-n { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-variant-numeric: tabular-nums; color: var(--v5-t2); background: color-mix(in srgb, var(--v5-t1) 8%, transparent); }
  html.hx-v5 .helix-app .hx5-tareas-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
  html.hx-v5 .helix-app .hx5-tarea { display: flex; align-items: flex-start; gap: 10px; padding: 6px; border-radius: 11px;
    transition: background .2s var(--v5-eo), opacity .35s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-tarea:hover { background: color-mix(in srgb, var(--v5-t1) 5%, transparent); }
  html.hx-v5 .helix-app .hx5-check { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 0; border: 1.5px solid var(--v5-t3); border-radius: 6px;
    background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s var(--v5-eo), border-color .2s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: opacity .2s var(--v5-eo), transform .3s cubic-bezier(.34, 1.56, .64, 1); }
  html.hx-v5 .helix-app .hx5-check:hover { border-color: var(--v5-acc); }
  html.hx-v5 .helix-app .hx5-check:active { transform: scale(.9); }
  html.hx-v5 .helix-app .hx5-check:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app .hx5-tarea.is-hecha .hx5-check { background: var(--v5-acc); border-color: var(--v5-acc); }
  html.hx-v5 .helix-app .hx5-tarea.is-hecha .hx5-check svg { opacity: 1; transform: none; }
  html.hx-v5 .helix-app .hx5-tarea.is-hecha .hx5-tarea-tit { color: var(--v5-t3); text-decoration: line-through; }
  html.hx-v5 .helix-app .hx5-tarea-c { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  html.hx-v5 .helix-app .hx5-tarea-tit { font-size: 13px; line-height: 1.35; color: var(--v5-t1); }
  html.hx-v5 .helix-app .hx5-tarea-meta { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; color: var(--v5-t2); white-space: nowrap; }
  html.hx-v5 .helix-app .hx5-tarea-sep { color: var(--v5-t3); }
  html.hx-v5 .helix-app .hx5-tarea-lead { min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--v5-t1); cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; }
  html.hx-v5 .helix-app .hx5-tarea-lead:hover { color: var(--v5-acc); text-decoration: underline; text-underline-offset: 2px; }
  html.hx-v5 .helix-app .hx5-tarea-vence { flex: none; font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app .hx5-tarea-vence.is-vencida { color: var(--v5-acc); font-weight: 600; }
  html.hx-v5 .helix-app .hx5-tareas-mas { margin: 1px 0 3px 34px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--v5-t2); cursor: pointer; }
  html.hx-v5 .helix-app .hx5-tareas-mas:hover { color: var(--v5-acc); }

  /* ═══ Filas «Mensajería» (variante A, 24-09): el marcado lo pone helix-v5-bandeja.js (filaA), igual que en móvil ═══ */
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-body { display: flex; flex-direction: column; gap: 7px; padding: 2px 22px 4px 20px; background: transparent; border: 0; }
  html.hx-v5 .helix-app #helix-content .hx5-fila { box-sizing: border-box; display: flex; align-items: center; gap: 11px; height: auto; min-height: 0; margin: 0;
    padding: 9px 12px 9px 9px; border: 0; border-radius: 18px; overflow: visible; transform: none; background: var(--v5-row); color: var(--v5-t1);
    box-shadow: var(--v5-sh1); cursor: pointer; animation: none;
    transition: transform .25s var(--v5-eo), box-shadow .35s var(--v5-eo), background .45s var(--v5-eo), color .35s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .hx5-fila::before { display: none; }
  /* entrada escalonada al llegar a la pantalla (el JS pone data-hx5-entra 1,5 s) y la fila de un lead nuevo */
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-entra] .hx5-fila { animation: hx5-entra .6s var(--v5-eo) backwards;
    animation-delay: calc(var(--hx5-i, 0) * 45ms); }
  html.hx-v5 .helix-app #helix-content .hx5-fila.hx5-nueva { animation: hx5-entra .6s var(--v5-eo) backwards; }
  html.hx-v5 .helix-app #helix-content .hx5-fila:hover { transform: translateY(-2px); background: var(--v5-row);
    box-shadow: var(--v5-sh1), 0 14px 30px -14px color-mix(in srgb, var(--v5-acc) 40%, transparent); }
  html.hx-v5 .helix-app #helix-content .hx5-fila:active { transform: scale(.985); }
  html.hx-v5 .helix-app #helix-content .hx5-fila:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active:hover { background: var(--v5-acc); color: #fff;
    box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--v5-acc) 75%, transparent), 0 4px 10px -4px color-mix(in srgb, var(--v5-acc) 40%, transparent); }
  /* avatar relleno con el color de cada persona (o su foto de Instagram) y la temperatura como punto */
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; background: var(--hx5-avf, var(--v5-card2)); color: var(--hx5-avt, var(--v5-t1)); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-lead-row .hx5-av { background: var(--hx5-avfl, #EEE); color: var(--hx5-avtl, var(--v5-t1)); }
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av svg { width: 18px; height: 18px; }
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--hx5-hc); box-shadow: 0 0 0 2.5px var(--v5-row); }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-av i { box-shadow: 0 0 0 2.5px var(--v5-acc); }
  /* línea 1: nombre, iconos, chips, grados (solo desde 80°) y la hora; línea 2: quién habló y qué, y los no leídos */
  html.hx-v5 .helix-app #helix-content .hx5-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  html.hx-v5 .helix-app #helix-content .hx5-l1,
  html.hx-v5 .helix-app #helix-content .hx5-l2 { display: flex; align-items: center; gap: 5px; min-width: 0; }
  html.hx-v5 .helix-app #helix-content .hx5-n { flex: 0 1 auto; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14.5px; font-weight: 500; letter-spacing: -.012em; line-height: 20px; color: inherit; }
  html.hx-v5 .helix-app #helix-content .hx5-ic { display: inline-flex; flex: none; color: var(--v5-t3); }
  /* los chips ceden antes que el nombre y solo se ven los que caben enteros (los demás bajan a una segunda línea oculta) */
  html.hx-v5 .helix-app #helix-content .hx5-chips { display: flex; flex: 0 100 auto; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 5px;
    min-width: 0; height: 17px; overflow: hidden; }
  html.hx-v5 .helix-app #helix-content .hx5-chips:empty { display: none; }
  html.hx-v5 .helix-app #helix-content .hx5-l1 svg { width: 13px; height: 13px; }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-row-origen { opacity: .8; }
  html.hx-v5 .helix-app #helix-content .hx5-call-no_contesta { color: var(--danger-text, #FF6961); }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag,
  html.hx-v5 .helix-app #helix-content .hx5-l1 .hx-tag { flex: none; height: 17px; padding: 0 7px; border: 0; border-radius: 999px; box-shadow: none;
    font-size: 10.5px; font-weight: 600; line-height: 17px; }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag--neutral { background: color-mix(in srgb, var(--v5-t1) 8%, transparent); color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag--accent { background: color-mix(in srgb, var(--v5-acc) 16%, transparent); color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag--signal { background: rgba(52, 199, 89, .16); color: var(--v5-ok); }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag--danger { background: var(--danger-bg, rgba(255, 69, 58, .16)); color: var(--danger-text, #FF6961); }
  html.hx-v5 .helix-app #helix-content .hx5-l1 .helix-tag--warning { background: var(--warning-bg, rgba(255, 176, 32, .16)); color: var(--warning-text, #FFB020); }
  html.hx-v5 .helix-app #helix-content .hx5-g { flex: none; height: 17px; padding: 0 5px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 17px;
    font-variant-numeric: tabular-nums; color: var(--hx5-hc); background: color-mix(in srgb, var(--hx5-hc) 15%, transparent); }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .hx5-g { color: var(--hx5-hcl); }
  html.hx-v5 .helix-app #helix-content .hx5-t { margin-left: auto; padding-left: 6px; flex: none; font-size: 12px; color: var(--v5-t3); font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app #helix-content .hx5-p { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap;
    font-size: 13px; line-height: 18px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-p > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html.hx-v5 .helix-app #helix-content .hx5-p b { flex: none; font-weight: 500; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-pi { flex: none; width: 15px; height: 15px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-fila .hx-unread { position: static; flex: none; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto; font-size: 11px; font-weight: 700; line-height: 1;
    background: var(--v5-acc); color: #fff; box-shadow: none; }
  /* no leídos: nombre en negrita, hora en coral y el contador */
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-unread .hx5-n { font-weight: 650; }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-unread .hx5-t { color: var(--hx5-acct); font-weight: 600; }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-unread .hx5-p { color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .hx5-helix { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-helix .hx5-mpose { flex: none; }
  /* fila activa en coral (como el prototipo de escritorio) */
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-t,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-ic,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-p,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-p b,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-pi,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-helix { color: rgba(255, 255, 255, .86); }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .helix-row-origen,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .helix-verificado { color: #fff !important; }   /* !important: color en línea (helixOrigenBadge) */
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-g,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-l1 .helix-tag,
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx5-l1 .hx-tag { background: rgba(255, 255, 255, .22); color: #fff; }
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active .hx-unread { background: #fff; color: var(--v5-acc); }
  /* secciones «Te esperan / Calientes / Resto»: el DOM sigue por recencia y el orden visual lo da `order` (solo en la lista principal) */
  html.hx-v5 .helix-app #helix-content .hx5-sec { display: flex; align-items: baseline; gap: 6px; margin: 10px 4px 0; font-size: 13px; font-weight: 600;
    letter-spacing: -.01em; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .hx5-sec span { font-size: 12.5px; font-weight: 500; color: var(--v5-t3); font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app #helix-content .hx5-sec[data-hx5-sec="espera"] { order: 0; margin-top: 0; }
  html.hx-v5 .helix-app #helix-content [data-lista="principal"] > .hx5-fila[data-hx5-sec="espera"] { order: 1; }
  html.hx-v5 .helix-app #helix-content .hx5-sec[data-hx5-sec="caliente"] { order: 2; }
  html.hx-v5 .helix-app #helix-content [data-lista="principal"] > .hx5-fila[data-hx5-sec="caliente"] { order: 3; }
  html.hx-v5 .helix-app #helix-content .hx5-sec[data-hx5-sec="resto"] { order: 4; }
  html.hx-v5 .helix-app #helix-content [data-lista="principal"] > .hx5-fila[data-hx5-sec="resto"] { order: 5; }
  html.hx-v5 .helix-app #helix-content [data-lista="principal"] > .helix-empty { order: 6; }

  /* filtros rápidos de la cabecera (se suman a los de siempre) */
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-filtro="esperando"] .helix-lead-row:not([data-hx5-flags*="e"]),
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll[data-hx5-filtro="calientes"] .helix-lead-row:not([data-hx5-flags*="c"]) { display: none; }
  html.hx-v5 .helix-app #helix-content .hx5-vacio { display: block; margin: 2px 22px 0 20px; padding: 22px 16px; border-radius: 18px; text-align: center;
    font-size: 13px; color: var(--v5-t2); background: var(--v5-col); }

  /* accesos (Potenciales, llamadas sin resultado), Archivados y vacíos */
  html.hx-v5 .helix-app #helix-content .helix-list-access { width: auto; min-height: 42px; margin: 0 22px 12px 20px; padding: 10px 14px; border: 0; border-radius: 16px;
    font-size: 13px; color: var(--v5-t1); background: var(--v5-card); box-shadow: var(--v5-sh1); transition: transform .25s var(--v5-eo), box-shadow .35s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-list-access:hover { transform: translateY(-2px); background: var(--v5-card); }
  html.hx-v5 .helix-app #helix-content .helix-list-access--footer { margin-top: 14px; }
  html.hx-v5 .helix-app #helix-content .helix-list-access-count { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-list-access-count--danger { color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-header { padding: 14px 24px 8px; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-label-muted { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-archived-body { margin-top: 2px; }
  html.hx-v5 .helix-app #helix-content .helix-empty { color: var(--v5-t3); font-size: 13px; }
  html.hx-v5 .helix-app #helix-content .helix-list-back { margin: 0 22px 8px 20px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-list-header { padding: 0 24px 10px; }

  /* ═══ Ficha del lead (.det del prototipo) ═══ */
  html.hx-v5 .helix-app #helix-detail-panel .helix-detail-empty { color: var(--v5-t3); font-size: 13.5px; }
  html.hx-v5 .helix-app #helix-detail-panel { position: relative; }
  html.hx-v5 .helix-app #helix-detail-panel:has(> .hx5-vf) > .helix-detail-empty { display: none; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-vf { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 40px; text-align: center; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-vf h2 { margin: 4px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-vf p { margin: 0 0 10px; font-size: 13.5px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-vf .hx5-btn-a[hidden] { display: none; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-vf-m { line-height: 0; animation: hx5-asoma .8s var(--v5-eo) .1s both; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-btn .hx5-pi { width: 19px; height: 19px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send .hx5-pi { width: 16px; height: 16px; stroke-width: 2.2; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent.is-error .hx5-agent-txt { color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-nota { display: block; margin-top: 6px; font-size: 12px; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail { position: relative; background: transparent; --hx5-ab: calc(var(--hx5-nb, 3) * 50px + 20px); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-header { position: relative; min-height: 64px; gap: 12px; padding: 6px var(--hx5-ab) 10px 20px;
    border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.hx-v5 .helix-app .helix-workspace:not(.hx5-con-cab) #helix-detail-panel .helix-lead-detail-header { padding-top: 18px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-title { gap: 0; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-title > .helix-avatar { display: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-name { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 600;
    letter-spacing: -.02em; line-height: 24px; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-meta { margin-top: 1px; gap: 0; font-size: 12.5px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-meta .helix-heat-pill { display: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-phone { font-family: inherit; font-size: 12.5px; letter-spacing: 0; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-phone.is-ig { display: none; }   /* la marca del canal ya dice Instagram */
  html.hx-v5 .helix-app #helix-detail-panel .hx5-meta-canal { display: inline-flex; align-items: center; gap: 6px; vertical-align: -4px; white-space: nowrap; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-meta-llego { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-meta-canal + .helix-lead-detail-phone::before,
  html.hx-v5 .helix-app #helix-detail-panel .hx5-meta-llego::before { content: "·"; margin: 0 5px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-bigdeg { display: inline-block; flex: none; margin: 0 4px 0 auto; font-size: 34px; font-weight: 300; letter-spacing: -.04em;
    line-height: 1; font-variant-numeric: tabular-nums; background: var(--hx5-grad, linear-gradient(135deg, #FF922B, #FF3B30));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-bigdeg.is-cliente { background: none; color: var(--v5-ok); font-size: 20px; font-weight: 500; letter-spacing: -.01em; }

  /* botones redondos de cristal = la barra de acciones de siempre (Llamar, Agendar, Más), recolocada arriba; «Pre-llamada»
     es una píldora con texto (helix-v5-hojas.css) */
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-actionbar { position: absolute; z-index: 4; top: 13px; right: 20px; margin: 0; padding: 0; gap: 12px;
    display: flex; justify-content: flex-end; border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.hx-v5 .helix-app .helix-workspace:not(.hx5-con-cab) #helix-detail-panel .helix-lead-detail-actionbar { top: 25px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn { position: relative; flex: none; width: 38px; height: 38px; padding: 0; gap: 0; border: 0; border-radius: 50%;
    justify-content: center; color: var(--v5-t1); background: var(--v5-glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 6px 18px -10px rgba(0, 0, 0, .35);
    transition: transform .12s var(--v5-eo), box-shadow .2s var(--v5-eo), color .2s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn:hover { background: var(--v5-glass); transform: translateY(-1px);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 10px 22px -10px color-mix(in srgb, var(--v5-acc) 45%, transparent); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn:active { transform: scale(.94); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn.is-done { color: var(--v5-ok); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn svg { width: 15px; height: 15px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-actionbar-btn > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

  /* chips de estado y etiquetas del lead, bajo el nombre */
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar { padding: 0 20px 8px; gap: 6px; border: 0; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag { height: 22px; padding: 0 9px; border: 0; border-radius: 999px; box-shadow: none; font-size: 11.5px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag--neutral { background: color-mix(in srgb, var(--v5-t1) 8%, transparent); color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag--accent { background: color-mix(in srgb, var(--v5-acc) 16%, transparent); color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag--signal { background: rgba(52, 199, 89, .16); color: var(--v5-ok); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag--danger { background: var(--danger-bg, rgba(255, 69, 58, .16)); color: var(--danger-text, #FF6961); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-context-bar .helix-tag--warning { background: var(--warning-bg, rgba(255, 176, 32, .16)); color: var(--warning-text, #FFB020); }

  /* tareas del lead: tarjeta pequeña entre la cabecera y el chat */
  html.hx-v5 .helix-app #helix-detail-panel .hx5-tareas-lead { flex: none; margin: 0 20px 8px; padding: 9px 10px 5px; border-radius: 16px; background: var(--v5-card);
    box-shadow: var(--v5-sh1); animation: hx5-entra .5s var(--v5-eo) backwards; }

  /* chat: los mensajes se apoyan abajo, como en el prototipo (margin-top:auto no rompe el scroll) */
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-chat { padding: 6px 24px 16px; gap: 6px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px); mask-image: linear-gradient(to bottom, transparent 0, #000 16px); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-chat > :first-child { margin-top: auto; }
  /* con «Helix Agent propone» el hueco de la mascota lo reserva la tarjeta (margen superior), no el scroll: con el
     scroll no bastaba, si el chat no estaba abajo del todo la mascota tapaba el último mensaje (QA 24-09) */
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble-row { gap: 0; animation: hx5-burbuja .45s var(--v5-eo) both; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble-row[data-side="left"] + .helix-chat-bubble-row[data-side="right"],
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble-row[data-side="right"] + .helix-chat-bubble-row[data-side="left"] { margin-top: 0; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble { max-width: 66%; padding: 9px 14px; border: 0; border-radius: 19px; font-size: 14px; line-height: 1.38; letter-spacing: -.003em; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--lead { background: var(--v5-bin); color: var(--v5-t1); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--ia { background: var(--v5-acc); color: #fff;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--v5-acc) 70%, transparent); }
  /* lo escrito a mano por el coach: el coral más oscuro (se distingue del bot, como hoy) */
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--alex { padding-left: 14px; border-left: 0; background: var(--bubble-alex-bg); color: #fff;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--bubble-alex-bg) 70%, transparent); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-trailing-time { margin: 5px -4px -3px 10px; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--ia .helix-chat-trailing-time,
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--alex .helix-chat-trailing-time { color: rgba(255, 255, 255, .72); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble .helix-status-manual { color: rgba(255, 255, 255, .92); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--ia .helix-tick,
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--alex .helix-tick { color: rgba(255, 255, 255, .72); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble .helix-tick--read { color: #fff; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble .helix-tick--failed { color: #FFE3E0; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble .helix-status-fallo { color: #FFE3E0; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--ia .helix-chat-link,
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble--alex .helix-chat-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-puntos i { background: rgba(255, 255, 255, .85); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-day-divider { margin: 6px 0; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-day-divider-label { padding: 0; border-radius: 0; background: none; box-shadow: none;
    font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-nuevos { color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-nuevos::before,
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-nuevos::after { background: color-mix(in srgb, var(--v5-acc) 40%, transparent); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-porque-btn { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bajar { bottom: var(--hx5-bajar, 96px); color: var(--v5-t1); background: var(--v5-glass);
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 8px 20px -10px rgba(0, 0, 0, .4); }

  /* ═══ Redactor: «+» redondo y cápsula de cristal (.compo, .field y .send del prototipo), con TODOS sus botones ═══ */
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-preview { margin: 0 20px 8px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--v5-card);
    box-shadow: var(--v5-sh1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-preview[hidden] { display: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-ventana-aviso { margin: 0 20px 8px; padding: 9px 14px; border: 0; border-radius: 14px; font-size: 12.5px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar { position: relative; isolation: isolate; align-items: flex-end; gap: 6px; padding: 8px 20px 20px;
    border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar::before { content: ""; position: absolute; z-index: -1; left: 76px; right: 20px; top: 8px; bottom: 20px;
    border-radius: 23px; background: var(--v5-glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 10px 26px -14px rgba(0, 0, 0, .35); transition: box-shadow .25s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar:not(:has(> [data-action="attach"]))::before,
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar.is-recording::before { left: 20px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar:focus-within::before { box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge),
    0 0 0 3px color-mix(in srgb, var(--v5-acc) 25%, transparent), 0 10px 26px -14px rgba(0, 0, 0, .35); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-btn::after,
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send::after { content: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-btn { width: 34px; height: 34px; min-width: 34px; min-height: 34px; margin: 0 0 6px; padding: 0; border-radius: 50%;
    background: transparent; color: var(--v5-t2); transition: background .2s var(--v5-eo), color .2s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-btn:hover { background: color-mix(in srgb, var(--v5-t1) 8%, transparent); color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-btn svg { width: 18px; height: 18px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar > [data-action="attach"] { width: 46px; height: 46px; min-width: 46px; min-height: 46px;
    margin: 0 4px 0 0; color: var(--v5-t1); background: var(--v5-glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 6px 18px -10px rgba(0, 0, 0, .35); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar > [data-action="attach"]:hover { background: var(--v5-glass); transform: translateY(-1px); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input-bar > .hx-rr-btn { margin-left: 6px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input { flex: 1; min-width: 0; height: 46px; min-height: 46px; max-height: 120px; margin: 0; padding: 13px 8px 13px 10px;
    border: 0; border-image: none; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 14px; line-height: 20px; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input:focus { border: 0; outline: 0; background: transparent; box-shadow: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-input::placeholder { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send,
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send:hover { width: 34px; height: 34px; min-width: 34px; min-height: 34px; margin: 0 6px 6px 0; padding: 0;
    border-radius: 50%; background: var(--v5-acc); color: #fff; filter: none; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send:hover { filter: brightness(1.08); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--v5-acc) 70%, transparent); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send:active { transform: scale(.94); }
  html.hx-v5 .helix-app #helix-detail-panel .helix-lead-detail-send svg { width: 15px; height: 15px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-recording { min-height: 46px; padding: 0 0 0 14px; }
  html.hx-v5 .helix-app #helix-detail-panel .helix-composer-recording .helix-icon-btn { margin-bottom: 0; }

  /* ═══ «Helix Agent propone» (.agent del prototipo): cristal, mascota asomando y sombra coral ═══ */
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent { display: flex; flex: none; position: relative; z-index: 2; align-items: center; gap: 14px;
    margin: 54px 20px 10px; padding: 16px 16px 16px 136px; border-radius: 24px; color: var(--v5-t1);
    background: var(--v5-glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), var(--v5-shg);
    animation: hx5-entra .6s var(--v5-eo) backwards; transition: transform .25s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent:hover { transform: translateY(-2px); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent.sin-masc { padding-left: 18px; margin-top: -8px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent.is-pensando:not(.sin-masc) { margin-top: 44px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-asoma { position: absolute; z-index: 3; left: 4px; top: -54px; pointer-events: none; line-height: 0;
    animation: hx5-asoma .8s var(--v5-eo) .25s both; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent.is-pensando .hx5-asoma { left: 14px; top: -44px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent p { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.42; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent p b { display: block; width: max-content; max-width: 100%; margin-bottom: 3px; font-size: 12px; font-weight: 600;
    background: var(--v5-sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-txt { display: block; white-space: pre-line; overflow-wrap: anywhere; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-bt { flex: none; display: flex; align-items: center; gap: 8px; }
  /* descartar: pequeño, en la esquina; la tarjeta crece lo justo para que nunca pise a los botones */
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent:has(.hx5-agent-x) { min-height: 92px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-x { position: absolute; top: 7px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--v5-t3); cursor: pointer; opacity: .75;
    transition: background .2s var(--v5-eo), color .2s var(--v5-eo), opacity .2s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-x:focus-visible { opacity: 1; outline: 2px solid var(--v5-acc); outline-offset: 1px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-x:hover { opacity: 1; color: var(--v5-t1); background: color-mix(in srgb, var(--v5-t1) 8%, transparent); }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-bt .hx5-btn-a,
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-bt .hx5-btn-g { white-space: nowrap; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-agent-bt :focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-puntos { display: flex; gap: 4px; margin-top: 7px; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-puntos i { width: 6px; height: 6px; border-radius: 50%; background: var(--v5-t2); animation: hx5-punto 1.2s ease-in-out infinite; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-puntos i:nth-child(2) { animation-delay: .15s; }
  html.hx-v5 .helix-app #helix-detail-panel .hx5-puntos i:nth-child(3) { animation-delay: .3s; }
  /* sin respuesta automática del bot: la tarjeta que la pide (su aspecto, en helix-v5-base.css) */
  html.hx-v5 .helix-app #helix-detail-panel .hx5-sugerir { display: flex; flex: none; margin: -4px 20px 10px; }
}

/* ── Modo claro «lb-b»: chips y burbujas con borde de luz para no quedar blanco sobre blanco ── */
@media (min-width: 1024px) {
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-canal-pill,
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-vista-chip { box-shadow: 0 0 0 .5px var(--v5-line), 0 1px 2px rgba(30, 30, 90, .06); }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-canal-pill.is-on,
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-vista-chip.is-on { box-shadow: none; }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-detail-panel .helix-chat-bubble--lead { box-shadow: 0 6px 16px -10px rgba(30, 30, 90, .18); }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-detail-panel .helix-chat-bubble-row .helix-audio-player { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  html.hx-v5 .helix-app .hx5-bcab *, html.hx-v5 .helix-app #helix-content .helix-lead-row, html.hx-v5 .helix-app .hx5-tareas-lead,
  html.hx-v5 .helix-app #helix-detail-panel .helix-chat-bubble-row, html.hx-v5 .helix-app .hx5-agent, html.hx-v5 .helix-app .hx5-asoma,
  html.hx-v5 .helix-app .hx5-sugerir-btn, html.hx-v5 .helix-app #helix-content .helix-hoy { animation: none; }
  html.hx-v5 .helix-app #helix-content .helix-lead-row:hover, html.hx-v5 .helix-app .hx5-agent:hover,
  html.hx-v5 .helix-app #helix-content .helix-list-access:hover { transform: none; }
}

/* Vacío de un filtro o una búsqueda sin resultados: texto y «Quitar el filtro» (escritorio y móvil) */
html.hx-v5 .helix-app #helix-content .hx5-vacio > span { display: block; }
html.hx-v5 .helix-app #helix-content .hx5-vacio-quitar { margin-top: 12px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--v5-t1); background: var(--v5-card); box-shadow: var(--v5-sh1); cursor: pointer; }
html.hx-v5 .helix-app #helix-content .hx5-vacio-quitar[hidden] { display: none; }
html.hx-v5 .helix-app #helix-content .hx5-vacio-quitar:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
