.vk-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9970;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    animation: vkDrawerFade .16s ease-out both;
}

.vk-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 390px);
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fff;
    color: #0f172a;
    box-shadow: -20px 0 70px rgba(15, 23, 42, .22);
    animation: vkDrawerIn .18s ease-out both;
}

.vk-drawer-panel.left {
    left: 0;
    right: auto;
    animation-name: vkDrawerLeftIn;
}

.vk-drawer-head {
    padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid #e5e7eb;
}

.vk-drawer-head h3 {
    margin: 0;
    font-size: 18px;
}

.vk-drawer-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 20px;
}

.vk-drawer-body {
    padding: 18px;
    overflow: auto;
    color: #475569;
    line-height: 1.6;
}

.vk-drawer-backdrop.hide {
    animation: vkDrawerFadeOut .14s ease-in both;
}

@keyframes vkDrawerFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vkDrawerFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes vkDrawerIn {
    from { transform: translateX(26px); opacity: .8; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes vkDrawerLeftIn {
    from { transform: translateX(-26px); opacity: .8; }
    to { transform: translateX(0); opacity: 1; }
}
