/* Repaso del 21 nov: resumen de la ficha de entreno y lista compacta de Actividades (activity-summary.js). */
#app .activity-summary { margin:12px 0 16px; }
#app .activity-summary-grid, #app .activity-period-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
@media (min-width:700px) { #app .activity-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } #app .activity-period-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
#app .activity-summary-grid > .compact-card, #app .activity-period-grid > .compact-card { min-height:92px; }
#app .activity-period-grid .compact-card-spark { width:100%; height:24px; margin-top:auto; fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* Una sola línea que se desliza, sin saltos (Pablo, 21 nov). */
#app .activity-period-chips, #app .activity-filter-chips, #app .activity-zones-choice { display:flex; flex-wrap:nowrap !important; gap:8px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding:2px 0; margin:10px 0; } 
#app :is(.activity-period-chips,.activity-filter-chips,.activity-zones-choice)::-webkit-scrollbar { display:none; }
#app :is(.activity-period-chips,.activity-filter-chips,.activity-zones-choice) > * { flex:none; white-space:nowrap; }
#app .activity-zones { margin-top:8px; padding:12px; border-radius:14px; background:var(--fill); }
#app .activity-zones-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
#app .activity-zones-title { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--muted); }
#app .activity-zones-title svg { width:18px; height:18px; fill:none; stroke:var(--compact-color,var(--accent)); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#app .activity-zones-choice { margin:0; }
#app .activity-zones-bar { display:flex; gap:2px; height:16px; border-radius:6px; overflow:hidden; }
#app .activity-zones-bar > span { min-width:3px; }
#app .activity-zones-legend { display:flex; flex-wrap:wrap; gap:4px 12px; margin:8px 0 0; padding:0; list-style:none; font-size:12px; color:var(--muted); }
#app .activity-zones-legend li { display:flex; align-items:center; gap:5px; }
#app .activity-zones-legend i { width:9px; height:9px; border-radius:3px; flex:none; }
#app .activity-head h1.activity-head-title { display:flex !important; align-items:center; gap:10px; min-width:0; }
#app .activity-head-icon { flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--fill); }
#app .activity-head-icon svg, #app .activity-row-icon svg { width:20px; height:20px; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#app .activity-rows { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; }
#app .activity-row { all:unset; box-sizing:border-box; width:100%; min-width:0; display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 12px; border-radius:14px; background:var(--fill); cursor:pointer; }
#app .activity-row:hover { background:var(--raised); }
#app .activity-row:focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
#app .activity-row-icon { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:color-mix(in srgb,var(--text) 8%,transparent); }
#app .activity-row-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
#app .activity-row-text b { font-size:15px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#app .activity-row-text small { font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#app .activity-row-go { flex:none; color:var(--muted); font-size:20px; }

/* Cabecera compacta: sin hueco entre Historial/Rutas y el periodo. */
#app .activity-overview > .activity-period-chips:first-child { margin-top:0; }
#app .activity-more-chip[aria-pressed="true"] { border-color:var(--accent); }
