/* SUBZ · меню аватарки. Поверх nav-*.css: на телефоне было плашкой на весь
   экран — теперь компактное всплывающее меню под аватаркой. */
.profile-menu { border-radius: 16px; padding: 6px; }
.profile-menu__user { border-radius: 12px; }
.profile-menu__row, .language-menu button, .profile-menu__logout button { border-radius: 10px; }
.profile-menu__logout { margin-top: 4px; padding-top: 4px; }

@keyframes subz-pm-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.hdr__profile[open] > .profile-menu { animation: subz-pm-in .18s var(--ease-out) both; transform-origin: calc(100% - 28px) 0; }

@media (max-width: 720px) {
  .profile-menu {
    left: auto; right: 12px;
    width: min(292px, calc(100vw - 24px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--header-h) - 24px);
    box-shadow: 0 18px 50px #000000e6, 0 0 0 1px #ffffff0d;
  }
  /* стрелка — под центром аватарки (справа ещё кнопка меню) */
  .profile-menu:before { right: 58px; }
  .profile-menu__user { padding: 10px; margin-bottom: 4px; }
  .profile-menu__user b { font-size: 16px; }
  .profile-menu__row { min-height: 46px; padding: 0 12px; font-size: 15px; color: var(--fg); }
  .profile-menu__row:active, .profile-menu__logout button:active { background: var(--bg-2); }
  .profile-menu__logout button { min-height: 46px; padding: 0 12px; font-size: 15px; }
  .language-menu { padding: 4px 4px 6px; }
  /* Лёгкое затемнение страницы под меню — только для вида, клики проходят насквозь. */
  .hdr__profile[open]::before {
    content: ""; position: fixed; inset: var(--header-h) 0 0 0; z-index: 110;
    background: rgb(0 0 0 / .45); pointer-events: none;
    animation: subz-pm-in .18s ease-out both;
  }
}
