.site-profile { position: relative; }
.profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--brand-ring);
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-text);
    cursor: pointer;
}
.profile-toggle:hover,
.profile-toggle[aria-expanded="true"] { background: var(--brand-text); color: white; }
.profile-toggle:focus-visible,
.profile-option:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.profile-panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 12px);
    z-index: 60;
    width: min(280px, calc(100vw - 96px));
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.profile-panel[hidden] { display: none; }
.profile-identity { padding: 16px; border-bottom: 1px solid #e2e8f0; }
.profile-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.profile-caption { margin: 2px 0 0; font-size: 14px; color: #64748b; }
.profile-options { padding: 6px; }
.profile-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
    cursor: pointer;
}
.profile-option svg { flex-shrink: 0; }
.profile-option:hover { background: #f1f5f9; }
.profile-logout { color: #be123c; }
.profile-logout:hover { background: #fff1f2; }
.site-header-actions { margin-inline-start: auto; }
.site-header-inner { max-width: 1600px; }
@media (max-width: 479px) {
    .site-header-row > div:first-child a { gap: 4px; }
    .site-header-row > div:first-child img { max-height: 20px; }
}

@media (min-width: 1536px) {
    body.site-type .site-header-row {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    body.site-type .site-header-nav {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }
}
