/* Account button + menu in the theme app bar (tdc_account_menu_html()). */
.tdc-acct { position: relative; display: inline-flex; }
.tdc-acct__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.tdc-acct__btn:hover { background: var(--td-surface-2, rgba(0,0,0,.05)); }
.tdc-acct__av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--td-surface, #fff), 0 0 0 3.5px var(--td-heat-2, #ff5a1f); }
.tdc-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(--tdc-surface); color: var(--tdc-text); border: 1px solid var(--tdc-line); box-shadow: 0 18px 50px rgba(0,0,0,.22); transform-origin: top right; animation: tdc-acct-in .18s cubic-bezier(.2,.8,.2,1); font: 15px/1.3 system-ui, -apple-system, sans-serif; }
@keyframes tdc-acct-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.tdc-acct__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--tdc-line); }
.tdc-acct__head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.tdc-acct__head div { display: grid; min-width: 0; }
.tdc-acct__head strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdc-acct__head small { color: var(--tdc-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdc-acct__menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--tdc-text); text-decoration: none; font-weight: 600; }
.tdc-acct__menu a:hover, .tdc-acct__menu a:focus-visible { background: var(--tdc-surface-2); outline: none; }
.tdc-acct__menu a .tdc-ico { color: var(--tdc-muted); }
.tdc-acct__menu hr { border: 0; height: 1px; background: var(--tdc-line); margin: 4px 0; }
.tdc-acct__out { color: var(--tdc-bad-ink) !important; }
.tdc-acct__out .tdc-ico { color: currentColor !important; }
.tdc-acct-login { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; margin: 0 0 0 4px; border-radius: 999px; background: var(--td-text, #1d1410); color: var(--td-bg, #fff) !important; font: 700 13px/1 var(--td-font, system-ui); text-decoration: none; white-space: nowrap; }
.tdc-acct-login:hover { filter: brightness(1.15); }
@media (max-width: 380px) { .tdc-acct-login span { display: none; } .tdc-acct-login { width: 40px; padding: 0; justify-content: center; } }
