/* Inicio · Home del centro (S090-079c)
   Mesa de trabajo del profesional: resumen en una línea, KPIs en una sola
   franja (cada uno con su propia visualización), actividad en vivo, agenda,
   cumpleaños y tres bandejas de acción con filas distintas entre sí.
   Prefijo `hm-`; los estilos viejos `cmd-*` ya no tienen markup en Inicio.
   <html> lleva `zoom: 0.875` → 50 px CSS ≈ 44 px reales en táctil. */

#tab-inicio.hm-home {
  --hm-hover: color-mix(in srgb, var(--text) 4.5%, transparent);
  --hm-soft: color-mix(in srgb, var(--text) 6%, transparent);
  --hm-ink-2: color-mix(in srgb, var(--text) 78%, var(--muted));
  --hm-accent: var(--tenant-primary);
  --hm-accent-ink: color-mix(in srgb, var(--tenant-primary) 82%, var(--text));
  --hm-accent-soft: color-mix(in srgb, var(--tenant-primary) 12%, transparent);
  --hm-ok: color-mix(in srgb, var(--sys-ok) 70%, var(--text));
  --hm-warn: color-mix(in srgb, var(--sys-warn) 72%, var(--text));
  --hm-bad: color-mix(in srgb, var(--sys-err) 76%, var(--text));
  --hm-radius: var(--radius-lg, 16px);
  --hm-pad: 20px;
  --hm-touch: 40px;
  --hm-ease: var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

html[data-theme="dark"] #tab-inicio.hm-home {
  --hm-accent-ink: color-mix(in srgb, var(--tenant-primary) 42%, var(--text));
  --hm-accent-soft: color-mix(in srgb, var(--tenant-primary) 22%, transparent);
}

#tab-inicio.hm-home.tab-panel.active {
  display: flex !important;
  flex-direction: column;
  gap: 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: 100% !important;
  padding: 4px 2px 40px !important;
}

#tab-inicio.hm-home > * { flex: 0 0 auto; min-width: 0; }

#tab-inicio .hm-h {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

#tab-inicio .hm-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#tab-inicio .hm-title-row > .hm-h { flex: 0 1 auto; min-width: 0; }
#tab-inicio .hm-title-row > .hm-link,
#tab-inicio .hm-title-row > .hm-seg,
#tab-inicio .hm-title-row > .hm-sort,
#tab-inicio .hm-title-row > .hm-legend { margin-left: auto; }

#tab-inicio .hm-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--hm-soft);
  color: var(--hm-ink-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-count[hidden] { display: none; }

#tab-inicio .hm-ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Botones base ─────────────────────────────────────────────────── */
#tab-inicio .hm-link {
  border: 0;
  background: none;
  padding: 6px 4px;
  color: var(--hm-accent-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
#tab-inicio .hm-link:hover { text-decoration: underline; text-underline-offset: 3px; }

#tab-inicio .hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease), border-color var(--dur-fast) var(--hm-ease),
    transform 120ms var(--hm-ease);
}
#tab-inicio .hm-btn svg { width: 15px; height: 15px; flex: none; }
#tab-inicio .hm-btn:hover { background: var(--hm-hover); border-color: var(--border); }
#tab-inicio .hm-btn:active { transform: scale(0.97); }
#tab-inicio .hm-btn.is-soft {
  border-color: transparent;
  background: var(--hm-accent-soft);
  color: var(--hm-accent-ink);
}
#tab-inicio .hm-btn.is-soft:hover { background: color-mix(in srgb, var(--tenant-primary) 18%, transparent); }

#tab-inicio .hm-icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--hm-touch);
  height: var(--hm-touch);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--hm-ink-2);
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease), transform 120ms var(--hm-ease);
}
#tab-inicio .hm-icon-btn svg { width: 17px; height: 17px; }
#tab-inicio .hm-icon-btn:hover { background: var(--hm-hover); color: var(--text); }
#tab-inicio .hm-icon-btn:active { transform: scale(0.95); }
#tab-inicio .hm-icon-btn:active svg { transform: rotate(-90deg); transition: transform 240ms var(--hm-ease); }

#tab-inicio :is(.hm-btn, .hm-link, .hm-icon-btn, .hm-chip, .hm-seg button, .hm-sort, .hm-act-btn,
  .hm-row-who, .hm-bday-who, .hm-tl-btn, .hm-kpi, .hm-brief-link, .hm-col, .hm-more, .hm-feed-fresh):focus-visible {
  outline: 2px solid var(--hm-accent);
  outline-offset: 2px;
}

/* ── Cabecera ─────────────────────────────────────────────────────── */
#tab-inicio .hm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 0;
}
#tab-inicio .hm-head-copy { min-width: 0; }
#tab-inicio .hm-date {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
#tab-inicio .hm-hello {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
#tab-inicio .hm-brief {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 8px 0 0;
  color: var(--hm-ink-2);
  font-size: 14px;
  line-height: 1.5;
  min-height: 21px;
}
#tab-inicio .hm-brief-link {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-brief-link:hover { text-decoration-color: currentColor; }
#tab-inicio .hm-brief-link.is-warn { color: var(--hm-bad); }
#tab-inicio .hm-sep { color: var(--muted); opacity: 0.7; }

#tab-inicio .hm-head-side { display: flex; align-items: center; gap: 10px; flex: none; }

#tab-inicio .hm-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--hm-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
#tab-inicio .hm-live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
#tab-inicio .hm-live[data-state="live"] i { background: var(--sys-ok); }
#tab-inicio .hm-live[data-state="live"] i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sys-ok);
  animation: hm-ping 2.4s var(--hm-ease) infinite;
}
#tab-inicio .hm-live[data-state="retry"] i { background: var(--sys-warn); }

@keyframes hm-ping {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

#tab-inicio .hm-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--sys-err) 35%, transparent);
  background: color-mix(in srgb, var(--sys-err) 8%, var(--surface));
  color: var(--text);
  font-size: 13.5px;
}
#tab-inicio .hm-error[hidden] { display: none; }

/* ── KPIs: una franja, cuatro visualizaciones ─────────────────────── */
#tab-inicio .hm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hairline);
  border-radius: var(--hm-radius);
  background: var(--surface);
  box-shadow: var(--elev-1);
  overflow: hidden;
}
#tab-inicio .hm-kpi {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "label viz" "value viz" "delta viz";
  column-gap: 12px;
  row-gap: 2px;
  min-height: 112px;
  padding: 18px var(--hm-pad);
  border: 0;
  border-left: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}
