.hp {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 14px;
  padding: 18px 0;
  font-size: 0.85rem;
}

.hp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hp--busy {
  opacity: 0.65;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  padding: 7px 13px;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid hsla(0, 0%, 100%, 0.09);
  border-radius: 8px;
  color: hsla(0, 0%, 100%, 0.55);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hp-btn:hover:not(:disabled) {
  background: hsla(0, 0%, 100%, 0.08);
  color: hsla(0, 0%, 100%, 0.9);
  border-color: hsla(var(--main), 60%, 55%, 0.45);
}
.hp-btn:focus-visible {
  outline: 2px solid hsla(var(--main), 70%, 58%, 1);
  outline-offset: 2px;
}
.hp-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hp-btn--arrow {
  padding: 7px 11px;
}

.hp-nums {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.hp-num {
  min-width: 32px;
  padding: 7px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: hsla(0, 0%, 100%, 0.55);
  font-size: 0.82rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hp-num:hover:not(:disabled) {
  background: hsla(0, 0%, 100%, 0.08);
  color: hsla(0, 0%, 100%, 0.9);
}
.hp-num:focus-visible {
  outline: 2px solid hsla(var(--main), 70%, 58%, 1);
  outline-offset: 2px;
}
.hp-num:disabled {
  cursor: not-allowed;
}
.hp-num.is-active {
  background: hsla(var(--main), 70%, 58%, 0.14);
  border-color: hsla(var(--main), 70%, 58%, 0.5);
  color: hsla(var(--main), 70%, 58%, 1);
  font-weight: 700;
}

.hp-gap {
  padding: 0 2px;
  color: hsla(0, 0%, 100%, 0.38);
  user-select: none;
}

.hp-jump {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-jump-label {
  color: hsla(0, 0%, 100%, 0.38);
  font-size: 0.78rem;
  white-space: nowrap;
}

.hp-jump-input {
  width: 58px;
  padding: 7px 8px;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid hsla(0, 0%, 100%, 0.09);
  border-radius: 7px;
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 0.82rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hp-jump-input:focus {
  outline: none;
  border-color: hsla(var(--main), 70%, 58%, 0.6);
}
.hp-jump-input::placeholder {
  color: hsla(0, 0%, 100%, 0.38);
}
.hp-jump-input:disabled {
  opacity: 0.4;
}

.hp-info {
  justify-self: end;
  color: hsla(0, 0%, 100%, 0.38);
  font-size: 0.8rem;
  white-space: nowrap;
}
.hp-info b {
  color: hsla(0, 0%, 100%, 0.55);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hp--top {
  padding-top: 6px;
  padding-bottom: 14px;
}

@media (max-width: 640px) {
  .hp {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    font-size: 0.8rem;
  }
  .hp-info,
  .hp-jump {
    justify-self: center;
  }
  .hp-info {
    order: 10;
  }
}
