.tms-tool {
  box-sizing: border-box;
  max-width: 640px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #d9dce2;
  border-radius: 12px;
  background: #ffffff;
  color: #1e2632;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.tms-tool--error {
  border-color: #c43d3d;
  background: #fff6f6;
  color: #8f1e1e;
}

.tms-tool__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.25;
}

.tms-tool__description {
  margin: 8px 0 0;
  color: #4a5568;
}

.tms-tool__form {
  margin-top: 16px;
}

.tms-tool__field + .tms-tool__field {
  margin-top: 12px;
}

.tms-tool__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2c3a4a;
}

.tms-tool__input {
  width: 100%;
  border: 1px solid #c6ced8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.2;
  background: #fff;
}

.tms-tool__input:focus {
  outline: none;
  border-color: #1678c9;
  box-shadow: 0 0 0 3px rgba(22, 120, 201, 0.18);
}

.tms-tool__button {
  margin-top: 16px;
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: #0f6cb4;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.tms-tool__button:hover,
.tms-tool__button:focus {
  background: #0c5b98;
}

.tms-tool__message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b53939;
  font-size: 0.95rem;
}

.tms-tool__result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #cde4d6;
  background: #f5fbf7;
}

.tms-tool__result-label {
  margin: 0;
  color: #2f4858;
  font-size: 0.95rem;
}

.tms-tool__result-value {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b3b2f;
}

.tms-tool__result-secondary,
.tms-tool__result-interpretation {
  margin: 8px 0 0;
  color: #2f4858;
}

.tms-tool__disclaimer {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #5f6b7a;
}

@media (max-width: 640px) {
  .tms-tool {
    padding: 16px;
    border-radius: 10px;
  }

  .tms-tool__title {
    font-size: 1.2rem;
  }

  .tms-tool__button {
    width: 100%;
  }
}