/* ==========================================================================
   BULLDER · historial (prefijo hs-): tarjeta de entrenamiento, lista por meses,
   calendario, detalle y hoja de compartir. Solo variables del núcleo.
   ========================================================================== */

/* ------------------------------------------------------------------ tarjeta de entrenamiento (card.js) */
.hs-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .15s, transform .12s var(--ease); }
.hs-card:hover { border-color: var(--line-strong); }
.hs-card:has(.hs-card-link:active) { transform: scale(.985); }
/* enlace estirado: toda la tarjeta lleva al detalle; lo interactivo queda por encima */
.hs-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hs-card-link:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.hs-card .hs-user, .hs-card .hs-react-btn { position: relative; z-index: 2; }
.hs-card .ex-thumb, .hs-exc .ex-thumb, .hs-pick .ex-thumb { box-shadow: 0 0 0 1px var(--line); }
.hs-thumb-empty { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text-3); }

.hs-head { display: flex; align-items: center; min-width: 0; }
.hs-user { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; min-height: 44px; }
.hs-user b { display: block; font: 650 14.5px/1.25 var(--font); }
.hs-when { display: flex; align-items: center; gap: 6px; font: 500 12.5px/1.3 var(--font); color: var(--text-3); }
.hs-when-solo { margin-bottom: -6px; }
.hs-vis { display: inline-flex; color: var(--text-3); flex: none; }
.hs-vis .ic { width: 14px; height: 14px; }
.hs-title { font: 700 19px/1.2 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.hs-notes { margin-top: -6px; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

.hs-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-fig { min-width: 0; }
.hs-fig + .hs-fig { padding-left: 14px; border-left: 1px solid var(--line); }
.hs-fig span { display: block; font: 600 11.5px/1.2 var(--font); color: var(--text-3); }
.hs-fig b { display: flex; align-items: center; gap: 5px; margin-top: 4px; font: 700 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-fig-pr b { color: var(--pr); }

.hs-exs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-ex { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hs-ex-name { font: 600 14.5px/1.3 var(--font); }
.hs-ex-sub { margin-top: 1px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hs-ex-pr { display: inline-flex; flex: none; color: var(--pr); }
.hs-more { display: flex; align-items: center; gap: 2px; margin-top: -2px; font: 600 13.5px/1 var(--font); color: var(--text-2); }
.hs-noex { font-size: 13.5px; color: var(--text-3); }
.hs-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }

/* barra de reacciones (los botones los activa `social`) */
.hs-react { display: flex; align-items: center; gap: 2px; margin-bottom: -8px; padding-top: 4px; border-top: 1px solid var(--line); }
.hs-react-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2); font: 650 14px/1 var(--font); font-variant-numeric: tabular-nums; transition: background .15s, color .15s, transform .12s var(--ease); }
.hs-react-btn:first-child { margin-left: -12px; }
.hs-react-btn:hover { background: var(--surface-2); color: var(--text); }
.hs-react-btn:active { transform: scale(.93); }
.hs-react-btn .ic { width: 21px; height: 21px; }
.hs-react-btn.is-active { color: var(--danger); }
.hs-react-btn.is-active .ic { fill: currentColor; }
.hs-react-share { margin-left: auto; margin-right: -12px; }
.hs-react-label { font-weight: 600; }
.hs-react-sm { gap: 0; margin: 0 -8px 0 0; padding: 0; border: 0; flex: none; }
.hs-react-sm .hs-react-btn { min-height: 34px; padding: 0 8px; gap: 5px; font-size: 13px; color: var(--text-3); }
.hs-react-sm .hs-react-btn:first-child { margin-left: 0; }
.hs-react-sm .hs-react-btn::after { content: ""; position: absolute; inset: -6px 0; }
.hs-react-sm .hs-react-btn .ic { width: 17px; height: 17px; }
.hs-react-sm .hs-react-btn.is-active { color: var(--danger); }

/* variante compacta (historial) */
.hs-card-compact { flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px 14px 8px 12px; }
.hs-c-date { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 12px; background: var(--surface-2); }
.hs-c-date span { font: 700 10px/1.1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.hs-c-date b { font: 700 20px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.hs-c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-c-head { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; }
.hs-c-head .hs-title { font-size: 16.5px; }
.hs-c-head .badge { margin-left: auto; flex: none; }
.hs-c-head .badge .ic, .hs-day-list .badge .ic, .hs-pr .ic { width: 12px; height: 12px; }
.hs-c-meta { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hs-c-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; min-height: 34px; }
.hs-strip { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hs-strip .ex-thumb-sm { width: 32px; height: 32px; border-radius: 9px; }
.hs-strip-more { padding-left: 2px; font: 650 12px/1 var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ historial (/history) */
.hs-page { display: flex; flex-direction: column; gap: var(--sp-4); }
.hs-sum-sk { height: 138px; border-radius: var(--r); }
.hs-sum { display: block; padding: 16px; }
.hs-sum-top { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 10px; }
.hs-sum-fig { min-width: 0; }
.hs-sum-fig b { display: flex; align-items: center; gap: 6px; font: 700 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.hs-sum-fig span { display: block; margin-top: 4px; font: 500 12px/1.25 var(--font); color: var(--text-3); }
.hs-sum-streak b .ic { width: 24px; height: 24px; color: var(--text-3); }
.hs-sum-streak.is-on b .ic { color: var(--warn); }
.hs-sum-week { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-sum-week-label { flex: none; }
.hs-sum-week-label b { display: block; font: 650 13.5px/1.25 var(--font); }
.hs-sum-week-label span { font-size: 12px; color: var(--text-3); }
.hs-week-dots { flex: 1; display: flex; justify-content: space-between; max-width: 290px; margin-left: auto; }
.hs-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 650 10.5px/1 var(--font); color: var(--text-3); }
.hs-dot i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--on-accent); }
.hs-dot i .ic { width: 14px; height: 14px; stroke-width: 3; }
.hs-dot.is-on i { background: var(--accent); }
.hs-dot.is-today { color: var(--text); }
.hs-dot.is-today i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-strong); }
.hs-sum-go { display: inline-flex; flex: none; color: var(--text-3); margin-right: -4px; }

.hs-tools { display: flex; flex-direction: column; gap: 10px; }
.hs-search .input { padding-right: 48px; }
.hs-search input::-webkit-search-cancel-button, .hs-pick-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.hs-chip-on { padding: 0; gap: 0; overflow: hidden; }
.hs-chip-main { display: inline-flex; align-items: center; gap: 6px; height: 100%; max-width: 210px; padding: 0 2px 0 14px; color: inherit; font: inherit; }
.hs-chip-x { display: grid; place-items: center; width: 36px; height: 100%; color: inherit; }
.hs-chip-main:focus-visible, .hs-chip-x:focus-visible { outline-color: var(--text); outline-offset: -3px; }

.hs-month + .hs-month { margin-top: var(--sp-3); }
.hs-month-head {
  position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 5; margin: 0 calc(var(--sp-4) * -1); padding: 10px var(--sp-4);
  font: 700 15.5px/1.2 var(--font-display); letter-spacing: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.hs-month-n { font: 500 13px/1.2 var(--font); color: var(--text-3); }
.hs-month-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hs-tail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0 4px; font-size: 13px; color: var(--text-3); text-align: center; }
.hs-tail .spinner { margin: 6px auto; }
.hs-tail-end { flex-direction: row; justify-content: center; gap: 8px; }
.hs-sentinel { height: 1px; }

.hs-pick-search { position: sticky; top: -8px; z-index: 2; margin: 0 -2px 12px; padding: 8px 2px 0; background: var(--bg-elev); }
.hs-pick-search .ic { top: calc(50% + 4px); }
.hs-pick-on { color: var(--accent); }
.hs-pick-none { padding: 28px 0; }

/* ------------------------------------------------------------------ calendario (/history/calendar) */
.hs-cal-page { display: flex; flex-direction: column; gap: var(--sp-4); }
.hs-cal-mode { width: 100%; max-width: 260px; align-self: center; }
.hs-cal-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.hs-cal-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.hs-cal-col > div:empty { display: none; }
.hs-cal { padding: 10px 12px 16px; overflow: hidden; touch-action: pan-y; }
.hs-cal-nav { display: flex; align-items: center; gap: 2px; min-height: 44px; }
.hs-cal-nav h2 { flex: 1; min-width: 0; padding-left: 6px; font-size: 19px; }
.hs-cal-nav .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.hs-cal-today { margin-right: 4px; }
.hs-cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 4px; }
.hs-cal-dow span { padding: 6px 0; text-align: center; font: 700 11px/1 var(--font); letter-spacing: .04em; color: var(--text-3); }
.hs-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; transition: opacity .2s; }
.hs-cal-days.is-loading, .hs-year.is-loading { opacity: .5; }

/* niveles de intensidad (según el volumen del día) */
.hs-cal .lv-1 { --hs-lv: color-mix(in srgb, var(--accent) 22%, transparent); --hs-lv-ink: var(--text); }
.hs-cal .lv-2 { --hs-lv: color-mix(in srgb, var(--accent) 40%, transparent); --hs-lv-ink: var(--text); }
.hs-cal .lv-3 { --hs-lv: color-mix(in srgb, var(--accent) 72%, transparent); --hs-lv-ink: var(--on-accent); }
.hs-cal .lv-4 { --hs-lv: var(--accent); --hs-lv-ink: var(--on-accent); }

.hs-day { position: relative; display: grid; place-items: center; height: 46px; padding: 0; }
.hs-day i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 14.5px/1 var(--font); font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-2); transition: background .15s, transform .12s var(--ease), box-shadow .15s; }
.hs-day.is-future i { color: var(--text-3); opacity: .55; }
.hs-day[class*="lv-"] i { background: var(--hs-lv); color: var(--hs-lv-ink); font-weight: 700; }
.hs-day.is-today i { box-shadow: inset 0 0 0 2px var(--text-3); color: var(--text); font-weight: 700; }
.hs-day.is-today[class*="lv-"] i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); color: var(--hs-lv-ink); }
.hs-day.is-sel i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.hs-day:hover i { transform: scale(1.06); }
.hs-day:active i { transform: scale(.9); }
.hs-day:focus-visible { outline: none; }
.hs-day:focus-visible i { outline: 2px solid var(--accent); outline-offset: 4px; }
.hs-day em { position: absolute; top: 0; left: calc(50% + 9px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--text); color: var(--bg); font: 700 10px/16px var(--font); font-style: normal; text-align: center; }
.hs-day.is-blank { pointer-events: none; }

