/* Helix · panel v5 · movil-bandeja: todo cuelga de html.hx-v5 y va dentro de @media (max-width: 1023px) (plan: docs/plans/panel-v5-fd90).
   La lista de la Bandeja en móvil, variante A «Mensajería» (prototipo/gen_movil.py: bandeja_a y las reglas .bv-*): el
   buscador de siempre con la forma del prototipo, fichas de filtro, «Hoy» en una línea, secciones y filas flotantes.
   Las filas y las secciones las pone helix-v5-bandeja.js (las MISMAS que en escritorio, cada tamaño con su CSS); el
   lápiz de nuevo lead y las fichas los añade helix-v5-movil-bandeja.js (clase hx5b). El título grande y la barra
   inferior son del shell móvil (helix-v5-movil-shell.*). Sin !important. */

@media (max-width: 1023px) {
  /* ═══ Tokens (prototipo: --bv-sh y --mpill) ═══ */
  html.hx-v5[data-theme="dark"] .helix-app { --hx5mb-pill: var(--hx5m-pill, rgba(255, 255, 255, .08));
    --hx5mb-sh: inset 0 .5px 0 rgba(255, 255, 255, .06), 0 10px 22px -14px rgba(0, 0, 0, .85), 0 24px 40px -30px color-mix(in srgb, var(--v5-acc) 34%, transparent); }
  html.hx-v5:not([data-theme="dark"]) .helix-app { --hx5mb-pill: var(--hx5m-pill, rgba(40, 20, 15, .06));
    --hx5mb-sh: 0 1px 2px rgba(70, 30, 20, .06), 0 10px 22px -15px rgba(70, 30, 20, .3); }

  /* ═══ Columna: 16 px a los lados, sin losa (el fondo de brasa es del shell) ═══ */
  html.hx-v5 .helix-app #helix-content .helix-inbox-scroll { padding: 2px 16px 24px; }

  /* ═══ Buscador de siempre con la forma de bv-busca; el filtro fino sigue dentro (su hoja) ═══ */
  html.hx-v5 .helix-app #helix-content .helix-inbox-search-wrap { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; background: transparent; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search { flex: 1; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 4px 0 12px; gap: 8px; border: 0;
    border-image: none; border-radius: 13px; color: var(--v5-t2); background: var(--hx5mb-pill); background-image: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: box-shadow .25s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--v5-acc) 30%, transparent); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search > svg { flex: none; width: 18px; height: 18px; }
  /* 16 px: iOS no amplía la página al enfocar el campo */
  html.hx-v5 .helix-app #helix-content .helix-inbox-search input { min-width: 0; font-size: 16px; letter-spacing: -.01em; color: var(--v5-t1); background: transparent; border: 0; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search input::placeholder { color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn { position: relative; flex: none; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--v5-t2); background: transparent; box-shadow: none; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn svg { width: 18px; height: 18px; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn:active { background: color-mix(in srgb, var(--v5-t1) 8%, transparent); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-filter-btn.hx5-activo::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
    border-radius: 50%; background: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-search [data-action="nuevo-lead"] { display: none; }   /* va como lápiz en la cabecera */

  /* lápiz de nuevo lead: botón redondo de cristal en la cabecera del shell (o junto al buscador si no hay hueco) */
  html.hx-v5 .helix-app .hx5mb-circ { width: 42px; height: 42px; flex: none; padding: 0; border: 0; display: flex; align-items: center; justify-content: center;
    color: var(--v5-t1); cursor: pointer; --r: 999px; --drop: 0 8px 20px -12px rgba(0, 0, 0, .45); transition: transform .12s var(--v5-eo); }
  html.hx-v5:not([data-theme="dark"]) .helix-app .hx5mb-circ { --drop: 0 8px 20px -12px rgba(80, 30, 15, .3); }
  html.hx-v5 .helix-app .hx5mb-circ svg { width: 19px; height: 19px; }
  html.hx-v5 .helix-app .hx5mb-circ:active { transform: scale(.94); }
  html.hx-v5 .helix-app .hx5mb-circ:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app .hx5mb-circ[hidden] { display: none; }
  html.hx-v5 .helix-app .hx5mb-circ.hx5mb-en-busca { width: 40px; height: 40px; }

  /* ═══ Fichas de filtro (bv-filtros): accionan los chips de siempre, que se ocultan ═══ */
  html.hx-v5 .helix-app #helix-content .helix-canal-pills { display: none; }
  html.hx-v5 .helix-app #helix-content .hx5mb-filtros { display: flex; gap: 6px; margin: 0 -16px 20px; padding: 0 16px; overflow-x: auto; scrollbar-width: none;
    overscroll-behavior-x: contain; }
  html.hx-v5 .helix-app #helix-content .hx5mb-filtros::-webkit-scrollbar { display: none; }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 0;
    border-radius: 999px; color: var(--v5-t1); background: var(--hx5mb-pill); font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
    white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background .25s var(--v5-eo), color .25s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f em { font-style: normal; color: var(--v5-t2); font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f.on { color: var(--hx5-acct); font-weight: 600; background: color-mix(in srgb, var(--v5-acc) 16%, transparent); }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f.on em { color: inherit; }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f:active { transform: scale(.96); }
  html.hx-v5 .helix-app .hx5mb-filtros .hx5f:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: -2px; }

  /* ═══ «Hoy» en una línea (esperando · llamadas · calientes · tareas) que despliega la tarjeta de siempre ═══ */
  html.hx-v5 .helix-app #helix-content .helix-hoy-caja { margin: -6px 0 20px; gap: 8px; }
  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: 10px; box-sizing: border-box; width: 100%; min-height: 46px; padding: 12px 14px 12px 16px;
    border: 0; border-radius: 18px; color: var(--v5-t1); background: var(--v5-row); box-shadow: var(--hx5mb-sh); font: inherit; font-size: 14.5px; line-height: 1.4;
    text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--v5-eo); }
  html.hx-v5 .helix-app .hx5-hoy-res:active:not(:disabled) { transform: scale(.985); }
  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; }
  html.hx-v5 .helix-app .hx5-hoy-res-c { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 1px; overflow: hidden; color: var(--v5-t2); }
  html.hx-v5 .helix-app .hx5-hoy-res-c > span { position: relative; white-space: nowrap; }
  html.hx-v5 .helix-app .hx5-hoy-res-c > span + span::before { content: "·"; position: absolute; left: -10.5px; color: var(--v5-t3); }
  html.hx-v5 .helix-app .hx5-hoy-res-c b { font-weight: 600; color: var(--v5-t1); 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; width: 16px; height: 16px; 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 #helix-content .helix-hoy,
  html.hx-v5 .helix-app #helix-content .helix-primeros { padding: 12px 10px 8px; border: 0; border-radius: 20px; background: var(--v5-row); box-shadow: var(--hx5mb-sh); animation: none; }
  html.hx-v5 .helix-app #helix-content .hx5-hoy-abierto > .helix-hoy { animation: hx5-entra .35s var(--v5-eo) both; }
  html.hx-v5 .helix-app #helix-content .helix-hoy-titulo { margin: 0 8px 4px; font-size: 12.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: 44px; padding: 6px 8px; gap: 10px; border-radius: 12px; font-size: 14.5px; color: var(--v5-t1);
    -webkit-tap-highlight-color: transparent; }
  html.hx-v5 .helix-app #helix-content .helix-hoy-linea:active { 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 { min-width: 24px; height: 24px; color: var(--hx5-acct); background: color-mix(in srgb, var(--v5-acc) 16%, transparent); }
  html.hx-v5 .helix-app #helix-content .helix-hoy.is-vacio { padding: 12px 14px; }
  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 { font-size: 14px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-primeros-titulo { font-size: 14.5px; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .helix-primeros-barra i { background: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-primeros-linea { min-height: 40px; font-size: 14px; }
  html.hx-v5 .helix-app #helix-content .helix-primeros-accion { color: var(--hx5-acct); }

  /* tareas pendientes dentro de «Hoy» (T9b): casilla de 22 px con objetivo táctil de 44 */
  html.hx-v5 .helix-app #helix-content .helix-hoy .hx5-tareas { margin: 6px 0 0; padding: 8px 0 0; border-top: .5px solid var(--v5-line); }
  html.hx-v5 .helix-app #helix-content .helix-hoy-caja > .hx5-tareas { padding: 12px 10px 8px; border-radius: 20px; background: var(--v5-row); box-shadow: var(--hx5mb-sh); }
  html.hx-v5 .helix-app #helix-content .hx5-tareas-cab { display: flex; align-items: center; gap: 6px; margin: 0 8px 4px; font-size: 12.5px; font-weight: 600; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .hx5-tareas-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--v5-t2); background: var(--hx5mb-pill); }
  html.hx-v5 .helix-app #helix-content .hx5-tareas-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea { display: flex; align-items: flex-start; gap: 12px; padding: 8px; border-radius: 12px; transition: opacity .35s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .hx5-check { position: relative; flex: none; width: 22px; height: 22px; margin: 0; padding: 0; border: 1.5px solid var(--v5-t3);
    border-radius: 7px; color: #fff; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: background .2s var(--v5-eo), border-color .2s var(--v5-eo), transform .12s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .hx5-check::after { content: ""; position: absolute; inset: -11px; }
  html.hx-v5 .helix-app #helix-content .hx5-check svg { width: 14px; height: 14px; 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 #helix-content .hx5-check:active { transform: scale(.9); }
  html.hx-v5 .helix-app #helix-content .hx5-check:focus-visible { outline: 2px solid var(--v5-acc); outline-offset: 2px; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea.is-hecha .hx5-check { border-color: var(--v5-acc); background: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .hx5-tarea.is-hecha .hx5-check svg { opacity: 1; transform: none; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea.is-hecha .hx5-tarea-tit { color: var(--v5-t3); text-decoration: line-through; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-tit { font-size: 14.5px; line-height: 1.35; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-meta { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; color: var(--v5-t2); white-space: nowrap; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-sep { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .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; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--v5-t1) 28%, transparent); }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-vence { flex: none; font-variant-numeric: tabular-nums; }
  html.hx-v5 .helix-app #helix-content .hx5-tarea-vence.is-vencida { color: var(--hx5-acct); font-weight: 600; }
  html.hx-v5 .helix-app #helix-content .hx5-tareas-mas { min-height: 36px; margin: 0 0 2px 42px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px;
    font-weight: 500; color: var(--hx5-acct); cursor: pointer; }

  /* ═══ Filas «Mensajería» (bv-fila): tarjetas finas, flotantes y separadas ═══ */
  html.hx-v5 .helix-app #helix-content .helix-inbox-section { margin: 0 0 16px; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-body { display: flex; flex-direction: column; gap: 7px; padding: 0; background: transparent; border: 0; }
  html.hx-v5 .helix-app #helix-content .hx5-fila { box-sizing: border-box; display: flex; align-items: center; gap: 12px; height: auto; min-height: 0; margin: 0;
    padding: 10px 14px 10px 10px; border: 0; border-radius: 20px; overflow: visible; transform: none; color: var(--v5-t1); background: var(--v5-row);
    box-shadow: var(--hx5mb-sh); cursor: pointer; animation: none; -webkit-tap-highlight-color: transparent;
    transition: transform .2s var(--v5-eo), background .45s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .hx5-fila::before { display: none; }
  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; }
  /* en móvil no hay ficha al lado: la fila del último lead abierto no se marca */
  html.hx-v5 .helix-app #helix-content .hx5-fila.is-active { background: var(--v5-row); box-shadow: var(--hx5mb-sh); }
  /* entrada escalonada solo al llegar a la pantalla (helix-v5-bandeja.js pone data-hx5-entra) y la del 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; }

  /* avatar relleno con el color de cada persona (o su foto) y la temperatura como punto */
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av { position: relative; flex: none; box-sizing: border-box; width: 46px; height: 46px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--hx5-avt, var(--v5-t1)); background: var(--hx5-avf, var(--v5-card2));
    font-size: 15.5px; font-weight: 600; letter-spacing: .02em; }
  html.hx-v5:not([data-theme="dark"]) .helix-app #helix-content .helix-lead-row .hx5-av { color: var(--hx5-avtl, var(--v5-t1)); background: var(--hx5-avfl, #EEE); }
  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: 20px; height: 20px; }
  html.hx-v5 .helix-app #helix-content .helix-lead-row .hx5-av i { position: absolute; right: 0; bottom: 0; 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-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: 6px; 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: 16.5px; font-weight: 400; letter-spacing: -.015em; line-height: 22px; color: inherit; }
  /* canal, verificado, grados, origen, llamada, cita y etiquetas: ceden antes que el nombre y solo se ven los que caben enteros */
  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: 19px; overflow: hidden; }
  html.hx-v5 .helix-app #helix-content .hx5-chips:empty { display: none; }
  html.hx-v5 .helix-app #helix-content .hx5-ic { display: inline-flex; flex: none; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .hx5-chips svg { width: 14px; height: 14px; }
  html.hx-v5 .helix-app #helix-content .hx5-chips .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-chips .helix-tag,
  html.hx-v5 .helix-app #helix-content .hx5-chips .hx-tag { flex: none; height: 19px; padding: 0 7px; border: 0; border-radius: 999px; box-shadow: none;
    font-size: 11.5px; font-weight: 600; line-height: 19px; }
  html.hx-v5 .helix-app #helix-content .hx5-chips .helix-tag--neutral { color: var(--v5-t2); background: color-mix(in srgb, var(--v5-t1) 8%, transparent); }
  html.hx-v5 .helix-app #helix-content .hx5-chips .helix-tag--accent { color: var(--hx5-acct); background: color-mix(in srgb, var(--v5-acc) 16%, transparent); }
  html.hx-v5 .helix-app #helix-content .hx5-chips .helix-tag--signal { color: var(--v5-ok); background: rgba(52, 199, 89, .16); }
  html.hx-v5 .helix-app #helix-content .hx5-chips .helix-tag--danger { color: var(--danger-text, #FF6961); background: var(--danger-bg, rgba(255, 69, 58, .16)); }
  html.hx-v5 .helix-app #helix-content .hx5-chips .helix-tag--warning { color: var(--warning-text, #FFB020); background: var(--warning-bg, rgba(255, 176, 32, .16)); }
  html.hx-v5 .helix-app #helix-content .hx5-g { flex: none; height: 19px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 19px;
    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 { flex: none; margin-left: auto; padding-left: 8px; font-size: 13.5px; 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: 14.5px; line-height: 20px; 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: 16px; height: 16px; 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: 20px; height: 20px; margin-left: auto; padding: 0 6px;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums; color: #fff; background: var(--v5-acc); box-shadow: none; }
  /* no leídos: nombre en negrita, hora en coral, extracto en primer plano 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); }
  /* «Helix tiene una respuesta» con la carita de la mascota (solo si /sugerencia lo dice) */
  html.hx-v5 .helix-app #helix-content .hx5-helix { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .hx5-helix .hx5-mpose { flex: none; margin: 0 1px 0 2px; }

  /* ═══ Secciones «Te esperan / Calientes / Resto» (bv-sec): el orden visual lo da `order` ═══ */
  html.hx-v5 .helix-app #helix-content .hx5-sec { display: flex; align-items: baseline; gap: 7px; margin: 17px 4px 2px; font-size: 15.5px; font-weight: 600;
    letter-spacing: -.015em; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .hx5-sec span { font-size: 14px; 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; }
  /* el primer título que se vea va pegado arriba */
  html.hx-v5 .helix-app #helix-content [data-lista="principal"]:not(:has(> .hx5-sec[data-hx5-sec="espera"])) > .hx5-sec[data-hx5-sec="caliente"],
  html.hx-v5 .helix-app #helix-content [data-lista="principal"]:not(:has(> .hx5-sec[data-hx5-sec="espera"], > .hx5-sec[data-hx5-sec="caliente"])) > .hx5-sec[data-hx5-sec="resto"] { margin-top: 0; }

  /* filtro rápido «Calientes» (el de la cabecera de escritorio también vale aquí) y su aviso si no queda nadie */
  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: 0 0 12px; padding: 22px 16px; border-radius: 18px; text-align: center; font-size: 14px;
    color: var(--v5-t2); background: var(--v5-col); }

  /* ═══ Accesos (llamadas sin resultado, Potenciales), Archivados, sublistas y vacíos ═══ */
  html.hx-v5 .helix-app #helix-content .helix-list-access { box-sizing: border-box; width: 100%; min-height: 48px; margin: 0 0 14px; padding: 12px 16px; gap: 12px;
    border: 0; border-radius: 18px; font-size: 14.5px; color: var(--v5-t1); background: var(--v5-row); box-shadow: var(--hx5mb-sh);
    -webkit-tap-highlight-color: transparent; transition: transform .2s var(--v5-eo); }
  html.hx-v5 .helix-app #helix-content .helix-list-access:active { transform: scale(.985); }
  html.hx-v5 .helix-app #helix-content .helix-list-access--footer { margin: 8px 0 14px; }
  html.hx-v5 .helix-app #helix-content .helix-list-access-icon { color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-list-access--pendientes .helix-list-access-icon { color: var(--v5-acc); }
  html.hx-v5 .helix-app #helix-content .helix-list-access-count { font-size: 13.5px; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-list-access-count--danger { color: var(--hx5-acct); }
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-header { min-height: 40px; padding: 4px 4px 8px; }
  html.hx-v5 .helix-app #helix-content .helix-inbox-section-label-muted { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; text-transform: none; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-empty { padding: 24px 12px; text-align: center; font-size: 14px; color: var(--v5-t3); }
  html.hx-v5 .helix-app #helix-content .helix-list-back { min-height: 40px; margin: 0 0 6px; padding: 0 2px; gap: 6px; font-size: 14.5px; color: var(--v5-t2); }
  html.hx-v5 .helix-app #helix-content .helix-list-header { padding: 0 4px 14px; }
  html.hx-v5 .helix-app #helix-content .helix-list-header .t-h4 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--v5-t1); }
  html.hx-v5 .helix-app #helix-content .helix-list-header .t-caption { font-size: 13.5px; color: var(--v5-t2); }

  /* «Tira para actualizar» con el cristal v5 */
  html.hx-v5 .helix-ptr { border: 0; color: var(--v5-t1); font-family: var(--v5-font); font-size: 13.5px; 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 -12px rgba(0, 0, 0, .45); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  html.hx-v5 .helix-app #helix-content .hx5-fila, html.hx-v5 .helix-app #helix-content .hx5-hoy-abierto > .helix-hoy { animation: none; }
  html.hx-v5 .helix-app #helix-content .hx5-fila:active, html.hx-v5 .helix-app .hx5-hoy-res:active:not(:disabled),
  html.hx-v5 .helix-app #helix-content .helix-list-access:active { transform: none; }
}

