.site-account-control {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: var(--text-secondary, #4f5551);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-login:hover {
    color: var(--text, #202522);
    background: var(--bg-section, #f4f6f4);
}
.nav-account {
    position: relative;
}
.nav-account summary {
    list-style: none;
}
.nav-account summary::-webkit-details-marker {
    display: none;
}
.nav-account[hidden],
.nav-login[hidden] {
    display: none !important;
}
.nav-account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px 3px 3px;
    border: 1px solid var(--border, #e4e8e5);
    border-radius: 999px;
    background: var(--bg, #fff);
    color: var(--text, #202522);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    max-width: 168px;
}
.nav-account-trigger:hover,
.nav-account[open] .nav-account-trigger {
    border-color: var(--text-muted, #98a09a);
}
.nav-account-trigger:focus-visible {
    outline: 2px solid var(--primary, #16a34a);
    outline-offset: 3px;
}
.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    background: var(--primary-light, #e8f6ed);
    color: oklch(0.45 0.15 149.579);
    font-size: 12px;
    font-weight: 700;
}
.nav-avatar.has-photo {
    background: var(--border, #e4e8e5);
    color: transparent;
}
.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-account-chevron {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}
.nav-account[open] .nav-account-chevron { transform: rotate(180deg); }
.nav-account-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2;
    min-width: 148px;
    padding: 8px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #e4e8e5);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}
.nav-account-panel a,
.nav-account-panel button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text, #202522);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.nav-account-panel a:hover,
.nav-account-panel button:hover {
    background: var(--bg-section, #f4f6f4);
}
.nav-account-divider {
    height: 1px;
    margin: 4px 4px 6px;
    background: var(--border, #e4e8e5);
}
@media (max-width: 960px) {
    .nav-account-name { display: none; }
    .nav-account-trigger { padding: 3px; max-width: none; }
    .nav-account-chevron { display: none; }
}
@media (max-width: 480px) {
    .nav-login { min-height: 34px; padding-inline: 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-account-chevron { transition: none; }
}
