/* Copyright (c) 2026 Trubits Innovations Pvt. Ltd.
   Account profile presentation; all colours reuse the main-site palette. */
.account-sidebar {
  position: sticky;
  top: 9rem;
  align-self: start;
  padding-top: 24px;
}
.account-sidebar-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 36px;
  overflow-wrap: anywhere;
}
.account-sidebar-identity > strong {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
}
.account-sidebar-identity > span {
  max-width: 100%;
  font-size: 14px;
  color: #6e6e73;
}
.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
}
.account-avatar > img,
.account-avatar > span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.account-avatar > span {
  display: grid;
  place-items: center;
  background: #f5f5f7;
  color: #0071e3;
  font-size: 28px;
  font-weight: 500;
}
.account-avatar > .site-icon-button {
  scroll-margin-top: 10rem;
  position: absolute;
  top: -10px;
  right: -18px;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  color: #0071e3;
  border-radius: 50%;
}
.account-avatar:hover > .site-icon-button,
.account-avatar:focus-within > .site-icon-button {
  opacity: 1;
  pointer-events: auto;
}
.account-section-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.account-section-nav a {
  padding: 8px 0;
  font-size: 16px;
  color: #1d1d1f;
  text-decoration: none;
}
.account-section-nav a:hover,
.account-section-nav a[aria-current] {
  color: #0071e3;
}
.account-section-nav a[aria-current] {
  font-weight: 500;
}
.account-section-nav a:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 4px;
}
.account-avatar-editor {
  width: min(480px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.account-avatar-editor::backdrop {
  background: rgba(0, 0, 0, 0.1);
}
.account-avatar-editor h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
}
.account-avatar-editor .file-label {
  margin-top: 0;
}
@media (hover: none) {
  .account-avatar > .site-icon-button {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 760px) {
  .account-sidebar {
    position: static;
    padding-top: 0;
  }
  .account-sidebar-identity {
    margin-bottom: 20px;
  }
  .account-section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 20px;
  }
}
