/*
 * The avatar menu (layouts/nav/layouts/profile-menu.blade.php), both designs: one row grid for every item —
 * icon, label, and the secondary information held against the right edge. «Эфир» colours come from its tokens
 * at the end of this file.
 */
.yf-authorized-profile .dropdown-menu.yf-profile-menu {
    --yf-menu-muted: #9fb3ac;
    --yf-menu-line: rgba(226, 240, 235, .13);
    --yf-menu-chip-bg: rgba(226, 240, 235, .09);
    --yf-menu-chip-ink: #d5e4df;
    --yf-menu-accent: #5fd0a4;
    --yf-menu-accent-soft: rgba(95, 208, 164, .16);
    width: 304px;
    max-width: calc(100vw - 24px);
    padding: 6px;
}
.yf-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    text-align: left;
}
.yf-profile-menu .dropdown-item > i:first-child { flex: 0 0 20px; margin: 0; font-size: 18px; line-height: 1; text-align: center; }
.yf-profile-menu .yf-menu-label,
.yf-profile-menu .yf-menu-notifications__label { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.yf-profile-menu .yf-menu-meta { flex: 0 0 auto; margin-left: auto; color: var(--yf-menu-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yf-profile-menu .yf-menu-chip { flex: 0 0 auto; margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--yf-menu-chip-bg); color: var(--yf-menu-chip-ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.yf-profile-menu .yf-menu-chip.is-business { background: var(--yf-menu-accent-soft); color: var(--yf-menu-accent); }
.yf-profile-menu .yf-menu-notifications { min-height: 40px; }
.yf-profile-menu .yf-menu-notifications__count { flex: 0 0 auto; margin-left: auto; }
.yf-profile-menu .yf-menu-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-left: auto; padding: 0; border-radius: 50%; }
.yf-profile-menu .dropdown-divider { margin: 5px 4px; border: 0; border-top: 1px solid var(--yf-menu-line); opacity: 1; }
.yf-profile-menu [hidden] { display: none !important; }

body.light-theme:not(.yf-redesign) .yf-authorized-profile .dropdown-menu.yf-profile-menu { --yf-menu-muted: #a9bcb5; }

:root body.yf-redesign.yf-dashboard-auth .yf-authorized-profile .dropdown-menu.yf-profile-menu {
    --yf-menu-muted: var(--rd-muted);
    --yf-menu-line: var(--rd-line);
    --yf-menu-chip-bg: var(--rd-fill-soft);
    --yf-menu-chip-ink: var(--rd-ink);
    --yf-menu-accent: var(--rd-accent);
    --yf-menu-accent-soft: rgba(var(--rd-accent-rgb), .14);
}
:root body.yf-redesign.yf-dashboard-auth .yf-profile-menu .dropdown-item { min-height: 40px; padding: 8px 10px; }

@media (max-width: 767.98px) {
    .yf-authorized-profile .dropdown-menu.yf-profile-menu.show { width: min(344px, calc(100vw - 24px)); }
    .yf-profile-menu .dropdown-item { min-height: 44px; }
    .yf-profile-menu .yf-menu-notifications { min-height: 44px; }
}
