/* The account button of account.js. Colours from the page's tokens:
   catalog.css names them --bg-panel, --text-primary, ...; admin.css
   --panel, --fg, ...; the fallbacks cover both. */
#account-slot { position: relative; display: inline-flex; align-items: center; flex: none; }
.acct-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; overflow: hidden; cursor: pointer;
    border: 1px solid var(--border, var(--line, #e5e7eb)); border-radius: 50%;
    background: var(--accent, #4f46e5); color: #fff; font: 600 14px/1 inherit;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar:focus-visible { outline: 2px solid var(--accent, #4f46e5); outline-offset: 2px; }
.acct-signin {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
    border-radius: 6px; background: var(--accent, #4f46e5); color: var(--on-accent, #fff);
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.acct-signin:hover { filter: brightness(1.08); }
.acct-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 4px;
    background: var(--bg-panel, var(--panel, #fff)); color: var(--text-primary, var(--fg, #1f2937));
    border: 1px solid var(--border, var(--line, #e5e7eb)); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.acct-menu[hidden] { display: none; }
.acct-info { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border, var(--line, #e5e7eb)); font-size: 13px; }
.acct-info b, .acct-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-info span { font-size: 11.5px; color: var(--text-muted, var(--muted, #6b7280)); }
.acct-item {
    display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent;
    color: inherit; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: var(--bg-hover, var(--input, #f3f4f6)); outline: none; }
.acct-sep { height: 1px; margin: 4px 0; background: var(--border, var(--line, #e5e7eb)); }
