.y-authbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 40px;
    min-width: 0;
}

.y-authbar--entry {
    min-height: 40px;
}

.y-authbar__entry {
    min-width: 0;
    max-width: 220px;
    height: 40px;
    padding: 0 14px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    color: #f4f4f6;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.y-authbar__entry:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.y-authbar__entry-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 181, 105, 0.98), rgba(247, 119, 39, 0.96));
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.y-authbar__entry.is-user .y-authbar__entry-avatar {
    background: linear-gradient(135deg, rgba(255, 208, 157, 0.98), rgba(255, 151, 82, 0.96));
}

.y-authbar__entry-label {
    min-width: 0;
    color: #f4f4f6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.y-authbar__guest,
.y-authbar__user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.y-authbar__guest .y-authbar__button {
    height: 36px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 169, 91, 0.92), rgba(249, 119, 39, 0.92));
    border-color: rgba(255, 168, 106, 0.48);
    box-shadow: 0 12px 26px rgba(249, 119, 39, 0.2);
}

.y-authbar__user {
    padding: 4px 6px 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.y-authbar__user--simple {
    padding: 0 14px;
    min-height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.y-authbar__user[data-user-badge]:not([data-user-badge=""])::before {
    content: attr(data-user-badge);
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 188, 124, 0.96), rgba(246, 128, 49, 0.96));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.y-authbar__identity {
    display: grid;
    gap: 1px;
    min-width: 0;
    max-width: 148px;
    text-align: left;
}

.y-authbar__identity strong {
    font-size: 13px;
    line-height: 1.2;
    color: #f4f4f6;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.y-authbar__identity span {
    font-size: 11px;
    line-height: 1.2;
    color: rgba(244, 244, 246, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.y-authbar__simple-name {
    max-width: 180px;
    color: #f4f4f6;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.y-authbar__button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(120, 105, 255, 0.26);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(120, 105, 255, 0.28), rgba(120, 105, 255, 0.14));
    color: #f7f7fb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.y-authbar__button:hover {
    transform: translateY(-1px);
    border-color: rgba(162, 155, 254, 0.52);
    background: linear-gradient(135deg, rgba(120, 105, 255, 0.36), rgba(120, 105, 255, 0.2));
}

.y-authbar__button--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 246, 0.88);
}

.y-authbar__button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.y-authbar__button--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(244, 244, 246, 0.76);
}

.y-authbar__button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nn-topbar__actions > .nn-topbar__icon,
.nn-room-topbar__actions > .nn-room-topbar__icon {
    display: none;
}

@media (max-width: 860px) {
    .y-authbar__entry {
        max-width: 160px;
        padding-right: 12px;
    }

    .y-authbar__identity {
        display: none;
    }

    .y-authbar__guest,
    .y-authbar__user {
        gap: 6px;
    }

    .y-authbar__user--simple {
        padding: 0 12px;
    }

    .y-authbar__button {
        padding: 0 10px;
    }

    .y-authbar__user {
        padding: 4px 5px;
    }

    .y-authbar__user[data-user-badge]:not([data-user-badge=""])::before {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        border-radius: 9px;
    }
}
