:root[data-meeting-ui='simple'].meeting-sharing-ready
    #bottomButtons
    :is(#startScreenButton, #stopScreenButton, #whiteboardButton) {
    display: none !important;
}

#bottomButtons #meetingShareButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
#meetingShareButton span {
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
#meetingShareDialog:not([open]) {
    display: none;
}
#meetingShareDialog {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    border: 1px solid var(--border-subtle, #e6ebf4);
    border-radius: 24px;
    background: var(--settings-bg, #fff);
    color: var(--fg-1, #1c2b45);
    box-shadow: 0 24px 80px #1d2d4630;
    box-sizing: border-box;
    overflow-y: auto;
}
#meetingShareDialog::backdrop {
    background: #1d2d4659;
    backdrop-filter: blur(3px);
}
#meetingShareDialog header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
#meetingShareDialog h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 6px;
    color: inherit;
    outline: none;
}
#meetingShareDialog p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-3, #72829d);
    margin: 0;
}
#meetingShareDialog .meeting-share-audio-help {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle, #e6ebf4);
    border-radius: 12px;
    background: var(--surface-1, #f7f9fd);
    color: var(--fg-2, #52627d);
    overflow-wrap: anywhere;
}
#meetingShareDialog .meeting-share-audio-confirm {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e2a83b;
    border-radius: 12px;
    background: #fff8e8;
}
#meetingShareDialog .meeting-share-audio-confirm h3 {
    margin: 0 0 8px;
    color: var(--fg-1, #1c2b45);
    font-size: 15px;
    line-height: 1.4;
}
#meetingShareDialog .meeting-share-audio-confirm p {
    color: var(--fg-2, #52627d);
}
#meetingShareDialog .meeting-share-audio-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}
#meetingShareDialog .meeting-share-audio-actions button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border-subtle, #e6ebf4);
    border-radius: 8px;
    background: #fff;
    color: var(--fg-1, #1c2b45);
}
#meetingShareDialog #meetingShareAudioContinue {
    border-color: var(--room-accent, #3168ee);
    background: var(--room-accent, #3168ee);
    color: #fff;
}
#meetingShareAudioConfirm[hidden] {
    display: none;
}
#meetingShareAudioHelp[hidden] {
    display: none;
}
#meetingShareDialog .meeting-share-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: -6px -6px 0 0;
    border: 0;
    border-radius: 12px;
    color: var(--fg-2, #52627d);
    background: var(--surface-1, #f7f9fd);
}
.meeting-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
#meetingShareDialog .meeting-share-options button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    margin: 0;
    border: 1px solid var(--border-subtle, #e6ebf4);
    border-radius: 18px;
    background: var(--surface-1, #f7f9fd);
    color: var(--fg-1, #1c2b45);
    box-shadow: none;
    transition:
        background 150ms ease,
        border-color 150ms ease;
}
#meetingShareDialog .meeting-share-options button > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    font-size: 22px;
    border-radius: 14px;
    color: var(--room-accent, #3168ee);
    background: var(--room-accent-soft, #eef3ff);
}
#meetingShareDialog .meeting-share-options strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
#meetingShareDialog .meeting-share-options span {
    font-size: 12px;
    color: var(--fg-3, #72829d);
    line-height: 1.6;
}
#meetingShareDialog .meeting-share-options button:hover:enabled {
    background: var(--room-accent-soft, #eef3ff);
    border-color: var(--room-accent, #3168ee);
}
#meetingShareDialog .meeting-share-options button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
#meetingShareDialog button:focus-visible {
    outline: 2px solid var(--room-accent, #3168ee);
    outline-offset: 3px;
}
#meetingShareDialog .is-sharing > i {
    color: #d94561 !important;
    background: #fff0f2 !important;
}
/* 白板高于会议底栏；继续复用原画布和协作工具。 */
:root[data-meeting-ui='simple'] #whiteboard {
    z-index: 2030;
}
.whiteboard-header > .whiteboard-close-button {
    flex-shrink: 0;
    margin-left: auto;
}
@media (max-width: 730px) {
    #meetingShareDialog {
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        max-height: calc(90dvh - env(safe-area-inset-top));
        margin: 0;
        padding: 22px calc(20px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom))
            calc(20px + env(safe-area-inset-left));
        border-radius: 24px 24px 0 0;
    }
    .meeting-share-options {
        grid-template-columns: 1fr;
    }
    #meetingShareDialog .meeting-share-options button {
        padding: 16px 12px;
    }
}

@media (max-width: 730px) {
    #meetingShareDialog .meeting-share-options button {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 14px;
        row-gap: 4px;
    }
    #meetingShareDialog .meeting-share-options button > i {
        grid-row: 1 / 3;
        margin: 0;
    }
    #meetingShareDialog .meeting-share-options button > :is(strong, span) {
        grid-column: 2;
    }
}
