/* Account button + menu in the theme app bar (stc_account_menu_html()). */
.stc-acct { position: relative; display: inline-flex; }
.stc-acct__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.stc-acct__btn:hover { background: var(--st-surface-2, rgba(0,0,0,.05)); }
.stc-acct__av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--st-surface, #fff), 0 0 0 3.5px var(--st-text, #0a0a0a); }
.stc-acct__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; width: 270px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 18px; background: var(--stc-surface); color: var(--stc-text); border: 1px solid var(--stc-line); box-shadow: 0 18px 50px rgba(0,0,0,.22); transform-origin: top right; animation: stc-acct-in .18s cubic-bezier(.2,.8,.2,1); font: 15px/1.3 system-ui, -apple-system, sans-serif; }
@keyframes stc-acct-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.stc-acct__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--stc-line); }
.stc-acct__head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.stc-acct__head div { display: grid; min-width: 0; }
.stc-acct__head strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stc-acct__head small { color: var(--stc-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stc-acct__menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--stc-text); text-decoration: none; font-weight: 600; }
.stc-acct__menu a:hover, .stc-acct__menu a:focus-visible { background: var(--stc-surface-2); outline: none; }
.stc-acct__menu a .stc-ico { color: var(--stc-muted); }
.stc-acct__menu hr { border: 0; height: 1px; background: var(--stc-line); margin: 4px 0; }
.stc-acct__out { color: var(--stc-bad-ink) !important; }
.stc-acct__out .stc-ico { color: currentColor !important; }
.stc-acct-login { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin: 0 2px; border-radius: 2px; background: var(--st-text, #0a0a0a); color: var(--st-bg, #fff) !important; font: 800 12px/1 var(--st-font-display, system-ui); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.stc-acct-login:hover { filter: brightness(1.15); }
@media (max-width: 380px) { .stc-acct-login span { display: none; } .stc-acct-login { width: 40px; padding: 0; justify-content: center; } }
