.hhe-calculator,
.hhe-calculator * {
  box-sizing: border-box;
}

.hhe-calculator {
  --hhe-bg: #ffffff;
  --hhe-card: #ffffff;
  --hhe-border: #d8e1e0;
  --hhe-primary: #0f3d3a;
  --hhe-primary-soft: #e8f0ef;
  --hhe-text: #111111;
  --hhe-muted: #4d5b5a;
  background: var(--hhe-bg);
  color: var(--hhe-text);
  border: 1px solid var(--hhe-border);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  box-shadow: 0 8px 24px rgba(15, 61, 58, 0.08);
}

.hhe-form {
  display: grid;
  gap: 10px;
}

.hhe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hhe-field {
  display: grid;
  gap: 5px;
}

.hhe-field label {
  font-weight: 600;
  color: var(--hhe-muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hhe-field input,
.hhe-field select {
  width: 100%;
  border: 1px solid var(--hhe-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.2;
  background: var(--hhe-card);
  color: var(--hhe-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hhe-field input:focus,
.hhe-field select:focus {
  outline: none;
  border-color: var(--hhe-primary);
  box-shadow: 0 0 0 4px rgba(15, 61, 58, 0.12);
}

.hhe-actions {
  margin-top: 6px;
}

.hhe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hhe-primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hhe-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 61, 58, 0.2);
}

.hhe-button:active {
  transform: translateY(0);
}

.hhe-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 61, 58, 0.22);
}

.hhe-result {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--hhe-primary-soft);
  border: 1px solid #c7d9d6;
  min-height: 26px;
  font-size: 0.92rem;
}

.hhe-disclaimer {
  margin-top: 10px;
  color: var(--hhe-muted);
  font-size: 0.8rem;
}

.hhe-result-grid {
  display: grid;
  gap: 5px;
}

@media (max-width: 700px) {
  .hhe-calculator {
    padding: 12px;
    margin: 10px 0;
    border-radius: 14px;
  }

  .hhe-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hhe-button {
    width: 100%;
  }
}
