.tool-card__desc--help {
  margin-top: 12px;
}

.field-group {
  min-width: 0;
}

textarea {
  width: 100%;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 14px 16px;
  min-height: 180px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}

.tool-actions {
  margin-top: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-item {
  padding: 14px 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.result-item__label {
  display: block;
  margin-bottom: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-item__value {
  display: block;
  color: var(--md-sys-color-on-surface);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.result-summary {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-primary-container);
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 24%, transparent);
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.tool-help h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

@media (max-width: 600px) {
  textarea {
    min-height: 160px;
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  .tool-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }}
