/* Grupos Padel web · estilos del bloque «horario». Sólo tokens de idc.css.
   Ley del color: azul = lo primero / lo que tiene clase; verde = cabe o está
   bien; ámbar = atención o suspendida. El papel de «Compartir» es blanco
   porque es papel: lo que sale por la impresora. Prefijo hr- en todo. */

/* ---------------------------------------------------------------- piezas comunes */
/* .hr-ok, .hr-aviso, .hr-apagado y .hr-set viven en idc.css: los usa también el núcleo. */
.hr-nota { margin: 0 0 16px; }
.hr-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: 13px; color: var(--muted); }
.hr-num--on { background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.5); color: var(--ink); }
.hr-num--warn { background: var(--warn-soft); border-color: rgba(245, 165, 36, 0.45); color: var(--warn); }
.hr-fila { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.hr-fila:hover .lista__que b { color: var(--accent); }
.hr-fila .lista__que > span { display: block; }
.hr-chips { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lista__que .chip { font-size: 12px; }
.lista__que .chip--accent { color: var(--accent); }
.lista__que .chip--warn { color: var(--warn); }
.lista__que .chip--ok { color: var(--ok); }
.hr-input, .hr-cfg input[type="number"] {
  background: var(--bg-lift); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 40px; color: var(--ink); width: 100%; min-width: 0;
}
.hr-input:focus, .hr-cfg input[type="number"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* leyendas: muestras del mismo lenguaje que el plano */
.hr-sw { width: 16px !important; height: 11px !important; border-radius: 3px !important; display: inline-block; }
.hr-sw--clase { background: rgba(79, 140, 255, 0.45) !important; border: 1px solid var(--accent) !important; }
.hr-sw--particular { background: rgba(79, 140, 255, 0.2) !important; border: 1px dashed var(--accent) !important; }
.hr-sw--suspendida { background: repeating-linear-gradient(135deg, rgba(245, 165, 36, 0.5) 0 3px, transparent 3px 6px) !important; border: 1px solid var(--warn) !important; }
.hr-sw--libre { background: #16202d !important; border: 1px solid rgba(140, 170, 215, 0.45) !important; }
.hr-sw--sin { background: var(--bg-lift) !important; border: 1px dashed var(--muted-2) !important; opacity: .8; }
.hr-sw--cambia { background: #202938 !important; border: 1px solid var(--accent) !important; box-shadow: 0 0 6px rgba(79, 140, 255, 0.5); }
.hr-sw--igual { background: #1e2735 !important; opacity: .45; }

/* ---------------------------------------------------------------- 1. ahora en el club: el reloj */
.hr-hoy small { color: var(--accent); }
.hr-ahora i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: none; }
.hr-ahora[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(79, 140, 255, 0.55); color: var(--ink); }
.hr-ahora[aria-pressed="true"] i { background: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.25); animation: hr-latido 1.8s ease-in-out infinite; }
.hr-vivo::before { animation: hr-latido 1.8s ease-in-out infinite; }
@keyframes hr-latido { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hr-reloj { display: grid; grid-template-columns: minmax(170px, auto) 1fr auto; gap: 8px 26px; align-items: center; padding: 16px 22px; margin-bottom: 14px; }
.hr-reloj__hora { display: grid; gap: 2px; }
.hr-reloj__hora b { font-family: var(--f-mono); font-weight: 500; font-size: 42px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.hr-reloj__hora span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.hr-reloj__control { display: grid; gap: 2px; min-width: 0; }
.hr-reloj__saltos { display: flex; gap: 6px; }
.hr-reloj__saltos .btn { font-family: var(--f-mono); font-weight: 500; }

.hr-tira { display: flex; align-items: flex-end; gap: 2px; height: 34px; padding: 0 10px; cursor: pointer; }
.hr-tira i { flex: 1; min-width: 1px; height: max(2px, var(--h)); background: rgba(79, 140, 255, 0.38); border-radius: 2px 2px 0 0; transition: background .15s; }
.hr-tira i.cero { height: 1px; background: var(--line); }
.hr-tira i.susp { box-shadow: inset 0 2px 0 var(--warn); }
.hr-tira i.cero.susp { height: 3px; background: var(--warn); box-shadow: none; }
.hr-tira i.aqui { background: var(--accent); box-shadow: 0 0 10px rgba(79, 140, 255, 0.65); }
.hr-tira:hover i { background: rgba(79, 140, 255, 0.5); }
.hr-tira:hover i.aqui { background: var(--accent); }
.hr-tira__horas { position: relative; height: 16px; margin: 0 10px; font-size: 11px; color: var(--muted-2); }
.hr-tira__horas span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hr-tira__horas span:first-child { transform: none; }
.hr-tira__horas span:last-child { transform: translateX(-100%); }

.hr-reloj input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.hr-reloj input[type="range"]:focus { outline: none; }
.hr-reloj input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; border: 1px solid var(--line-faint);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) var(--pct, 0%), var(--bg-lift) var(--pct, 0%));
}
.hr-reloj input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hr-reloj input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
.hr-reloj input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--bg-lift); border: 1px solid var(--line-faint); }
.hr-reloj input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.hr-reloj input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); }

