/* Account controls share the public shell, without its marketing-menu behaviour. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/brand/fonts/inter-v20-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.account-header.nav { display: block; padding: 0; }
.account-header .site-brand { min-height: 44px; }
.account-header .site-brand img { width: 148px; height: auto; }
.account-header-inner { gap: 20px; }
.account-content { padding-top: 28px; }
.account-content .grid > div { min-width: 0; }
.account-content .mode { max-width: 100%; }
.account-content .item > .name, .account-content .person > .name { min-width: 0; overflow-wrap: anywhere; }
.account-content .item.renaming, .account-content .person.renaming { grid-template-columns: minmax(0, 1fr); }
.account-content .item.renaming .name .rename, .account-content .person.renaming .name .rename { display: flex; flex-wrap: wrap; width: 100%; }
.account-content .item.renaming .name .rename input, .account-content .person.renaming .name .rename input { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
.account-navigation { display: flex; align-items: center; gap: 16px; }
.account-menu { position: relative; }
.account-menu > summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid #DCE3EF; border-radius: 12px; background: #fff; color: #101426; font-size: 14px; line-height: 1.4; font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: background 180ms ease, border-color 180ms ease; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: #EAF0FF; border-color: #C9D8FF; }
.account-icon { width: 18px; height: 18px; flex: none; }
.account-chevron { width: 7px; height: 7px; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
.account-menu[open] .account-chevron { transform: translateY(2px) rotate(225deg); }
.account-menu-panel { position: absolute; z-index: 1; top: calc(100% + 12px); right: 0; width: min(340px, calc(100vw - 40px)); max-height: calc(100dvh - 100px); overflow: auto; padding: 8px; border: 1px solid #DCE3EF; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px #1014261F; }
.account-menu[open] .account-menu-panel { animation: account-menu-in 180ms ease-out both; }
.account-identity { padding: 12px 12px 16px; margin-bottom: 6px; border-bottom: 1px solid #E3E8F2; }
.account-identity .account-caption { margin: 0 0 5px; color: #53617A; font-size: 12px; font-weight: 500; }
#emailLabel { max-width: none; margin: 0; color: #101426; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.account-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.account-meta .rolechip { padding: 4px 10px; font-size: 12px; }
.account-header .account-menu-panel a { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 12px; white-space: normal; }
.account-header .account-menu-panel .account-logout { color: #9D2828; }
.account-header .account-menu-panel .account-logout:hover { color: #9D2828; background: #FFF1F1; }
.account-header .account-menu-panel .account-logout[aria-disabled="true"] { cursor: progress; }
.account-header .account-menu-panel .account-mobile-gallery { display: none; }
/* The existing logout handler places its retry alert immediately after .nav. */
body > #logoutErr { width: calc(100% - 48px); max-width: 1072px; margin: 16px auto 0; }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .account-content { padding: 24px 20px 0; }
  .account-header-inner { gap: 12px; }
  .account-navigation { gap: 8px; }
  .account-menu > summary { padding: 10px 12px; gap: 8px; }
  .account-icon { display: none; }
  body > #logoutErr { width: calc(100% - 40px); }
}
@media (max-width: 480px) {
  .account-header .account-navigation > .account-gallery { display: none; }
  .account-header .account-menu-panel .account-mobile-gallery { display: flex; }
  .account-content .newhead { grid-template-columns: minmax(0, 1fr) auto; }
  .account-content .newhead .sub { grid-column: 1 / -1; grid-row: 2; }
  .account-content .newhead .mini { grid-column: 2; grid-row: 1; }
}
@media (pointer: coarse) {
  .mini, .chips button, .mode .opt, .role select { min-height: 44px; }
  .role select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .account-menu[open] .account-menu-panel { animation: none; } }
