.hot-tool .bearing-tool {
  margin: 1.5rem 0 2rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  color: #172033;
}

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

.hot-tool .station-card {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d5deea;
  border-radius: 0.75rem;
  background: #fff;
}

.hot-tool .station-card legend {
  padding: 0 0.4rem;
  font-weight: 700;
  color: #173b63;
}

.hot-tool .station-card label {
  display: block;
  margin: 0.65rem 0 0.3rem;
  font-size: 0.94rem;
  font-weight: 650;
}

.hot-tool .station-card input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.7rem;
  border: 1px solid #8998aa;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font: inherit;
}

.hot-tool .station-card input:focus-visible,
.hot-tool .tool-actions button:focus-visible {
  outline: 3px solid #1473c9;
  outline-offset: 2px;
}

.hot-tool .field-help {
  margin: 0.85rem 0;
  color: #475569;
  font-size: 0.92rem;
}

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

.hot-tool .tool-actions button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #174c7b;
  border-radius: 0.55rem;
  background: #174c7b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hot-tool .tool-actions button + button {
  background: #fff;
  color: #174c7b;
}

.hot-tool .tool-actions button:disabled {
  border-color: #9aa8b8;
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.hot-tool .bearing-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 3.5rem;
  padding-top: 0.25rem;
}

.hot-tool .bearing-result {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  background: #fff;
}

.hot-tool .bearing-result h3 {
  margin: 0;
  font-size: 0.95rem;
}

.hot-tool .bearing-result .bearing-value {
  margin: 0.35rem 0 0;
  color: #123d67;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hot-tool .bearing-note,
.hot-tool .output-placeholder,
.hot-tool .output-error {
  grid-column: 1 / -1;
  margin: 0.25rem 0;
}

.hot-tool .output-error {
  padding: 0.8rem;
  border-left: 4px solid #b42318;
  background: #fff1f0;
  color: #7a1710;
}

.hot-tool .copy-status {
  min-height: 1.4em;
  margin: 0.5rem 0 0;
  color: #334155;
}

.hot-tool .tool-copy code {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .hot-tool .station-grid,
  .hot-tool .bearing-output {
    grid-template-columns: minmax(0, 1fr);
  }

  .hot-tool .tool-actions button {
    flex: 1 1 8rem;
  }
}

@media print {
  .hot-tool .bearing-tool {
    border-color: #777;
    background: #fff;
  }

  .hot-tool .tool-actions,
  .hot-tool .copy-status {
    display: none;
  }
}
