/* ===== DISEÑO MÓVIL EXCLUSIVO (body.mob) — vertical, tipo historia =====
   Cabecera: barra de progreso por pasos + fase/paso + puesto.
   Centro: lo que hace el agente, grande. Abajo: el artículo formándose.
   El lienzo queda de fondo, atenuado. «html body.mob» gana a las reglas responsive. */
html body.mob{overflow:hidden;background:#05070d}
html body.mob:not(.fmt) #frame{height:100dvh;display:flex;flex-direction:column}
html body.mob .topbar{padding:8px 12px;gap:8px;flex-wrap:nowrap;min-height:44px}
html body.mob .topbar .pill,html body.mob .topbar .ctl{display:none}
html body.mob .brand img{height:22px}html body.mob .brand span{display:none}
html body.mob .app{display:block;position:relative;flex:1;height:auto;min-height:0;overflow:hidden;grid-template-columns:none}
html body.mob .view{position:absolute;inset:0;overflow:hidden;display:block;height:auto;min-height:0}
html body.mob .stage{position:absolute;inset:0;height:auto;min-height:0}
html body.mob canvas{opacity:.28;filter:saturate(1.2)}
/* barra de historia */
html body.mob .tl{top:8px;bottom:auto;left:12px;right:12px;height:3px;gap:3px;z-index:6}
html body.mob .tls{border-radius:2px;min-width:2px}html body.mob .tls span{display:none}
html body.mob .tlh{top:-3px;bottom:-3px;width:2px}
/* fase y paso */
html body.mob .now{top:20px;bottom:auto;left:12px;right:12px;max-width:none;width:auto;background:none;border:0;padding:0;backdrop-filter:none;transform:none;text-align:left;z-index:6}
html body.mob .now .k{font-size:9.5px}html body.mob .now .t{font-size:19px;margin:2px 0 0;line-height:1.15}html body.mob .now .o{display:none}
/* contador: una sola cifra, arriba a la derecha */
html body.mob .hud{position:fixed;top:9px;right:12px;left:auto;max-width:none;z-index:40}
html body.mob .hud .c{display:none;padding:3px 9px;border-radius:999px;background:rgba(15,22,38,.85)}
html body.mob .hud .c:first-child{display:flex;align-items:baseline;gap:5px}
html body.mob .hud .c b{font-size:13px}html body.mob .hud .c span{font-size:10px}
/* puesto */
html body.mob .role{top:70px;bottom:auto;left:12px;right:12px;max-width:none;padding:6px 10px;border-radius:10px;z-index:6;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}
html body.mob .role-k{font-size:8.5px;width:100%}html body.mob .role-t{font-size:14px}html body.mob .role-s{font-size:10.5px}
/* lo que hace el agente */
html body.mob .scene{position:absolute;left:10px;right:10px;top:124px;height:37%;max-height:none;width:auto;margin:0;opacity:1!important;transform:none;overflow:hidden;border-radius:18px;padding:12px;z-index:5}
html body.mob .scene>*{zoom:.9}
html body.mob .gal{height:210px}html body.mob .feedwin{height:200px}html body.mob .code{height:170px}html body.mob .phone .ph-f{height:110px}
html body.mob .phones,html body.mob .tabs5{grid-template-columns:repeat(3,1fr)}
/* el artículo */
html body.mob .side{position:absolute;left:10px;right:10px;bottom:10px;top:calc(124px + 37% + 10px);height:auto!important;padding:0;background:none;border:0;z-index:5;display:flex}
html body.mob .side h3{display:none}
html body.mob #art{flex:1;min-height:0;gap:6px}
html body.mob .dos{flex:none;display:grid;grid-template-columns:repeat(6,1fr);gap:0;border-radius:10px}
html body.mob .dc{padding:4px 2px;text-align:center;border-radius:0;border-right:1px solid #24324f}
html body.mob .dc b{font-size:13px}html body.mob .dc span{font-size:7.5px;line-height:1.1;display:block}
html body.mob .bw{flex:1!important;min-height:0;height:auto!important;border-radius:14px}
html body.mob .bw-bar{padding:5px 8px}html body.mob .bw-url{font-size:9.5px}html body.mob .bw-wc{font-size:9.5px}
html body.mob .a-in{padding:10px 14px 30px}html body.mob .bw h1{font-size:19px}html body.mob .a-sec h2{font-size:14px}html body.mob .a-p{font-size:12px}
html body.mob .a-stamp{font-size:11px;padding:6px 10px}
/* capítulo, portada y cierre */
html body.mob .chap{top:44%;left:50%;padding:12px 16px}html body.mob .chap>b{font-size:34px}html body.mob .ch-t{font-size:22px}html body.mob .ch-s{font-size:12px;max-width:260px}
html body.mob .ov.on{position:absolute;inset:0;z-index:30;overflow:auto;justify-content:flex-start;padding:40px 18px 30px}
html body.mob .ic-t{font-size:26px}html body.mob .oc{grid-template-columns:repeat(2,1fr);gap:8px}html body.mob .oc div{padding:10px}html body.mob .oc b{font-size:22px}
html body.mob .ic-logo{height:38px;margin-bottom:10px}
.mob-hint{margin-top:16px;font-size:11.5px;color:#8b95b0}
html body.mob .rec{position:absolute}
/* tema claro */
html body.mob.light{background:#eef2f9}html body.mob.light .dc{border-right-color:#dbe3ef}html body.mob.light .hud .c{background:rgba(255,255,255,.92)}
html body.mob .role{top:68px;height:58px;overflow:hidden}html body.mob .role-s{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.mob .scene{top:134px}html body.mob .side{top:calc(134px + 37% + 10px)}

/* más artículo en móvil: la escena ocupa menos */
html body.mob .scene{height:30%}html body.mob .side{top:calc(134px + 30% + 8px);transition:top 1s cubic-bezier(.4,0,.2,1)}
html body.mob .dc{padding:3px 2px}html body.mob .dc b{font-size:12px}
/* vitrina final en móvil: el artículo sube y ocupa casi toda la pantalla */
html body.mob.showcase .side{top:70px}
html body.mob.showcase .scene{opacity:0!important}
/* puesto en una línea discreta también en móvil */
html body.mob .role{height:auto;padding:5px 10px;border-radius:999px;display:flex;flex-wrap:nowrap;align-items:baseline;gap:6px;overflow:hidden;white-space:nowrap}
html body.mob .role-k{width:auto;font-size:8px}html body.mob .role-t{font-size:12.5px}html body.mob .role-s{width:auto;font-size:10.5px}
html body.mob .scene{top:112px}html body.mob .side{top:calc(112px + 30% + 8px)}
