html.mce-launcher-is-open,
html.mce-launcher-is-open body {
    overflow: hidden;
}

.mce-launcher-modal[hidden] {
    display: none !important;
}

.mce-launcher-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 999999;
}

.mce-launcher-modal__backdrop {
    background: rgba(10, 15, 25, 0.58);
    inset: 0;
    position: absolute;
}

.mce-launcher-dialog {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    color: #111827;
    max-height: min(680px, calc(100vh - 40px));
    max-width: 620px;
    overflow: auto;
    padding: 24px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.mce-launcher-dialog__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 12px;
    width: 38px;
}

.mce-launcher-dialog__close:hover,
.mce-launcher-dialog__close:focus {
    background: #f1f5f9;
    outline: 2px solid #0f766e;
    outline-offset: 1px;
}

.mce-launcher-dialog__title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.25;
    margin: 0 44px 8px 0;
}

.mce-launcher-dialog__intro {
    color: #475569;
    margin: 0 0 18px;
}

.mce-launcher-search-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.mce-launcher-search {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    box-sizing: border-box;
    color: #111827;
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.mce-launcher-search:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
    outline: none;
}

.mce-launcher-status {
    color: #64748b;
    font-size: 0.88rem;
    min-height: 24px;
    padding: 5px 1px 0;
}

.mce-launcher-status.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.mce-launcher-results {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    max-height: 320px;
    overflow-y: auto;
}

.mce-launcher-option {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 11px 13px;
    text-align: left;
    width: 100%;
}

.mce-launcher-option:last-child {
    border-bottom: 0;
}

.mce-launcher-option:hover,
.mce-launcher-option:focus {
    background: #f0fdfa;
    color: #0f766e;
    outline: 2px solid #0f766e;
    outline-offset: -2px;
}

@media (max-width: 600px) {
    .mce-launcher-modal {
        align-items: flex-end;
        padding: 0;
    }

    .mce-launcher-dialog {
        border-radius: 16px 16px 0 0;
        max-height: 82vh;
        max-width: none;
        padding: 20px;
    }
}
