.account-trigger { width: 44px; height: 44px; border: 0; padding: 0; display: none; place-items: center; background: transparent; cursor: pointer; border-radius: 14px; flex-shrink: 0; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: #e3eff9; }
.account-trigger .avatar { border: 1px solid #d6e7f5; }
body .title-wrap { min-width: 0; }
body .topbar-user { flex-shrink: 0; }
body.account-panel-open { overflow: hidden; }
.account-panel { position: fixed; inset: 66px clamp(24px, 3.2vw, 48px) auto auto; width: 290px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); margin: 0; padding: 0; overflow: auto; border: 1px solid #d6e5f2; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 16px 50px rgba(44,72,97,.19); }
.account-panel::backdrop { background: rgba(36,56,76,.12); }
.account-panel-head { padding: 21px 18px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.account-panel-head > .avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
.account-panel-head > div { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.account-panel h2 { margin: 0; font-size: 16px; font-weight: 650; }
.account-panel-head p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.account-close { width: 36px; height: 36px; margin: -6px -5px auto auto; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.account-close:hover { background: var(--bg-soft); }
.account-close svg { width: 17px; height: 17px; }
.account-actions { padding: 8px; }
.account-action { width: 100%; min-height: 49px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 13px; }
.account-action:hover { background: #f3f8fd; }
.account-action > svg { width: 19px; height: 19px; color: #738ba0; flex-shrink: 0; }
.account-action .account-chevron { margin-left: auto; color: #94a6b5; font-size: 18px; }
.account-action-danger, .account-action-danger > svg { color: #dc4946; }
.account-action-danger:hover { background: #fff5f4; }
.account-confirm { padding: 25px 22px 20px; }
.account-confirm p { font-size: 13px; line-height: 1.8; margin: 12px 0 23px; color: var(--muted); }
.account-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-confirm-actions .btn { font-size: 13px; font-weight: 500; }

@media (max-width:760px) {
  .account-trigger { display: grid; }
  .account-trigger .avatar { width: 33px; height: 33px; font-size: 13px; border-radius: 11px; }
  .account-panel { top: 62px; right: 16px; max-height: calc(100dvh - 90px); }
}
