.vk-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.vk-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1rem 1rem .75rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.vk-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.vk-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6c757d;
}

.vk-modal__mask {
    min-height: 2.25rem;
    margin-bottom: .75rem;
    padding: .4rem .6rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #f8f9fa;
    letter-spacing: .15em;
    font-family: inherit;
}

.vk-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.vk-key {
    flex: 1 1 0;
    min-width: 0;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #212529;
    font-size: .95rem;
}

.vk-key:hover,
.vk-key.is-on {
    background: #e9ecef;
}

.vk-key.is-on {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.vk-key--mod {
    flex: 1.7 1 0;
    font-size: .72rem;
}

.vk-key--space {
    flex: 5 1 0;
}

.vk-modal__status {
    min-height: 1.25rem;
    margin: .5rem 0 0;
    color: #6c757d;
    font-size: .8rem;
}

@media (max-width: 640px) {
    .vk-key {
        height: 2.15rem;
        font-size: .8rem;
    }
}

.vk-modal[hidden] {
    display: none;
}
