/* 17.11.2026: отметка «вы вошли» в шапке (скрипт /assets/js/auth-state.js): имя под значком, зелёная точка у кабинета */
.hdr__lk.is-auth, .mtab a.is-auth { position: relative; }
.hdr__lk.is-auth::after { content: ""; position: absolute; right: 6px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 2px var(--surface, #fff); }
.mtab a.is-auth svg { color: #2bb673; }
.mtab a.is-auth::after { content: ""; position: absolute; left: 50%; top: 4px; margin-left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; }
.hdr .hicon.has-name, .d-theme .hdr .hicon.has-name { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: auto !important; min-width: 48px; height: 48px; padding: 0 6px; }
.hicon__name { font-size: 11px; line-height: 1.1; font-weight: 600; max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .hicon.has-name svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .hicon__name { display: none; } .hdr .hicon.has-name, .d-theme .hdr .hicon.has-name { min-width: 40px; padding: 0; } .hdr .hicon.has-name svg { width: 24px; height: 24px; } }
/* меню под именем: кабинет / админка / выйти */
.hdr__icons { position: relative; }
.auth-menu { position: absolute; top: calc(100% + 6px); transform: translateX(-50%); z-index: 60; min-width: 200px; max-width: 280px; padding: 6px; border-radius: 12px; background: #fff; color: #1b2430; border: 1px solid #dce3eb; box-shadow: 0 10px 30px rgba(15, 25, 40, .18); }
.auth-menu[hidden] { display: none; }
.auth-menu__who { padding: 6px 10px 8px; font-size: .8rem; color: #566273; border-bottom: 1px solid #e8edf3; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu__i { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #1b2430; font: inherit; font-size: .92rem; text-decoration: none; cursor: pointer; }
.auth-menu__i:hover, .auth-menu__i:focus-visible { background: #eef3f8; color: #13243d; outline: none; }
.auth-menu__out { color: #a12a2a; border-top: 1px solid #e8edf3; border-radius: 0 0 8px 8px; margin-top: 4px; }
.auth-menu__out:hover, .auth-menu__out:focus-visible { background: #f7e2e2; color: #a12a2a; }
@media (max-width: 760px) { .auth-menu { transform: none; left: auto !important; right: 0; } }
