/* Account navigation, community workspace and the shared signed-in menu. */
/* Both VIP tiers use the personal information card's existing palette. */
body .site-header:is([data-membership-tier=monthly],[data-membership-tier=annual]){background:linear-gradient(110deg,#282827 0%,#202426 48%,#1d2224 100%);border-bottom-color:#d3ab6538}
body .site-header:is([data-membership-tier=monthly],[data-membership-tier=annual]) nav{border-color:#b4935633;background:#dbb76b07}
body .site-header:is([data-membership-tier=monthly],[data-membership-tier=annual]) nav a{color:#c3b8a5}
body .site-header:is([data-membership-tier=monthly],[data-membership-tier=annual]) nav a:is(:hover,[aria-current=page],[aria-current=location]){color:#ffe3af;background:#dfbd6b17}
body .site-header:is([data-membership-tier=monthly],[data-membership-tier=annual]) .nav-account{border-color:#b493564a;background:#ddba7109}
.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; }
/* Reset native popover centering; position it beside the account button. */
.account-popover.account-popover-v2[popover] { margin: 0; left: auto; bottom: auto; color: inherit; }
.account-popover.account-popover-v2:popover-open { opacity: 1; visibility: visible; transform: none; }
.account-popover.account-popover-v2::backdrop { background: transparent; pointer-events: none; }
/* Older embedded browsers keep the same hover behavior above page content. */
body .site-header.account-popover-active { z-index: 2147483647; }
.account-dropdown[data-open]:not([data-dismissed]) .account-popover { opacity: 1; visibility: visible; transform: none; }
.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}
.download-quota-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--border,#39454d);border-radius:16px;background:var(--panel,#1c2227);color:var(--text,#edf1f3);font:inherit;overflow:auto;box-shadow:0 24px 80px #0008}
.download-quota-dialog::backdrop{background:#05090bc9;backdrop-filter:blur(4px)}
.download-quota-dialog header,.download-quota-dialog footer{display:flex;align-items:center;gap:12px;padding:20px 24px}
.download-quota-dialog header{justify-content:space-between;border-bottom:1px solid var(--border,#39454d)}
.download-quota-dialog h2{margin:0;font-size:20px;line-height:1.4}
.download-quota-dialog header button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;flex:0 0 36px;padding:0;margin:0;border:1px solid var(--border,#39454d);border-radius:8px;background:var(--panel-2,#252c32);color:inherit;font-size:24px;line-height:1;cursor:pointer}
.download-quota-content{display:grid;gap:16px;padding:24px}.download-quota-content p{margin:0;font-size:14px;line-height:1.7;color:var(--muted,#aab7bf)}.download-quota-content .download-quota-usage{color:var(--text,#edf1f3);font-weight:600;font-size:16px}
.download-quota-benefits{border:1px solid var(--border,#39454d);border-radius:10px;padding:0 16px}.download-quota-benefits>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}.download-quota-benefits>div+div{border-top:1px solid var(--border,#39454d)}.download-quota-benefits strong{color:var(--accent,#efb47c)}
.download-quota-dialog footer{justify-content:flex-end;border-top:1px solid var(--border,#39454d)}.download-quota-dialog footer :is(button,a){display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:40px;padding:9px 16px;margin:0;border:1px solid var(--border,#39454d);border-radius:8px;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}.download-quota-dialog footer .secondary{background:var(--panel-2,#252c32);color:inherit}.download-quota-dialog footer a{background:var(--accent,#efb47c);color:#171b1e;border-color:transparent}
