@media (max-width: 860px) {
    html.native-android-shell {
        --fm-native-frame-black: #000000;
        --fm-native-header-green: #179b57;
        --fm-native-top-inset: max(env(safe-area-inset-top, 0px), 50px);
        --fm-native-bottom-inset: max(env(safe-area-inset-bottom, 0px), 58px);
    }

    html.native-android-shell,
    html.native-android-shell body {
        background: var(--fm-native-frame-black) !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .app-main {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
        padding-top: var(--fm-native-top-inset) !important;
        padding-bottom: var(--fm-native-bottom-inset) !important;
        background: var(--fm-native-frame-black) !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header {
        height: 66px !important;
        min-height: 66px !important;
        max-height: none !important;
        box-sizing: border-box !important;
        padding: 7px 12px 7px 8px !important;
        background: var(--fm-native-header-green) !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 35 !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-top {
        display: grid !important;
        height: 100% !important;
        min-height: 52px !important;
        max-height: none !important;
        grid-template-columns: minmax(0, 1fr) 114px !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-identity {
        display: grid !important;
        grid-template-columns: 30px 38px minmax(0, 1fr) !important;
        gap: 7px !important;
        min-height: 52px !important;
        max-height: none !important;
        align-items: center !important;
        overflow: visible !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #chatBackButton,
    html.native-android-shell body[data-shell-view="chat"] #chatBackButton.chat-back-button,
    html.native-android-shell body[data-shell-view="chat"] #chatBackButton.chat-back-button.hidden {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 24px !important;
        color: #ffffff !important;
        line-height: 1 !important;
        background: transparent !important;
        border: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #activeChatAvatar {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-copy,
    html.native-android-shell body[data-shell-view="chat"] .chat-header-copy .presence,
    html.native-android-shell body[data-shell-view="chat"] #chatWith,
    html.native-android-shell body[data-shell-view="chat"] #presence {
        color: #ffffff !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-copy {
        align-self: center !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .call-actions {
        display: grid !important;
        grid-auto-columns: 36px !important;
        grid-auto-flow: column !important;
        min-width: 114px !important;
        max-width: 114px !important;
        gap: 3px !important;
        align-items: center !important;
        justify-content: end !important;
        align-self: center !important;
        overflow: visible !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #voiceCallButton,
    html.native-android-shell body[data-shell-view="chat"] #videoCallButton,
    html.native-android-shell body[data-shell-view="chat"] #chatMoreButton {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.16) !important;
        color: #ffffff !important;
        line-height: 1 !important;
        transform: none !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #voiceCallButton .button-icon,
    html.native-android-shell body[data-shell-view="chat"] #videoCallButton .button-icon,
    html.native-android-shell body[data-shell-view="chat"] #chatMoreButton .button-icon {
        color: #ffffff !important;
        line-height: 1 !important;
        transform: none !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #messages {
        min-height: 0 !important;
        overflow-y: auto !important;
        padding-top: 10px !important;
        padding-bottom: 8px !important;
        background: #efe7dd !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #messageForm.input-area.fm-mobile-composer,
    html.native-android-shell body[data-shell-view="chat"] .fm-mobile-composer,
    html.native-android-shell body[data-shell-view="chat"] .input-area {
        position: relative !important;
        bottom: auto !important;
        flex-shrink: 0 !important;
        margin: 0 6px 4px !important;
        padding-bottom: 0 !important;
        z-index: 18 !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #voiceNoteButton.fm-action-button,
    html.native-android-shell body[data-shell-view="chat"] #voiceNoteButton.voice-note-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
        background: var(--fm-native-header-green) !important;
        color: #ffffff !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .composer-note,
    html.native-android-shell body[data-shell-view="chat"] .voice-recorder-status {
        margin-bottom: 4px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #messageForm .composer-input-shell {
        min-height: 40px !important;
        border-radius: 20px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #messageForm #messageInput {
        min-height: 28px !important;
        line-height: 1.25 !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #messageForm #attachButton {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 999px !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .app-main {
        padding-bottom: 0 !important;
        background: #efe7dd !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar,
    html.native-android-shell body[data-shell-view="sidebar"] .shell-pane-sidebar {
        background: #efe7dd !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] #users {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
        background: linear-gradient(180deg, rgba(239, 231, 221, 0.92) 0%, rgba(244, 239, 232, 0.98) 100%) !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .mobile-fab {
        position: fixed !important;
        right: 18px !important;
        bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 30 !important;
        width: 52px !important;
        height: 52px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 860px) {
    html.native-android-shell .contact-picker-modal.contact-picker-contacts-mode .contact-picker-quick-actions {
        display: none !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-header {
        padding-top: calc(2px + var(--safe-top)) !important;
        padding-bottom: 4px !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-title-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 4px !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-title-block {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        grid-template-areas:
            "kicker kicker"
            "title user" !important;
        column-gap: 10px !important;
        align-items: center !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-kicker {
        display: block !important;
        margin: 0 0 2px !important;
        grid-area: kicker !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        letter-spacing: 0.16em !important;
        color: rgba(255, 255, 255, 0.78) !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-title {
        grid-area: title !important;
        width: 52px !important;
        height: 52px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.18) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .self-username {
        display: block !important;
        grid-area: user !important;
        align-self: center !important;
        margin-top: 0 !important;
        max-width: 100% !important;
        color: rgba(255, 255, 255, 0.88) !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html.native-android-shell body[data-shell-view="sidebar"] .sidebar-actions {
        align-self: center !important;
        padding-top: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* Phase 3 auth login v3 final precedence: approved Option A mobile login. */
@media (max-width: 860px) {
    html.native-android-shell .join-overlay {
        z-index: 5000 !important;
        padding: calc(var(--fm-native-top-inset, 50px) + 14px) 18px calc(var(--fm-native-bottom-inset, 58px) + 10px) !important;
        background: #f3f7f5 !important;
    }

    html.native-android-shell .join-overlay::before,
    html.native-android-shell .join-overlay::after {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        background: #000000 !important;
    }

    html.native-android-shell .join-overlay::before {
        top: 0 !important;
        height: var(--fm-native-top-inset, 50px) !important;
    }

    html.native-android-shell .join-overlay::after {
        bottom: 0 !important;
        height: var(--fm-native-bottom-inset, 58px) !important;
    }

    html.native-android-shell .join-card {
        position: relative !important;
        z-index: 1 !important;
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - var(--fm-native-bottom-inset, 58px) - 24px) !important;
    }

    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell #newChatFab,
    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell .mobile-fab {
        display: none !important;
    }

    html.native-android-shell .join-card .auth-mode-tab,
    html.native-android-shell .join-card .auth-mode-tab:hover,
    html.native-android-shell .join-card .auth-mode-tab:focus,
    html.native-android-shell .join-card .auth-mode-tab:active,
    html.native-android-shell .join-card .auth-mode-tab.auth-mode-tab-active,
    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card .auth-secondary-actions button:hover,
    html.native-android-shell .join-card .auth-secondary-actions button:focus,
    html.native-android-shell .join-card .auth-secondary-actions button:active,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #registerButton.secondary-button:hover,
    html.native-android-shell .join-card #registerButton.secondary-button:focus,
    html.native-android-shell .join-card #forgotPasswordButton,
    html.native-android-shell .join-card #forgotPasswordButton:hover,
    html.native-android-shell .join-card #forgotPasswordButton:focus {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        outline: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html.native-android-shell .join-card .auth-mode-tab {
        min-height: 38px !important;
        padding: 0 2px 8px !important;
        border-radius: 0 !important;
        color: #65746e !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active {
        color: #087763 !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active::after {
        display: block !important;
        background: #087763 !important;
    }

    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #forgotPasswordButton {
        min-height: 0 !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        color: #087763 !important;
    }

    html.native-android-shell .join-card #loginButton {
        border: 0 !important;
        background: #0b7b5f !important;
        color: #ffffff !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay {
        padding-top: calc(var(--fm-native-top-inset, 50px) + 8px) !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay::after {
        display: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-card {
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - 8px) !important;
    }
}

/* Phase 3 auth login final: keep mobile login matching the approved mockup. */
@media (max-width: 860px) {
    html.native-android-shell .join-overlay {
        z-index: 5000 !important;
        padding: calc(var(--fm-native-top-inset, 50px) + 14px) 18px calc(var(--fm-native-bottom-inset, 58px) + 10px) !important;
        background: #f3f7f5 !important;
    }

    html.native-android-shell .join-overlay::before,
    html.native-android-shell .join-overlay::after {
        content: "" !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        background: #000000 !important;
    }

    html.native-android-shell .join-overlay::before {
        top: 0 !important;
        height: var(--fm-native-top-inset, 50px) !important;
    }

    html.native-android-shell .join-overlay::after {
        bottom: 0 !important;
        height: var(--fm-native-bottom-inset, 58px) !important;
    }

    html.native-android-shell .join-card {
        position: relative !important;
        z-index: 1 !important;
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - var(--fm-native-bottom-inset, 58px) - 24px) !important;
    }

    html.native-android-shell .join-card .auth-mode-tab,
    html.native-android-shell .join-card .auth-mode-tab:hover,
    html.native-android-shell .join-card .auth-mode-tab:focus,
    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card .auth-secondary-actions button:hover,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #registerButton.secondary-button:hover,
    html.native-android-shell .join-card #forgotPasswordButton,
    html.native-android-shell .join-card #forgotPasswordButton:hover {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html.native-android-shell .join-card .auth-mode-tab {
        min-height: 38px !important;
        padding: 0 2px 8px !important;
        border-radius: 0 !important;
        color: #65746e !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active {
        color: #087763 !important;
    }

    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #forgotPasswordButton {
        min-height: 0 !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        color: #087763 !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay {
        padding-top: calc(var(--fm-native-top-inset, 50px) + 8px) !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay::after {
        display: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-card {
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - 8px) !important;
    }
}

/* Phase 3 APK Group info v3 final precedence: mobile page wins over older card rules. */
@media (max-width: 860px) {
    html.native-android-shell body.group-details-open .chat-header,
    html.native-android-shell body.group-details-open #messageForm,
    html.native-android-shell body.group-details-open .attachment-panel,
    html.native-android-shell body.group-details-open #messages,
    html.native-android-shell body.group-details-open #videoStage,
    html.native-android-shell body.group-details-open #callBanner {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel {
        position: fixed !important;
        inset: var(--fm-native-top-inset, 0px) 0 0 0 !important;
        z-index: 2600 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f6f9f8 !important;
        box-shadow: none !important;
        color: #111b21 !important;
        transform: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        flex: 0 0 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #149d56 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header > div {
        min-width: 0 !important;
        padding: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle,
    html.native-android-shell body.group-details-open #groupDetailsMeta {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        background: transparent !important;
        color: #ffffff !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle {
        font-size: 0 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle::after {
        content: attr(data-mobile-title);
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta {
        margin-top: 3px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        opacity: 0.92 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta::after {
        content: attr(data-mobile-subtitle);
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsTitle::after {
        content: "Add member";
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMeta::after {
        content: "Returns to Group info";
    }

    html.native-android-shell body.group-details-open #closeGroupDetailsButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError {
        flex: 0 0 auto !important;
        margin: 8px 14px 0 !important;
        padding: 0 !important;
        color: #c92d2d !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError:empty {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-details-layout {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 12px 12px calc(14px + var(--fm-native-bottom-inset, 0px)) !important;
        overflow-y: auto !important;
        background: #f6f9f8 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .new-group-card {
        display: block !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .account-panel-title {
        margin: 0 0 8px !important;
        color: #52615d !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        gap: 8px !important;
        align-items: end !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child .account-panel-title {
        grid-column: 1 / -1 !important;
    }

    html.native-android-shell body.group-details-open #groupRenameInput,
    html.native-android-shell body.group-details-open #groupAddMemberInput {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: 1px solid #b7c2bf !important;
        border-radius: 13px !important;
        background: #ffffff !important;
        color: #111b21 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #179b57 !important;
        color: #ffffff !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupAddMemberInput,
    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupMemberSuggestions {
        display: none !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton {
        width: 100% !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton::before {
        content: "+ ";
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers,
    html.native-android-shell body.group-details-open .group-suggestion-list:not(.hidden) {
        display: grid !important;
        gap: 0 !important;
        overflow-y: auto !important;
        border: 1px solid #dde6e3 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers {
        margin-top: 10px !important;
        max-height: none !important;
        min-height: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-list:not(.hidden) {
        max-height: 142px !important;
        margin: 8px 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member,
    html.native-android-shell body.group-details-open .group-suggestion-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 6px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        color: #111b21 !important;
        text-align: left !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member:last-child,
    html.native-android-shell body.group-details-open .group-suggestion-item:last-child {
        border-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member span,
    html.native-android-shell body.group-details-open .group-suggestion-item span {
        min-width: 0 !important;
        overflow: hidden !important;
        color: #111b21 !important;
        font-size: 0.96rem !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button,
    html.native-android-shell body.group-details-open #deleteGroupButton,
    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 62px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button {
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        background: #179b57 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card {
        display: grid !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card .self-username {
        margin: 0 !important;
        color: #66736f !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    html.native-android-shell body.group-details-open .group-actions-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-details-open #leaveGroupButton,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        min-width: 76px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 14px !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #deleteGroupButton {
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:first-child,
    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-danger-card {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        padding-top: 12px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) .account-panel-title {
        margin-top: 10px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupAddMemberInput {
        display: block !important;
        flex: 0 0 auto !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #addGroupMemberButton {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-top: 8px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMembers {
        flex: 1 1 auto !important;
        margin-top: 12px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel > .starred-panel-header {
        flex-basis: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        max-height: 140px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsMembers {
        max-height: 132px !important;
        min-height: 0 !important;
    }
}

/* Phase 3 auth login v3 absolute final precedence: approved Option A mobile login. */
@media (max-width: 860px) {
    html.native-android-shell .join-overlay {
        z-index: 5000 !important;
        padding: calc(var(--fm-native-top-inset, 50px) + 14px) 18px calc(var(--fm-native-bottom-inset, 58px) + 10px) !important;
        background: #f3f7f5 !important;
    }

    html.native-android-shell .join-overlay::before,
    html.native-android-shell .join-overlay::after {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        background: #000000 !important;
    }

    html.native-android-shell .join-overlay::before {
        top: 0 !important;
        height: var(--fm-native-top-inset, 50px) !important;
    }

    html.native-android-shell .join-overlay::after {
        bottom: 0 !important;
        height: var(--fm-native-bottom-inset, 58px) !important;
    }

    html.native-android-shell .join-card {
        position: relative !important;
        z-index: 1 !important;
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - var(--fm-native-bottom-inset, 58px) - 24px) !important;
    }

    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell #newChatFab,
    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell .mobile-fab {
        display: none !important;
    }

    html.native-android-shell .join-card .auth-mode-tab,
    html.native-android-shell .join-card .auth-mode-tab:hover,
    html.native-android-shell .join-card .auth-mode-tab:focus,
    html.native-android-shell .join-card .auth-mode-tab:active,
    html.native-android-shell .join-card .auth-mode-tab.auth-mode-tab-active,
    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card .auth-secondary-actions button:hover,
    html.native-android-shell .join-card .auth-secondary-actions button:focus,
    html.native-android-shell .join-card .auth-secondary-actions button:active,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #registerButton.secondary-button:hover,
    html.native-android-shell .join-card #registerButton.secondary-button:focus,
    html.native-android-shell .join-card #forgotPasswordButton,
    html.native-android-shell .join-card #forgotPasswordButton:hover,
    html.native-android-shell .join-card #forgotPasswordButton:focus {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        outline: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html.native-android-shell .join-card .auth-mode-tab {
        min-height: 38px !important;
        padding: 0 2px 8px !important;
        border-radius: 0 !important;
        color: #65746e !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active {
        color: #087763 !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active::after {
        display: block !important;
        background: #087763 !important;
    }

    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #forgotPasswordButton {
        min-height: 0 !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        color: #087763 !important;
    }

    html.native-android-shell .join-card #loginButton {
        border: 0 !important;
        background: #0b7b5f !important;
        color: #ffffff !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay {
        padding-top: calc(var(--fm-native-top-inset, 50px) + 8px) !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay::after {
        display: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-card {
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - 8px) !important;
    }
}

/* Phase 3 APK Group info v3: mobile page layout, not desktop cards. */
@media (max-width: 860px) {
    html.native-android-shell body.group-details-open #messageForm,
    html.native-android-shell body.group-details-open .attachment-panel,
    html.native-android-shell body.group-details-open #messages,
    html.native-android-shell body.group-details-open #videoStage,
    html.native-android-shell body.group-details-open #callBanner,
    html.native-android-shell body.group-details-open .chat-header {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel {
        position: fixed !important;
        inset: var(--fm-native-top-inset, 0px) 0 0 0 !important;
        z-index: 2600 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f6f9f8 !important;
        color: #111b21 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel * {
        box-sizing: border-box !important;
        text-shadow: none !important;
        filter: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        align-items: center !important;
        flex: 0 0 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #149d56 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header > div {
        min-width: 0 !important;
        padding: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle,
    html.native-android-shell body.group-details-open #groupDetailsMeta {
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        background: transparent !important;
        color: #ffffff !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle {
        font-size: 0 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle::after {
        content: attr(data-mobile-title);
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta {
        margin-top: 3px !important;
        font-size: 0 !important;
        line-height: 1 !important;
        opacity: 0.92 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta::after {
        content: attr(data-mobile-subtitle);
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-details-open #closeGroupDetailsButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError {
        flex: 0 0 auto !important;
        margin: 8px 14px 0 !important;
        padding: 0 !important;
        color: #c92d2d !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError:empty {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-details-layout {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 12px 12px calc(14px + var(--fm-native-bottom-inset, 0px)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        background: #f6f9f8 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .new-group-card {
        display: block !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .account-panel-title {
        margin: 0 0 8px !important;
        color: #52615d !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        gap: 8px !important;
        align-items: end !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child .account-panel-title {
        grid-column: 1 / -1 !important;
    }

    html.native-android-shell body.group-details-open #groupRenameInput,
    html.native-android-shell body.group-details-open #groupAddMemberInput {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: 1px solid #b7c2bf !important;
        border-radius: 13px !important;
        background: #ffffff !important;
        color: #111b21 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #179b57 !important;
        color: #ffffff !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupAddMemberInput,
    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupMemberSuggestions {
        display: none !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton::before {
        content: "+ ";
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers {
        display: grid !important;
        gap: 0 !important;
        margin-top: 10px !important;
        overflow: visible !important;
        max-height: none !important;
        min-height: 0 !important;
        border: 1px solid #dde6e3 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 6px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member:last-child {
        border-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member span {
        min-width: 0 !important;
        overflow: hidden !important;
        color: #111b21 !important;
        font-size: 0.96rem !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 62px !important;
        max-width: 92px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button {
        border: 0 !important;
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card .self-username {
        margin: 0 !important;
        color: #66736f !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    html.native-android-shell body.group-details-open .group-actions-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-details-open #leaveGroupButton,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        min-width: 76px !important;
        max-width: none !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 14px !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #deleteGroupButton {
        border: 0 !important;
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-list:not(.hidden) {
        display: grid !important;
        gap: 0 !important;
        max-height: 142px !important;
        margin: 8px 0 !important;
        overflow-y: auto !important;
        border: 1px solid #dde6e3 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        min-height: 44px !important;
        padding: 6px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        color: #111b21 !important;
        font-size: 0.95rem !important;
        text-align: left !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item:last-child {
        border-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        min-width: 54px !important;
        height: 28px !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        background: #179b57 !important;
        color: #ffffff !important;
        font-size: 0.78rem !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsTitle::after {
        content: "Add member";
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMeta::after {
        content: "Returns to Group info";
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #closeGroupDetailsButton {
        font-size: 1.45rem !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:first-child,
    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-danger-card {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        padding-top: 12px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) .account-panel-title {
        margin-top: 10px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupAddMemberInput {
        display: block !important;
        flex: 0 0 auto !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #addGroupMemberButton {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMembers {
        flex: 1 1 auto !important;
        margin-top: 12px !important;
        overflow-y: auto !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel {
        bottom: 0 !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel > .starred-panel-header {
        flex-basis: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        max-height: 140px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsMembers {
        max-height: 132px !important;
        min-height: 0 !important;
    }
}

/* Phase 3 APK compact Group info: keep management controls visible on phone screens. */
@media (max-width: 860px) {
    html.native-android-shell body.group-details-open #groupDetailsPanel {
        display: flex !important;
        position: absolute !important;
        inset: calc(66px + var(--fm-native-top-inset, 0px)) 8px calc(8px + var(--fm-native-bottom-inset, 0px)) 8px !important;
        z-index: 45 !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        gap: 6px !important;
        min-height: 0 !important;
        padding: 8px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        color: #111b21 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .starred-panel-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        padding: 0 2px 4px !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle {
        margin: 0 !important;
        color: #111b21 !important;
        font-size: 1.45rem !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta {
        margin-top: 2px !important;
        color: #66736f !important;
        font-size: 0.86rem !important;
        line-height: 1.15 !important;
    }

    html.native-android-shell body.group-details-open #closeGroupDetailsButton {
        min-width: 78px !important;
        min-height: 36px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        font-size: 0.92rem !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-details-layout {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        gap: 7px !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .new-group-card {
        display: grid !important;
        gap: 7px !important;
        min-height: 0 !important;
        padding: 8px !important;
        border-radius: 12px !important;
        border: 1px solid #dfe8e4 !important;
        background: #fbfdfc !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .account-panel-title {
        margin: 0 !important;
        color: #52615d !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child {
        grid-template-columns: minmax(0, 1fr) minmax(112px, 0.34fr) !important;
        align-items: end !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child .account-panel-title {
        grid-column: 1 / -1 !important;
    }

    html.native-android-shell body.group-details-open #groupRenameInput,
    html.native-android-shell body.group-details-open #groupAddMemberInput {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 34px !important;
        height: 34px !important;
        box-sizing: border-box !important;
        padding: 5px 8px !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton,
    html.native-android-shell body.group-details-open #leaveGroupButton,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-size: 0.86rem !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton {
        background: #179b57 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupMemberSuggestions:not(.hidden) {
        display: grid !important;
        gap: 5px !important;
        max-height: 118px !important;
        overflow-y: auto !important;
        padding: 2px !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item {
        min-height: 36px !important;
        padding: 6px 8px !important;
        border-radius: 10px !important;
        border: 1px solid #dfe8e4 !important;
        background: #ffffff !important;
        color: #111b21 !important;
        font-size: 0.9rem !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        min-width: 44px !important;
        padding: 4px 8px !important;
        border-radius: 999px !important;
        background: #179b57 !important;
        color: #ffffff !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers {
        display: grid !important;
        gap: 5px !important;
        max-height: 138px !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 1px 2px 2px !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member {
        min-height: 34px !important;
        padding: 5px 8px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #111b21 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member span {
        color: #111b21 !important;
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button {
        min-height: 30px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card {
        gap: 6px !important;
        background: #fffafa !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card .self-username {
        order: 3 !important;
        color: #66736f !important;
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
    }

    html.native-android-shell body.group-details-open .group-actions-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html.native-android-shell body.group-details-open #leaveGroupButton {
        border: 1px solid #efb5b5 !important;
        background: #fff7f7 !important;
        color: #b42323 !important;
    }

    html.native-android-shell body.group-details-open #deleteGroupButton {
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel,
    html.native-android-shell body[data-keyboard-open="true"].group-details-open #groupDetailsPanel {
        inset: calc(66px + var(--fm-native-top-inset, 0px)) 8px 8px 8px !important;
        gap: 5px !important;
        padding: 8px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .starred-panel-header,
    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel .starred-panel-header {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:first-child,
    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-danger-card {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        justify-content: start !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        gap: 7px !important;
        padding: 8px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMembers {
        max-height: 86px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        max-height: 156px !important;
    }
}

/* Phase 3 APK Group info v2: approved tighter management sheet. */
@media (max-width: 860px) {
    html.native-android-shell body.group-details-open #groupDetailsPanel {
        inset: calc(66px + var(--fm-native-top-inset, 0px)) 10px calc(8px + var(--fm-native-bottom-inset, 0px)) 10px !important;
        gap: 6px !important;
        padding: 8px !important;
        border-radius: 16px !important;
        overflow-y: auto !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        flex: 0 0 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        gap: 8px !important;
        padding: 0 4px 2px !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header > div {
        display: block !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle {
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #111b21 !important;
        font-size: 1.55rem !important;
        line-height: 1.05 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta {
        margin: 2px 0 0 !important;
        color: #66736f !important;
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError:empty {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #closeGroupDetailsButton {
        min-width: 70px !important;
        min-height: 34px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        font-size: 0.88rem !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-details-layout {
        flex: 1 1 auto !important;
        gap: 6px !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .new-group-card {
        gap: 6px !important;
        min-height: 0 !important;
        padding: 7px !important;
        border-radius: 12px !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .account-panel-title {
        margin: 0 !important;
        font-size: 0.74rem !important;
        line-height: 1 !important;
        letter-spacing: 0.08em !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child {
        flex: 0 0 auto !important;
        grid-template-columns: minmax(0, 1fr) minmax(106px, 0.32fr) !important;
        gap: 6px !important;
        align-items: end !important;
    }

    html.native-android-shell body.group-details-open #groupRenameInput,
    html.native-android-shell body.group-details-open #groupAddMemberInput {
        min-height: 32px !important;
        height: 32px !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        font-size: 0.98rem !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton,
    html.native-android-shell body.group-details-open #leaveGroupButton,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 0.82rem !important;
        line-height: 1.05 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers {
        flex: 1 1 auto !important;
        max-height: none !important;
        min-height: 128px !important;
        overflow-y: auto !important;
        gap: 5px !important;
        padding: 1px 2px 2px !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member {
        min-height: 34px !important;
        padding: 5px 8px !important;
        border-radius: 9px !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button {
        min-height: 28px !important;
        padding: 0 9px !important;
        font-size: 0.8rem !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card {
        flex: 0 0 auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card .self-username {
        font-size: 0.74rem !important;
        line-height: 1.15 !important;
    }

    html.native-android-shell body.group-details-open .group-actions-row {
        gap: 7px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel {
        inset: calc(66px + var(--fm-native-top-inset, 0px)) 10px 8px 10px !important;
        padding: 8px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel > .starred-panel-header,
    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel > .starred-panel-header {
        display: grid !important;
        flex: 0 0 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsTitle {
        font-size: 0 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsTitle::after {
        content: "Add member";
        color: #111b21 !important;
        font-size: 1.45rem !important;
        line-height: 1.05 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMeta {
        font-size: 0 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMeta::after {
        content: "Close returns to Group info";
        color: #66736f !important;
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #closeGroupDetailsButton {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:first-child,
    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-danger-card {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 0 !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) .account-panel-title {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupAddMemberInput {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        height: 36px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #addGroupMemberButton {
        flex: 0 0 auto !important;
        min-height: 34px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        display: grid !important;
        flex: 0 0 auto !important;
        max-height: 142px !important;
        overflow-y: auto !important;
        gap: 5px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMembers {
        flex: 1 1 auto !important;
        min-height: 118px !important;
        max-height: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        max-height: calc(var(--app-height, 100vh) - 86px) !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        max-height: 134px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsMembers {
        min-height: 96px !important;
    }
}

/* Phase 3 APK Group info v3 true final override: keep this after all older rules. */
@media (max-width: 860px) {
    html.native-android-shell body.group-details-open .chat-header,
    html.native-android-shell body.group-details-open #messageForm,
    html.native-android-shell body.group-details-open .attachment-panel,
    html.native-android-shell body.group-details-open #messages,
    html.native-android-shell body.group-details-open #videoStage,
    html.native-android-shell body.group-details-open #callBanner {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel {
        position: fixed !important;
        inset: var(--fm-native-top-inset, 0px) 0 0 0 !important;
        z-index: 2600 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f6f9f8 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel > .starred-panel-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        flex: 0 0 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #149d56 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle,
    html.native-android-shell body.group-details-open #groupDetailsMeta {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
        color: #ffffff !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle {
        font-size: 0 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsTitle::after {
        content: attr(data-mobile-title);
        font-size: 1.3rem !important;
        font-weight: 800 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta {
        margin-top: 3px !important;
        font-size: 0 !important;
        opacity: 0.92 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMeta::after {
        content: attr(data-mobile-subtitle);
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsTitle::after {
        content: "Add member";
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMeta::after {
        content: "Returns to Group info";
    }

    html.native-android-shell body.group-details-open #closeGroupDetailsButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError {
        flex: 0 0 auto !important;
        margin: 8px 14px 0 !important;
        padding: 0 !important;
        color: #c92d2d !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsError:empty {
        display: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-details-layout {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 12px 12px calc(14px + var(--fm-native-bottom-inset, 0px)) !important;
        overflow-y: auto !important;
        background: #f6f9f8 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .new-group-card {
        display: block !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .account-panel-title {
        margin: 0 0 8px !important;
        color: #52615d !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        gap: 8px !important;
        align-items: end !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsPanel .group-section-card:first-child .account-panel-title {
        grid-column: 1 / -1 !important;
    }

    html.native-android-shell body.group-details-open #groupRenameInput,
    html.native-android-shell body.group-details-open #groupAddMemberInput {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: 1px solid #b7c2bf !important;
        border-radius: 13px !important;
        background: #ffffff !important;
        color: #111b21 !important;
        font-size: 16px !important;
    }

    html.native-android-shell body.group-details-open #renameGroupButton,
    html.native-android-shell body.group-details-open #addGroupMemberButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #179b57 !important;
        color: #ffffff !important;
        font-size: 0.92rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupAddMemberInput,
    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #groupMemberSuggestions {
        display: none !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton {
        width: 100% !important;
    }

    html.native-android-shell body.group-details-open:not(.group-add-member-focused) #addGroupMemberButton::before {
        content: "+ ";
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers,
    html.native-android-shell body.group-details-open .group-suggestion-list:not(.hidden) {
        display: grid !important;
        gap: 0 !important;
        overflow-y: auto !important;
        border: 1px solid #dde6e3 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers {
        margin-top: 10px !important;
        max-height: none !important;
        min-height: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-list:not(.hidden) {
        max-height: 142px !important;
        margin: 8px 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member,
    html.native-android-shell body.group-details-open .group-suggestion-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 6px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        color: #111b21 !important;
        text-align: left !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member:last-child,
    html.native-android-shell body.group-details-open .group-suggestion-item:last-child {
        border-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member span,
    html.native-android-shell body.group-details-open .group-suggestion-item span {
        min-width: 0 !important;
        overflow: hidden !important;
        color: #111b21 !important;
        font-size: 0.96rem !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button,
    html.native-android-shell body.group-details-open #deleteGroupButton,
    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 62px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html.native-android-shell body.group-details-open #groupDetailsMembers .new-group-member button,
    html.native-android-shell body.group-details-open .danger-outline-button {
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-suggestion-item strong {
        background: #179b57 !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card {
        display: grid !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    html.native-android-shell body.group-details-open .group-danger-card .self-username {
        margin: 0 !important;
        color: #66736f !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    html.native-android-shell body.group-details-open .group-actions-row {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-details-open #leaveGroupButton,
    html.native-android-shell body.group-details-open #deleteGroupButton {
        min-width: 76px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 14px !important;
        font-size: 0.82rem !important;
    }

    html.native-android-shell body.group-details-open #deleteGroupButton {
        background: #c92d2d !important;
        color: #ffffff !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:first-child,
    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-danger-card {
        display: none !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsPanel .group-section-card:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupAddMemberInput {
        display: block !important;
        flex: 0 0 auto !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #addGroupMemberButton {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-top: 8px !important;
    }

    html.native-android-shell body.group-add-member-focused.group-details-open #groupDetailsMembers {
        flex: 1 1 auto !important;
        margin-top: 12px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel > .starred-panel-header {
        flex-basis: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsPanel .group-details-layout {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupMemberSuggestions:not(.hidden) {
        max-height: 140px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"].group-add-member-focused.group-details-open #groupDetailsMembers {
        max-height: 132px !important;
        min-height: 0 !important;
    }
}

/* Phase 3 auth login v3 file-end precedence: approved Option A mobile login. */
@media (max-width: 860px) {
    html.native-android-shell .join-overlay {
        z-index: 5000 !important;
        padding: calc(var(--fm-native-top-inset, 50px) + 14px) 18px calc(var(--fm-native-bottom-inset, 58px) + 10px) !important;
        background: #f3f7f5 !important;
    }

    html.native-android-shell .join-overlay::before,
    html.native-android-shell .join-overlay::after {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        background: #000000 !important;
    }

    html.native-android-shell .join-overlay::before {
        top: 0 !important;
        height: var(--fm-native-top-inset, 50px) !important;
    }

    html.native-android-shell .join-overlay::after {
        bottom: 0 !important;
        height: var(--fm-native-bottom-inset, 58px) !important;
    }

    html.native-android-shell .join-card {
        position: relative !important;
        z-index: 1 !important;
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - var(--fm-native-bottom-inset, 58px) - 24px) !important;
    }

    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell #newChatFab,
    html.native-android-shell .join-overlay:not(.hidden) ~ #appShell .mobile-fab {
        display: none !important;
    }

    html.native-android-shell .join-card .auth-mode-tab,
    html.native-android-shell .join-card .auth-mode-tab:hover,
    html.native-android-shell .join-card .auth-mode-tab:focus,
    html.native-android-shell .join-card .auth-mode-tab:active,
    html.native-android-shell .join-card .auth-mode-tab.auth-mode-tab-active,
    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card .auth-secondary-actions button:hover,
    html.native-android-shell .join-card .auth-secondary-actions button:focus,
    html.native-android-shell .join-card .auth-secondary-actions button:active,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #registerButton.secondary-button:hover,
    html.native-android-shell .join-card #registerButton.secondary-button:focus,
    html.native-android-shell .join-card #forgotPasswordButton,
    html.native-android-shell .join-card #forgotPasswordButton:hover,
    html.native-android-shell .join-card #forgotPasswordButton:focus {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        outline: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    html.native-android-shell .join-card .auth-mode-tab {
        min-height: 38px !important;
        padding: 0 2px 8px !important;
        border-radius: 0 !important;
        color: #65746e !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active {
        color: #087763 !important;
    }

    html.native-android-shell .join-card .auth-mode-tab-active::after {
        display: block !important;
        background: #087763 !important;
    }

    html.native-android-shell .join-card .auth-secondary-actions button,
    html.native-android-shell .join-card #registerButton.secondary-button,
    html.native-android-shell .join-card #forgotPasswordButton {
        min-height: 0 !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        color: #087763 !important;
    }

    html.native-android-shell .join-card #loginButton {
        border: 0 !important;
        background: #0b7b5f !important;
        color: #ffffff !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay {
        padding-top: calc(var(--fm-native-top-inset, 50px) + 8px) !important;
        padding-bottom: 8px !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-overlay::after {
        display: none !important;
    }

    html.native-android-shell body[data-keyboard-open="true"] .join-card {
        max-height: calc(var(--app-height) - var(--fm-native-top-inset, 50px) - 8px) !important;
    }
}