#tab-inicio .hm-kpi:first-child { border-left: 0; }
#tab-inicio button.hm-kpi { cursor: pointer; transition: background var(--dur-fast) var(--hm-ease); }
#tab-inicio button.hm-kpi:hover { background: var(--hm-hover); }
#tab-inicio .hm-kpi-label { grid-area: label; font-size: 13px; font-weight: 550; color: var(--hm-ink-2); }
#tab-inicio .hm-kpi-value {
  grid-area: value;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
#tab-inicio .hm-delta {
  grid-area: delta;
  align-self: start;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-delta b { margin-right: 2px; }
#tab-inicio .hm-delta.is-up { color: var(--hm-ok); }
#tab-inicio .hm-delta.is-down { color: var(--hm-bad); }
#tab-inicio .hm-kpi-viz {
  grid-area: viz;
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
}
#tab-inicio .hm-kpi.is-loading,
#tab-inicio .hm-kpi.is-empty { display: block; }
#tab-inicio .hm-kpi.is-loading::before,
#tab-inicio .hm-kpi.is-loading::after {
  content: "";
  display: block;
  border-radius: 6px;
  background: var(--hm-soft);
  animation: hm-shimmer 1.4s ease-in-out infinite;
}
#tab-inicio .hm-kpi.is-loading::before { width: 55%; height: 12px; margin-bottom: 12px; }
#tab-inicio .hm-kpi.is-loading::after { width: 35%; height: 28px; }
#tab-inicio .hm-kpi.is-empty { color: var(--muted); font-size: 28px; font-weight: 700; }

/* sparkline: clientes activos 8 semanas */
#tab-inicio .hm-kpi--active .hm-kpi-viz { width: 104px; height: 44px; }
#tab-inicio .hm-spark { width: 100%; height: 100%; overflow: visible; }
#tab-inicio .hm-spark-line { fill: none; stroke: var(--hm-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#tab-inicio .hm-spark-area { fill: color-mix(in srgb, var(--tenant-primary) 14%, transparent); stroke: none; }
#tab-inicio .hm-spark-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--hm-accent);
}

/* mini barras: entrenos 7 días */
#tab-inicio .hm-minibars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 92px;
  height: 44px;
}
#tab-inicio .hm-minibars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  transform-origin: bottom;
  animation: hm-grow 520ms var(--hm-ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
#tab-inicio .hm-minibars i:last-child { background: var(--hm-accent); }
#tab-inicio .hm-minibars i.is-zero { background: var(--hm-soft); }

/* anillo: cumplimiento */
#tab-inicio .hm-ring { width: 52px; height: 52px; transform: rotate(-90deg); }
#tab-inicio .hm-ring circle { fill: none; stroke-width: 4.5; }
#tab-inicio .hm-ring-track { stroke: var(--hm-soft); }
#tab-inicio .hm-ring-fill {
  stroke: var(--hm-accent);
  stroke-linecap: round;
  transition: stroke-dasharray 600ms var(--hm-ease);
}

/* medidor segmentado: aforo por sede */
#tab-inicio .hm-kpi--aforo .hm-kpi-viz { width: 96px; }
#tab-inicio .hm-meter {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 10px;
}
#tab-inicio .hm-meter i {
  position: relative;
  flex: 0 0 var(--w);
  min-width: 10px;
  border-radius: 3px;
  background: var(--hm-soft);
  overflow: hidden;
}
#tab-inicio .hm-meter i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--f);
  background: var(--hm-ok);
  border-radius: inherit;
  transition: width 600ms var(--hm-ease);
}
#tab-inicio .hm-kpi--aforo.is-warm .hm-meter i::after { background: var(--sys-warn); }
#tab-inicio .hm-kpi--aforo.is-hot .hm-meter i::after { background: var(--sys-err); }

/* ── Superficies de sección ───────────────────────────────────────── */
#tab-inicio :is(.hm-feed, .hm-today, .hm-bdays, .hm-tray, .hm-pulse) {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--hm-radius);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

#tab-inicio .hm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}
#tab-inicio .hm-side { display: grid; gap: 20px; min-width: 0; }

/* ── Feed ─────────────────────────────────────────────────────────── */
#tab-inicio .hm-feed { display: flex; flex-direction: column; position: relative; overflow: hidden; }
#tab-inicio .hm-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--hm-pad) 10px;
}
#tab-inicio .hm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, 100%);
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color var(--dur-fast) var(--hm-ease), box-shadow var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-search:focus-within {
  border-color: color-mix(in srgb, var(--tenant-primary) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--hm-accent-soft);
}
#tab-inicio .hm-search svg { width: 15px; height: 15px; flex: none; }
#tab-inicio .hm-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
#tab-inicio .hm-search input::placeholder { color: var(--muted); }

#tab-inicio .hm-chips {
  display: flex;
  gap: 6px;
  padding: 0 var(--hm-pad) 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hairline);
}
#tab-inicio .hm-chips::-webkit-scrollbar { display: none; }
#tab-inicio .hm-chip {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--hm-ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease), color var(--dur-fast) var(--hm-ease),
    border-color var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-chip:hover { background: var(--hm-hover); color: var(--text); }
#tab-inicio .hm-chip.is-on {
  border-color: transparent;
  background: var(--text);
  color: var(--surface);
}

#tab-inicio .hm-feed-fresh {
  position: absolute;
  top: 116px;
  left: 50%;
  z-index: 3;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: var(--elev-2);
  cursor: pointer;
  transform: translateX(-50%);
  animation: hm-drop 220ms var(--hm-ease);
}
#tab-inicio .hm-feed-fresh[hidden] { display: none; }

#tab-inicio .hm-feed-scroll {
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#tab-inicio .hm-feed-list { list-style: none; margin: 0; padding: 0 0 6px; }

#tab-inicio .hm-day {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px var(--hm-pad) 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

#tab-inicio .hm-act { border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); }
#tab-inicio .hm-act:last-child { border-bottom: 0; }
#tab-inicio .hm-act-btn {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px var(--hm-pad);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-act-btn:hover { background: var(--hm-hover); }
#tab-inicio .hm-act-btn:active { background: color-mix(in srgb, var(--text) 7%, transparent); }
#tab-inicio .hm-act-go {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  opacity: 0.55;
  transform: rotate(-90deg);
  transition: transform 180ms var(--hm-ease), opacity 180ms var(--hm-ease), color 180ms var(--hm-ease);
}
#tab-inicio .hm-act-btn:is(:hover, :focus-visible) .hm-act-go {
  opacity: 1;
  color: var(--hm-accent-ink);
  transform: rotate(-90deg) translateY(2px);
}
@media (prefers-reduced-motion: reduce) {
  #tab-inicio .hm-act-go { transition: none; }
  #tab-inicio .hm-act-btn:is(:hover, :focus-visible) .hm-act-go { transform: rotate(-90deg); }
}

