/* ==========================================================================
   Diseño elegido por Miguel (23/24-11-2026) · fase 8 «app-general»
   docs/flujos-ux.md §8 bis «Elección del diseño». Artefacto: «Gym · maquetas minimalistas».
   - Una sola letra: Inter.
   - Colores según el móvil (claro de día, oscuro de noche); las mismas formas en los dos modos.
   - Acento: el que cada uno tiene en Ajustes (--accent lo pone applyTheme).
   - Lista tipográfica sin tarjetas: secciones separadas por aire y una línea fina.
   Este archivo va el último: solo cambia el aspecto, no quita nada.
   ========================================================================== */
:root{
  --font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-d:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --bg:#F6F5F2; --surface:#F6F5F2; --surface-2:#ECEAE5; --surface-3:#E2E0DB; --raise:#FFFFFF;
  --line:#E2E0DB; --line-2:#D6D3CC;
  --text:#111111; --muted:#6B6B6B; --faint:#9A9A9A; --glass:rgba(246,245,242,.96); --shadow:rgba(17,17,17,.12);
  --r-lg:18px; --r-md:16px; --r-sm:12px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]):not([data-theme="white"]){
  --bg:#0A0A0A; --surface:#0A0A0A; --surface-2:#171717; --surface-3:#262626; --raise:#161616;
  --line:#262626; --line-2:#363636;
  --text:#F5F5F5; --muted:#9A9A9A; --faint:#626262; --glass:rgba(10,10,10,.96); --shadow:rgba(0,0,0,.6);
} }
:root[data-theme="dark"]{
  --bg:#0A0A0A; --surface:#0A0A0A; --surface-2:#171717; --surface-3:#262626; --raise:#161616;
  --line:#262626; --line-2:#363636;
  --text:#F5F5F5; --muted:#9A9A9A; --faint:#626262; --glass:rgba(10,10,10,.96); --shadow:rgba(0,0,0,.6);
}
:root[data-theme="oled"]{ --bg:#000; --surface:#000; --surface-2:#141414; --surface-3:#242424; --raise:#121212; --line:#222; --line-2:#333; --text:#F5F5F5; --muted:#9A9A9A; --glass:rgba(0,0,0,.96) }
:root[data-theme="light"]{ --bg:#F6F5F2; --surface:#F6F5F2; --surface-2:#ECEAE5; --surface-3:#E2E0DB; --raise:#FFFFFF; --line:#E2E0DB; --line-2:#D6D3CC; --text:#111111; --muted:#6B6B6B; --faint:#9A9A9A; --glass:rgba(246,245,242,.96); color-scheme:light }
:root[data-theme="white"]{ --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F0F0F0; --surface-3:#E4E4E4; --raise:#FFFFFF; --line:#E6E6E6; --line-2:#D4D4D4; --text:#111111; --muted:#6B6B6B; --faint:#9A9A9A; --glass:rgba(255,255,255,.96) }

body{font-family:var(--font);letter-spacing:-.005em}
.num{font-family:var(--font);font-variant-numeric:tabular-nums}
.app{padding-top:22px;padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}

/* cabecera: fecha pequeña y título grande */
.top{margin:10px 0 22px}
.top .date{font-size:15px;font-weight:500;color:var(--muted)}
.top h1{font-family:var(--font);font-weight:800;font-size:40px;letter-spacing:-.025em;line-height:1.05}
.top h1.long{font-size:32px}
h2{font-family:var(--font);font-weight:800;font-size:24px;letter-spacing:-.02em;line-height:1.1}
h3{font-weight:700;font-size:17px;letter-spacing:-.01em}
.sect{margin:34px 0 4px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

/* sin tarjetas: secciones separadas por aire y una línea fina */
.card,.hero-card,.plancard,.livecard,.actcard,.nuhd,.done-card,.en-tile,.hx-banner,.run-card,.gy-lastc,.gy-prs,.gy-cmpl,.gy-vol,.gy-exl,.gy-graf,.gy-prl,.gy-sesl{
  background:transparent!important;border-radius:0!important;box-shadow:none!important;padding:20px 0!important;margin-top:0!important;border-top:1px solid var(--line)}
.plancard::before,.hero-card::before{display:none!important}
.sheet .pn .card,.sheet .pn .hero-card{padding:14px 0!important}
.card.foldrow,button.card{border-top:1px solid var(--line);padding:18px 0!important}
.rtstart{background:transparent;border-radius:0;padding:16px 0;margin-top:0;border-bottom:1px solid var(--line)}
.rtstart .go{width:36px;height:36px;background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.ex{background:transparent;border-radius:0;border-top:1px solid var(--line);padding-left:0;padding-right:0}
.rows li{border-color:var(--line)}

/* botones: una acción principal (acento, pastilla) y el resto en línea */
.primary{border-radius:999px;font-weight:700;letter-spacing:-.01em}
.ghost{border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);font-weight:600}
.sug{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--text);font-weight:600}
.danger{border-radius:999px}
.chip{border-radius:999px}
.seg{background:var(--surface-2);border-radius:999px}
.seg button{border-radius:999px}
.opts button{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--text)}
.opts button.on{background:var(--text);color:var(--bg);box-shadow:none}
.tinylink,.linkbtn{color:var(--muted)}

/* barra inferior: plana, línea fina arriba, activo en texto */
.nav{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;border-top:1px solid var(--line);box-shadow:none}
.nav button{color:var(--muted);font-weight:500}
.nav button.on{color:var(--text);font-weight:600}
.nav button svg{width:24px;height:24px;padding:0;border-radius:0}
.nav button.on svg{background:none;color:var(--text)}
.nav button.livedot::after{top:8px;right:calc(50% - 16px)}
.nav button.inboxdot::before{top:8px;left:calc(50% + 10px)}

/* hojas: el mismo fondo que la pantalla */
.sheet .pn{background:var(--bg);border-top:1px solid var(--line);border-radius:22px 22px 0 0}
.sheet .pn .ex{background:transparent}
.sheet .pn .opt{border-radius:0;background:transparent;border-bottom:1px solid var(--line)}

/* números grandes en Inter, sin letra estrecha */
.big,.nbig,.kpi b,.vs b,.rank,.gy-hero .big{font-family:var(--font);font-weight:800;letter-spacing:-.03em}

/* plegable de «Más de hoy» y similares: lo secundario detrás de un toque */
.pleg{margin-top:28px;border-top:1px solid var(--line)}
.pleg>.pleg-h{display:flex;align-items:center;justify-content:space-between;width:100%;height:52px;font-size:15px;font-weight:600;color:var(--text);text-align:left}
.pleg>.pleg-h small{font-weight:500;color:var(--muted);margin-left:8px}
.pleg>.pleg-h .chev{transition:transform .2s;color:var(--muted)}
.pleg.open>.pleg-h .chev{transform:rotate(90deg)}
.pleg>.pleg-b[hidden]{display:none}
.pleg>.pleg-b{padding-bottom:8px}

/* ---------------- Hoy (forma de B) ---------------- */
.hoyb .top{text-align:center;margin:4px 0 0}
.hoyb .top h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hoyb .topbtns{display:none}
.hoy-hero{text-align:center;padding:18px 0 6px!important;border-top:0!important}
.hoy-hero .k{display:none}
.hoy-hero h2{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:8px auto 0;max-width:12ch}
.hoy-hero .hoy-sub{margin:10px 0 0;font-size:15px;color:var(--muted)}
.hoy-hero .primary{display:inline-flex;align-items:center;justify-content:center;width:200px;height:56px;margin:26px auto 0;font-size:18px;flex:none}
.hoy-hero .ghost{display:inline-flex;align-items:center;justify-content:center;width:auto;padding:0 22px;height:48px;margin:22px auto 0}
.hoy-hero .hoy-otros{margin:14px 0 0;display:flex;flex-direction:column;gap:6px;align-items:center}
.hoy-hero .hoy-otros button{font-size:14px;font-weight:600;color:var(--muted)}
.hoy-hero .hoy-hecho{margin:12px 0 0;color:var(--muted);font-size:15px}
.nucard.nuring{display:flex;flex-direction:column;align-items:center;text-align:center;border-top:0!important;padding:30px 0 4px!important}
.nuring .ring{position:relative;width:220px;height:220px}
.nuring .ring svg{display:block}
.nuring .ring .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.nuring .ring .c .nv{font-size:50px;font-weight:800;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.nuring .ring .c small{margin-top:6px;font-size:14px;color:var(--muted)}
.nuring .ring .c button{margin-top:10px;font-size:13px;font-weight:600;color:var(--text);height:30px;padding:0 10px}
.nuring .nuc-empty{display:flex;flex-direction:column;align-items:center}
.nuring .nuc-empty b{font-size:17px}
.nuring .nuc-empty small{color:var(--muted);font-size:14px;margin-top:4px}
.nuring .nuc-line{margin:18px 0 0;font-size:15px;color:var(--muted)}
.nuring .nuc-line b{color:var(--text);font-weight:700}
.nuring .nuc-foot{display:flex;flex-direction:column;align-items:center;gap:6px;margin:16px 0 0;border:0;padding:0;background:none}
.nuring .nuc-foot .nuadd{height:44px;padding:0 20px;border-radius:22px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--text);color:var(--text);font-size:15px;font-weight:600}
.nuring .nuc-foot .more{font-size:13px;color:var(--muted)}
.nuring .nuc-tomas{width:100%;text-align:left;margin-top:16px}
.nuring .nuc-x{display:flex;justify-content:center;margin-top:8px}

/* ---------------- Entreno en curso (forma de A) ---------------- */
.gyf{background:var(--bg)!important}
.gyf .gy-tb{background:var(--bg);border-bottom:0}
.gyf .gy-tb .gy-mid b{font-size:15px;font-weight:500;color:var(--muted)}
.gyf .gyA{display:flex;flex-direction:column;min-height:100%;padding:8px 0 0}
.gyA .gyA-pos{align-self:flex-start;height:28px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.gyA .gyA-nm{display:flex;align-items:center;gap:8px}
.gyA .gyA-nm h2{flex:1;min-width:0;margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em}
.gyA .gyA-ar{width:44px;height:44px;flex:none;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--line-2);display:grid;place-items:center;color:var(--text)}
.gyA .gyA-ar:disabled{opacity:.3}
.gyA .gyA-sub{margin:6px 0 0;font-size:14px;color:var(--muted)}
.gyA .gyA-sets{list-style:none;margin:12px 0 0;padding:0}
.gyA .gyA-sets li{display:flex;align-items:center;gap:14px;height:44px;border-bottom:1px solid var(--line);font-size:17px}
.gyA .gyA-sets li .n{width:20px;font-size:14px;font-weight:600;color:var(--muted)}
.gyA .gyA-sets li .v{flex:1;font-weight:600;font-variant-numeric:tabular-nums}
.gyA .gyA-sets li .v small{font-size:13px;color:var(--muted);font-weight:500;margin-left:6px}
.gyA .gyA-sets li.obj{opacity:.55}
.gyA .gyA-sets li .now{font-size:13px;font-weight:700;padding:3px 9px;border-radius:10px;background:var(--accent);color:var(--on-accent)}
.gyA .gyA-sets li .obj{font-size:13px;color:var(--muted)}
.gyA .gyA-sets li.warm .n{color:var(--orange)}
.gyA .gyA-sets li.fail .v{color:var(--red)}
.gyA .gyA-sets li.add{border-bottom:0;height:40px}
.gyA .gyA-sets li.add button{display:flex;align-items:center;gap:14px;font-size:15px;font-weight:600}
.gyA .gyA-last{margin:10px 0 0;font-size:14px;color:var(--muted)}
.gyA .gyA-last.note{font-style:italic}
.gyA .gyA-fill{flex:1;min-height:20px}
.gyA .gyA-nums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gyA .gyA-num{display:flex;flex-direction:column;align-items:center;gap:6px}
.gyA .gyA-num input{width:100%;max-width:170px;text-align:center;border:0;background:transparent;font-size:76px;font-weight:800;letter-spacing:-.05em;line-height:1;padding:0;color:var(--text);font-variant-numeric:tabular-nums}
.gyA .gyA-num input:focus{outline:none;box-shadow:inset 0 -2px 0 var(--accent)}
.gyA .gyA-num small{font-size:15px;color:var(--muted)}
.gyA .gyA-num .pm{display:flex;gap:10px}
.gyA .gyA-num .pm button{width:48px;height:44px;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:22px;color:var(--text)}
.gyA .gyA-lab{text-align:center;margin:0 0 10px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.gyA .gyA-lab.warm{color:var(--orange)}
.gyA .gyA-rest{display:flex;flex-direction:column;gap:8px;padding:22px 0 0}
.gyA .gyA-rest>span{font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.gyA .gyA-rest .rb{display:flex;align-items:center;gap:10px}
.gyA .gyA-rest .rb button{height:44px;min-width:56px;padding:0 12px;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:15px;font-weight:600}
.gyA .gyA-rest .rb button.sk{box-shadow:none;padding:0 8px}
.gyA .gyA-rest .rt-time{flex:1;text-align:center;font-size:30px;font-weight:800;font-variant-numeric:tabular-nums}
.gyA .gy-rirrow{margin-top:14px}
.gyA .gyA-go{margin-top:16px;height:64px;border-radius:18px;font-size:20px;font-weight:700;width:100%}
.gyA .gyA-done{text-align:center;margin:0;color:var(--muted);font-size:15px}
.gyA .gy-live{background:transparent;padding:0;box-shadow:none}

/* ---------------- Amigos (forma de A) ---------------- */
.amA .top{display:flex;align-items:flex-end;justify-content:space-between;padding-right:0}
.amA .top h1{font-size:44px}
.amA .am-add{width:44px;height:44px;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--line-2);display:grid;place-items:center;color:var(--text);flex:none}
.amA .am-now{margin-top:26px}
.amA .am-now .k,.amA .am-k{margin:0;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.amA .am-who{display:flex;align-items:center;gap:14px;margin-top:12px;width:100%;text-align:left}
.amA .am-who .avatar{width:48px!important;height:48px!important;font-size:18px!important;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--accent)}
.amA .am-who b{display:block;font-size:20px;font-weight:700}
.amA .am-who small{display:block;font-size:15px;color:var(--muted)}
.amA .am-now .primary{width:100%;height:56px;margin-top:20px;border-radius:16px;font-size:18px}
.amA .am-list{list-style:none;margin:30px 0 0;padding:0;border-top:1px solid var(--line)}
.amA .am-list li>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px 0;border-bottom:1px solid var(--line);text-align:left}
.amA .am-list li:last-child>button{border-bottom:0}
.amA .am-list b{display:block;font-size:17px;font-weight:600}
.amA .am-list small{display:block;font-size:14px;color:var(--muted)}
.amA .am-list .v{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.amA .am-list .v.chev{font-size:22px;color:var(--muted);font-weight:400}
.amA .am-aviso{display:block;width:100%;text-align:left;margin-top:18px;font-size:15px;font-weight:600}
.amA .am-aviso i{display:inline-block;width:9px;height:9px;border-radius:5px;background:var(--accent);margin-right:8px}

/* horizontal: el carril lateral, plano */
@media (orientation:landscape) and (max-height:560px){
  .nav{border-top:0;border-right:1px solid var(--line)}
}

/* entreno: neutraliza la caja de la serie viva y el descanso de antes */
.gyf .gyA .gy-live{background:transparent;border-radius:0;padding:0;margin-top:0;box-shadow:none}
.gyf .gyA .gy-rest.gyA-rest{display:flex;grid-template-columns:none;background:transparent;border-radius:0;padding:20px 0 0}
.gyf .gyA .gyA-rest .rb{margin-top:0;flex-wrap:nowrap}
.gyf .gyA .gyA-rest .rb button{height:44px;background:transparent;font-size:15px}
.gyf .gyA .gy-set{cursor:pointer;padding:0}
.gyf .gyA .gy-set .n{width:20px;height:auto;border-radius:0;background:none;border:0;display:block;font-size:14px;font-weight:600;color:var(--muted)}
.gyf .gyA .gy-set .v{font-family:var(--font);font-size:17px;font-weight:600}
.gyf .gyA .gy-set .v small{font-size:17px;color:var(--text);font-weight:600;margin-left:0}
.gyf .gyA .gy-set .ok{color:var(--text)}
.gyf .gyA .gy-set.now .v,.gyf .gyA .gy-set.obj .v{font-weight:600}
.gyf .gyA .gy-exn{font-family:var(--font);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.gyf .gy-mid b{font-size:15px;font-weight:500;color:var(--muted)}
.gyf .gy-mid small{font-size:12px;font-weight:500}
.gyf .gyA .gy-why{font-weight:500}
.gyf .gyA .gyA-lastc{margin-top:10px}
.gyf .gyA .gy-ls .l{display:inline;border:0;padding:0}
.gyf .gyA .gy-ls .l b{font-family:var(--font);font-size:14px;font-weight:500}
.gy-menuchips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.gy-menuchips .chip{height:40px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:600;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--text)}
.gy-menuchips .chip.on{background:var(--text);color:var(--bg);box-shadow:none}
/* vertical: una sola columna; lo de tocar abajo */
@media (orientation:portrait),(min-height:561px){
  .gyf .gyA{display:flex;flex-direction:column;min-height:100%}
  .gyf .gyA>.gy-side{flex:1;display:flex;flex-direction:column}
  .gyf .gyA>.gy-side>.gyA-fill{flex:1;min-height:16px}
  .gyf .gy-body{display:flex;flex-direction:column}
  .gyf .gy-body>.gyA{flex:1}
}
.hoyb .top{padding-right:0}
.gyf .gyA>.gy-main,.gyf .gyA>.gy-side{width:100%;min-width:0}
.gyA .gyA-num input{font-size:64px}
.gyA .gyA-num{gap:2px}
.gyA .gyA-num .pm{margin-top:6px}
.gyA .gyA-lab{margin:0 0 2px}
.gyf .gyA .gy-rest.gyA-rest{padding-top:14px}
.gyA .gyA-go{margin-top:12px;height:60px}
.gyA .gyA-sets li{height:40px}
.gyA .gyA-sets li.add{height:38px}
.pleg+.pleg{margin-top:0}
.amA .livetag{padding:0;background:none;color:var(--muted);font-size:13px}
.amA .livetag::before{display:none}
.amA .am-desde{display:none}
.amA .am-list+.pleg,.amA .am-now+.pleg{margin-top:30px}
.masmenu .mi{display:none}
.masmenu li{padding-left:0;padding-right:0}
/* Entrenar: cada rutina en una línea (nombre, ejercicios y músculos); la lista completa al tocarla */
.rtcard{cursor:pointer}
.rtcard .rtlist{display:none}
.rtcard .tags{margin-top:8px}
.rtcard h2{font-size:22px}
.nuring .ring .ringb{position:absolute;inset:0;border-radius:50%}
.nuring .ring .ringb svg{position:absolute;inset:0}
.nuring .ring .c{padding-bottom:34px}
.nuring .ring .ringt{position:absolute;left:50%;top:63%;transform:translateX(-50%);font-size:13px;font-weight:600;color:var(--text);height:32px;padding:0 12px;white-space:nowrap}
.nuring .ring .c .nuc-empty{padding-top:34px}
.gyf .gyA-mid{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:500;color:var(--muted)}
.gyf .gyA-mid b{display:inline}
.gyf .gyA-mid small{display:block}

/* ── Amigos más rápido (24-11): Animar · Comentar · Retar de un toque en cada fila (forma A: sin tarjetas, mucho aire) ── */
.amA .am-list li.am-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}
.amA .am-list li.am-row:last-child{border-bottom:0}
.amA .am-list li.am-row>button.am-main{flex:1;min-width:0;border-bottom:0;padding:18px 0;min-height:44px}
.amA .am-list .am-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amA .am-list .am-n{color:var(--text);font-weight:600}
.amA .am-acts{display:flex;gap:4px;flex:none}
.amA .am-ac{width:44px;height:44px;border-radius:22px;display:grid;place-items:center;font-size:19px;line-height:1;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);transition:transform .12s ease,background-color .2s ease,box-shadow .2s ease}
.amA .am-ac:active{transform:scale(.9)}
.amA .am-ac[disabled]{opacity:.3}
.amA .am-ac.live{background:var(--accent);box-shadow:none}
.amA .am-ac.on{background:color-mix(in srgb,var(--accent) 24%,transparent);box-shadow:inset 0 0 0 2px var(--accent)}
.amA .am-ac.live.on{background:var(--accent);box-shadow:inset 0 0 0 2px var(--text)}
.amA .am-ac:focus-visible,.amA .am-now-acts button:focus-visible,.amA .am-big:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.amA .am-big.on{background:transparent;color:var(--text);box-shadow:inset 0 0 0 2px var(--accent)}
.amA .pop{animation:amPop .35s ease}
@keyframes amPop{50%{transform:scale(1.15)}}
.amA .am-now-acts{display:flex;gap:10px;margin-top:10px}
.amA .am-now-acts button{flex:1;min-height:48px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line-2);font-size:16px;font-weight:600;color:var(--text)}
@media (prefers-reduced-motion:reduce){.amA .pop{animation:none}.amA .am-ac{transition:none}}
/* hojas de Comentar y Retar */
.am-sheet .am-last{margin:4px 0 14px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

.am-sheet .am-last .k{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.am-sheet .am-last b{display:block;font-size:19px;font-weight:700;margin-top:4px}
.am-sheet .am-last small{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.am-sheet .am-cmrow{margin-top:12px}
.am-sheet .am-cmrow input{min-height:48px;font-size:16px}
.am-sheet .am-cmrow .primary{min-height:48px;padding:0 20px}
.am-retos{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--line)}
.am-retos li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.am-retos li b{display:block;font-size:16px;font-weight:600}
.am-retos li small{display:block;font-size:13.5px;color:var(--muted)}
.am-retos .v{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.am-retos .primary{min-height:44px;padding:0 18px}
.sheet #duelwho button,.sheet #duelwhat button{min-height:44px}
/* horizontal (arreglo 24-11): la regla .app de arriba (padding 24 px) pisaba la del carril de app.css y el carril tapaba el borde
   izquierdo del contenido en apaisado; se repone aquí el hueco del carril. */
@media (orientation: landscape) and (max-height: 560px){.app{padding-left:calc(74px + env(safe-area-inset-left,0px));padding-right:calc(16px + env(safe-area-inset-right,0px))}}

/* ── Fase 8 (26-11): Progreso, peso y lo que faltaba con el mismo lenguaje ── */
/* Progreso: tres cifras de la semana en una línea (entrenos · peso medio · marcas); el peso lleva a «Peso y báscula» */
.prog3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px;padding:6px 0 22px;border-bottom:1px solid var(--line)}
.prog3>div,.prog3>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:44px;color:var(--text)}
.prog3 b{font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums}
.prog3 span{font-size:13px;color:var(--muted);margin-top:4px}
.prog3>button span{text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.pleg.p-epley{margin-top:0;border-top:0}
.pleg.p-epley>.pleg-h{height:44px;font-size:13px;font-weight:500;color:var(--muted)}
/* Hoy: el peso en una línea (D12), sin tarjeta ni botón principal */
.wtile{padding:18px 0;border-top:1px solid var(--line)}
.wtile .wt-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.wtile .wt-h b{font-size:17px;font-weight:700}
.wtile .wt-h small{font-size:13px;color:var(--muted)}
.wtile .wt-row{display:flex;align-items:center;gap:12px;margin-top:10px}
.wtile .wt-row .stc{flex:1;min-width:0;margin:0}
.wtile .wt-row .ghost{flex:none;height:48px;padding:0 20px}
.wtile .plan{margin:8px 0 0;font-size:13px}
.wtile .wt-f{display:flex;justify-content:space-between;margin-top:6px}
.wtile .wt-f .linkbtn{min-height:40px;font-size:13.5px}

/* ── D11 (fase 8): el botón principal dentro de la primera pantalla. Solo orden y posición (CSS); no se quita nada ── */
/* Correr y Comida, en una columna: el botón de apuntar sube justo debajo de la cabecera (Correr) o de las barras del día
   (Comida; la tarjeta del nutricionista y las propuestas pasan detrás de las comidas). En apaisado, las dos columnas de siempre. */
.dos-col.run-pant>section,.dos-col.nt-dia>section{display:contents}
.dos-col.run-pant .run-acc{order:-1}
.dos-col.nt-dia>section:first-child>:not(.nt-card){order:1}
@media (orientation: landscape) and (min-width: 640px) and (max-height: 499.98px){
  .dos-col.run-pant>section,.dos-col.nt-dia>section{display:block}
  .dos-col.run-pant .run-acc,.dos-col.nt-dia>section:first-child>:not(.nt-card){order:0}
}
/* editores largos: Hyrox › Apuntar / Revisar propuesta — «Apuntar» / «Confirmar» fijo abajo, encima de la barra */
.dos-col.hx .hx-ses [data-act=hx-guardar]{position:fixed;z-index:19;left:max(24px,env(safe-area-inset-left,0px));right:max(24px,env(safe-area-inset-right,0px));bottom:calc(75px + env(safe-area-inset-bottom,0px));width:auto;max-width:472px;margin:0 auto;box-shadow:0 8px 24px var(--shadow)}
/* propuesta del entrenador: «Dejarlo · Confirmar» pegado abajo mientras se lee el antes/después */
.app>.adrow:has(>[data-act=en-ok]){position:sticky;z-index:5;bottom:calc(63px + env(safe-area-inset-bottom,0px));background:var(--bg);margin-top:8px;padding:12px 0;border-top:1px solid var(--line)}
@media (orientation: landscape) and (max-height: 560px){
  .dos-col.hx .hx-ses [data-act=hx-guardar]{left:auto;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(360px,calc(50% - 60px));max-width:none}
  .app:has(.dos-col.hx [data-act=hx-guardar]){padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .app>.adrow:has(>[data-act=en-ok]){bottom:env(safe-area-inset-bottom,0px)}
}

/* Comida (pantalla completa): vías y atajos con línea fina, sin relleno (mismo lenguaje que Hoy) */
.nt-ways button{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--text)}
.nt-chips .nt-q{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--text)}
.nt-chips .nt-q small{color:var(--muted)}
/* Progreso: la línea de debajo de las tres cifras la pone ya la sección siguiente */
.prog3{border-bottom:0;padding-bottom:10px}
