/* ═══ Activos hoy (js/54-activos-hoy.js) ═══
   El pulso del día del coach: anillo, línea de tiempo, tres cifras y el feed
   de quién hizo qué. Verde entrena, dorado registra, azul revisa su plan. */
#m-activos .msheet{max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;padding:0;
  background:radial-gradient(120% 50% at 50% 0,rgba(127,224,166,.1),transparent 60%),linear-gradient(180deg,#121317,#0b0c0f)}
#m-activos .mhandle{flex:none}
#aho-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overscroll-behavior-y:none;-webkit-overflow-scrolling:touch;padding:4px 16px calc(22px + env(safe-area-inset-bottom,0px))}
.aho-hero{display:grid;justify-items:center;text-align:center;padding:6px 0 14px}
.aho-ring{position:relative;width:86px;height:86px;display:grid;place-items:center;margin-bottom:12px}
.aho-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.aho-ring circle{fill:none;stroke-width:6;stroke-linecap:round}
.aho-ring .trk{stroke:rgba(255,255,255,.07)}
.aho-ring .val{stroke:#7fe0a6;stroke-dasharray:calc(var(--p) * 1) 100}
.aho-ring b{font:850 30px/1 "Inter",sans-serif;letter-spacing:-.03em;color:#f4f4f6;font-variant-numeric:tabular-nums}
.aho-kicker{display:inline-flex;align-items:center;gap:7px;font:800 10px/1 "Inter",sans-serif;letter-spacing:1.4px;text-transform:uppercase;color:#7fe0a6}
.aho-live{width:7px;height:7px;border-radius:50%;background:#7fe0a6;box-shadow:0 0 0 0 rgba(127,224,166,.6);animation:aho-live 2s ease-out infinite}
@keyframes aho-live{0%{box-shadow:0 0 0 0 rgba(127,224,166,.55)}100%{box-shadow:0 0 0 9px rgba(127,224,166,0)}}
.aho-title{margin-top:8px;font:850 20px/1.2 "Inter",sans-serif;letter-spacing:-.015em;color:#f6f6f8;text-wrap:balance}
.aho-sub{margin-top:4px;font:600 12.5px/1.4 "Inter",sans-serif;color:rgba(236,238,245,.6)}

/* Pulso del día */
.aho-pulse{margin:4px 2px 16px}
.aho-track{position:relative;height:30px;border-radius:999px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.aho-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,rgba(127,224,166,.02),rgba(127,224,166,.12))}
.aho-now{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;border-radius:2px;background:#f3dc93;box-shadow:0 0 8px rgba(243,220,147,.7)}
.aho-dot{position:absolute;top:50%;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;background:#9aa6bd;box-shadow:0 0 0 2px #121317}
.aho-dot.is-train{background:#7fe0a6;box-shadow:0 0 0 2px #121317,0 0 10px rgba(127,224,166,.6)}
.aho-dot.is-log{background:#f0d088}
.aho-dot.is-plan{background:#8fb4ff}
.aho-ticks{position:relative;height:16px;margin-top:5px}
.aho-tick{position:absolute;transform:translateX(-50%);font:600 10px/16px "Inter",sans-serif;color:rgba(236,238,245,.4);font-variant-numeric:tabular-nums}

/* Tres cifras */
.aho-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
.aho-stat{--c:#7fe0a6;display:grid;justify-items:center;gap:3px;padding:12px 6px;border-radius:16px;text-align:center;
  background:color-mix(in srgb,var(--c) 7%,rgba(255,255,255,.02));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent)}
.aho-stat.is-plan{--c:#8fb4ff}.aho-stat.is-log{--c:#f0d088}
.aho-stat svg{width:16px;height:16px;fill:none;stroke:var(--c);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aho-stat b{font:850 22px/1 "Inter",sans-serif;color:#f4f4f6;font-variant-numeric:tabular-nums}
.aho-stat span{font:700 11px/1.15 "Inter",sans-serif;color:rgba(236,238,245,.66)}

/* Feed */
.aho-sec{margin:0 4px 8px;text-align:center;font:800 10px/1 "Inter",sans-serif;letter-spacing:1.3px;text-transform:uppercase;color:rgba(236,238,245,.45)}
.aho-feed{display:grid;gap:8px}
.aho-row,.aho-arow{--c:#9aa6bd;display:flex;align-items:center;gap:8px;padding:10px 10px 10px 12px;border-radius:18px;
  background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.aho-row.is-train{--c:#7fe0a6;box-shadow:inset 0 0 0 1px rgba(127,224,166,.2);background:linear-gradient(90deg,rgba(127,224,166,.06),rgba(255,255,255,.02) 55%)}
.aho-row.is-log{--c:#f0d088}.aho-row.is-plan{--c:#8fb4ff}
.aho-main{flex:1;min-width:0;display:flex;align-items:flex-start;gap:11px;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.aho-av{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;font:800 13.5px/1 "Inter",sans-serif;color:var(--c);
  background:color-mix(in srgb,var(--c) 12%,#14151a);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c) 50%,transparent)}
.aho-body{flex:1;min-width:0;display:grid;gap:3px}
.aho-top{display:flex;align-items:baseline;gap:8px}
.aho-top b,.aho-arow .aho-body b{flex:1;min-width:0;font:750 14.5px/1.25 "Inter",sans-serif;color:#f4f4f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aho-top time{flex:none;font:700 12px/1 "Inter",sans-serif;color:rgba(236,238,245,.55);font-variant-numeric:tabular-nums}
.aho-when{font:500 12px/1.3 "Inter",sans-serif;color:rgba(236,238,245,.6)}
.aho-lvl{font-weight:750;color:var(--c)}
.aho-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.aho-chips i{--k:#9aa6bd;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:99px;font:700 11px/1.25 "Inter",sans-serif;font-style:normal;
  color:var(--k);background:color-mix(in srgb,var(--k) 13%,transparent)}
.aho-chips i.is-train{--k:#7fe0a6}.aho-chips i.is-log{--k:#f0d088}.aho-chips i.is-plan{--k:#8fb4ff}
.aho-chips svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.aho-fotos{display:flex;align-items:center;gap:5px;margin-top:5px}
.aho-fotos img,.aho-foto-ph{width:40px;height:40px;border-radius:10px;object-fit:cover;background:rgba(240,208,136,.12);box-shadow:0 0 0 1px rgba(240,208,136,.25)}
.aho-fotos em{font:700 11px/1 "Inter",sans-serif;font-style:normal;color:#f0d088}
.aho-chat{flex:none;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:#f3dc93;
  border:1px solid rgba(243,220,147,.3);background:rgba(201,168,76,.1)}
.aho-chat svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Aún no entran */
.aho-away{margin-top:16px;border-radius:18px;background:rgba(255,255,255,.02);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);overflow:hidden}
.aho-away summary{display:flex;align-items:center;gap:9px;padding:13px 14px;cursor:pointer;list-style:none;font:800 13px/1.2 "Inter",sans-serif;color:#f4f4f6}
.aho-away summary::-webkit-details-marker{display:none}
.aho-away summary svg{width:16px;height:16px;fill:none;stroke:rgba(236,238,245,.55);stroke-width:2;stroke-linecap:round}
.aho-away summary em{margin-left:auto;padding:3px 9px;border-radius:99px;font:800 11px/1.2 "Inter",sans-serif;font-style:normal;color:rgba(236,238,245,.7);background:rgba(255,255,255,.07)}
.aho-away .aho-arow{border-radius:0;background:none;box-shadow:none;border-top:1px solid rgba(255,255,255,.05)}
.aho-arow .aho-main{align-items:center}
.aho-arow .aho-av{width:36px;height:36px;font-size:12px}

@media (prefers-reduced-motion:reduce){.aho-live{animation:none}}

/* La píldora del saludo abre la hoja: chevron en vez del aspa del filtro */
.adm-hp-open .adm-hp-chev{width:13px;height:13px;margin-left:2px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
/* Cada foto abre la hoja de comidas en esa foto */
.aho-foto{display:inline-flex;border-radius:10px;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.aho-foto:active{transform:scale(.93)}
.aho-fotos em[role=button]{cursor:pointer;padding:6px 4px}

/* Entrenando ahora (js/59-entrenando-ahora.js) */
.aho-row.is-live{--c:#5ddb8a;box-shadow:inset 0 0 0 1.5px rgba(93,219,138,.45),0 0 22px -10px rgba(93,219,138,.6);
  background:linear-gradient(90deg,rgba(93,219,138,.12),rgba(255,255,255,.02) 60%)}
.aho-dot.is-live{background:#5ddb8a;box-shadow:0 0 0 2px #121317,0 0 12px rgba(93,219,138,.8)}
.aho-pip{position:relative;display:inline-block;width:7px;height:7px;margin:0 6px 1px 0;border-radius:50%;background:#5ddb8a;vertical-align:middle}
.aho-pip::after{content:"";position:absolute;inset:0;border-radius:50%;background:#5ddb8a;animation:iq-live-ping 1.6s cubic-bezier(0,0,.2,1) infinite}
@media (prefers-reduced-motion:reduce){.aho-pip::after{animation:none}}