/* Detalle actividad libre / check-in / hábito (dialog fuera de #tab-inicio). */
.hm-act-dialog-head { display: grid; gap: 2px; min-width: 0; }
.hm-act-dialog-who { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.hm-act-dialog-head h3 { margin: 0; }
.hm-act-dialog .modal-footer .btn-primary,
.hm-act-dialog .modal-footer .ghost { min-height: 44px; }
.hm-act-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}
.hm-act-kv {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 2.5%, var(--surface));
}
.hm-act-kv dt { font-size: 12px; color: var(--muted); }
.hm-act-kv dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-act-note {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tenant-primary) 7%, var(--surface));
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-line;
}
.hm-act-note span { font-size: 12px; font-weight: 600; color: var(--muted); }
.hm-act-sub { margin: 4px 0 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.hm-act-sub ~ .hm-act-sub { margin-top: 16px; }
.hm-act-habits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hm-act-habits li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.hm-act-habits time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hm-act-skel { display: grid; gap: 8px; }
.hm-act-skel i {
  display: block;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  animation: hm-act-pulse 1.2s ease-in-out infinite;
}
@keyframes hm-act-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .hm-act-skel i { animation: none; } }
#tab-inicio .hm-act.is-new { animation: hm-in 420ms var(--hm-ease); }
#tab-inicio .hm-act.is-new .hm-act-btn { animation: hm-flash 2.4s var(--hm-ease); }

#tab-inicio :is(.hm-av) {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--tenant-primary) 16%, var(--surface));
  color: var(--hm-accent-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
#tab-inicio .hm-av img { width: 100%; height: 100%; object-fit: cover; }

#tab-inicio .hm-act-body { display: grid; gap: 6px; min-width: 0; }
#tab-inicio .hm-act-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}
#tab-inicio .hm-act-line strong { font-weight: 650; }
#tab-inicio .hm-act-verb { color: var(--muted); }
#tab-inicio .hm-act-title { color: var(--hm-accent-ink); font-weight: 600; }
#tab-inicio .hm-act-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--hm-ink-2);
  font-size: 12.5px;
}
#tab-inicio .hm-act-meta time,
#tab-inicio .hm-act-extra { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-act-meta time svg { width: 13px; height: 13px; opacity: 0.7; }

#tab-inicio .hm-pill {
  --pill: var(--hm-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pill) 38%, transparent);
  background: color-mix(in srgb, var(--pill) 9%, transparent);
  color: var(--pill);
  font-size: 12px;
  font-weight: 600;
  max-width: 220px;
}
#tab-inicio .hm-pill span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#tab-inicio .hm-pill svg { width: 13px; height: 13px; flex: none; }
#tab-inicio .hm-pill.is-workout { --pill: var(--hm-warn); }
#tab-inicio .hm-pill.is-meal { --pill: var(--hm-ok); }
#tab-inicio .hm-pill.is-visit { --pill: var(--hm-accent-ink); }
#tab-inicio .hm-pill.is-device {
  --pill: var(--text);
  background: var(--surface);
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
}
#tab-inicio .hm-pill.is-device svg { width: 14px; height: 14px; }

#tab-inicio .hm-more {
  display: block;
  width: calc(100% - 2 * var(--hm-pad));
  margin: 6px auto 12px;
  height: 38px;
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  background: transparent;
  color: var(--hm-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#tab-inicio .hm-more:hover { background: var(--hm-hover); color: var(--text); }
#tab-inicio .hm-more[hidden] { display: none; }

/* ── Estados vacíos / carga ───────────────────────────────────────── */
#tab-inicio .hm-empty {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 22px var(--hm-pad);
  color: var(--hm-ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
#tab-inicio .hm-empty strong { color: var(--text); font-size: 14px; font-weight: 650; }
#tab-inicio .hm-empty span { max-width: 52ch; }
#tab-inicio .hm-empty .hm-btn { margin-top: 6px; }
#tab-inicio .hm-empty.is-error strong { color: var(--hm-bad); }

#tab-inicio .hm-skel {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px var(--hm-pad);
}
#tab-inicio .hm-skel i,
#tab-inicio .hm-skel span,
#tab-inicio .hm-chart-skel {
  display: block;
  background: var(--hm-soft);
  animation: hm-shimmer 1.4s ease-in-out infinite;
}
#tab-inicio .hm-skel i { width: 40px; height: 40px; border-radius: 50%; }
#tab-inicio .hm-skel span { height: 12px; width: 72%; border-radius: 6px; }
#tab-inicio .hm-skel:nth-child(2n) span { width: 54%; }
#tab-inicio .hm-chart-skel { height: 160px; border-radius: 10px; }

@keyframes hm-shimmer { 50% { opacity: 0.45; } }
@keyframes hm-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes hm-flash { from { background: var(--hm-accent-soft); } }
@keyframes hm-drop { from { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes hm-grow { from { transform: scaleY(0); } }

/* ── Agenda (timeline) ────────────────────────────────────────────── */
#tab-inicio .hm-today,
#tab-inicio .hm-bdays { padding: 16px 0 8px; }
#tab-inicio .hm-today > .hm-title-row,
#tab-inicio .hm-bdays > .hm-title-row { padding: 0 var(--hm-pad) 8px; }

#tab-inicio .hm-timeline { list-style: none; margin: 0; padding: 0 0 4px; position: relative; }
#tab-inicio .hm-tl-day {
  padding: 8px var(--hm-pad) 2px calc(var(--hm-pad) + 70px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
#tab-inicio .hm-tl-btn {
  position: relative;
  display: grid;
  grid-template-columns: 54px 16px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 8px;
  width: 100%;
  padding: 8px var(--hm-pad);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-tl-btn:hover { background: var(--hm-hover); }
#tab-inicio .hm-tl-btn time {
  padding-top: 1px;
  color: var(--hm-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#tab-inicio .hm-tl-dot {
  position: relative;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 35%, transparent);
  background: var(--surface);
}
#tab-inicio .hm-tl-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 1px;
  height: 34px;
  background: var(--hairline);
  transform: translateX(-50%);
}
#tab-inicio .hm-tl-item:last-child .hm-tl-dot::before,
#tab-inicio .hm-tl-item:has(+ .hm-tl-day) .hm-tl-dot::before,
#tab-inicio .hm-tl-item:has(+ .hm-tl-more) .hm-tl-dot::before { display: none; }
#tab-inicio .hm-tl-item.is-live .hm-tl-dot {
  border-color: var(--hm-accent);
  background: var(--hm-accent);
  box-shadow: 0 0 0 4px var(--hm-accent-soft);
}
#tab-inicio .hm-tl-body { display: grid; gap: 2px; min-width: 0; }
#tab-inicio .hm-tl-body strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
}
#tab-inicio .hm-tl-body span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12.5px;
}
#tab-inicio .hm-now-tag {
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent-ink);
  font-size: 11.5px;
  font-weight: 700;
}
#tab-inicio .hm-tl-more { padding: 4px var(--hm-pad) 4px calc(var(--hm-pad) + 66px); }

