.hot-tool.average-tool {
  max-width: 48rem;
  margin: 0 auto;
}

.hot-tool .average-tool__panel {
  padding: 1rem;
  border: 1px solid #d8dee8;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.hot-tool .average-tool__panel label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.hot-tool .average-tool__hint {
  margin: 0 0 0.65rem;
  color: #475569;
  font-size: 0.95rem;
}

.hot-tool #average-values {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 7rem;
  padding: 0.75rem;
  border: 1px solid #94a3b8;
  border-radius: 0.45rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.hot-tool .average-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.hot-tool .average-tool__actions button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #155e75;
  border-radius: 0.45rem;
  background: #155e75;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hot-tool .average-tool__actions button:hover {
  background: #0e4b5d;
}

.hot-tool .average-tool__actions button:focus-visible,
.hot-tool #average-values:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.hot-tool .average-tool__actions .average-tool__secondary {
  border-color: #64748b;
  background: #fff;
  color: #1e293b;
}

.hot-tool .average-tool__error {
  margin: 0.8rem 0 0;
  color: #9f1239;
  font-weight: 650;
}

.hot-tool .average-tool__result {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #a5d6c4;
  border-radius: 0.65rem;
  background: #f0fdf7;
  overflow-wrap: anywhere;
}

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

.hot-tool .average-tool__answer {
  margin: 0.25rem 0 1rem;
  color: #14532d;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.hot-tool .average-tool__result dl {
  margin: 0;
}

.hot-tool .average-tool__result dl div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.35fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid #d1e9de;
}

.hot-tool .average-tool__result dt {
  font-weight: 700;
}

.hot-tool .average-tool__result dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hot-tool #average-copy-status {
  margin-bottom: 0;
}

@media print {
  .hot-tool .average-tool__panel > label,
  .hot-tool .average-tool__panel > .average-tool__hint,
  .hot-tool #average-values,
  .hot-tool .average-tool__actions,
  .hot-tool .average-tool__error,
  .hot-tool #average-copy-status {
    display: none !important;
  }
}
