/* Account navigation, community workspace and the shared signed-in menu. */
.account-nav-icon,.account-menu-icon { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; align-items: center; justify-content: center; }
.account-nav-icon svg,.account-menu-icon svg,.action-symbol svg { display: block; width: 100%; height: 100%; }
.action-symbol:has(svg) { width: 25px; height: 25px; }
.account-community-panel.portal-main { padding: 2px 0; min-height: 0; }
.account-community-panel .portal-heading { margin-bottom: 24px; }
.account-community-title { margin: 0 0 10px; font-size: clamp(23px,3vw,29px); font-weight: 600; letter-spacing: -.025em; }
.account-community-panel .portal-heading .eyebrow { font-size: 10px; letter-spacing: .14em; }
.account-community-panel .portal-heading p { max-width: 680px; }
.account-community-panel .portal-heading>div>p:last-child { margin-bottom: 0; }
.account-community-panel .portal-card { min-width: 0; }
.account-community-panel .portal-form label { margin: 0; }
.account-community-panel .portal-form :is(input,textarea) { min-width: 0; margin: 0; }
.account-community-panel .portal-form textarea { width: 100%; }
.account-community-panel .portal-row p { overflow-wrap: anywhere; }
.account-people-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.account-person { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 20px; background: #ffffff02; }
.account-person>.portal-actor { gap: 12px; font-size: 15px; }
.account-person>.portal-actor .portal-avatar { flex-basis: 42px; width: 42px; height: 42px; }
.account-person-summary { display: grid; gap: 3px; min-width: 0; }
.account-person-stats { color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-person .portal-actions { justify-content: flex-end; gap: 7px; }
.account-person .portal-actions :is(a,button) { min-height: 34px; padding: 7px 10px; font-size: 12px; }
@container(max-width:640px){.account-person{padding:16px;grid-template-columns:minmax(0,1fr);gap:12px}.account-person .portal-actions{justify-content:flex-start;padding-top:3px}}
.account-popover.account-popover-v2 { position: fixed; top: var(--popover-top,70px); right: max(16px,calc((100vw - 1320px)/2)); width: min(360px,calc(100vw - 32px)); max-height: var(--popover-max-height,calc(100dvh - var(--popover-top,70px) - 12px)); padding: 20px; border: 1px solid #ffffff21; border-radius: 16px; background: linear-gradient(145deg,#232b2b,#191f20 66%); box-shadow: 0 20px 70px #0009,inset 0 1px #ffffff07; scrollbar-width: thin; }
.account-popover-v2:has(.member-pill[data-level=VIP]) { border-color: #d3ab6538; background: linear-gradient(110deg, #282827 0%, #202426 48%, #1d2224 100%); box-shadow: 0 20px 70px #0007; }
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-identity>img { border-color: #d8b98066; box-shadow: 0 0 0 2px #d8af6312,0 8px 24px #0006; }
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-identity strong { color: #fff7e5; text-shadow: 0 1px 14px #d7a44120; }
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-metrics { border-block-color: #b9965830; }
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-menu-grid>a,
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-logout { border-color: #b996581c!important; background: #ffffff02!important; }
.account-popover-v2:has(.member-pill[data-level=VIP]) .popover-resources { color: #a9b3b5; }
.account-popover-v2::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.account-popover-v2>a.popover-identity { display: flex; gap: 14px; align-items: center; padding: 0; color: var(--text); }
.popover-identity>img { display: block; flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; border: 1px solid #ffffff30; border-radius: 50%; }
.popover-identity>div { min-width: 0; }
.popover-identity strong { display: block; overflow-wrap: anywhere; font-size: 17px; line-height: 1.45; font-weight: 600; }
.popover-membership { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.popover-membership small { color: #b1bfb7; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.popover-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 20px 0; padding: 8px 0; border-block: 1px solid #ffffff10; }
.popover-metrics>a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-width: 0; min-height: 64px; padding: 8px 2px; border: 1px solid transparent; border-radius: 8px; color: var(--text); text-decoration: none; }
.popover-metrics strong { font-size: 19px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.popover-metrics span { color: var(--muted); font-size: 10px; }
.popover-metrics>a:is(:hover,:focus-visible) { background: #efba8810; border-color: #efba8830; }
.popover-metrics>a:is(:hover,:focus-visible) :is(strong,span) { color: var(--accent); }
.account-popover-v2 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.popover-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.popover-menu-grid>a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px; border: 1px solid #ffffff0b; border-radius: 9px; background: #ffffff02; color: #c6d3cc; font-size: 12px; }
.popover-menu-grid>a:hover { color: var(--accent); background: #efba8810; border-color: #efba8830; }
.popover-menu-grid .account-menu-icon { color: #a5b9ac; width: 19px; height: 19px; }
.popover-menu-grid>a:hover .account-menu-icon { color: var(--accent); }
.popover-resources { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #8da397; font-size: 10px; }
.popover-resources>.account-menu-icon { width: 14px; height: 14px; }
.popover-resources>span:last-child { margin-left: auto; }
.account-popover-v2 .popover-logout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px!important; border-color: #ffffff10!important; background: transparent!important; }
@media(max-width:700px){
 .account-people-grid { grid-template-columns: 1fr; }
 .account-community-panel .portal-split { grid-template-columns: 1fr; }
 .account-popover.account-popover-v2 { right: 16px; padding: 17px; }
 .popover-menu-grid>a { gap: 8px; padding: 9px; font-size: 11px; }
}

.popover-storage-meter { height: 7px; margin-top: 9px; border-radius: 3px; overflow: hidden; background: #383b42; }
.popover-storage-meter>span { display: block; height: 100%; border-radius: inherit; background: #e8a16c; }
.popover-storage-meter[hidden] { display: none; }

.account-popover-v2:has(.member-pill[data-level=VIP])::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, #fff3c30d 43%, #fff3c30d 50%, #fff3c30d 57%, transparent 72%);
  background-size: 300% 100%; background-position: 100% 0; opacity: 0;
}
.account-popover-v2:has(.member-pill[data-level=VIP]):is(:hover,:focus-within)::after {
  animation: popover-metal-sweep 1.2s ease-out both;
}
@keyframes popover-metal-sweep {
  0% { background-position: 100% 0; opacity: 0; }
  15%,85% { opacity: 1; }
  100% { background-position: 0% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .account-popover-v2:has(.member-pill[data-level=VIP])::after { display: none; animation: none; }
}

body .site-header .nav-account { justify-content: center; padding-inline: 12px; }
body .site-header .nav-account .nav-avatar { flex-shrink: 0; }
body .site-header .nav-account .nav-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 641px) { body .site-header .nav-account { max-width: 180px; } }
.hh-inbox-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:var(--accent,#e8b582);color:#171b1d;font-size:11px;line-height:1;font-weight:600;flex-shrink:0}
.hh-inbox-count[hidden]{display:none}
