.hot-tool {
  --tool-ink: #172a26;
  --tool-muted: #52635f;
  --tool-border: #cbd8d3;
  --tool-accent: #17684f;
  color: var(--tool-ink);
  border: 1px solid var(--tool-border);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  margin: 1.5rem 0 2rem;
  background: #f7faf8;
}

.hot-tool .dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hot-tool .dimension {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .5rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--tool-border);
  border-radius: .7rem;
  background: #fff;
}

.hot-tool legend {
  padding: 0 .35rem;
  font-weight: 700;
}

.hot-tool label {
  align-self: center;
  color: var(--tool-muted);
  font-size: .9rem;
}

.hot-tool input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem;
  border: 1px solid #879a94;
  border-radius: .4rem;
  color: var(--tool-ink);
  background: #fff;
  font: inherit;
}

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

.hot-tool .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.hot-tool button {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid var(--tool-accent);
  border-radius: .5rem;
  background: var(--tool-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hot-tool button.secondary {
  background: #fff;
  color: var(--tool-accent);
}

.hot-tool button:disabled {
  border-color: #83938e;
  background: #e5ebe8;
  color: #52635f;
  cursor: not-allowed;
}

.hot-tool .error {
  margin: 1rem 0 0;
  padding: .75rem;
  border-left: 4px solid #a52626;
  background: #fff0ef;
  color: #721d1d;
}

.hot-tool .results {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: .65rem;
  background: #eaf3ee;
}

.hot-tool .results h2 {
  margin-top: 0;
}

.hot-tool dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
}

.hot-tool dl div {
  padding: .7rem;
  border-radius: .45rem;
  background: #fff;
}

.hot-tool dt {
  color: var(--tool-muted);
  font-size: .88rem;
}

.hot-tool dd {
  margin: .25rem 0 0;
  font-size: 1.15rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.hot-tool #normalized-result,
.hot-tool #copy-status {
  margin-bottom: 0;
  color: var(--tool-muted);
}

.tool-copy {
  max-width: 72ch;
}

.tool-copy h2 {
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .hot-tool .dimension-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .hot-tool .dimension {
    grid-template-columns: minmax(3.2rem, .45fr) minmax(0, 1fr) minmax(3.2rem, .45fr) minmax(0, 1fr);
    align-items: center;
  }

  .hot-tool .tool-actions {
    display: grid;
  }

  .hot-tool button {
    width: 100%;
  }

  .hot-tool dl {
    grid-template-columns: 1fr;
  }
}
