.vk-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9980;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, .44);
    backdrop-filter: blur(8px);
    animation: vkSheetFade .16s ease-out both;
    overflow: hidden;
}

.vk-sheet-box {
    width: min(100%, 520px);
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
    max-height: 760px;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #0f172a;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -20px 70px rgba(15, 23, 42, .24);
    overflow: hidden;
    animation: vkSheetUp .18s ease-out both;
}

.vk-sheet-handle {
    flex: 0 0 auto;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 10px auto 4px;
}

.vk-sheet-head {
    flex: 0 0 auto;
    padding: 8px 18px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

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

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

.vk-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #475569;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.vk-sheet-actions {
    flex: 0 0 auto;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    display: grid;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .06);
}

.vk-sheet-btn {
    min-height: 46px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
}

.vk-sheet-btn.primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.vk-sheet-backdrop.hide {
    animation: vkSheetFadeOut .14s ease-in both;
}

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

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

@keyframes vkSheetUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
