#libric-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5ea19e;
}
#libric-switcher-btn:hover {
    background: rgba(255,255,255,.08);
    color: #7bbdbb;
}
#libric-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1d24;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 8px;
    grid-template-columns: repeat(4, 64px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
#libric-switcher-menu.open { display: grid; }
.libric-switcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #7bbdbb !important;
    font-size: 11px;
    text-align: center;
}
.libric-switcher-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}
.libric-switcher-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(78,166,168,.85);
    display: flex;
    align-items: center;
    justify-content: center;
}
.libric-switcher-icon span {
    display: block;
    width: 32px;
    height: 32px;
    background-color: #07101c;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}

#libric-header {
    position: fixed;
    top: 11px;
    right: 8px;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    gap: 8px;
}
#libric-switcher { position: relative; }

#libric-identity { position: relative; }
.libric-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78,166,168,.8) 0%, #0a1526 100%);
    border: 2px solid rgba(255,255,255,.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.libric-avatar-initials {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}
#libric-avatar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1d24;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    overflow: hidden;
}
#libric-avatar-menu.open { display: block; }
.libric-menu-header {
    padding: 14px 18px 12px;
    background: rgba(78,166,168,.06);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.libric-menu-name { font-weight: 600; color: #fff; margin-bottom: 3px; }
.libric-menu-email { font-size: .82rem; color: rgba(255,255,255,.6); }
.libric-menu-item {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .92rem;
}
.libric-menu-item:hover { background: rgba(255,255,255,.05); color: #fff; }

.mx_RoomHeader {
    padding-right: 108px !important;
    box-sizing: border-box !important;
}