.hs-cal-legend { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 10px; padding-right: 4px; font: 500 11.5px/1 var(--font); color: var(--text-3); }
.hs-cal-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--hs-lv); }
.hs-cal-legend span:first-child { margin-right: 3px; }
.hs-cal-legend span:last-child { margin-left: 3px; }
.hs-cal-totals { display: flex; justify-content: space-between; gap: 8px; margin: 14px 4px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-cal-totals > div { min-width: 0; }
.hs-cal-totals b { display: flex; align-items: center; gap: 4px; font: 700 15px/1.2 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-cal-totals span { display: block; margin-top: 3px; font: 500 11.5px/1.2 var(--font); color: var(--text-3); }
.hs-cal-totals .is-pr b { color: var(--pr); }
.hs-cal-totals.is-loading b { color: var(--text-3); }

@keyframes hs-slide-next { from { opacity: 0; transform: translateX(26px); } }
@keyframes hs-slide-prev { from { opacity: 0; transform: translateX(-26px); } }
.hs-slide-next { animation: hs-slide-next .26s var(--ease); }
.hs-slide-prev { animation: hs-slide-prev .26s var(--ease); }

.hs-day-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; text-align: center; color: var(--text-3); }
.hs-day-list .li-end { gap: 8px; }

.hs-streak-main { display: flex; align-items: center; gap: 14px; }
.hs-streak-main > .ic { color: var(--text-3); }
.hs-streak-main.is-on > .ic { color: var(--warn); }
.hs-streak-main b { display: block; font: 700 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.hs-streak-main span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.hs-streak-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-streak-grid b { display: block; font: 700 15.5px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.hs-streak-grid span { display: block; margin-top: 3px; font: 500 11.5px/1.25 var(--font); color: var(--text-3); }

/* año: doce meses en miniatura */
.hs-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 4px; margin-top: 6px; transition: opacity .2s; }
.hs-ym { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 12px; text-align: left; transition: background .15s, transform .12s var(--ease); }
.hs-ym:hover { background: var(--surface-2); }
.hs-ym:active { transform: scale(.96); }
.hs-ym-head { display: flex; align-items: baseline; justify-content: space-between; font: 700 12.5px/1 var(--font); }
.hs-ym-head span { font: 600 11.5px/1 var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.hs-ym.is-now .hs-ym-head b { color: var(--accent); }
.hs-ym-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2.5px; }
.hs-ym-grid i { aspect-ratio: 1; border-radius: 3.5px; background: var(--surface-2); }
.hs-ym-grid i[class*="lv-"] { background: var(--hs-lv); }
.hs-ym-grid i.is-blank { background: transparent; }
.hs-ym-grid i.is-future { opacity: .45; }
.hs-ym-grid i.is-today { box-shadow: 0 0 0 1.5px var(--text); }
.hs-year-sum p { margin-top: 6px; }
.hs-year-sum p b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ detalle (/workouts/:id) */
.hs-detail { display: flex; flex-direction: column; gap: var(--sp-4); }
.hs-d-main, .hs-d-side { display: contents; }
.hs-d-top { order: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hs-d-figs { order: 2; }
.hs-d-react { order: 3; }
.hs-cmp { order: 4; }
.hs-mus { order: 5; }
.hs-d-exs { order: 6; min-width: 0; }
.hs-d-cta { order: 7; }

.hs-d-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hs-d-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.hs-d-user b { display: block; font: 650 15px/1.25 var(--font); }
.hs-d-when { display: block; margin-top: 1px; font-size: 13px; color: var(--text-2); }
.hs-d-vis { flex: none; }
.hs-d-vis .ic { width: 13px; height: 13px; }
.hs-d-title { margin-top: 4px; font-size: 28px; overflow-wrap: anywhere; }
.hs-d-notes { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.hs-d-photo { display: block; }
.hs-d-photo img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r); background: var(--surface-2); }

.hs-d-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.hs-d-fig { min-width: 0; }
.hs-d-fig span { display: block; font: 600 12px/1.2 var(--font); color: var(--text-3); }
.hs-d-fig b { display: flex; align-items: center; gap: 5px; margin-top: 5px; font: 700 19px/1.15 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-d-fig.is-pr b { color: var(--pr); }

.hs-d-react .hs-react { margin: 0; padding: 0; border: 0; gap: 8px; }
.hs-d-react .hs-react-btn { background: var(--surface); border: 1px solid var(--line); padding: 0 14px; }
.hs-d-react .hs-react-btn:first-child { margin-left: 0; }
.hs-d-react .hs-react-btn:hover { border-color: var(--line-strong); }
.hs-d-react .hs-react-btn.is-active { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); }
.hs-d-react .hs-react-share { margin-right: 0; }

.hs-cmp-link { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font: 600 13px/1 var(--font); color: var(--text-2); }
.hs-cmp-link:hover { color: var(--text); }
.hs-cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.hs-cmp-item { min-width: 0; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); }
.hs-cmp-label { display: block; font: 600 12px/1.2 var(--font); color: var(--text-3); }
.hs-cmp-val { display: flex; align-items: center; gap: 5px; margin-top: 5px; font: 700 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-cmp-val.is-up { color: var(--ok); }
.hs-cmp-val.is-down { color: var(--danger); }
.hs-cmp-pct { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.hs-mus-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hs-mus-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.hs-mus-name { color: var(--text-2); font-weight: 550; }
.hs-mus-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hs-mus-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c1); }
.hs-mus-n { min-width: 58px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-mus-n small { display: inline-block; min-width: 34px; margin-left: 4px; font: 500 11.5px/1 var(--font); color: var(--text-3); }

.hs-d-exs .section-head { margin-top: var(--sp-2); }
.hs-exc-list { display: flex; flex-direction: column; gap: 12px; }
.hs-exc { padding: 12px 16px 14px; min-width: 0; }
.hs-exc + .hs-exc { border-top: 1px solid var(--line); }
.hs-exc-head { display: flex; align-items: center; gap: 12px; min-height: 56px; min-width: 0; border-radius: 12px; }
.hs-exc-head > .ic { color: var(--text-3); }
.hs-exc-name { display: block; font: 650 15.5px/1.25 var(--font); overflow-wrap: anywhere; }
.hs-exc-head:hover .hs-exc-name { color: var(--accent); }
.hs-exc-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.hs-exc-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.hs-exc-note .ic { margin-top: 2px; color: var(--text-3); }
.hs-exc-empty { margin-top: 10px; }
.hs-sets { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-set { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 40px; margin: 0 -8px; padding: 6px 8px; border-radius: 10px; }
.hs-set.is-pr { background: color-mix(in srgb, var(--pr) 9%, transparent); }
.hs-set-n { width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid transparent; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font: 700 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.hs-set-n.is-typed { background: transparent; }
.hs-set-val { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-set-part b { font: 700 16px/1.2 var(--font-display); }
.hs-set-part small { margin-left: 3px; font: 500 12px/1 var(--font); color: var(--text-3); }
.hs-set-val > .hs-set-part:first-child:not(:last-child) { min-width: 54px; text-align: right; }
.hs-x { font-style: normal; font-size: 13px; color: var(--text-3); }
.hs-set.is-warmup .hs-set-part b { font-weight: 600; color: var(--text-2); }
.hs-rpe { grid-column: 3; font: 600 12px/1 var(--font); color: var(--text-3); white-space: nowrap; }
.hs-set-prs { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 2px; }
.hs-exc-foot { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hs-exc-foot i { font-style: normal; }
.hs-ss { border-left: 3px solid var(--c6); }
.hs-ss-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font: 700 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--c6); }
.hs-ss-head span { margin-left: auto; font: 600 12px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--text-3); }

.hs-d-cta { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-2); }
.hs-d-cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hs-d-cta-row .btn { padding: 0 10px; font-size: 13.5px; gap: 7px; }
.hs-d-cta-row .btn .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ compartir */
.hs-share { display: flex; flex-direction: column; gap: 14px; }
.hs-share-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hs-share-stage { position: relative; display: grid; place-items: center; min-height: 220px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hs-share-canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(42dvh, 430px); border-radius: 12px; box-shadow: var(--shadow); }
.hs-share-stage .spinner { position: absolute; margin: 0; display: none; }
.hs-share-stage.is-loading .hs-share-canvas { visibility: hidden; }
.hs-share-stage.is-loading .spinner { display: block; }
.hs-share-actions { display: flex; flex-direction: column; gap: 10px; }
.hs-share-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hs-share-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-share-row .btn { padding: 0 8px; font-size: 13.5px; gap: 7px; }
.hs-share-row .btn .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ escritorio */
@media (min-width: 960px) {
  .hs-month-head { top: var(--topbar-h); margin: 0 -10px; padding: 12px 10px; border-radius: 0 0 12px 12px; }
  .hs-month-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hs-sum { padding: 20px 22px; }
  .hs-sum-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-tools { flex-direction: row; align-items: center; gap: 12px; }
  .hs-search { flex: 1; max-width: 440px; }
  .hs-tools .chips { margin: 0; padding: 2px 0; flex: none; }

  .hs-cal-mode { align-self: flex-start; }
  .hs-cal-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
  .hs-cal { padding: 16px 18px 20px; }
  .hs-day { height: 56px; }
  .hs-day i { width: 44px; height: 44px; font-size: 15px; }
  .hs-day em { left: calc(50% + 12px); }
  .hs-year { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }

  .hs-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }
  .hs-d-main, .hs-d-side { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
  .hs-d-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
  .hs-d-title { font-size: 32px; }
  .hs-d-fig b { font-size: 18px; }
  .hs-d-cta { margin-top: 0; }
  .hs-d-cta-row { grid-template-columns: minmax(0, 1fr); }
  .hs-share-canvas { max-height: min(46dvh, 460px); }
}
