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

.write-panel[data-panel="vcard"] .tool-card__desc {
  margin-top: 14px;
}

.field-group {
  min-width: 0;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
select,
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;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input,
select {
  min-height: 52px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
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);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--md-sys-color-on-surface);
  font-size: 0.875rem;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.support-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  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);
  color: var(--md-sys-color-on-surface);
}

.support-box .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 24px;
  flex: 0 0 auto;
}

.support-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.support-box p {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.55;
}

.support-box--ok {
  border-color: color-mix(in srgb, var(--success) 40%, var(--md-sys-color-outline-variant));
  background: color-mix(in srgb, var(--success) 8%, var(--md-sys-color-surface));
}

.support-box--ok .material-symbols-outlined {
  color: var(--success);
}

.support-box--error {
  border-color: color-mix(in srgb, var(--error) 40%, var(--md-sys-color-outline-variant));
  background: color-mix(in srgb, var(--error) 8%, var(--md-sys-color-surface));
}

.support-box--error .material-symbols-outlined {
  color: var(--error);
}

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

.status-message {
  white-space: pre-line;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: color-mix(in srgb, var(--success) 8%, var(--md-sys-color-surface));
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--md-sys-color-outline-variant));
  color: var(--success);
  font-size: 0.875rem;
}

.result-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 14px;
  margin-bottom: 12px;
  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);
  color: var(--md-sys-color-on-surface);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.record-list {
  display: grid;
  gap: 12px;
}

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

.record-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.record-card__title {
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.record-card__type {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  text-align: right;
}

.record-card__value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 12px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 55%, var(--md-sys-color-surface));
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.record-card__meta {
  margin-top: 10px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}

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

@media (max-width: 600px) {
  .form-grid--two {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    padding: 12px 10px;
    font-size: 0.875rem;
  }

  input,
  select {
    min-height: 48px;
  }

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

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .support-box {
    padding: 14px;
  }

  .record-card__header {
    flex-direction: column;
    gap: 4px;
  }

  .record-card__type {
    text-align: left;
  }}
