@import url("../../../assets/conversion-workbench.css");

:root {
  --tool-accent: #0f766e;
  --tool-accent-strong: #0f5e59;
  --tool-accent-soft: #e8fbf7;
}

.tool-card-soft {
  border: 1px solid var(--tool-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 10px 28px rgba(34, 64, 122, 0.08);
  padding: 18px;
}

.distance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-chip {
  border: 1px solid #cbe4e2;
  border-radius: 999px;
  background: #f4fffd;
  color: #135f59;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}

.distance-form-grid {
  display: grid;
  gap: 14px;
}

.distance-form-card .converter-actions {
  margin-top: 18px;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-stack span {
  font-size: 14px;
  color: #4f5f75;
}

.distance-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
}

.distance-input:focus {
  outline: none;
  border-color: #9fd6cf;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.distance-hero {
  padding: 20px;
  border: 1px solid #d8ecea;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 42%), #f7fffd;
}

.hero-label {
  display: block;
  font-size: 13px;
  color: #5b7288;
}

.distance-hero strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  color: #125e59;
}

.distance-meta {
  margin-top: 16px;
}

.distance-note-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--tool-border);
  border-radius: 18px;
  background: #fff;
}

.distance-note {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .distance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .converter-meta.distance-meta {
    grid-template-columns: 1fr;
  }
}
