/* Horas trabajadas por mes (D-157) — ver docs/diseno.md, "Horas trabajadas". Sólo tokens del sistema: sirve igual en
   tema claro y oscuro. */

/* ---------- Selector de mes ---------- */
.hs-mes { display: inline-flex; align-items: center; gap: .15rem; padding: 3px; border-radius: 12px; background: var(--relleno); }
.hs-mes .btn-icono { width: 34px; min-height: 34px; }
.hs-mes-txt { min-width: 9.5rem; text-align: center; font-family: var(--fuente-display); font-size: 1rem; letter-spacing: -.015em; }
.hs-filtros:not(:empty) { margin-bottom: 1.1rem; }
.hs-filtros .segmentado { max-width: 40rem; }

/* ---------- Tarjeta del total ---------- */
.hs-hero { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.35rem 1.5rem 1.3rem; margin-bottom: 1.1rem; border-radius: var(--r-xl);
  color: #fff; background: var(--hero-fondo); box-shadow: var(--hero-sombra, var(--sombra-2)); overflow: hidden; isolation: isolate; }
.hs-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cinta); opacity: .9; }
.hs-hero::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -90px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .2), transparent 65%); }
.hs-hero-cab { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.hs-hero-etiqueta { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 650; opacity: .92; }
.hs-vivo { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 650; background: rgb(255 255 255 / .16); }
.hs-vivo.olvido { background: rgb(255 214 107 / .28); }
.hs-vivo.olvido i { background: #ffd66b; animation: none; }
.hs-vivo i { width: 8px; height: 8px; border-radius: 50%; background: #5df2a6; box-shadow: 0 0 0 0 rgb(93 242 166 / .7); animation: hs-latido 1.8s ease-out infinite; }
@keyframes hs-latido { 70% { box-shadow: 0 0 0 8px rgb(93 242 166 / 0); } 100% { box-shadow: 0 0 0 0 rgb(93 242 166 / 0); } }
.hs-hero-total { display: flex; align-items: baseline; gap: .3rem; line-height: 1; font-family: var(--fuente-display); font-variant-numeric: tabular-nums; }
.hs-hero-num { font-size: clamp(2.8rem, 7vw, 3.9rem); font-weight: 760; letter-spacing: -.05em; }
.hs-hero-u { font-size: 1.6rem; font-weight: 650; opacity: .85; }
.hs-hero-min { margin-left: .35rem; font-size: 1.6rem; font-weight: 650; opacity: .85; letter-spacing: -.03em; }
.hs-hero-sub { margin: 0; font-size: .9rem; opacity: .85; }
.hs-progreso { position: relative; height: 12px; margin-top: .35rem; border-radius: 999px; background: rgb(255 255 255 / .18); }
.hs-prog-hecho { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgb(255 255 255 / .75), #fff);
  box-shadow: 0 0 18px rgb(255 255 255 / .35); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .9, .25, 1) .15s; }
.listo .hs-prog-hecho, .hs-progreso.listo .hs-prog-hecho { transform: scaleX(var(--v)); }
/* El turno en curso, rayado a continuación de lo trabajado (ámbar si probablemente se olvidó la salida). */
.hs-prog-curso { position: absolute; inset: 0; right: auto; width: calc(var(--c) * 100%); border-radius: inherit;
  background: repeating-linear-gradient(45deg, rgb(255 255 255 / .55) 0 5px, rgb(255 255 255 / .18) 5px 10px); }
.hs-prog-curso.olvido { background: repeating-linear-gradient(45deg, rgb(255 214 107 / .85) 0 5px, rgb(255 214 107 / .3) 5px 10px); }
.hs-prog-hoy { position: absolute; top: -5px; bottom: -5px; left: calc(var(--m) * 100%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: #2a1036; box-shadow: 0 0 0 2px #fff; }
.hs-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.hs-chip { padding: .24rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 650; background: rgb(255 255 255 / .15); }
.hs-chip.ok { background: rgb(93 242 166 / .22); }
.hs-chip.baja { background: rgb(255 214 107 / .26); }
.hs-chip { display: inline-flex; align-items: center; gap: .4rem; }
.hs-chip.alerta { background: #ffd66b; color: #3b2300; }
.hs-chip-hoy { width: 3px; height: 12px; border-radius: 2px; background: #2a1036; box-shadow: 0 0 0 1.5px #fff; }
.hs-chip-curso.olvido { background: repeating-linear-gradient(45deg, rgb(255 214 107 / .95) 0 3px, rgb(255 214 107 / .4) 3px 6px); }
.hs-chip-curso { width: 14px; height: 8px; border-radius: 3px; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .7) 0 3px, rgb(255 255 255 / .25) 3px 6px); }

/* ---------- Calendario ---------- */
.hs-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hs-cal-cab { padding: 0 .3rem .15rem; font-size: .74rem; font-weight: 650; color: var(--texto-3); text-transform: uppercase; letter-spacing: .04em; }
.hs-dia { --c: var(--texto-3); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-height: 78px; padding: .45rem .5rem .6rem; overflow: hidden;
  border: 0; border-radius: var(--r-m); font: inherit; text-align: left; color: var(--texto); background: color-mix(in srgb, var(--c) 9%, var(--superficie-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent); transition: transform .18s var(--resorte), box-shadow .18s var(--ease); }
button.hs-dia { cursor: pointer; }
button.hs-dia:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), var(--sombra-2); }
button.hs-dia:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }
.hs-dia.hoy { box-shadow: inset 0 0 0 2px var(--marca); }
.hs-dia-n { font-size: .78rem; font-weight: 650; color: var(--texto-3); }
.hs-dia.hoy .hs-dia-n { color: var(--marca-tinta); }
.hs-dia-h { font-family: var(--fuente-display); font-size: 1.12rem; font-weight: 720; letter-spacing: -.03em; line-height: 1.1; }
.hs-dia-esp { font-size: .82rem; color: var(--texto-3); }
.hs-dia-e { font-size: .7rem; font-weight: 650; color: var(--c); line-height: 1.2; }
.hs-dia-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.hs-dia-barra::after { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(0);
  transition: transform .8s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 18ms + .1s); }
.listo .hs-dia-barra::after { transform: scaleX(var(--v)); }
.e-completo { --c: var(--ok); }
.e-tarde, .e-falta_tramo { --c: var(--aviso); }
.e-incompleto, .e-ausente { --c: var(--peligro); }
.e-sin_horario, .e-en_curso { --c: var(--marca); }
.hs-dia.e-olvido { --c: var(--aviso); }
.hs-dia.e-franco { background: transparent; box-shadow: inset 0 0 0 1px var(--linea); }
.hs-dia.e-futuro { background: transparent; box-shadow: none; border: 1px dashed var(--linea-fuerte); }
.hs-dia.e-futuro.hoy, .hs-dia.e-pendiente.hoy { border: 0; }
.hs-dia.e-en_curso .hs-dia-h::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .35rem; border-radius: 50%; background: var(--ok); vertical-align: middle; animation: hs-parpadeo 1.6s ease-in-out infinite; }
@keyframes hs-parpadeo { 50% { opacity: .25; } }
.hs-leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--texto-2); }
.hs-leyenda li { display: inline-flex; align-items: center; gap: .4rem; }
.hs-leyenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.hs-leyenda .e-futuro i { background: transparent; border: 1.5px dashed var(--texto-3); }
@container (max-width: 560px) {
  .hs-cal { gap: 4px; }
  .hs-dia { min-height: 56px; padding: .3rem .35rem .45rem; }
  .hs-dia-e { display: none; }
  .hs-dia-h { font-size: .9rem; }
}

