[data-session-guest][hidden], [data-session-menu][hidden] { display: none !important; }
[data-session-menu] { position: relative; flex: 0 0 auto; }
.session-account { position: relative; font: 500 15px/1.5 var(--font-body, 'Avenir Next', 'PingFang SC', sans-serif); color: var(--text-primary, #454361); }
.session-account > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; }
.session-account > summary::-webkit-details-marker { display: none; }
:is(.session-account, .account-menu) > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.session-account :focus-visible { outline: 2px solid var(--focus-ring, currentColor); outline-offset: 4px; }
.session-popover { position: absolute; z-index: 100; top: calc(100% + 12px); right: 0; width: min(264px, calc(100vw - 24px)); padding: 8px; border: 1px solid var(--border-color, #d3ccdf); border-radius: 12px; background: var(--surface-elevated, #fcf9fd); color: var(--text-primary, #454361); }
.session-popover > a, .session-popover > button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-decoration: none; text-align: start; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.session-popover > a:hover, .session-popover > button:hover { background: var(--hover-surface, #eee7f4); }
.session-popover > button:disabled { opacity: .6; cursor: wait; }
.account-popover, [data-session-menu="product"] .session-popover { background: #fcf9fd; }
:is(.account-popover, .session-popover) > .account-language {
  display: flex; justify-content: flex-start; gap: 4px; padding: 2px 6px;
}
:is(.account-popover, .session-popover) > .account-language > button {
  min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-secondary, inherit); font: inherit; cursor: pointer;
}
:is(.account-popover, .session-popover) > .account-language > button:hover { background: var(--hover-surface, #eee7f4); }
:is(.account-popover, .session-popover) > .account-language > button[aria-pressed="true"] {
  color: var(--nav-active-text, #fff); background: var(--nav-active-background, #4c4d77);
  font-weight: 650;
}
.site-header .session-account { color: inherit; }
.site-header .session-popover { background: #fcf9fd; color: #454361; }
@media(max-width:600px) { .session-popover { position: fixed; right: 12px; top: 76px; } }
.entry-header .session-account { color: var(--ink); }
.entry-header .session-popover { background: var(--surface); color: var(--ink); border-color: var(--border); }
.entry-header .session-popover > a:hover, .entry-header .session-popover > button:hover { background: var(--field); }
@media(max-width:650px) { .entry-header-actions { flex-direction: row; align-items: center; } }
