.profile-card-managed {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 8%);
  color: #1f2937;
  text-align: left;
}

.profile-card-managed__banner {
  position: relative;
  height: 88px;
  background: #eef2ff;
}

.profile-card-managed__banner > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-managed__avatar {
  position: absolute;
  bottom: -24px;
  left: 18px;
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.profile-card-managed__body {
  padding: 34px 18px 16px;
}

.profile-card-managed__title {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-managed__metrics {
  margin-top: 4px;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-managed__badge {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-managed__divider {
  height: 1px;
  margin: 14px 0 12px;
  background: #e5e7eb;
}

.profile-card-managed__wechat {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 22px;
}

.profile-card-managed__button {
  display: block;
  width: fit-content;
  min-width: 150px;
  margin: 14px auto 0;
  padding: 7px 18px;
  border: 1px solid #ef3340;
  border-radius: 999px;
  color: #ef3340;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.profile-card-managed--compact .profile-card-managed__banner {
  height: 48px;
}

.profile-card-managed--compact .profile-card-managed__avatar {
  bottom: -14px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-width: 2px;
}

.profile-card-managed--compact .profile-card-managed__body {
  padding: 20px 9px 9px;
}

.profile-card-managed--compact .profile-card-managed__title {
  font-size: 12px;
  line-height: 18px;
}

.profile-card-managed--compact .profile-card-managed__metrics,
.profile-card-managed--compact .profile-card-managed__badge,
.profile-card-managed--compact .profile-card-managed__wechat {
  font-size: 10px;
  line-height: 15px;
}

.profile-card-managed--compact .profile-card-managed__divider {
  margin: 7px 0 6px;
}

.profile-card-managed--compact .profile-card-managed__button {
  min-width: 0;
  margin-top: 7px;
  padding: 3px 10px;
  font-size: 10px;
  line-height: 15px;
}

.profile-card-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.profile-card-editor__form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.profile-form-grid,
.profile-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-form-field,
.profile-upload-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.profile-form-field__label {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.profile-upload-field__surface {
  position: relative;
  display: flex;
  height: 96px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
}

.profile-upload-field__surface:hover {
  border-color: var(--primary-color, #d03050);
}

.profile-upload-field__surface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-upload-field__surface input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-card-editor__preview {
  display: flex;
  align-items: center;
  align-self: start;
  flex-direction: column;
  gap: 14px;
}

.profile-card-editor__actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 760px) {
  .profile-card-editor {
    grid-template-columns: 1fr;
  }

  .profile-card-editor__preview {
    order: -1;
  }
}
