body[data-design] #page-profile.active {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

#page-profile .fc-profile-hero {
  border-radius: var(--panel-radius, 16px);
  padding: clamp(14px, 3vw, 22px);
  margin-block-end: 14px;
}

#page-profile .fc-profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 0;
  text-align: start;
}

#page-profile .fc-avatar-wrap {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 58px;
  height: 58px;
  margin: 0;
}

#page-profile .fc-avatar-wrap .profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  font-size: 24px;
}

#page-profile .fc-profile-identity h2 {
  grid-column: 2;
  font-size: clamp(19px, 4vw, 25px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  margin: 0;
}

#page-profile .fc-profile-email {
  grid-column: 2;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

#page-profile .fc-account-id {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 2px 0 0;
}

.fc-profile-groups {
  display: grid;
  gap: 10px;
  margin-block-end: 14px;
}

.fc-profile-group {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius, 16px);
}

.fc-profile-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.fc-profile-group > summary:has(.fc-progress-label) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.fc-profile-group > summary::-webkit-details-marker { display: none; }
.fc-profile-group > summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: -3px; }

.fc-profile-chevron {
  width: 8px;
  height: 8px;
  margin-inline-end: 3px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(45deg);
}

[dir="rtl"] .fc-profile-chevron { transform: rotate(-45deg); }
.fc-profile-group[open] .fc-profile-chevron { rotate: 180deg; }

#page-profile .fc-profile-group-body > .fc-panel {
  margin: 0;
  padding: 14px 16px 16px;
  border: 0;
  border-block-start: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-profile .fc-account-settings .locale-picker { margin: 0; padding-block-end: 12px; }
#page-profile .fc-account-settings > .fc-setting-row { border-block-start: 1px solid var(--border); }
#page-profile .fc-account-settings .fc-theme-controls { margin: 0; }
#page-profile .fc-account-settings .fc-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
#page-profile .fc-profile-actions .fc-outline-btn { flex: 1 1 11rem; margin: 0; overflow-wrap: anywhere; }
#page-profile .fc-profile-actions .fc-profile-signout { color: var(--muted); }
#page-profile .fc-support-bottom { flex-wrap: wrap; }
#page-profile .fc-support-bottom button { white-space: normal; }
