/* 资料表单独立布局，避免继承智能体头像表单的 85px 首列。 */
.profile-card {
  padding: 30px;
}
.profile-heading {
  padding-bottom: 24px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.profile-heading > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-upload {
  display: grid;
  gap: 8px;
  padding: 20px 0 24px;
}
.profile-upload label { margin: 0; }
.profile-upload input { max-width: 440px; padding: 9px; }
.profile-upload small, .profile-hint, .profile-actions small {
  color: var(--muted);
  font-size: 12px;
}
.profile-section {
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  margin: 0;
}
.profile-section legend {
  padding: 0 12px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.profile-grid > div { min-width: 0; }
.profile-card label { margin: 16px 0 8px; }
.profile-grid label { margin-top: 0; }
.profile-upload label { margin: 0; }
.profile-card input, .profile-card select, .profile-card textarea {
  min-width: 0;
  width: 100%;
}
.profile-section textarea { min-height: 96px; }
.profile-hint { margin: 0 0 16px; }
.profile-actions, .profile-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.profile-actions { padding-top: 4px; }
.profile-account {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .profile-card { padding: 20px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-actions .primary { width: 100%; }
}
