/* The live-room invitation stays beside the latest-post heading. */
.vp-single-live-related .vp-live-section-heading--profile {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.vp-single-live-related .vp-live-section-heading--profile > h2 {
    flex: 1 1 0;
    min-width: 0;
}
.vp-single-live-related button.vp-live-profile-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 60%;
    box-sizing: border-box;
    white-space: normal;
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #e6cad9;
    border-radius: 10px;
    background: #fff8fc;
    color: #8e3765;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}
.vp-single-live-related .vp-live-profile-link:hover { background: #f8eaf2; border-color: #cc94b2; }
.vp-single-live-related .vp-live-profile-link > span { min-width: 0; overflow-wrap: anywhere; }
.vp-single-live-related .vp-live-profile-link > svg {
    display: block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
}
/* Keep both blocks on one row; long names wrap within their own block. */
@media (max-width: 480px) {
    .vp-single-live-related .vp-live-section-heading--profile { gap: 8px; }
    .vp-single-live-related .vp-live-section-heading--profile > h2 { font-size: 14px; }
    .vp-single-live-related button.vp-live-profile-link {
        gap: 5px;
        min-height: 44px;
        padding: 6px 8px;
    }
    .vp-single-live-related .vp-live-profile-link > svg {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }
}
.vp-single-live-related .vp-live-profile-link:focus-visible,
.vp-live-profile-dialog button:focus-visible,
.vp-live-profile-dialog a:focus-visible { outline: 2px solid #ae3e76; outline-offset: 3px; }
html.vp-live-profile-open, body.vp-live-profile-open { overflow: hidden !important; }
dialog.vp-live-profile-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    width: min(1160px, calc(100vw - 40px));
    max-width: none;
    height: min(920px, calc(100vh - 40px));
    height: min(920px, calc(100dvh - 40px));
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid #e5d3de;
    border-radius: 16px;
    background: #fff8fb;
    color: #293443;
    box-shadow: 0 18px 65px #30212d55;
    box-sizing: border-box;
    overflow: hidden;
}
dialog.vp-live-profile-dialog:not([open]) { display: none !important; }
dialog.vp-live-profile-dialog[open] { display: flex; flex-direction: column; }
.vp-live-profile-dialog::backdrop { background: #231b2f80; }
.vp-live-profile-dialog__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #ebdfe6;
    background: #fff8fb;
}
.vp-live-profile-dialog__header h2 {
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #543f50;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.vp-live-profile-dialog__close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #e8d9e2;
    border-radius: 10px;
    background: #fff;
    color: #8e3765;
    cursor: pointer;
}
.vp-live-profile-dialog__close svg { display: block; width: 20px; height: 20px; }
.vp-live-profile-dialog__body { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; }
.vp-live-profile-dialog iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff0f4;
}
.vp-live-profile-dialog__status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #fff8fb;
    color: #765e71;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
.vp-live-profile-dialog__status[hidden] { display: none; }
.vp-live-profile-dialog__status p { margin: 0; }
.vp-live-profile-dialog__retry {
    padding: 8px 14px;
    border: 1px solid #d9b6ca;
    border-radius: 9px;
    background: #fff;
    color: #8e3765;
    font: inherit;
    cursor: pointer;
}
.vp-live-profile-dialog__retry[hidden], .vp-live-profile-dialog__fallback[hidden] { display: none; }
.vp-live-profile-dialog__fallback { color: #8e3765; text-underline-offset: 3px; }
/* Only the duplicated site chrome is hidden inside the full profile document.
   The profile cover, tabs, panels, sidebar and all wp_footer scripts remain. */
html.vp-live-profile-embedded { margin-top: 0 !important; }
html.vp-live-profile-embedded body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    --vp-dock-clearance: 0px;
}
html.vp-live-profile-embedded body > header.dark-div,
html.vp-live-profile-embedded #wpadminbar,
html.vp-live-profile-embedded #footer-menu { display: none !important; }
@media (max-width: 900px) {
    dialog.vp-live-profile-dialog {
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        height: calc(100dvh - 12px);
        border-radius: 12px;
    }
    .vp-live-profile-dialog__header {
        padding-top: max(8px, env(safe-area-inset-top, 0px));
        padding-inline: 10px;
    }
}