/* ── Cumpleaños ───────────────────────────────────────────────────── */
#tab-inicio .hm-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--hm-soft);
}
#tab-inicio .hm-seg button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--hm-ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease), color var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-seg button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--elev-1); }

#tab-inicio .hm-bday-list { list-style: none; margin: 0; padding: 0; }
#tab-inicio .hm-bday {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px var(--hm-pad);
}
#tab-inicio .hm-cal {
  display: grid;
  grid-template-rows: 12px 1fr;
  width: 44px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  text-align: center;
  background: var(--surface);
}
#tab-inicio .hm-cal::before {
  content: "";
  background: color-mix(in srgb, var(--tenant-primary) 70%, var(--surface));
}
#tab-inicio .hm-cal b {
  grid-row: 2;
  font-size: 17px;
  line-height: 1;
  padding-top: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-cal small {
  grid-row: 2;
  align-self: end;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
}
#tab-inicio .hm-cal b,
#tab-inicio .hm-cal small { grid-column: 1; }
#tab-inicio .hm-bday.is-today .hm-cal { border-color: var(--hm-accent); box-shadow: 0 0 0 3px var(--hm-accent-soft); }
#tab-inicio .hm-bday-who {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#tab-inicio .hm-bday-who strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
}
#tab-inicio .hm-bday-who:hover strong { text-decoration: underline; text-underline-offset: 3px; }
#tab-inicio .hm-bday-who span { color: var(--muted); font-size: 12.5px; }

/* ── Bandejas ─────────────────────────────────────────────────────── */
#tab-inicio .hm-trays {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
#tab-inicio .hm-tray { padding: 16px 0 6px; }
#tab-inicio .hm-tray > .hm-title-row { padding: 0 var(--hm-pad); }
#tab-inicio .hm-tray-sub {
  margin: 4px 0 8px;
  padding: 0 var(--hm-pad);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
#tab-inicio .hm-rows { list-style: none; margin: 0; padding: 0; }
#tab-inicio .hm-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 8px var(--hm-pad);
  border-top: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
#tab-inicio .hm-row-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#tab-inicio .hm-row-who .hm-av { width: 34px; height: 34px; font-size: 12px; }
#tab-inicio .hm-row-main { display: grid; gap: 2px; min-width: 0; }
#tab-inicio .hm-row-main strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
}
#tab-inicio .hm-row-who:hover .hm-row-main strong { text-decoration: underline; text-underline-offset: 3px; }
#tab-inicio .hm-row-main span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12.5px;
}
#tab-inicio .hm-row-main .hm-kind {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--text, inherit);
  background: color-mix(in srgb, var(--hairline) 60%, transparent);
}
#tab-inicio .hm-kind.is-training { background: color-mix(in srgb, var(--accent, #3b82f6) 16%, transparent); }
#tab-inicio .hm-kind.is-nutrition { background: color-mix(in srgb, var(--sys-ok, #22c55e) 16%, transparent); }
#tab-inicio .hm-kind.is-wellness { background: color-mix(in srgb, var(--sys-warn, #f59e0b) 16%, transparent); }
#tab-inicio .hm-rows-foot { padding: 6px var(--hm-pad) 4px; border-top: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); }

#tab-inicio .hm-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: var(--hm-soft);
  color: var(--hm-ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
#tab-inicio .hm-sort svg { width: 12px; height: 12px; transform: rotate(90deg); transition: transform var(--dur-base) var(--hm-ease); }
#tab-inicio .hm-sort.is-asc svg { transform: rotate(-90deg); }
#tab-inicio .hm-sort { white-space: nowrap; flex-shrink: 0; }

@media (min-width: 901px) and (max-width: 1280px) {
  #tab-inicio .hm-task.hm-task { grid-template-columns: minmax(0, 1fr) 58px auto; gap: 8px; }
  #tab-inicio .hm-task .hm-btn { width: 44px; padding: 0; justify-content: center; }
  #tab-inicio .hm-task .hm-btn span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* sin sesiones: barra de días */
#tab-inicio .hm-task { grid-template-columns: minmax(0, 1fr) 74px auto; }
#tab-inicio .hm-days {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  padding-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-days b { font-size: 16px; font-weight: 700; }
#tab-inicio .hm-days small { color: var(--muted); font-size: 11.5px; }
#tab-inicio .hm-days::before,
#tab-inicio .hm-days::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
}
#tab-inicio .hm-days::before { left: 0; background: var(--hm-soft); }
#tab-inicio .hm-days::after { width: var(--p); background: color-mix(in srgb, var(--text) 35%, transparent); }
#tab-inicio .hm-task.is-warm .hm-days::after { background: var(--sys-warn); }
#tab-inicio .hm-task.is-hot .hm-days::after { background: var(--sys-err); }
#tab-inicio .hm-task.is-hot .hm-days b { color: var(--hm-bad); }

/* suscripciones: cuenta regresiva */
#tab-inicio .hm-sub { grid-template-columns: 52px minmax(0, 1fr) auto; }
#tab-inicio .hm-count-tile {
  --tile: var(--hm-ink-2);
  display: grid;
  place-items: center;
  align-content: center;
  width: 52px;
  min-height: 48px;
  padding: 5px 2px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 10%, transparent);
  color: var(--tile);
  text-align: center;
}
#tab-inicio .hm-count-tile b { font-size: 18px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-count-tile small { margin-top: 2px; font-size: 10px; font-weight: 600; line-height: 1.1; }
#tab-inicio .hm-sub.is-warm .hm-count-tile { --tile: var(--hm-warn); }
#tab-inicio .hm-sub.is-hot .hm-count-tile { --tile: var(--hm-bad); }
#tab-inicio .hm-sub.is-expired .hm-count-tile {
  --tile: var(--hm-bad);
  background: color-mix(in srgb, var(--sys-err) 14%, transparent);
  outline: 1px dashed color-mix(in srgb, var(--sys-err) 45%, transparent);
  outline-offset: -1px;
}

/* cumplimiento: dos medidores */
#tab-inicio .hm-compl { grid-template-columns: minmax(0, 1fr) 132px; }
#tab-inicio .hm-meters { display: grid; gap: 5px; }
#tab-inicio .hm-meter2 {
  --m: var(--muted);
  display: grid;
  grid-template-columns: 30px 1fr 36px;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-meter2 small { color: var(--muted); font-size: 11px; font-weight: 600; }