/* ---------- Detalle de cada día ---------- */
.hs-marcas { display: flex; flex-wrap: wrap; gap: .3rem; }
.hs-marca { display: inline-flex; gap: .25rem; padding: .12rem .5rem; border-radius: 8px; font-size: .8rem; color: var(--texto-2); background: var(--relleno); white-space: nowrap; }
.hs-marca strong { color: var(--texto); }
.hs-marca.m-entrada { box-shadow: inset 3px 0 0 var(--ok); }
.hs-marca.m-salida { box-shadow: inset 3px 0 0 var(--texto-3); }
.hs-marca.corregida { background: var(--aviso-suave); }

dialog[data-dialogo="horas-dia"] { width: min(640px, calc(100vw - 2rem)); }
.hs-dia-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.hs-dia-resumen > div { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .65rem .75rem; border-radius: 14px; background: var(--superficie-2); }
.hs-dia-resumen .sec { font-size: .76rem; }
.hs-dia-resumen strong { font-size: 1.12rem; letter-spacing: -.02em; }
/* Línea del día. --m: margen interno, para que las horas de los extremos queden dentro del recuadro.
   Filas: horas de las marcas (arriba), franja del horario con lo trabajado encima, escala (abajo). */
.hs-linea-caja { margin: .2rem 0 1rem; }
.hs-linea { --m: 18px; position: relative; height: 78px; border-radius: 12px; background: var(--relleno); }
.hs-linea > * { position: absolute; left: calc(var(--m) + var(--a) * (100% - 2 * var(--m))); }
.hs-l-grid { top: 18px; height: 30px; width: 1px; background: var(--linea); }
.hs-l-horario, .hs-l-hueco, .hs-l-trabajo { width: max(3px, calc((var(--b) - var(--a)) * (100% - 2 * var(--m)))); }
.hs-l-horario { top: 18px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--marca) 13%, var(--superficie)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--marca) 34%, transparent); }
/* Lo que faltó del horario, sobre la franja. */
.hs-l-hueco { top: 18px; height: 30px; border-radius: 9px; --c: var(--aviso);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 34%, transparent) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.hs-l-hueco.sin-marcar { --c: var(--peligro); }
/* Lo trabajado. */
.hs-l-trabajo { --c: var(--ok); top: 25px; height: 16px; border-radius: 6px; background: var(--c); transform-origin: left; transform: scaleX(0);
  transition: transform .7s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 110ms + .15s); }
