.hot-tool .clock-calc {
  margin: 1.5rem 0 2rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #cbd5d1;
  border-radius: 1rem;
  background: #f6faf8;
}

.hot-tool .clock-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  max-width: 42rem;
  margin: 1.25rem 0;
}

.hot-tool .clock-calc label,
.hot-tool .clock-calc legend {
  font-weight: 650;
}

.hot-tool .clock-calc label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #52615b;
}

.hot-tool .clock-calc input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #76847d;
  border-radius: 0.45rem;
  background: #fff;
  color: #15211b;
  font: inherit;
}

.hot-tool .clock-calc__duration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 0.8rem;
  border: 1px solid #cbd5d1;
  border-radius: 0.65rem;
}

.hot-tool .clock-calc__duration legend {
  padding: 0 0.3rem;
}

.hot-tool .clock-calc__duration input {
  grid-row: 3;
}

.hot-tool .clock-calc button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #176b4b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hot-tool .clock-calc button:hover {
  background: #10563b;
}

.hot-tool .clock-calc button:focus-visible,
.hot-tool .clock-calc input:focus-visible {
  outline: 3px solid #e19b2f;
  outline-offset: 2px;
}

.hot-tool .clock-calc__hint {
  color: #52615b;
  font-size: 0.925rem;
}

.hot-tool .clock-calc__result {
  margin-top: 1.1rem;
  padding: 1rem;
  border-left: 4px solid #176b4b;
  border-radius: 0.35rem;
  background: #fff;
}

.hot-tool .clock-calc__result h3 {
  margin-top: 0;
}

.hot-tool .clock-calc__error {
  margin: 0;
  color: #8a2525;
}

.hot-tool .clock-calc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.hot-tool .clock-calc__actions button {
  background: #33483d;
}

.hot-tool #copy-status {
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .hot-tool .clock-calc__grid {
    grid-template-columns: minmax(10rem, 0.75fr) minmax(12rem, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .hot-tool .clock-calc__duration {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
  }

  .hot-tool .clock-calc__duration legend {
    grid-column: 1 / -1;
  }

  .hot-tool .clock-calc__duration input {
    grid-row: auto;
  }
}
