/* Entrenos › Progreso con un solo periodo (progress-overview.js). Solo tokens de :root; colores de deporte aquí. */
.po,.po-heading{--po-bike:#37d27c;--po-run:#ffb347;--po-swim:#4cc3ff;--po-str:#c9a2ff;--po-mind:#5fd3c7;--po-other:#8fa3bf;--po-up:var(--green,#37d27c);--po-down:var(--orange,#ffb347)}
[data-theme=light] .po,[data-theme=light] .po-heading{--po-bike:#1f8f4f;--po-run:#c26a00;--po-swim:#0b73b5;--po-str:#7b4fc4;--po-mind:#00786e;--po-other:#536079}
.po{container-type:inline-size;display:grid;gap:14px;min-width:0}
.po-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.po-heading h1{margin:0}
.po-heading .follow-shortcuts{margin:0}
.po-kicker{margin:2px 0 -6px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.po .tiny{font-size:11.5px}
/* selector */
.po-selector{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 12px;border:1px solid var(--sep);border-radius:14px;background:var(--card)}
.po-seg{display:inline-flex;padding:3px;border-radius:12px;background:var(--fill);gap:6px}
.po-seg-item{min-height:34px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:14px;font-weight:600}
.po-seg-item[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
.po-nav{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.po-arrow{min-width:34px;min-height:34px;padding:0;border-radius:17px;background:var(--fill);color:var(--accent);font-size:20px;line-height:1}
.po-arrow:disabled{opacity:.35}
.po-period{font-size:16px;white-space:nowrap}
.po-compare{font-size:13px}
.po-total{margin-left:auto;font-size:13px;white-space:nowrap}
.po-custom{display:flex;gap:10px;flex-basis:100%}.po-custom label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.po-custom input{min-height:34px}
.po-chips{display:inline-flex;flex-wrap:wrap;gap:6px;padding:3px;border-radius:12px;background:var(--fill)}
.po-chip{min-height:30px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:13px;font-weight:600}
.po-chip[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}
/* figures */
.po-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@container (min-width:560px){.po-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:900px){.po-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}}
.po-tile{display:flex;flex-direction:column;gap:2px;align-items:flex-start;min-width:0;padding:12px 14px;border:1px solid var(--sep);border-radius:14px;background:var(--card);color:var(--text);text-align:left;font:inherit}
.po-tile-label{font-size:12.5px;color:var(--muted)}
.po-tile-value{font-size:26px;font-weight:700;letter-spacing:-.4px;line-height:1.15;white-space:nowrap}.po-tile-value small{font-size:13px;font-weight:500;color:var(--muted);margin-left:3px;letter-spacing:0}
.po-delta{font-size:12px;font-weight:600}.po-delta.up{color:var(--po-up)}.po-delta.down{color:var(--po-down)}.po-delta.same{color:var(--muted)}
/* cards */
.po-card{display:grid;gap:10px;align-content:start;min-width:0;padding:14px;border:1px solid var(--sep);border-radius:14px;background:var(--card)}
.po-card h3{margin:0;font-size:15px}
.po-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-width:0}
.po-two,.po-three{display:grid;gap:14px;min-width:0}
/* column-gap >= 6 px: layout-guard.js would otherwise wrap neighbouring buttons in an «actions» group */
@container (min-width:900px){.po-two{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.po-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:640px) and (max-width:899px){.po-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
.po-grid-bottom{display:grid;gap:14px}@container (min-width:640px){.po-grid-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}}
.po-chart{width:100%;height:auto;display:block}
.po-axis{fill:var(--muted);font-size:10.5px}.po-axis.now{fill:var(--accent);font-weight:700}
.po-grid{stroke:var(--sep);stroke-width:1;opacity:.7}.po-baseline{stroke:var(--sep);stroke-width:1.2}
.po-previous{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-dasharray:4 3;opacity:.9}
.po-average{stroke:var(--accent);stroke-width:1.3;stroke-dasharray:5 4}.po-average-box{fill:var(--bg);stroke:var(--accent);stroke-width:1}.po-average-text{fill:var(--accent);font-size:10px;font-weight:600}
.po-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted)}
.po-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.po-legend i.dash{width:16px;height:0;border-top:2px dashed var(--muted);border-radius:0;vertical-align:3px}.po-legend i.dash.average{border-top-color:var(--accent)}
.po-legend i.line{width:16px;height:3px;border-radius:2px;vertical-align:2px}.po-legend i.line.atl{background:var(--po-run)}.po-legend i.line.ctl{background:var(--accent)}
/* tables */
.po-table{display:grid;min-width:0;column-gap:6px}
.po-row{display:grid;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 4px;border:0;border-top:1px solid var(--sep);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:left}
.po-row.head{min-height:30px;border-top:0;color:var(--muted);font-size:12px;cursor:default}
button.po-row{cursor:pointer}button.po-row:hover:not(:disabled){background:color-mix(in srgb,var(--text) 5%,transparent)}button.po-row:disabled{opacity:1;cursor:default}
.po-sport-table .po-row{grid-template-columns:minmax(0,1.6fr) .6fr 1fr 1fr}
.po-session-table .po-row{grid-template-columns:64px minmax(0,2.2fr) 1fr .9fr .9fr .8fr;min-height:40px}
.po .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.po-name{display:flex;align-items:center;gap:9px;min-width:0}.po-name>span{display:flex;flex-direction:column;min-width:0}.po-session-table .po-name>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-name small{font-size:12px}.po-dot{flex:none;width:10px;height:10px;border-radius:3px}
.po-share{display:flex;gap:2px;height:10px;border-radius:5px;overflow:hidden}.po-share i{display:block;min-width:3px}
@container (max-width:560px){
  .po-sport-table .po-row{grid-template-columns:minmax(0,1.5fr) auto auto}.po-sport-table .po-row>:nth-child(2){display:none}
  .po-session-table .po-row{grid-template-columns:52px minmax(0,1fr) auto}.po .hide-s{display:none}
}
/* form, consistency, marks */
.po-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.po-mini.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.po-mini>div,.po-stat{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:11px;background:var(--bg);border:1px solid var(--sep);min-width:0}
.po-mini span,.po-stat span{font-size:12px}.po-mini b{font-size:21px}.po-stat b{font-size:17px}
.po-spark{width:100%;height:56px;display:block}.po-line{fill:none;stroke-width:1.6;stroke-linejoin:round}.po-line.ctl{stroke:var(--accent)}.po-line.atl{stroke:var(--po-run)}
.po-spark-box{display:grid;gap:4px}
.po-kv{display:flex;justify-content:space-between;gap:10px;padding-top:8px;border-top:1px solid var(--sep);font-size:14px}
.po-link{color:var(--accent);font-size:13px}
.po-heat{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;max-width:420px}
.po-heat-head{font-size:11px;color:var(--muted);text-align:center}
.po-heat span:not(.po-heat-head):not(.po-heat-empty){display:flex;align-items:center;justify-content:center;text-align:center;min-height:24px;border-radius:6px;font-size:11px;color:var(--muted);background:var(--bg);border:1px solid var(--sep)}
.po-heat .l1{background:color-mix(in srgb,var(--accent) 22%,var(--bg))!important;color:var(--text)!important}
.po-heat .l2{background:color-mix(in srgb,var(--accent) 42%,var(--bg))!important;color:var(--text)!important}
.po-heat .l3{background:color-mix(in srgb,var(--accent) 68%,var(--bg))!important;color:var(--text)!important}
.po-heat .l4{background:var(--accent)!important;color:var(--on-accent)!important;font-weight:700}
.po-heat .future{opacity:.4}
.po-months{display:flex;align-items:flex-end;gap:6px;height:90px}.po-months>div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:3px}.po-months i{display:block;width:100%;min-height:2px;border-radius:3px 3px 0 0;background:var(--accent)}.po-months small{font-size:10.5px;color:var(--muted)}
.po-list{list-style:none;margin:0;padding:0;display:grid}.po-list li+li{border-top:1px solid var(--sep)}
.po-list button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 2px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left}.po-list button:disabled{opacity:1}
.po-list span:first-child{display:flex;flex-direction:column;min-width:0}.po-list small{font-size:12px}
.po-tag{flex:none;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:9px;background:var(--fill)}.po-tag.record{background:var(--accent);color:var(--on-accent)}
.po-slim{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0;padding:10px 14px;border:1px dashed var(--sep);border-radius:12px;font-size:13.5px}
.po-slim-actions{display:flex;gap:8px}
/* detail */
.po-back{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.po-back h2{margin:0;font-size:22px}
.po-hero{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.po-hero-value{font-size:38px;font-weight:700;letter-spacing:-.8px}
.po-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@container (min-width:640px){.po-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:900px){.po-stats{grid-template-columns:repeat(6,minmax(0,1fr))}}
.po-drivers{list-style:none;margin:0;padding:0;display:grid}.po-drivers li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--sep);font-size:14px}.po-drivers li:first-child{border-top:0}
.po-drivers .up{color:var(--po-up)}.po-drivers .down{color:var(--po-down)}
.po-two{align-items:start}
.po>.po-chips{justify-self:start}
