.account-page {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}
.profile-editor-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 540px;
}
.account-avatar-preview {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}
.editor-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--input-surface);
  color: var(--navy);
}
.editor-avatar > .icon {
  width: 58px;
  height: 58px;
  stroke-width: 1.8;
}
.avatar-choice-field {
  border: 0;
  padding: 0 0 20px;
  margin: 0;
  min-width: 0;
  border-bottom: 1px solid var(--border);
}
.avatar-choice-field legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  margin-bottom: 16px;
}
.avatar-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.avatar-choice,
.avatar-upload {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 10px;
}
.avatar-choice .icon {
  width: 28px;
  height: 28px;
}
.avatar-choice[aria-pressed="true"] {
  border-color: var(--navy);
  outline: 2px solid var(--surface);
  outline-offset: -5px;
}
.avatar-default-choice {
  background: var(--input-surface);
  color: var(--navy);
}
.avatar-upload {
  position: relative;
  border: 1px dashed var(--muted);
  color: var(--navy);
  cursor: pointer;
  padding: 7px;
  gap: 2px;
}
.avatar-upload .icon {
  width: 21px;
  height: 21px;
}
.avatar-upload span {
  font-size: 9px;
}
.avatar-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.avatar-upload:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.account-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}
.nickname-control {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
  align-items: center;
  background: var(--input-surface);
}
.nickname-control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}
.field .nickname-control input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.nickname-control button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 42px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--navy);
}
.nickname-control .icon {
  width: 17px;
  height: 17px;
}
.nickname-count {
  text-align: right;
}
.account-save-row {
  margin-top: auto;
  padding-top: 16px;
}
.account-save-row .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 99px;
}
.application-setting-list {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 16px;
}
.application-setting-row {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 18px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.application-setting-row:last-child { border-bottom: 0; }
.application-setting-row > .icon {
  width: 22px;
  height: 22px;
  color: var(--navy);
  margin-top: 2px;
}
.application-setting-row > div {
  flex: 1;
  min-width: 0;
}
.application-setting-row h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}
.application-setting-row p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.application-setting-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.application-setting-chevron {
  align-self: center;
  color: var(--muted);
}
.application-setting-chevron .icon {
  width: 16px;
  height: 16px;
}
a.application-setting-row:hover {
  background: var(--primary-soft);
}
@media (max-width: 600px) {
  .profile-editor-form {
    min-height: 530px;
  }
  .avatar-choices {
    gap: 8px;
  }
  .avatar-choice,
  .avatar-upload {
    width: 50px;
    height: 50px;
  }
}
