.app-shell.has-account-bar { grid-template-rows: auto 1fr; }
.account-bar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: flex-end; gap: 24px; min-width: 0; padding: 12px 30px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.account-bar-identity { display: grid; gap: 2px; min-width: 0; text-align: right; }
.account-bar-identity strong { font-size: 13px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-bar-identity span { color: var(--muted); font-size: 11px; }
.account-bar-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.account-bar-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); font-size: 12px; white-space: nowrap; }
.account-bar-link svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-bar-link:hover, .account-bar-link.active { background: #f3f6f5; color: var(--brown); }
.account-bar-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.account-signout { border-color: var(--line); }
.account-unread-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 12px; background: #b62e27; color: #fff; font-size: 10px; font-weight: 800; }
.account-unread-count[hidden] { display: none; }
@media (max-width: 900px) { .account-bar { padding: 10px 18px; gap: 12px; } }
@media (max-width: 600px) {
    .account-bar { padding: 8px 12px; gap: 8px; }
    .account-bar-identity { flex: 1; }
    .account-bar-identity strong { max-width: 100%; font-size: 12px; }
    .account-bar-actions { gap: 4px; flex-shrink: 0; }
    .account-bar-link { width: 44px; padding: 10px; }
    .account-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .account-unread-count { position: absolute; top: -2px; right: -3px; }
}
@media print { .account-bar { display: none !important; } .app-shell.has-account-bar { grid-template-rows: auto; } }