#tab-inicio .hm-meter2 b { justify-self: end; font-size: 12.5px; font-weight: 700; color: var(--m); }
#tab-inicio .hm-meter2-bar { height: 6px; border-radius: 3px; background: var(--hm-soft); overflow: hidden; }
#tab-inicio .hm-meter2-bar i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--m);
  transform-origin: left;
  animation: hm-grow-x 520ms var(--hm-ease) backwards;
}
#tab-inicio .hm-meter2.is-bad { --m: var(--hm-bad); }
#tab-inicio .hm-meter2.is-mid { --m: var(--hm-warn); }
#tab-inicio .hm-meter2.is-good { --m: var(--hm-ok); }
@keyframes hm-grow-x { from { transform: scaleX(0); } }

/* ── Gráfica 14 días ─────────────────────────────────────────────── */
#tab-inicio .hm-pulse { padding: 16px var(--hm-pad) 14px; }
#tab-inicio .hm-legend {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hm-ink-2);
  font-size: 12.5px;
}
#tab-inicio .hm-legend li { display: inline-flex; align-items: center; gap: 6px; }
#tab-inicio .hm-legend i { width: 10px; height: 10px; border-radius: 3px; }
#tab-inicio :is(.hm-legend, .hm-col-bars) .is-train { background: var(--hm-accent); }
#tab-inicio :is(.hm-legend, .hm-col-bars) .is-visit { background: color-mix(in srgb, var(--text) 28%, transparent); }

#tab-inicio .hm-chart {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 8px;
  margin-top: 14px;
}
#tab-inicio .hm-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transform: translateY(-6px);
  height: calc(var(--hm-plot-h, 180px) + 12px);
}
#tab-inicio .hm-chart-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
}
#tab-inicio .hm-chart-grid { position: absolute; inset: 0 0 auto 0; height: var(--hm-plot-h, 180px); pointer-events: none; }
#tab-inicio .hm-chart-grid i {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--hairline);
}
#tab-inicio .hm-chart-grid i:nth-child(1) { top: 0; }
#tab-inicio .hm-chart-grid i:nth-child(2) { top: 50%; }
#tab-inicio .hm-chart-grid i:nth-child(3) { bottom: 0; border-top-style: solid; }
#tab-inicio .hm-col {
  position: relative;
  display: grid;
  grid-template-rows: var(--hm-plot-h, 180px) auto;
  min-width: 0;
  outline: none;
  border-radius: 8px;
}
#tab-inicio .hm-col-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 0 2px;
  border-radius: 8px 8px 0 0;
  transition: background var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-col-bars i {
  flex: 0 1 14px;
  height: var(--h);
  min-height: 2px;
  border-radius: 4px 4px 1px 1px;
  transform-origin: bottom;
  animation: hm-grow 560ms var(--hm-ease) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}
#tab-inicio .hm-col:hover .hm-col-bars,
#tab-inicio .hm-col:focus-visible .hm-col-bars { background: var(--hm-hover); }
#tab-inicio .hm-col-x {
  display: grid;
  justify-items: center;
  padding-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-col-x small { font-size: 11px; font-weight: 500; }
#tab-inicio .hm-col.is-today .hm-col-x { color: var(--text); }
#tab-inicio .hm-col.is-today .hm-col-x small { font-weight: 700; }
#tab-inicio .hm-tip {
  position: absolute;
  bottom: calc(100% - var(--hm-plot-h, 180px) + 8px);
  left: 50%;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: var(--elev-2);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity var(--dur-fast) var(--hm-ease), transform var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-col:first-child .hm-tip,
#tab-inicio .hm-col:nth-child(2) .hm-tip { left: 0; transform: translate(0, 4px); }
#tab-inicio .hm-col:last-child .hm-tip,
#tab-inicio .hm-col:nth-last-child(2) .hm-tip { left: auto; right: 0; transform: translate(0, 4px); }
#tab-inicio .hm-col:hover .hm-tip,
#tab-inicio .hm-col:focus-visible .hm-tip { opacity: 1; transform: translate(-50%, 0); }
#tab-inicio .hm-col:is(:first-child, :nth-child(2), :last-child, :nth-last-child(2)):is(:hover, :focus-visible) .hm-tip {
  transform: translate(0, 0);
}
#tab-inicio .hm-chart-sum {
  grid-column: 2;
  margin: 12px 0 0;
  color: var(--hm-ink-2);
  font-size: 13px;
}
#tab-inicio .hm-chart-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
#tab-inicio .hm-chart-empty { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
#tab-inicio .hm-chart > .hm-chart-skel { grid-column: 1 / -1; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  #tab-inicio .hm-trays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-inicio .hm-trays > .hm-comp { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  #tab-inicio .hm-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-inicio .hm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #tab-inicio .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-inicio .hm-kpi:nth-child(3) { border-left: 0; }
  #tab-inicio .hm-kpi:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}

@media (max-width: 900px) {
  #tab-inicio.hm-home { --hm-pad: 16px; --hm-touch: 50px; }
  #tab-inicio.hm-home.tab-panel.active { gap: 16px !important; padding: 2px 0 32px !important; }
  #tab-inicio .hm-head { flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 2px 0; }
  #tab-inicio .hm-head-side { justify-content: space-between; }
  #tab-inicio .hm-hello { font-size: 24px; }
  #tab-inicio .hm-side,
  #tab-inicio .hm-trays { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #tab-inicio .hm-grid { gap: 16px; }
  #tab-inicio .hm-kpi {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "value" "delta" "viz";
    min-height: 0;
    padding: 14px var(--hm-pad);
  }
  #tab-inicio .hm-kpi-viz { justify-self: start; margin-top: 8px; }
  #tab-inicio .hm-kpi-value { font-size: 26px; }
  #tab-inicio .hm-feed-head { flex-wrap: wrap; }
  #tab-inicio .hm-search { width: 100%; height: 52px; order: 2; }
  #tab-inicio .hm-feed-fresh { top: 172px; }
  #tab-inicio .hm-chip { height: 44px; padding: 0 14px; }
  #tab-inicio .hm-seg button { height: 44px; padding: 0 12px; }
  #tab-inicio .hm-sort { height: 44px; }
  #tab-inicio :is(.hm-chip, .hm-seg button, .hm-sort) { position: relative; }
  #tab-inicio :is(.hm-chip, .hm-seg button, .hm-sort)::after { content: ""; position: absolute; inset: -4px 0; }
  #tab-inicio .hm-btn { min-height: 52px; min-width: 52px; padding: 0 14px; border-radius: 12px; }
  #tab-inicio .hm-icon-btn { width: 52px; height: 52px; }
  #tab-inicio :is(.hm-row-who, .hm-bday-who) { min-height: 52px; }
  #tab-inicio .hm-more { min-height: 52px; }
  #tab-inicio .hm-brief-link { display: inline-block; padding-block: 13px; margin-block: -13px; }
  #tab-inicio .hm-link { min-height: 52px; }
  #tab-inicio .hm-act-btn { min-height: 64px; }
  #tab-inicio .hm-tl-btn { min-height: 54px; }
  #tab-inicio .hm-feed-scroll { max-height: 70vh; }
  #tab-inicio .hm-chart { --hm-plot-h: 150px; }
  #tab-inicio .hm-chart-plot { gap: 3px; }
  #tab-inicio .hm-pulse > .hm-title-row { flex-wrap: wrap; }
  #tab-inicio .hm-legend { margin-left: 0 !important; width: 100%; }
}