/* ---------------------------------------------------------------- 1. el plano */
.hr-club { grid-template-columns: 1.45fr 1fr; }
.hr-club__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hr-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hr-resumen { margin: 6px 0 4px; }
.hr-lista li { padding: 10px 0; }
.hr-linea { margin: 10px 0 0; }
.hr-linea b { color: var(--ink); font-weight: 500; }
.hr-leyenda { margin-top: 14px; }

.hr-plano { position: relative; width: 100%; margin-top: 14px; container-type: inline-size; }
.hr-plano__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hr-nave { fill: rgba(4, 6, 10, 0.55); stroke: var(--line-faint); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.hr-rayas { fill: rgba(245, 165, 36, 0.32); }
.hr-cancha__suelo { fill: #16202d; stroke: rgba(140, 170, 215, 0.38); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.hr-cancha__lineas { fill: none; stroke: rgba(242, 246, 253, 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hr-cancha__red { fill: none; stroke: rgba(242, 246, 253, 0.42); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hr-cancha--clase .hr-cancha__suelo, .hr-cancha--choque .hr-cancha__suelo {
  fill: rgba(79, 140, 255, 0.34); stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 7px rgba(79, 140, 255, 0.45));
}
.hr-cancha--clase .hr-cancha__lineas, .hr-cancha--choque .hr-cancha__lineas, .hr-cancha--particular .hr-cancha__lineas { stroke: rgba(242, 246, 253, 0.34); }
.hr-cancha--clase .hr-cancha__red, .hr-cancha--particular .hr-cancha__red { stroke: rgba(242, 246, 253, 0.75); }
.hr-cancha--choque .hr-cancha__suelo { stroke: var(--warn); }
.hr-cancha--particular .hr-cancha__suelo { fill: rgba(79, 140, 255, 0.2); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
.hr-cancha--suspendida .hr-cancha__suelo { fill: #1b1a18; stroke: var(--warn); stroke-width: 1.4; }
.hr-cancha--sin_reserva { opacity: .62; }
.hr-cancha--sin_reserva .hr-cancha__suelo { fill: #0c1119; stroke: rgba(140, 170, 215, 0.2); stroke-dasharray: 4 4; }
.hr-cancha--sin_reserva .hr-cancha__lineas { stroke: rgba(242, 246, 253, 0.07); }
.hr-cancha--sin_reserva .hr-cancha__red { stroke: rgba(242, 246, 253, 0.18); }

.hr-pista {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; overflow: visible;
  font-size: clamp(9.5px, 2cqw, 12.5px); line-height: 1.25;
}
.hr-pista:not(.hr-pista--alta) { flex-direction: row; gap: .55em; }
.hr-pista:hover, .hr-pista:focus-visible { outline: 2px solid rgba(79, 140, 255, 0.75); outline-offset: 1px; }
.hr-pista__num {
  flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 1.05em; color: var(--ink-2);
}
.hr-pista--clase .hr-pista__num, .hr-pista--choque .hr-pista__num, .hr-pista--particular .hr-pista__num { background: var(--accent); border-color: transparent; color: #fff; }
.hr-pista--suspendida .hr-pista__num { border-color: var(--warn); color: var(--warn); }
.hr-pista--sin_reserva .hr-pista__num { color: var(--muted-2); border-color: var(--line-faint); }
.hr-pista__rotulo {
  display: grid; justify-items: center; min-width: 0; max-width: var(--ancho, 100%); padding: .3em .65em; border-radius: 7px;
  background: rgba(7, 10, 15, 0.78); border: 1px solid var(--line-faint); text-align: center;
}
.hr-pista:not(.hr-pista--alta) .hr-pista__rotulo { max-width: calc(100% - 3.2em); justify-items: start; text-align: left; }
.hr-pista__rotulo b, .hr-pista__rotulo span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-pista__rotulo b { font-weight: 600; color: var(--ink); }
.hr-pista__rotulo span { color: var(--muted); font-size: .92em; }
.hr-pista__rotulo em { font-style: normal; font-family: var(--f-mono); }
.hr-pista--clase .hr-pista__rotulo, .hr-pista--particular .hr-pista__rotulo { border-color: rgba(79, 140, 255, 0.45); }
.hr-pista--choque .hr-pista__rotulo, .hr-pista--suspendida .hr-pista__rotulo { border-color: rgba(245, 165, 36, 0.5); }
.hr-pista--suspendida .hr-pista__rotulo b { color: var(--warn); }
.hr-pista--libre .hr-pista__rotulo, .hr-pista--sin_reserva .hr-pista__rotulo { background: rgba(7, 10, 15, 0.5); }
.hr-pista--libre .hr-pista__rotulo b { color: var(--ink-2); font-weight: 500; }
.hr-pista--sin_reserva .hr-pista__rotulo b { color: var(--muted-2); font-weight: 500; }

/* ---------------------------------------------------------------- 2. particulares */
.hr-pp { grid-template-columns: 1fr 1fr; }
.hr-form .campo select, .hr-form .campo input { width: 100%; min-width: 0; }
.hr-form__cuando { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
.hr-form__pide { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.hr-form__pide .interruptor { min-height: 42px; }
.hr-form__ayuda { margin: -8px 0 0; }
.hr-propuesta { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted); font-weight: 400;
  border: 1px solid rgba(79, 140, 255, 0.4); background: var(--accent-soft); }
.hr-propuesta b { color: var(--ink); font-weight: 600; }
.hr-propuesta .btn { margin-top: 8px; display: flex; }
.hr-propuesta--warn { border-color: rgba(245, 165, 36, 0.45); background: var(--warn-soft); }
.hr-propuesta--nota { border-style: dashed; border-color: var(--line); background: transparent; color: var(--muted); }

/* ---------------------------------------------------------------- 3. comparar y horarios guardados */
.hr-planes .dia-btn { max-width: 100%; }
.hr-cmp-arriba { grid-template-columns: 1fr 1fr; }
table.hr-tabla-cmp { min-width: 0; }
.hr-tabla-cmp td:not(:first-child), .hr-tabla-cmp th:not(:first-child) { text-align: right; }
.hr-mejor { color: var(--ok) !important; }
.hr-peor { color: var(--warn) !important; }
.hr-barra2 { grid-template-columns: 120px 1fr 118px; }
.hr-dobles { display: grid; gap: 4px; }
.hr-antes i { background: var(--chassis) !important; }
.hr-cmp-dia { margin-top: 16px; }
.hr-lado { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); gap: 16px; }
.hr-lado__col { min-width: 0; }
.hr-lado__col .eyebrow { margin: 0 0 8px; }
.hr-lado .cuadrante { --col-min: 72px; }
.hr-lado .cuadrante-marco { border: 1px solid var(--line-faint); }
.hr-lado .leyenda { display: none; }
.hr-lado .bloque { transition: opacity .2s, border-color .15s; left: 3px; right: 3px; padding: 5px 6px; gap: 1px; }
.hr-lado .bloque b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; line-height: 1.15; }
.hr-lado .bloque__pie > .mono { display: none; }
.hr-lado .bloque__pie { justify-content: flex-end; }
.hr-lado .bloque--particular .bloque__pie { display: none; }
.hr-lado--resalta .hr-igual { opacity: .36; }
.hr-cambia { background: var(--accent-soft); color: var(--ink); border-radius: 4px; padding: 0 3px; box-shadow: inset 0 -1px 0 var(--accent); }
.hr-cambio .lista__que > span { display: block; }
.hr-antes-despues { display: grid !important; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--ink-2) !important; }
.hr-antes-despues em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  display: inline-block; min-width: 76px; }

.hr-plan { flex-wrap: wrap; align-items: flex-start !important; }
.hr-plan__que { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 380px; min-width: 0; }
.hr-plan__que .chip { margin-top: 2px; }
.hr-plan__que .lista__que > span { display: block; }
.hr-plan .acciones { flex: 1 1 100%; padding-left: 0; }
@media (min-width: 881px) { .hr-plan .acciones { padding-left: 94px; } }

/* ---------------------------------------------------------------- 4. compartir: la hoja */
.hr-comp { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.hr-comp__botones .btn { justify-content: flex-start; }
.hr-audiencia { margin: 0; }
.hr-seg a.dia-btn { text-decoration: none; }
#exp-estado:empty { display: none; }
.hr-comp__previa { min-width: 0; }
.hr-papel { padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-lift); overflow-x: auto; }

.hr-hoja { background: #fff; color: #1a2330; border-radius: 4px; padding: 26px 28px 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  font-family: var(--f-body); font-size: 12.5px; line-height: 1.4; min-width: 0; }
.hr-hoja--a5 { max-width: 600px; margin-inline: auto; }
.hr-hoja__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid #1a2330; padding-bottom: 10px; margin-bottom: 14px; }
.hr-hoja__cab > div { flex: 1; }
.hr-hoja__logo { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hr-hoja__club { margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #5b6778; }
.hr-hoja h2 { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.15; margin: 3px 0 0; color: #0e1520; }
.hr-hoja h3 { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: #0e1520; margin: 0 0 8px; }
.hr-hoja__parte + .hr-hoja__parte { margin-top: 18px; }
.hr-hoja__marca { font-family: var(--f-display); font-weight: 700; letter-spacing: .34em; font-size: 10.5px; color: #5b6778; border: 1px solid #c9d1dc; padding: 3px 5px 3px 8px; border-radius: 4px; }
.hr-hoja__sub { color: #4a5566; margin: 0 0 10px; }
.hr-hoja__vacio { color: #6b7686; margin: 0; }
.hr-hoja__tabla { width: 100%; border-collapse: collapse; }
.hr-hoja__tabla th, .hr-hoja__tabla td { border: 1px solid #d5dbe3; padding: 6px 8px; vertical-align: top; text-align: left; }
.hr-hoja__tabla thead th { background: #eef2f6; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #3b4757; font-weight: 600; }
.hr-hoja__tabla b { color: #0e1520; font-weight: 600; }
.hr-hoja__rejilla td { min-width: 64px; }
.hr-hoja { overflow-x: auto; }
.hr-hoja__hora, .hr-hoja__num { font-family: var(--f-mono); white-space: nowrap; font-size: 11.5px; }
.hr-hoja__hora { background: #f7f9fb; color: #3b4757; font-weight: 500; }
.hr-hoja__clase { display: grid; gap: 1px; padding: 4px 7px; border-left: 3px solid #4f8cff; background: #f3f6fb; border-radius: 2px; }
.hr-hoja__clase + .hr-hoja__clase { margin-top: 4px; }
.hr-hoja__clase span { color: #4a5566; font-size: 11px; }
.hr-hoja__alumnos { font-size: 11px; color: #3b4757; }
.hr-hoja__bloques { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hr-hoja__bloque { border: 1px solid #d5dbe3; border-radius: 6px; padding: 10px 12px; break-inside: avoid; }
.hr-hoja__bloque h3 { margin: 0 0 4px; }
.hr-hoja__bloque p { margin: 0 0 6px; color: #4a5566; font-size: 11.5px; }
.hr-hoja__bloque ol { margin: 0; padding-left: 20px; }
.hr-hoja__pie { margin-top: 18px; padding-top: 8px; border-top: 1px solid #d5dbe3; font-size: 9.5px; color: #6b7686; font-family: var(--f-mono); }

/* enviar horarios */
.hr-envio__lista { max-height: 620px; overflow-y: auto; padding-right: 4px; }
.hr-envio__lista li { padding: 10px 2px; }
.hr-envio__lista .lista__que > span { display: block; }
.hr-envio__lista .lista__que b { display: flex; align-items: center; gap: 8px; }
.hr-envio__marca { display: grid; place-items: center; width: 24px; flex: none; cursor: pointer; }
.hr-envio__marca input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.hr-correo { white-space: pre-wrap; background: var(--bg-lift); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 14px 0 0;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.55; color: var(--ink-2); max-height: 52vh; overflow: auto; }

/* ---------------------------------------------------------------- 6. configuración */
.hr-cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hr-cfg__ancho { grid-column: 1 / -1; }
.hr-cfg__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hr-cfg__tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hr-cfg__tres label, .hr-cfg__dos > label:not(.campo) { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.hr-num-campo { display: flex; align-items: center; gap: 8px; }
.hr-num-campo input { max-width: 96px; }
.hr-num-campo em { font-style: normal; color: var(--muted); font-size: 13px; }
.hr-festivos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; }
.hr-festivos li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); }
.hr-festivos .mono { flex: none; width: 88px; color: var(--muted-2); font-size: 12px; }
.hr-niveles { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hr-niveles li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; }
/* el logo del club */
.hr-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hr-logo__caja { width: 64px; height: 64px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg-lift);
  display: grid; place-items: center; overflow: hidden; flex: none; }
.hr-logo__caja img { width: 100%; height: 100%; object-fit: cover; }
.hr-logo__caja em { font-size: 11px; color: var(--muted-2); font-style: normal; }
.hr-logo__botones { display: grid; gap: 6px; }
.hr-logo__botones .chica { max-width: 44ch; }
.hr-logo__botones label.btn { cursor: pointer; }

/* colocar las pistas en el plano */
.hr-colocar { display: grid; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(79, 140, 255, 0.4);
  background: var(--accent-soft); border-radius: 12px; }
.hr-plano--colocar .hr-pista { cursor: grab; touch-action: none; }
.hr-plano--colocar .hr-pista:active { cursor: grabbing; }
.hr-pista--elegida { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 3; }

.hr-input--num { width: 62px; text-align: center; }
.hr-cfg-pista { flex-wrap: wrap; }
.hr-cfg-pista .lista__que { flex: 1 1 260px; }
.hr-cfg-pista .lista__que .mono { display: block; margin-top: 5px; font-size: 12px; color: var(--muted-2); }
.hr-cfg-pista .hr-input { max-width: 320px; }
.hr-franjas { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 3px; user-select: none; touch-action: none; }
.hr-franjas__dia { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hr-franjas__hora { font-size: 10.5px; color: var(--muted-2); text-align: right; padding-right: 4px; align-self: center; }
.hr-franjas__celda { height: 22px; border-radius: 4px; border: 1px solid var(--line-faint); background: var(--bg-lift); cursor: pointer; padding: 0; }
.hr-franjas__celda:hover { border-color: rgba(79, 140, 255, 0.6); }
.hr-franjas__celda[aria-pressed="true"] { background: var(--accent); border-color: var(--accent-deep); }

/* ---------------------------------------------------------------- estrecho */
@media (max-width: 1100px) {
  .hr-reloj { grid-template-columns: 1fr auto; }
  .hr-reloj__control { grid-column: 1 / -1; grid-row: 2; }
  .hr-comp { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .hr-club, .hr-pp, .hr-cmp-arriba, .hr-cfg { grid-template-columns: 1fr; }
  .hr-reloj { padding: 14px 16px; gap: 8px 12px; }
  .hr-reloj__hora b { font-size: 34px; }
  .hr-barra2 { grid-template-columns: 84px 1fr 96px; }
  .hr-cfg__tres { grid-template-columns: 1fr; }
  .hr-hoja { padding: 18px 16px 14px; }
  .hr-papel { padding: 10px; }
}
@media (max-width: 520px) {
  .hr-cfg__dos { grid-template-columns: 1fr; }
  .hr-form__cuando { grid-template-columns: 1fr 1fr; }
  .hr-form__cuando > .campo:first-child:not([hidden]), .hr-form__cuando > .campo:nth-child(2):not([hidden]) { grid-column: 1 / -1; }
  .hr-reloj__saltos .btn { padding: 0 10px; }
}

/* ---------------------------------------------------------------- imprimir: sólo la hoja */
#hr-imprimir { display: none; }
@media print {
  body.hr-imprime { background: #fff !important; }
  body.hr-imprime > *:not(#hr-imprimir) { display: none !important; }
  body.hr-imprime #hr-imprimir { display: block; }
  #hr-imprimir .hr-hoja { box-shadow: none; border-radius: 0; padding: 0; max-width: none; overflow: visible; font-size: 11px; }
  #hr-imprimir .hr-hoja__salto { break-before: page; margin-top: 0; }
  #hr-imprimir .hr-hoja__bloque, #hr-imprimir tr { break-inside: avoid; }
  #hr-imprimir.hr-imprimir--apaisada { page: apaisada; }
  #hr-imprimir, #hr-imprimir * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 14mm; }
  @page apaisada { size: A4 landscape; margin: 12mm; }
}
