.hot-tool .area-tool {
  margin: 1.5rem 0 2rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #d4dce4;
  border-radius: 1rem;
  background: #f7f9fb;
}

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

.hot-tool .dimension-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, 7rem);
  align-items: center;
  gap: .65rem .8rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d4dce4;
  border-radius: .75rem;
  background: #fff;
}

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

.hot-tool .dimension-card label {
  font-size: .95rem;
}

.hot-tool .dimension-card input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .65rem;
  border: 1px solid #aab6c2;
  border-radius: .45rem;
  color: #172432;
  background: #fff;
  font: inherit;
}

.hot-tool .dimension-card input:focus-visible,
.hot-tool .tool-actions button:focus-visible {
  outline: 3px solid #79b7fa;
  outline-offset: 2px;
}

.hot-tool .input-hint {
  margin: .8rem 0 1rem;
  color: #465665;
  font-size: .92rem;
}

.hot-tool .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hot-tool .tool-actions button {
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border: 1px solid #155e9b;
  border-radius: .5rem;
  color: #fff;
  background: #155e9b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hot-tool .tool-actions button.secondary {
  color: #155e9b;
  background: #fff;
}

.hot-tool .tool-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.hot-tool .area-error {
  margin: 1rem 0 0;
  padding: .75rem;
  border-left: 4px solid #a72828;
  color: #791d1d;
  background: #fff1f1;
}

.hot-tool .area-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #a9cdb5;
  border-radius: .75rem;
  background: #f0f8f2;
}

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

.hot-tool .area-result p:last-child {
  margin-bottom: 0;
}

.hot-tool .area-total {
  font-size: 1.2rem;
}

.hot-tool .calculation {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.hot-tool .copy-status {
  color: #244d32;
}

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

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

  .hot-tool .dimension-card {
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 6rem);
  }
}

@media print {
  .hot-tool .dimension-grid,
  .hot-tool .input-hint,
  .hot-tool .tool-actions,
  .hot-tool .area-error,
  .hot-tool .guide-copy {
    display: none;
  }

  .hot-tool .area-tool {
    padding: 0;
    border: 0;
    background: #fff;
  }
}