@media (max-width: 520px) {
  #tab-inicio .hm-kpi-value { font-size: 23px; }
  #tab-inicio .hm-kpi-label { font-size: 12.5px; }
  #tab-inicio .hm-delta { font-size: 11.5px; }
  #tab-inicio .hm-kpi--active .hm-kpi-viz { width: 100%; }
  #tab-inicio .hm-kpi--aforo .hm-kpi-viz { width: 100%; }
  #tab-inicio .hm-btn span { display: none; }
  #tab-inicio .hm-btn:has(svg) { width: 52px; padding: 0; }
  #tab-inicio .hm-empty .hm-btn span { display: inline; }
  #tab-inicio .hm-empty .hm-btn { width: auto; padding: 0 14px; }
  #tab-inicio .hm-task { grid-template-columns: minmax(0, 1fr) 58px auto; gap: 8px; }
  #tab-inicio .hm-sub { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  #tab-inicio .hm-count-tile { width: 48px; }
  #tab-inicio .hm-compl { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  #tab-inicio .hm-compl .hm-row-who .hm-av { display: none; }
  #tab-inicio .hm-col-x small { display: none; }
  #tab-inicio .hm-tray > .hm-title-row,
  #tab-inicio .hm-bdays > .hm-title-row { flex-wrap: wrap; row-gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  #tab-inicio.hm-home *,
  #tab-inicio.hm-home *::before,
  #tab-inicio.hm-home *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  #tab-inicio .hm-live[data-state="live"] i::after { display: none; }
}

/* ══ S090 — Hoy por ancho real del contenido (container queries) ═══════
   Los @media de arriba miden la ventana; con sidebar abierta el contenido a
   1016 px de ventana mide ~700 px. Aquí manda el contenedor. */
#tab-inicio.hm-home { container: hm / inline-size; }

/* KPIs: una franja con divisores, viz a lo ancho bajo la cifra */
#tab-inicio .hm-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
#tab-inicio .hm-kpi {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: none;
  align-content: start;
  row-gap: 6px;
  min-height: 0;
  padding: 16px 20px 14px;
  border-left: 1px solid var(--hairline);
}
#tab-inicio .hm-kpi-label {
  grid-area: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
#tab-inicio .hm-kpi-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-weight: 500;
}
#tab-inicio .hm-kpi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}
#tab-inicio .hm-kpi-value {
  grid-area: auto;
  white-space: nowrap;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
#tab-inicio .hm-kpi-value small { margin-left: 2px; font-size: 15px; }
#tab-inicio .hm-kpi .hm-delta { grid-area: auto; white-space: nowrap; font-size: 12.5px; }
#tab-inicio .hm-kpi .hm-kpi-viz {
  grid-area: auto;
  display: block;
  align-self: end;
  width: 100%;
  height: 40px;
  margin-top: 6px;
}
#tab-inicio .hm-kpi--aforo .hm-kpi-viz { display: flex; align-items: center; height: 40px; }
#tab-inicio .hm-kpi .hm-spark { display: block; clip-path: inset(0 0 0 0); animation: hm-reveal 900ms var(--hm-ease) 120ms backwards; }
#tab-inicio .hm-kpi .hm-spark-dot { animation: hm-pop 300ms var(--hm-ease) 900ms backwards; }
#tab-inicio .hm-kpi .hm-meter { height: 8px; }
#tab-inicio .hm-kpi .hm-meter i { border-radius: 4px; }
@keyframes hm-reveal { from { clip-path: inset(0 100% 0 0); } }
@keyframes hm-pop { from { opacity: 0; transform: scale(0.4); } }

/* semana en barras con día */
#tab-inicio .hm-wbars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: 100%;
}
#tab-inicio .hm-wbar { display: grid; grid-template-rows: 1fr 12px; gap: 3px; min-width: 0; }
#tab-inicio .hm-wbar i {
  align-self: end;
  height: var(--h);
  min-height: 2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--tenant-primary) 34%, var(--surface));
  transform-origin: bottom;
  animation: hm-grow 520ms var(--hm-ease) backwards;
  animation-delay: calc(var(--i, 0) * 40ms + 100ms);
}
#tab-inicio .hm-wbar.is-zero i { background: var(--hm-soft); }
#tab-inicio .hm-wbar.is-today i { background: var(--hm-accent); }
#tab-inicio .hm-wbar small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
}
#tab-inicio .hm-wbar.is-today small { color: var(--text); font-weight: 700; }

@container hm (max-width: 899px) {
  #tab-inicio .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-inicio .hm-kpi:nth-child(odd) { border-left: 0; }
  #tab-inicio .hm-kpi:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}
@container hm (max-width: 479px) {
  #tab-inicio .hm-kpi { padding: 14px 14px 12px; row-gap: 4px; }
  #tab-inicio .hm-kpi-hint { display: none; }
  #tab-inicio .hm-kpi-value { font-size: 24px; }
  #tab-inicio .hm-kpi-value small { font-size: 13px; }
  #tab-inicio .hm-kpi .hm-delta { white-space: normal; font-size: 11.5px; line-height: 1.3; }
  #tab-inicio .hm-kpi .hm-kpi-viz { height: 30px; margin-top: 4px; }
  #tab-inicio .hm-wbars { gap: 4px; }
}

/* Gráfica principal */
#tab-inicio .hm-pulse { padding: 18px 20px 14px; }
#tab-inicio .hm-pulse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 20px;
}
#tab-inicio .hm-pulse-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#tab-inicio .hm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 2px; }
#tab-inicio .hm-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#tab-inicio .hm-legend i { width: 10px; height: 10px; border-radius: 3px; }
#tab-inicio :is(.hm-legend, .hm-ctip) i.is-cur { background: var(--hm-accent); }
#tab-inicio :is(.hm-legend, .hm-ctip) i.is-prev { background: color-mix(in srgb, var(--tenant-primary) 30%, var(--surface)); }
#tab-inicio :is(.hm-legend, .hm-ctip) i.is-visit { width: 12px; height: 2px; border-radius: 1px; background: var(--text); }

