[hidden] { display: none !important; }

.account-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex: none;
  justify-self: start;
  min-height: 44px;
  padding-inline: 2.95rem 0.8rem;
  color: #f4cf8d;
  font: 650 0.875rem/1.2 var(--body-type);
  text-decoration: none;
  white-space: nowrap;
}
.account-button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 5px 0 5px 9px;
  border: 1px solid #d9a75d75;
  border-radius: 999px;
  background: linear-gradient(115deg, #332013, #17100c);
}
.account-button:hover::before { border-color: var(--gold); background: #3d2718; }
.account-button:focus-visible { border-radius: 999px; }
.account-avatar {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  overflow: hidden;
  border: 1px solid #d9a75db3;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 0%, #654329, #25170f 75%);
}
.account-avatar svg { width: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.account-avatar .account-photo { width: 100%; height: 100%; object-fit: cover; }
.account-initial { font-size: 1.05rem; font-weight: 700; }
.profile-photo-controls { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.profile-photo-picker { position: relative; display: inline-flex; cursor: pointer; }
.profile-photo-input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.profile-photo-picker:focus-within { outline: 2px solid #ffdc9c; outline-offset: 5px; }
.profile-photo-remove { padding: 0; border: 0; background: none; cursor: pointer; }
.profile-photo-status { flex-basis: 100%; font-size: 0.875rem; }
.profile-photo-status:empty { display: none; }

.account-area { display: flex; align-items: center; gap: 0.55rem; flex: none; }
.profile-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: #f4cf8d;
  font: 600 0.875rem/1.1 var(--body-type);
  text-underline-offset: 0.18em;
}

@media (max-width: 480px) {
  .account-area:has(.profile-link:not([hidden])) { gap: 0.35rem; }
  .account-area:has(.profile-link:not([hidden])) .account-button {
    padding-inline: 2.36rem 0.42rem;
    font-size: 0.8125rem;
  }
  .account-area:has(.profile-link:not([hidden])) .account-avatar { width: 34px; height: 34px; }
  .account-area:has(.profile-link:not([hidden])) .account-button::before { inset-block: 8px; }
  .profile-link { font-size: 0.8125rem; }
}
