.hot-tool .counter {
  border: 1px solid #d8dee8;
  border-radius: 14px;
  padding: 1rem;
  background: #f8fafc;
}

.hot-tool .counter label {
  display: block;
  margin: 0 0 0.45rem;
  font-weight: 650;
}

.hot-tool #text-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 12rem;
  padding: 0.8rem;
  border: 1px solid #9aa8ba;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.hot-tool .counter-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.hot-tool .counter-controls label {
  flex-basis: 100%;
  margin-bottom: -0.35rem;
}

.hot-tool #words-per-page {
  box-sizing: border-box;
  width: 9rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid #9aa8ba;
  border-radius: 7px;
  font: inherit;
}

.hot-tool .counter button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #284e80;
  border-radius: 7px;
  background: #284e80;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hot-tool #clear-button {
  background: #fff;
  color: #284e80;
}

.hot-tool .counter button:focus-visible,
.hot-tool #text-input:focus-visible,
.hot-tool #words-per-page:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.hot-tool #status {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  color: #40516a;
}

.hot-tool .results {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 9px;
  background: #fff;
}

.hot-tool .results dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.7rem;
  margin: 0;
}

.hot-tool .results dl div {
  padding: 0.7rem;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
}

.hot-tool .results dt {
  color: #40516a;
  font-size: 0.9rem;
}

.hot-tool .results dd {
  margin: 0.2rem 0 0;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hot-tool .results > p {
  margin: 0.8rem 0 0;
  color: #40516a;
  font-size: 0.92rem;
}

.hot-tool .guide {
  margin-top: 1.5rem;
}

@media (max-width: 420px) {
  .hot-tool .counter {
    padding: 0.75rem;
  }
  .hot-tool .counter-controls {
    align-items: stretch;
  }
  .hot-tool .counter-controls button {
    flex: 1 1 7rem;
  }
}