#tab-inicio .hm-pulse-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
#tab-inicio .hm-chart-stats {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(100px, 1fr));
  align-items: end;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
#tab-inicio .hm-cs { display: grid; gap: 1px; min-width: 0; }
#tab-inicio .hm-cs span { color: var(--muted); font-size: 12.5px; }
#tab-inicio .hm-cs b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-cs.is-main b { font-size: 34px; line-height: 1.05; }
#tab-inicio .hm-cs em { color: var(--hm-ink-2); font-size: 12.5px; font-style: normal; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-cs em.is-up { color: var(--hm-ok); }
#tab-inicio .hm-cs em.is-down { color: var(--hm-bad); }

#tab-inicio .hm-chart { position: relative; display: block; min-width: 0; margin: 0; }
#tab-inicio .hm-svg { display: block; overflow: visible; font-family: inherit; }
#tab-inicio .hm-svg text { font-variant-numeric: tabular-nums; }
#tab-inicio .hm-g { stroke: var(--hairline); stroke-dasharray: 3 4; }
#tab-inicio .hm-g0 { stroke: color-mix(in srgb, var(--text) 22%, transparent); }
#tab-inicio .hm-gy { fill: var(--muted); font-size: 11px; text-anchor: end; }
#tab-inicio .hm-gx { fill: var(--muted); font-size: 11px; font-weight: 600; text-anchor: middle; }
#tab-inicio .hm-gx2 { fill: var(--muted); font-size: 10.5px; text-anchor: middle; opacity: 0.8; }
#tab-inicio .hm-gx.is-today,
#tab-inicio .hm-gx2.is-today { fill: var(--text); font-weight: 700; opacity: 1; }
#tab-inicio .hm-cut { stroke: var(--hairline); }
#tab-inicio .hm-cut-t { fill: var(--muted); font-size: 11px; }
#tab-inicio .hm-hit { fill: transparent; }
#tab-inicio .hm-slot.is-hover .hm-hit { fill: var(--hm-hover); }
#tab-inicio .hm-b { transition: opacity 160ms var(--hm-ease); }
#tab-inicio .hm-b.is-cur { fill: var(--hm-accent); }
#tab-inicio .hm-b.is-prev { fill: color-mix(in srgb, var(--tenant-primary) 30%, var(--surface)); }
#tab-inicio .hm-b0 { fill: var(--hm-soft); }
#tab-inicio .hm-svg:has(.hm-slot.is-hover) .hm-slot:not(.is-hover) .hm-b { opacity: 0.55; }
#tab-inicio .hm-bv { fill: var(--text); font-size: 11.5px; font-weight: 700; text-anchor: middle; }
#tab-inicio .hm-vl { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; opacity: 0.7; }
#tab-inicio .hm-vd { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
#tab-inicio .hm-svg.is-anim .hm-b {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: hm-grow 620ms var(--hm-ease) backwards;
  animation-delay: calc(var(--i, 0) * 32ms + 120ms);
}
#tab-inicio .hm-svg.is-anim :is(.hm-bv, .hm-vl, .hm-vd) { animation: hm-fade 300ms var(--hm-ease) 700ms backwards; }
@keyframes hm-fade { from { opacity: 0; } }
#tab-inicio .hm-ctip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: var(--elev-2);
  pointer-events: none;
}
#tab-inicio .hm-ctip[hidden] { display: none; }
#tab-inicio .hm-ctip b { font-weight: 650; }
#tab-inicio .hm-ctip span { display: flex; align-items: center; gap: 6px; opacity: 0.9; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-ctip i.is-visit { background: var(--surface); }

@container hm (max-width: 759px) {
  #tab-inicio .hm-chart-stats { gap: 12px 16px; }
  #tab-inicio .hm-cs.is-main b { font-size: 30px; }
}
@container hm (max-width: 539px) {
  #tab-inicio .hm-chart-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  #tab-inicio .hm-cs.is-main { grid-column: 1 / -1; }
  #tab-inicio .hm-cs:not(.is-main) b { font-size: 17px; }
  #tab-inicio .hm-cs span,
  #tab-inicio .hm-cs em { font-size: 12px; }
}

/* Rejilla feed + lateral */
#tab-inicio .hm-grid { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); }
#tab-inicio .hm-side { grid-template-columns: minmax(0, 1fr); }
@container hm (max-width: 1079px) {
  #tab-inicio .hm-grid { grid-template-columns: minmax(0, 1fr); }
  #tab-inicio .hm-side { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
@container hm (max-width: 619px) {
  #tab-inicio .hm-side { grid-template-columns: minmax(0, 1fr); }
}
#tab-inicio .hm-seg button { white-space: nowrap; }
#tab-inicio :is(.hm-tray, .hm-bdays, .hm-today) > .hm-title-row { flex-wrap: wrap; row-gap: 6px; }
#tab-inicio .hm-trays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tab-inicio .hm-trays > .hm-comp { grid-column: auto; }
@container hm (max-width: 1179px) {
  #tab-inicio .hm-trays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tab-inicio .hm-trays > .hm-comp { grid-column: 1 / -1; }
}
@container hm (max-width: 699px) {
  #tab-inicio .hm-trays { grid-template-columns: minmax(0, 1fr); }
}

/* Feed: avatar con insignia de tipo, meta en texto, hora a la derecha */
#tab-inicio .hm-day { font-size: 12.5px; font-weight: 650; color: var(--hm-ink-2); }
#tab-inicio .hm-act { --k: var(--hm-ink-2); }
#tab-inicio .hm-act-btn {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px var(--hm-pad);
}
#tab-inicio .hm-act-av { position: relative; width: 40px; height: 40px; }
#tab-inicio .hm-act-av .hm-av { width: 40px; height: 40px; }
#tab-inicio .hm-act-av.is-workout { --k: var(--tenant-primary); }
#tab-inicio .hm-act-av.is-meal { --k: #30a46c; }
#tab-inicio .hm-act-av.is-activity { --k: #e5484d; }
#tab-inicio .hm-act-av.is-device { --k: var(--text); }
#tab-inicio .hm-act-av.is-checkin { --k: #0090ff; }
#tab-inicio .hm-act-av.is-habit { --k: #8e4ec6; }
#tab-inicio .hm-act-av.is-visit { --k: #f76b15; }
#tab-inicio .hm-act-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--k);
  color: var(--surface);
}
#tab-inicio .hm-act-badge svg { width: 11px; height: 11px; stroke-width: 2.4; }
#tab-inicio .hm-act-badge svg :is(rect, path) { stroke-width: 2.4; }
#tab-inicio .hm-act-body { gap: 3px; padding-top: 1px; }
#tab-inicio .hm-act-line { font-size: 14px; line-height: 1.4; }
#tab-inicio .hm-act-title { color: var(--text); font-weight: 650; }
#tab-inicio .hm-act-meta { gap: 0; color: var(--muted); font-size: 12.5px; }
#tab-inicio .hm-act-kind { font-weight: 550; }
#tab-inicio .hm-act-meta > * + *::before { content: "·"; margin: 0 6px; opacity: 0.7; }
#tab-inicio .hm-act-extra { display: inline; }
#tab-inicio .hm-act-time {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-act-btn:is(:hover, :focus-visible) .hm-act-time { color: var(--hm-accent-ink); }

