/* Account navigation stays scoped to the shared header. */
body.prism-site .theme8-header .t8h-user-menu{position:relative;flex-shrink:0}
body.prism-site .theme8-header .t8h-avatar{min-height:42px;padding:5px 10px 5px 5px;gap:9px;border-radius:24px}
body.prism-site .theme8-header .t8h-avatar-circle{width:30px;height:30px;flex:none;font-size:11px;letter-spacing:.03em}
body.prism-site .theme8-header .t8h-avatar-name{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}
body.prism-site .theme8-header .t8h-avatar[aria-expanded="true"]{border-color:var(--prism-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--prism-accent) 12%,transparent)}
body.prism-site .theme8-header .t8h-account-panel{position:absolute;inset:auto 0 auto auto;top:calc(100% + 12px);width:310px;min-width:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--prism-line-strong) transparent;padding:8px;border:1px solid var(--prism-line)!important;border-radius:20px;background:var(--prism-surface)!important;box-shadow:0 20px 55px #00000035;color:var(--prism-text);z-index:1100;text-align:start}
body.prism-site .theme8-header .t8h-account-panel[hidden]{display:none!important}
body.prism-site .theme8-header .t8h-account-panel.is-open{display:block}
body.prism-site .theme8-header .t8h-account-summary{display:flex;align-items:center;gap:13px;padding:15px 13px 19px}
body.prism-site .theme8-header .t8h-account-summary>.t8h-avatar-circle{display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--prism-line);border-radius:13px;font-size:13px}
body.prism-site .theme8-header .t8h-account-summary>div{min-width:0}
body.prism-site .theme8-header .t8h-account-summary strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-weight:650;max-width:215px;color:var(--prism-text)}
body.prism-site .theme8-header .t8h-account-role{display:block;margin-top:4px;font-size:11px;color:var(--prism-muted);line-height:1.5}
body.prism-site .theme8-header .t8h-account-group{border-top:1px solid var(--prism-line);padding:6px 0}
body.prism-site .theme8-header .t8h-account-panel a{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 13px;border:1px solid transparent;border-radius:11px;font-size:12px;line-height:1.5;font-weight:500;text-decoration:none;white-space:normal}
body.prism-site .theme8-header .t8h-account-panel a>svg{width:18px;height:18px;flex:none;color:var(--prism-muted)}
body.prism-site .theme8-header .t8h-account-panel a>span:not(.t8h-account-count){min-width:0;overflow-wrap:anywhere}
body.prism-site .theme8-header .t8h-account-panel a[aria-current="page"]{background:var(--prism-soft)!important;border-color:var(--prism-line)}
body.prism-site .theme8-header .t8h-account-panel a[aria-current="page"]>svg{color:var(--prism-accent)}
body.prism-site .theme8-header .t8h-account-panel :is(a,button):focus-visible{outline:2px solid var(--prism-accent);outline-offset:-2px;background:var(--prism-soft)!important}
body.prism-site .theme8-header .t8h-account-count{margin-inline-start:auto;min-width:22px;padding:2px 6px;border-radius:8px;background:var(--prism-soft);color:var(--prism-accent);font-size:10px;text-align:center;flex:none}
body.prism-site .theme8-header .t8h-account-signout{padding-bottom:0}
body.prism-site .theme8-header .t8h-account-panel a.t8h-dropdown-danger{color:#c22e44!important}
html[data-theme="dark"] body.prism-site .theme8-header .t8h-account-panel a.t8h-dropdown-danger{color:#ff9ba8!important}
body.prism-site .theme8-header .t8h-dropdown-danger>svg{color:inherit}
body.prism-site .theme8-header .theme8-nav a[aria-current="page"]{background:var(--prism-soft);color:var(--prism-text)}
body.prism-site .theme8-header :is(a,button,select):focus-visible{outline:2px solid var(--prism-accent);outline-offset:3px}
@media(max-width:780px){body.prism-site .theme8-header .t8h-avatar{padding:5px 8px 5px 5px;gap:5px}body.prism-site .theme8-header .t8h-avatar-name{display:none}body.prism-site .theme8-header .t8h-account-panel{width:300px}}
@media(prefers-reduced-motion:reduce){body.prism-site .theme8-header :is(.t8h-chevron,a,button){transition:none!important}}

@media(max-width:540px){
 body.prism-site .theme8-header.is-guest .theme8-header-inner{display:grid;grid-template-columns:minmax(0,1fr) 68px 36px;gap:12px 10px;width:calc(100% - 32px);padding-block:14px}
 body.prism-site .theme8-header.is-guest .theme8-brand{grid-column:1;grid-row:1;min-width:0}
 body.prism-site .theme8-header.is-guest .theme8-brand span{display:inline}
 body.prism-site .theme8-header.is-guest .theme8-actions{display:contents!important}
 body.prism-site .theme8-header.is-guest .aog-theme-switch{grid-column:2;grid-row:1}
 body.prism-site .theme8-header.is-guest .theme8-language{grid-column:3;grid-row:1;justify-self:end}
 body.prism-site .theme8-header.is-guest .theme8-text-link{grid-column:1;grid-row:2;display:flex;justify-content:center;align-items:center;padding:10px;font-size:12px;min-height:42px;border:1px solid var(--prism-line);border-radius:24px;background:var(--prism-soft)!important;color:var(--prism-text)!important}
 body.prism-site .theme8-header.is-guest .theme8-account-btn{grid-column:2/4;grid-row:2;display:flex;justify-content:center;align-items:center;padding:10px;font-size:12px;min-height:42px;background:var(--prism-button)!important;color:var(--prism-button-text)!important}
 body.prism-site .theme8-header.is-guest .theme8-nav{grid-column:1/-1;grid-row:3;width:100%;min-width:0;margin:0;gap:10px}
}

@media(min-width:981px){body.prism-site .adm-page>.adm-sidebar{top:calc(var(--aog-header-height,74px) + 1px);height:calc(100dvh - var(--aog-header-height,74px) - 1px);max-height:calc(100dvh - var(--aog-header-height,74px) - 1px);overflow-y:auto}}

/* Matching guest controls in every header state, including narrow screens. */
body.prism-site .theme8-header.is-guest :is(.theme8-text-link,.theme8-account-btn){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;min-width:82px;padding:0 17px;border:1px solid var(--prism-line-strong);border-radius:999px;font:inherit;font-size:13px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap;box-shadow:none;background:var(--prism-surface)!important;color:var(--prism-text)!important}
body.prism-site .theme8-header.is-guest .theme8-account-btn{background:var(--prism-button)!important;border-color:var(--prism-button);color:var(--prism-button-text)!important}
body.prism-site .theme8-header.is-guest :is(.theme8-text-link,.theme8-account-btn):is(:hover,:focus-visible){border-color:var(--prism-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--prism-accent) 16%,transparent)}

body.prism-site .theme8-header .t8h-avatar-circle { overflow:hidden; }
body.prism-site .theme8-header .t8h-avatar-circle img { display:block;width:100%;height:100%;object-fit:cover; }
