.hot-tool {
  color: #172b28;
}

.hot-tool .calculator-card {
  border: 1px solid #d6e2dc;
  border-radius: 16px;
  padding: clamp(16px, 4vw, 28px);
  background: #f6faf7;
  box-shadow: 0 8px 24px rgb(25 65 47 / 7%);
}

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

.hot-tool .unit-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
  font-weight: 650;
}

.hot-tool select,
.hot-tool input,
.hot-tool button {
  min-height: 44px;
  font: inherit;
}

.hot-tool select,
.hot-tool input {
  border: 1px solid #8ba49a;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 8px 10px;
}

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

.hot-tool .sections {
  display: grid;
  gap: 12px;
}

.hot-tool .dimension-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  min-width: 0;
  border: 1px solid #d6e2dc;
  border-radius: 10px;
  padding: 12px;
  margin: 0;
}

.hot-tool .dimension-row legend {
  padding: 0 5px;
  font-weight: 700;
}

.hot-tool .dimension-row label {
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
  font-weight: 650;
}

.hot-tool .unit-hint {
  color: #536c62;
  font-weight: 400;
}

.hot-tool .dimension-row input {
  width: 100%;
  min-width: 0;
}

.hot-tool button {
  border: 1px solid #56796a;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  color: #163c2e;
  font-weight: 700;
  cursor: pointer;
}

.hot-tool button:hover:not(:disabled) {
  background: #e8f2ec;
}

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

.hot-tool .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hot-tool .primary-action {
  background: #195c42;
  border-color: #195c42;
  color: #fff;
}

.hot-tool .primary-action:hover:not(:disabled) {
  background: #104a33;
}

.hot-tool .error-message {
  color: #9c241c;
  font-weight: 650;
}

.hot-tool .result {
  margin-top: 20px;
  border-left: 4px solid #2a7957;
  border-radius: 8px;
  padding: 14px 16px;
  background: #e8f4ec;
}

.hot-tool .result h3 {
  margin: 0 0 8px;
}

.hot-tool .result ul {
  padding-left: 22px;
}

.hot-tool .total-line {
  font-size: 1.2rem;
  font-weight: 750;
}

.hot-tool .formula-result {
  overflow-wrap: anywhere;
}

.hot-tool .guide-copy {
  margin-top: 28px;
}

@media (max-width: 430px) {
  .hot-tool .dimension-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hot-tool .dimension-row .remove-section {
    grid-column: 1 / -1;
    justify-self: start;
  }

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