/* Cabecera móvil (QA 24-09, la pinta helix-v5-movil-shell.js): si el título no cabe, los botones secundarios pasan a «⋯»
   y, como último recurso, el título baja de tamaño. Aquí porque helix-v5-movil-shell.css está al límite de tamaño. */
@media (max-width: 1023px) {
  html.hx-v5 .helix-app .hx5m-cab-mas { display: none; }
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-plegar > .hx5m-cab-mas { flex: none; width: 42px; height: 42px; margin: 0; padding: 0; display: inline-flex;
    align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--v5-t1); background: var(--v5-glass); cursor: pointer;
    -webkit-backdrop-filter: var(--hx5m-gl); backdrop-filter: var(--hx5m-gl); box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), var(--hx5m-circ-sh); }
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-plegar > .hx5m-cab-mas svg { width: 20px; height: 20px; }
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-plegar > .helix-ayuda-btn,
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-plegar > .hx5m-cab-acc { display: none; }
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-t26 .helix-mobile-header-title { font-size: 26px; }
  html.hx-v5 .helix-app .helix-mobile-header.hx5m-t22 .helix-mobile-header-title { font-size: 22px; }
  html.hx-v5 .hx5m-cab-menu { display: block; position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right)); min-width: 200px; padding: 6px; border-radius: 18px;
    background: var(--hx5m-base); box-shadow: inset 0 .5px 0 var(--v5-hl), 0 0 0 .5px var(--v5-edge), 0 18px 40px rgba(0, 0, 0, .28); }
  html.hx-v5 .hx5m-cab-menu button { display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; text-align: left;
    font: 500 15px var(--v5-font); color: var(--v5-t1); background: transparent; cursor: pointer; }
  html.hx-v5 .hx5m-cab-menu button:active, html.hx-v5 .hx5m-cab-menu button:focus-visible { background: color-mix(in srgb, var(--v5-t1) 8%, transparent); outline: none; }
}