.listo .hs-l-trabajo { transform: scaleX(1); }
.hs-l-trabajo.fuera { --c: var(--marca); }
.hs-l-trabajo.curso { background: repeating-linear-gradient(45deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 55%, transparent) 6px 12px); background-size: 17px 17px; animation: hs-avanza 1.2s linear infinite; }
@keyframes hs-avanza { to { background-position: 17px 0; } }
.hs-l-trabajo.curso.olvido { --c: var(--aviso); }
.hs-l-trabajo.sin-salida, .hs-l-trabajo.sin-entrada { --c: var(--peligro); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--c); }
.hs-l-trabajo.sin-salida { border-radius: 6px 2px 2px 6px; -webkit-mask: linear-gradient(90deg, #000 55%, transparent); mask: linear-gradient(90deg, #000 55%, transparent); }
.hs-l-trabajo.sin-entrada { border-radius: 2px 6px 6px 2px; -webkit-mask: linear-gradient(270deg, #000 55%, transparent); mask: linear-gradient(270deg, #000 55%, transparent); }
/* Cada marca: una rayita y su hora arriba. */
.hs-l-marca { top: 3px; height: 45px; width: 2px; margin-left: -1px; border-radius: 1px; }
.hs-l-marca > span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 0 .2rem; border-radius: 4px; font-size: .68rem; font-weight: 650; line-height: 1.15;
  color: var(--texto-2); background: var(--relleno); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-l-marca > span.izq { transform: translateX(calc(-100% + 3px)); }
.hs-l-marca > span.der { transform: translateX(-3px); }
.hs-l-marca { background: linear-gradient(180deg, transparent 13px, color-mix(in srgb, var(--texto) 50%, transparent) 13px); }
.hs-l-ahora { top: 12px; height: 42px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--peligro); box-shadow: 0 0 0 2px color-mix(in srgb, var(--peligro) 20%, transparent); }
.hs-l-ahora::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--peligro); }
.hs-l-hora { bottom: 6px; transform: translateX(-50%); font-size: .66rem; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.hs-l-leyenda { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .55rem 0 0; padding: 0 .2rem; list-style: none; font-size: .76rem; color: var(--texto-2); }
.hs-l-leyenda li { display: inline-flex; align-items: center; gap: .35rem; }
.hs-l-leyenda i { width: 16px; height: 9px; border-radius: 3px; background: var(--ok); }
.hs-l-leyenda .l-horario i { height: 12px; background: color-mix(in srgb, var(--marca) 13%, var(--superficie)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--marca) 34%, transparent); }
.hs-l-leyenda .l-fuera i { background: var(--marca); }
.hs-l-leyenda .l-curso i { background: repeating-linear-gradient(45deg, var(--ok) 0 3px, color-mix(in srgb, var(--ok) 55%, transparent) 3px 6px); }
.hs-l-leyenda :is(.l-tarde, .l-antes, .l-sin-marcar) i { --c: var(--aviso); height: 12px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 40%, transparent) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--c); }
.hs-l-leyenda .l-sin-marcar i { --c: var(--peligro); }
.hs-l-leyenda :is(.l-sin-salida, .l-sin-entrada) i { background: color-mix(in srgb, var(--peligro) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--peligro); }
.hs-l-leyenda .l-olvido i { background: repeating-linear-gradient(45deg, var(--aviso) 0 3px, color-mix(in srgb, var(--aviso) 55%, transparent) 3px 6px); }
.hs-l-leyenda .l-ahora i { width: 2px; height: 12px; border-radius: 1px; background: var(--peligro); }
@media (prefers-reduced-motion: reduce) { .hs-l-trabajo.curso { animation: none; } }
.hs-fichadas { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hs-fichadas li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 14px; background: var(--superficie-2); }
.hs-f-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ok); background: var(--ok-suave); }
.m-salida .hs-f-ic { color: var(--texto-2); background: var(--relleno); }
.hs-f-hora { font-family: var(--fuente-display); font-size: 1.25rem; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hs-f-txt { display: flex; flex-direction: column; min-width: 0; }
.hs-f-txt small { color: var(--texto-3); font-size: .8rem; }
.hs-f-acc { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.hs-fichadas li.anulada { opacity: .62; }
.hs-fichadas li.anulada .hs-f-hora { text-decoration: line-through; text-decoration-thickness: 2px; }
.hs-nota { display: flex; gap: .45rem; align-items: flex-start; margin-top: .9rem; }
@container (max-width: 520px) {
  .hs-fichadas li { grid-template-columns: auto auto minmax(0, 1fr); }
  .hs-f-acc { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Equipo ---------- */
.hs-persona-cab { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hs-persona-nombre { display: flex; align-items: center; gap: .75rem; }
.hs-persona-nombre h2 { font-size: 1.35rem; }
.hs-avatar.grande { width: 48px; height: 48px; font-size: 1rem; }

/* Gráfico del mes: escala a la izquierda (líneas cada tantas horas), columnas, leyenda. La fila de los días mide
   1.2rem (alto + separación): la escala termina justo arriba de ella. */
.hs-grafico { position: relative; padding-left: 2.4rem; }
.hs-g-escala { position: absolute; left: 0; right: 0; top: 0; height: calc(190px - 1.2rem); pointer-events: none; }
.hs-g-escala span { position: absolute; left: 2.4rem; right: 0; bottom: calc(var(--y) * 100%); height: 0; border-top: 1px dashed var(--linea); }
.hs-g-escala span:first-child { border-top: 1px solid var(--linea-fuerte); }
.hs-g-escala b { position: absolute; right: calc(100% + .45rem); top: -.45rem; font-size: .66rem; font-weight: 600; color: var(--texto-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-g-leyenda { margin-top: .7rem; }
.hs-g-leyenda .g-trabajo i { background: var(--marca); }
.hs-g-leyenda .g-meta i { height: 3px; border-radius: 2px; background: var(--texto-2); }
.hs-g-leyenda .g-hoy i { background: linear-gradient(180deg, #ffb347, #f07b16); }
.hs-barras { position: relative; display: flex; align-items: stretch; gap: 4px; height: 190px; }
.hs-b-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.hs-b-zona { position: relative; flex: 1; width: 100%; max-width: 30px; }
.hs-b-esp { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--e) * 100%); border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--marca) 7%, transparent); }
/* Lo que dice el horario: una rayita encima de todo, para que se vea también cuando la barra la pasa. */
.hs-b-meta { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--e) * 100%); height: 3px; margin-bottom: -1.5px; border-radius: 2px; background: var(--texto-2); opacity: .7; }
.hs-b-barra { position: absolute; left: 3px; right: 3px; bottom: 0; height: max(3px, calc(var(--v) * 100%)); border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--marca) 70%, #fff), var(--marca)); transform-origin: bottom; transform: scaleY(0);
  transition: transform .8s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 22ms + .1s), filter .2s; }
.listo .hs-b-barra { transform: scaleY(1); }
.hs-b-col:hover .hs-b-barra { filter: brightness(1.12); }
.hs-b-col.hoy .hs-b-barra { background: linear-gradient(180deg, #ffb347, #f07b16); box-shadow: 0 6px 16px -6px rgb(240 123 22 / .7); }
.hs-b-col.futuro .hs-b-esp { background: transparent; box-shadow: inset 1px 1px 0 var(--linea), inset -1px 0 0 var(--linea); }
.hs-b-col.futuro .hs-b-meta { opacity: .3; }
.hs-b-dia { font-size: .66rem; color: var(--texto-3); font-variant-numeric: tabular-nums; height: .85rem; }
.hs-b-col.hoy .hs-b-dia { color: var(--texto); font-weight: 750; }
.hs-b-col.domingo .hs-b-dia { color: var(--peligro); opacity: .75; }
@container (max-width: 640px) {
  .hs-barras { gap: 2px; height: 150px; }
  .hs-g-escala { height: calc(150px - 1.2rem); }
  .hs-b-col:not(.hoy):nth-child(odd) .hs-b-dia { visibility: hidden; }
}

.hs-grilla { align-items: start; }
.hs-personas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hs-persona { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av txt num" "av barra barra" "av avisos avisos"; align-items: center; gap: .3rem .75rem;
  width: 100%; padding: .7rem .8rem; border: 0; border-radius: 14px; font: inherit; text-align: left; color: var(--texto); background: transparent; cursor: pointer;
  transition: background-color .15s var(--ease), transform .18s var(--resorte); }
.hs-persona:hover { background: var(--relleno); }
.hs-persona:active { transform: scale(.99); }
.hs-persona:focus-visible { outline: 2px solid var(--marca); outline-offset: 1px; }
.hs-persona .hs-avatar { grid-area: av; align-self: start; }
.hs-p-txt { grid-area: txt; display: flex; flex-direction: column; min-width: 0; }
.hs-p-txt strong { display: inline-flex; align-items: center; gap: .4rem; }
.hs-p-txt small { color: var(--texto-3); font-size: .8rem; }
.hs-en-turno { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-suave); }
.hs-p-num { grid-area: num; display: flex; flex-direction: column; align-items: flex-end; }
.hs-p-num strong { font-family: var(--fuente-display); font-size: 1.15rem; letter-spacing: -.03em; white-space: nowrap; }
.hs-p-num small { color: var(--texto-3); font-size: .76rem; white-space: nowrap; }
.hs-p-barra { grid-area: barra; position: relative; height: 7px; border-radius: 4px; background: var(--relleno); }
.hs-persona { --c: var(--ok); }
.hs-persona.c-baja { --c: var(--aviso); }
.hs-persona.c-sin { --c: var(--marca); }
.hs-p-barra i { position: absolute; inset: 0; border-radius: inherit; background: var(--c);
  transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 90ms + .2s); }
.listo .hs-p-barra i { transform: scaleX(var(--v)); }
.hs-p-barra b { position: absolute; top: -4px; bottom: -4px; left: calc(var(--m) * 100%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--texto); box-shadow: 0 0 0 2px var(--superficie); }
.hs-p-avisos { grid-area: avisos; display: flex; flex-wrap: wrap; gap: .3rem; }

.hs-locales { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hs-locales li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .8rem; align-items: center; }
.hs-l-nombre { display: flex; flex-direction: column; }
.hs-l-nombre small { color: var(--texto-3); font-size: .78rem; }
.hs-l-total { font-size: 1.25rem; letter-spacing: -.03em; }
.hs-l-barra { grid-column: 1 / -1; position: relative; height: 7px; border-radius: 4px; background: var(--relleno); overflow: hidden; }
.hs-l-barra::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lc, var(--marca));
  transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .9, .25, 1) calc(var(--i) * 120ms + .2s); }
.listo .hs-l-barra::after { transform: scaleX(var(--v)); }

.hs-seg-revisar { margin-bottom: .8rem; }
.hs-seg-revisar label { font-size: .8rem; min-height: 34px; }
.hs-revisar { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hs-revisar li { --c: var(--aviso); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .5rem .55rem .5rem .6rem; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 7%, transparent); box-shadow: inset 3px 0 0 var(--c); }
.hs-revisar li.r-peligro { --c: var(--peligro); }
.hs-r-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.hs-r-txt { display: flex; flex-direction: column; min-width: 0; }
.hs-r-txt strong { font-size: .9rem; }
.hs-r-txt small { color: var(--texto-2); font-size: .8rem; }
.hs-revisar + .paginador { margin-top: .8rem; }

@media (max-width: 900px) { .hs-grilla { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .hs-prog-hecho, .hs-dia-barra::after, .hs-l-trabajo, .hs-b-barra, .hs-p-barra i, .hs-l-barra::after, .hs-dia, .hs-persona { transition: none; }
  .hs-vivo i, .hs-dia.e-en_curso .hs-dia-h::after { animation: none; }
}
