.profile-basic-settings,
.profile-editor-details-body {
  display: grid;
  gap: 1rem;
}

.profile-editor-label {
  margin: 0;
  color: var(--accent-2);
  font-size: .84rem;
  font-weight: 800;
}

.profile-editor-note {
  margin: -.55rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.profile-editor-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.profile-editor-details > summary {
  position: relative;
  display: grid;
  gap: .18rem;
  min-height: 44px;
  padding: .8rem 2.75rem .8rem 1rem;
  cursor: pointer;
  list-style: none;
  background: var(--surface-soft);
}

.profile-editor-details > summary::-webkit-details-marker { display: none; }

.profile-editor-details > summary::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--accent-2);
  font-size: .78rem;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.profile-editor-details[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.profile-editor-details > summary:hover,
.profile-editor-details > summary:focus-visible { background: var(--bg); }
.profile-editor-details > summary span { color: var(--ink); font-weight: 800; }
.profile-editor-details > summary small { color: var(--muted); font-size: .76rem; }
.profile-editor-details[open] > summary { border-bottom: 1px solid var(--line); }
.profile-editor-details-body { padding: 1rem; }
.profile-editor-details-body > fieldset { margin: 0; }
.profile-editor-details .profile-link-fields { border: 0; }

@media (max-width: 640px) {
  .profile-editor-details > summary { padding-left: .85rem; }
  .profile-editor-details-body { padding: .85rem; }
}
