/* Account UI (dev-spec-creem.md §5 «Меню акаунта»): mobile header pill, sidebar block, menu. SPA and blog pages. */
.acct-av { position:relative; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; border-radius:50%;
  overflow:hidden; background:var(--surface2); color:var(--fg); font-weight:700; line-height:1; }
.acct-av img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.acct-av-20 { width:20px; height:20px; font-size:.625rem; }
.acct-av-28 { width:28px; height:28px; font-size:.75rem; }
.acct-av-36 { width:36px; height:36px; font-size:.875rem; }
.acct-badge { font-size:.625rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 6px; border-radius:6px;
  background:#facc15; color:#000; }
.acct-pill { display:inline-flex; align-items:center; gap:6px; border:none; cursor:pointer; text-decoration:none; color:var(--fg);
  background:var(--surface); border-radius:20px; padding:6px 12px 6px 6px; font-size:.8125rem; font-weight:500; white-space:nowrap; }
.acct-pill.anon { padding:6px 14px; }
.acct-g { width:14px; height:14px; flex-shrink:0; }

/* Sidebar: pinned to the bottom of the sidebar's own scroll (the sidebar is sticky, 100vh) */
/* bottom: the sidebar's py-5 — sticky stops at its padding edge otherwise, and content shows below the block */
.side-account { position:sticky; bottom:-1.25rem; z-index:2; width:calc(100% + 2rem); margin:auto -1rem -1.25rem; padding:.75rem 1rem 1rem;
  background:var(--bg); border-top:1px solid var(--surface); }
@media (min-width:1280px) { .side-account { margin-top:0; order:7; } }   /* after the theme toggle (xl:order-6) */
.acct-row { display:flex; align-items:center; gap:.6rem; width:100%; border:none; background:transparent; color:var(--fg);
  cursor:pointer; padding:.35rem .4rem; border-radius:.75rem; text-align:left; font:inherit; text-decoration:none; }
.acct-row:hover { background:var(--surface); }
.acct-name { font-size:.8125rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-sub { font-size:.6875rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-signin { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:.55rem .75rem;
  border-radius:.75rem; background:var(--surface); color:var(--fg); font-size:.8125rem; font-weight:600; text-decoration:none; }
.acct-signin:hover { background:var(--surface2); }

/* Menu: popover upward from the sidebar block, a dropdown from the blog top bar, or inside the SPA's sheet */
.acct-pop { position:absolute; left:0; right:0; bottom:calc(100% + 6px); z-index:50; background:var(--bg); border:1px solid var(--surface);
  border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:6px; }
.acct-drop { position:fixed; top:60px; right:12px; width:min(300px, calc(100vw - 24px)); z-index:60; background:var(--bg);
  border:1px solid var(--surface); border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.25); padding:6px; }
.acct-menu-head { display:flex; align-items:center; gap:.6rem; padding:.5rem .5rem .75rem; border-bottom:1px solid var(--surface); margin-bottom:4px; }
.acct-email { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }   /* one line, cut with an ellipsis (full address in the title) */
.acct-menu-item { white-space:nowrap; display:flex; align-items:center; justify-content:space-between; width:100%; padding:.6rem .5rem; border:none;
  background:transparent; color:var(--fg); font:inherit; font-size:.875rem; text-align:left; text-decoration:none; border-radius:10px; cursor:pointer; }
.acct-menu-item:hover { background:var(--surface); }
.acct-menu-item.muted { color:var(--muted); }
.acct-toast { position:fixed; bottom:72px; left:50%; transform:translateX(-50%); z-index:70; background:#1c1c1e; color:#f5f5f7;
  border-radius:999px; padding:8px 18px; font-size:.8125rem; box-shadow:0 4px 15px rgba(0,0,0,.2); }
.dark .acct-toast { background:#f0f0f2; color:#1c1c1e; }
