.voicer-guide-modal {
    width: min(1200px, calc(100vw - 44px));
    height: min(920px, calc(100dvh - 44px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 1px solid #d7e5f4;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fbff;
    box-shadow: 0 30px 85px rgba(8, 33, 69, .3);
}

.voicer-guide-modal[open] {
    display: flex;
    flex-direction: column;
}

.voicer-guide-modal::backdrop {
    background: rgba(9, 26, 49, .7);
    backdrop-filter: blur(6px);
}

.voicer-guide-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 58px;
    padding: 0 19px 0 24px;
    border-bottom: 1px solid #e1eaf5;
    background: #fff;
}

.voicer-guide-modal__title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #193d62;
    font-size: 14px;
    font-weight: 800;
}

.voicer-guide-modal__title img { width: 31px; height: 31px; }

.voicer-guide-modal__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #edf4fc;
    color: #2c5075;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.voicer-guide-modal__close:hover,
.voicer-guide-modal__close:focus-visible { background: #dceafb; color: #155ca9; }

.voicer-guide-modal__frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #f8fbff;
}

@media (max-width: 700px) {
    .voicer-guide-modal,
    .voicer-guide-modal[open] {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .voicer-guide-modal__bar {
        flex-basis: calc(54px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        padding-right: calc(10px + env(safe-area-inset-right));
        padding-left: calc(15px + env(safe-area-inset-left));
    }
}