/* Agenda */
#tab-inicio .hm-ev-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 var(--hm-pad) 6px;
  color: var(--hm-ink-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-ev-progress b { color: var(--text); font-weight: 700; }
#tab-inicio .hm-ev-progress i {
  position: relative;
  flex: 1 0 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--hm-soft);
  overflow: hidden;
}
#tab-inicio .hm-ev-progress i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--hm-accent);
  transform-origin: left;
  animation: hm-grow-x 700ms var(--hm-ease) 150ms backwards;
}
#tab-inicio .hm-ev-day {
  padding: 12px var(--hm-pad) 4px;
  color: var(--hm-ink-2);
  font-size: 12.5px;
  font-weight: 650;
}
#tab-inicio .hm-ev { --k: var(--hm-ink-2); }
#tab-inicio .hm-ev.is-training { --k: var(--tenant-primary); }
#tab-inicio .hm-ev.is-cardio { --k: #e5484d; }
#tab-inicio .hm-ev.is-wellness { --k: #8e4ec6; }
#tab-inicio .hm-ev.is-nutrition { --k: #30a46c; }
#tab-inicio .hm-ev.is-physio { --k: #0090ff; }
#tab-inicio .hm-ev.is-group { --k: #f76b15; }
#tab-inicio .hm-ev-btn {
  display: grid;
  grid-template-columns: 46px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 10px;
  width: 100%;
  padding: 8px var(--hm-pad);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-ev-btn:hover { background: var(--hm-hover); }
#tab-inicio .hm-ev-btn:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: -2px; }
#tab-inicio .hm-ev-time { display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
#tab-inicio .hm-ev-time b { font-size: 13.5px; font-weight: 650; }
#tab-inicio .hm-ev-time small { color: var(--muted); font-size: 11.5px; }
#tab-inicio .hm-ev-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--k) 13%, var(--surface));
  color: color-mix(in srgb, var(--k) 85%, var(--text));
}
#tab-inicio .hm-ev-ico svg { width: 17px; height: 17px; }
#tab-inicio .hm-ev-body { display: grid; gap: 2px; min-width: 0; }
#tab-inicio .hm-ev-body strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; }
#tab-inicio .hm-ev-body span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; }
#tab-inicio .hm-ev-when {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hm-soft);
  color: var(--hm-ink-2);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
#tab-inicio .hm-ev-when.is-live { background: var(--hm-accent); color: var(--surface); }
#tab-inicio .hm-ev.is-live .hm-ev-btn { background: color-mix(in srgb, var(--tenant-primary) 7%, var(--surface)); }
#tab-inicio .hm-ev-more { padding: 4px var(--hm-pad) 2px; }

/* Cumpleaños */
#tab-inicio .hm-bd-none { padding: 4px var(--hm-pad) 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
#tab-inicio .hm-bd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px var(--hm-pad);
  transition: background var(--dur-fast) var(--hm-ease);
}
#tab-inicio .hm-bd:hover { background: var(--hm-hover); }
#tab-inicio .hm-bd-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#tab-inicio .hm-bd-who:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 2px; border-radius: 8px; }
#tab-inicio .hm-bd-av { position: relative; flex: none; }
#tab-inicio .hm-bd-av .hm-av { width: 40px; height: 40px; }
#tab-inicio .hm-bd-av b {
  position: absolute;
  right: -5px;
  bottom: -3px;
  min-width: 20px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-bd-main { display: grid; gap: 2px; min-width: 0; }
#tab-inicio .hm-bd-main strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; }
#tab-inicio .hm-bd-who:hover .hm-bd-main strong { text-decoration: underline; text-underline-offset: 3px; }
#tab-inicio .hm-bd-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; }
#tab-inicio .hm-bd-count {
  color: var(--hm-ink-2);
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#tab-inicio .hm-bd:is(.is-soon, .is-today) .hm-bd-count { color: var(--hm-accent-ink); font-weight: 700; }
#tab-inicio .hm-bd.is-today .hm-bd-av .hm-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--hm-accent); }
#tab-inicio .hm-bd .hm-icon-btn { width: 36px; height: 36px; border-radius: 10px; }
#tab-inicio .hm-bd .hm-icon-btn svg { width: 16px; height: 16px; }
#tab-inicio .hm-bd .hm-icon-btn:active svg { transform: none; }
@media (max-width: 900px) {
  #tab-inicio .hm-ev-btn { min-height: 54px; }
  #tab-inicio .hm-bd .hm-icon-btn { width: 48px; height: 48px; }
}

html[data-theme="dark"] #tab-inicio.hm-home { --hm-accent: color-mix(in srgb, var(--tenant-primary) 72%, var(--text)); }
html[data-theme="dark"] #tab-inicio :is(.hm-b.is-prev, .hm-legend i.is-prev, .hm-ctip i.is-prev) {
  fill: color-mix(in srgb, var(--tenant-primary) 45%, var(--muted));
  background: color-mix(in srgb, var(--tenant-primary) 45%, var(--muted));
}
html[data-theme="dark"] #tab-inicio .hm-wbar i { background: color-mix(in srgb, var(--tenant-primary) 45%, var(--muted)); }
html[data-theme="dark"] #tab-inicio .hm-wbar.is-zero i { background: var(--hm-soft); }
html[data-theme="dark"] #tab-inicio .hm-wbar.is-today i { background: var(--hm-accent); }
html[data-theme="dark"] #tab-inicio .hm-spark-area { fill: color-mix(in srgb, var(--tenant-primary) 26%, transparent); }

@media (prefers-reduced-motion: reduce) {
  #tab-inicio .hm-kpi .hm-spark,
  #tab-inicio .hm-kpi .hm-spark-dot,
  #tab-inicio .hm-wbar i,
  #tab-inicio .hm-svg.is-anim .hm-b,
  #tab-inicio .hm-ev-progress i::after { animation: none !important; }
}

