.account-profile {
  min-height: calc(100svh - 11rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  max-width: 76rem;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header h1 {
  color: var(--deep-cobalt);
  font: 450 clamp(2.85rem, 6.8vw, 5.65rem) / .98 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

#profile-status:not(:empty) {
  margin-top: .85rem;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}

.profile-side {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.profile-panel {
  min-width: 0;
  padding: clamp(1.15rem, 2.7vw, 2rem);
  border: 1px solid var(--line);
  background: #fff;
}

.profile-panel h2 {
  font: 620 1.6rem / 1.1 var(--display);
}

.profile-panel > p {
  margin-top: .6rem;
  color: var(--muted);
}

.profile-guest {
  max-width: 33rem;
}

.profile-guest .feature-action {
  margin-top: 1.2rem;
}

.profile-identity {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.35rem 0 1.55rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.profile-identity strong,
.profile-identity #profile-email {
  display: block;
  overflow-wrap: anywhere;
}

.profile-identity #profile-email {
  margin-top: .15rem;
  color: var(--muted);
}

.profile-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: .5rem;
  background: #2c26d5;
  color: white;
  font: 650 1.6rem / 1 var(--display);
}

.profile-avatar[data-color="plum"] { background: #68398b; }
.profile-avatar[data-color="forest"] { background: #17634d; }
.profile-avatar[data-color="ink"] { background: #1c1b44; }

.profile-field {
  display: grid;
  gap: .35rem;
  margin-bottom: 1.05rem;
}

.profile-field label {
  font-weight: 700;
}

.profile-field label span {
  color: var(--muted);
  font-weight: 400;
}

.profile-field :is(input, select) {
  min-width: 0;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #b7b2dc;
  border-radius: .15rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.profile-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.45rem;
}

.profile-save button {
  border: 0;
  cursor: pointer;
}

.profile-save button:disabled {
  opacity: .65;
  cursor: wait;
}

.profile-save [role="status"] {
  color: var(--muted);
}

.profile-apps {
  list-style: none;
  margin: .55rem 0 0;
  padding: 0;
}

.profile-apps li + li {
  border-top: 1px solid var(--line);
}

.profile-apps a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding-block: .7rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.profile-apps a:hover span:first-of-type {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.profile-apps img {
  display: block;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: .4rem;
}

.profile-apps a span:last-child {
  color: var(--deep-cobalt);
}

.profile-signout {
  min-height: 2.75rem;
  margin-top: .5rem;
  padding: .55rem 0;
  border: 0;
  background: none;
  color: var(--deep-cobalt);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

@media (max-width: 700px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
