@media (max-width: 860px) {
    body[data-shell-view="chat"] .mobile-bottom-nav,
    body[data-keyboard-open="true"] .mobile-bottom-nav {
        display: none !important;
    }

    body[data-shell-view="chat"] .app-main,
    body[data-keyboard-open="true"] .app-main {
        padding-bottom: 0 !important;
    }

    body[data-shell-view="chat"] .chat {
        grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
        height: var(--app-height) !important;
        max-height: var(--app-height) !important;
    }

    body[data-shell-view="chat"] .chat-header {
        min-height: 52px !important;
        max-height: 56px !important;
        padding: calc(3px + var(--safe-top)) 12px 4px 8px !important;
        background: #075e45 !important;
        overflow: hidden !important;
    }

    body[data-shell-view="chat"] .chat-header-top {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 116px !important;
        align-items: center !important;
        min-height: 42px !important;
        max-height: 42px !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    body[data-shell-view="chat"] .chat-header-identity {
        display: grid !important;
        grid-template-columns: 28px 40px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        max-height: 42px !important;
        overflow: hidden !important;
    }

    body[data-shell-view="chat"] #chatBackButton {
        display: inline-flex !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 24px !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    body[data-shell-view="chat"] #activeChatAvatar {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 15px !important;
    }

    body[data-shell-view="chat"] .chat-header-copy {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body[data-shell-view="chat"] #chatWith {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 18px !important;
        line-height: 1.05 !important;
        color: #fff !important;
    }

    body[data-shell-view="chat"] .presence {
        margin-top: 1px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
        color: rgba(255, 255, 255, 0.82) !important;
    }

    body[data-shell-view="chat"] .call-actions {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 36px !important;
        align-items: center !important;
        justify-content: end !important;
        gap: 2px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        margin: 0 !important;
        padding-right: 2px !important;
        overflow: visible !important;
    }

    body[data-shell-view="chat"] #voiceCallButton,
    body[data-shell-view="chat"] #videoCallButton,
    body[data-shell-view="chat"] #chatMoreButton {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.18) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    body[data-shell-view="chat"] #voiceCallButton .button-icon,
    body[data-shell-view="chat"] #videoCallButton .button-icon,
    body[data-shell-view="chat"] #chatMoreButton .button-icon {
        color: #fff !important;
        font-size: 20px !important;
        filter: brightness(0) invert(1) !important;
        opacity: 1 !important;
    }

    body[data-shell-view="chat"] #voiceCallButton .button-label,
    body[data-shell-view="chat"] #videoCallButton .button-label,
    body[data-shell-view="chat"] #groupDetailsButton,
    body[data-shell-view="chat"] #deleteChatButton,
    body[data-shell-view="chat"] #searchChatButton,
    body[data-shell-view="chat"] .call-capability-note,
    body[data-shell-view="chat"] .chat-search-bar.hidden,
    body[data-shell-view="chat"] .call-banner.hidden {
        display: none !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
        z-index: 1100 !important;
        width: auto !important;
        margin: 0 !important;
        transform: none !important;
        padding: 12px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(190, 202, 209, 0.92) !important;
        box-shadow: 0 16px 38px rgba(17, 27, 33, 0.24) !important;
        color: #111b21 !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner .call-banner-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner .secondary-button {
        min-height: 40px !important;
        border-radius: 999px !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner .call-response-button {
        min-width: 132px !important;
        min-height: 54px !important;
        padding: 10px 16px !important;
        border: 0 !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        box-shadow: 0 10px 24px rgba(17, 27, 33, 0.14) !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner .call-response-accept {
        background: #159653 !important;
    }

    body.call-ui-tray:not(.mobile-video-call-active) #callBanner .call-response-decline {
        background: #c0392b !important;
    }

    body.mobile-video-call-active {
        overflow: hidden !important;
    }

    body.mobile-video-call-active #videoStage {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1200 !important;
        display: block !important;
        min-height: var(--app-height) !important;
        height: var(--app-height) !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: #05080a !important;
        overflow: hidden !important;
    }

    body.mobile-video-call-active #videoStage.hidden {
        display: none !important;
    }

    body.mobile-video-call-active #remoteVideo {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        background: #05080a !important;
    }

    body.mobile-video-call-active #localVideo {
        position: absolute !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: calc(116px + env(safe-area-inset-bottom)) !important;
        z-index: 1203 !important;
        display: block !important;
        width: min(38vw, 150px) !important;
        height: min(26vw, 104px) !important;
        min-width: 118px !important;
        min-height: 82px !important;
        border-radius: 18px !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42) !important;
        object-fit: cover !important;
        background: #111b21 !important;
        touch-action: none !important;
        cursor: grab !important;
    }

    body.mobile-video-call-active .mobile-call-topbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1204 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        align-items: center !important;
        gap: 10px !important;
        padding: calc(12px + env(safe-area-inset-top)) 12px 12px !important;
        color: #fff !important;
        background: linear-gradient(180deg, rgba(5, 8, 10, 0.84), rgba(5, 8, 10, 0)) !important;
        pointer-events: none !important;
    }

    body.mobile-video-call-active .mobile-call-identity,
    body.mobile-video-call-active .mobile-call-timer,
    body.mobile-video-call-active .mobile-call-chat-button {
        pointer-events: auto !important;
    }

    body.mobile-video-call-active .mobile-call-title {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 19px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
    }

    body.mobile-video-call-active .mobile-call-status {
        margin-top: 3px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        color: rgba(255, 255, 255, 0.78) !important;
    }

    body.mobile-video-call-active .mobile-call-timer,
    body.mobile-video-call-active .mobile-call-chat-button {
        min-height: 36px !important;
        border-radius: 999px !important;
        background: rgba(17, 27, 33, 0.72) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    body.mobile-video-call-active .mobile-call-timer {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 11px !important;
    }

    body.mobile-video-call-active .mobile-call-chat-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 13px !important;
    }

    body.mobile-video-call-active #callBanner {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1205 !important;
        display: block !important;
        margin: 0 !important;
        padding: 12px 10px calc(14px + env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(0deg, rgba(5, 8, 10, 0.92), rgba(5, 8, 10, 0)) !important;
        box-shadow: none !important;
    }

    body.mobile-video-call-active #callBanner.hidden {
        display: none !important;
    }

    body.mobile-video-call-active #callBanner .call-banner-main {
        display: none !important;
    }

    body.mobile-video-call-active #callBanner .call-banner-actions {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        padding: 0 2px !important;
        scrollbar-width: none !important;
    }

    body.mobile-video-call-active #callBanner .call-banner-actions::-webkit-scrollbar {
        display: none !important;
    }

    body.mobile-video-call-active #callBanner .secondary-button,
    body.mobile-video-call-active #callBanner .danger-button {
        flex: 0 0 auto !important;
        min-width: 70px !important;
        height: 46px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        background: rgba(31, 44, 52, 0.92) !important;
        color: #fff !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24) !important;
        font-size: 13px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
    }

    body.mobile-video-call-active #callBanner .danger-button {
        min-width: 86px !important;
        background: #d93025 !important;
        border-color: #d93025 !important;
    }

    body.mobile-video-call-active #groupVideoGrid {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1201 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        min-height: 100% !important;
        padding: calc(76px + env(safe-area-inset-top)) 10px calc(106px + env(safe-area-inset-bottom)) !important;
        background: #05080a !important;
    }

    body.mobile-video-call-active #groupVideoGrid.hidden {
        display: none !important;
    }

    body.mobile-video-call-active .group-video-tile {
        min-height: 0 !important;
        border-radius: 18px !important;
    }

    body.mobile-video-call-active .group-video-tile video {
        min-height: 0 !important;
        height: 100% !important;
    }

    body.mobile-video-call-minimized {
        overflow: auto !important;
    }

    body.mobile-video-call-minimized #callBanner {
        display: none !important;
    }

    body.mobile-video-call-minimized .mobile-call-restore-button {
        position: fixed !important;
        right: 12px !important;
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        z-index: 1180 !important;
        display: grid !important;
        grid-template-columns: 58px auto !important;
        align-items: center !important;
        justify-content: start !important;
        gap: 10px !important;
        min-height: 54px !important;
        max-width: min(320px, calc(100vw - 24px)) !important;
        padding: 6px 16px 6px 6px !important;
        border: 0 !important;
        border-radius: 18px !important;
        background: #075e45 !important;
        color: #fff !important;
        box-shadow: 0 10px 28px rgba(7, 94, 69, 0.32) !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        overflow: hidden !important;
        touch-action: none !important;
        user-select: none !important;
    }

    body.mobile-video-call-minimized .mobile-call-restore-button.hidden {
        display: none !important;
    }

    body.mobile-video-call-minimized .mobile-call-restore-preview {
        grid-row: 1 / span 2 !important;
        width: 58px !important;
        height: 42px !important;
        border-radius: 13px !important;
        background: #030608 !important;
        object-fit: cover !important;
    }

    body.mobile-video-call-minimized .mobile-call-live-dot {
        position: absolute !important;
        left: 54px !important;
        top: 9px !important;
        width: 9px !important;
        height: 9px !important;
        border-radius: 50% !important;
        background: #33d17a !important;
        box-shadow: 0 0 0 2px #075e45 !important;
    }

    body.mobile-video-call-minimized .mobile-call-restore-button span:last-child {
        grid-column: 2 !important;
        white-space: nowrap !important;
    }

    body.mobile-video-call-active .mobile-call-topbar {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        align-items: start !important;
        padding: calc(16px + env(safe-area-inset-top)) 14px 90px !important;
        background: linear-gradient(180deg, rgba(5, 8, 10, 0.72), rgba(5, 8, 10, 0)) !important;
    }

    body.mobile-video-call-active .mobile-call-chat-button {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(17, 27, 33, 0.62) !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }

    body.mobile-video-call-active .mobile-call-identity {
        grid-column: 2 !important;
        text-align: left !important;
    }

    body.mobile-video-call-active .mobile-call-timer {
        grid-column: 3 !important;
    }

    body.mobile-video-call-active #callBanner {
        left: 18px !important;
        right: 18px !important;
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
        padding: 14px !important;
        border-radius: 18px !important;
        background: rgba(5, 12, 15, 0.88) !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34) !important;
    }

    body.mobile-video-call-active #callBanner .call-banner-actions {
        gap: 10px !important;
    }

    body.mobile-video-call-active #callBanner .secondary-button,
    body.mobile-video-call-active #callBanner .danger-button {
        flex: 1 0 58px !important;
        max-width: 78px !important;
        height: 58px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    body[data-shell-view="chat"] #messages {
        min-height: 0 !important;
        padding: 4px 8px 0 !important;
        overflow-y: auto !important;
        gap: 6px !important;
    }

    body[data-shell-view="chat"] #messages li {
        margin-top: 0 !important;
    }

    body[data-shell-view="chat"] .message-bubble {
        padding: 8px 11px 7px !important;
        line-height: 1.42 !important;
    }

    body[data-shell-view="chat"] .message-time {
        margin-top: 2px !important;
    }

    body[data-shell-view="chat"] #attachmentPanel:not(.hidden) {
        max-height: 32vh !important;
        overflow-y: auto !important;
        margin: 0 8px 4px !important;
    }

    body[data-shell-view="chat"] .fm-mobile-composer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px !important;
        grid-auto-rows: auto !important;
        align-items: end !important;
        width: calc(100% - 12px) !important;
        margin: 0 6px 0 !important;
        padding: 5px !important;
        gap: 7px !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 8px 20px rgba(8, 30, 24, 0.12) !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 18 !important;
    }

    body[data-shell-view="chat"] .fm-mobile-composer .reply-composer,
    body[data-shell-view="chat"] .fm-mobile-composer .composer-typing-indicator {
        grid-column: 1 / -1 !important;
        margin: 0 !important;
    }

    body[data-shell-view="chat"] .fm-input-pill {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: end !important;
        min-width: 0 !important;
        width: 100% !important;
        min-height: 42px !important;
        max-height: 122px !important;
        padding: 5px 5px 5px 16px !important;
        border-radius: 18px !important;
        background: #eef2f4 !important;
        box-shadow: inset 0 0 0 1px rgba(15, 75, 60, 0.08) !important;
        overflow: hidden !important;
    }

    body[data-shell-view="chat"] .fm-message-textarea {
        box-sizing: border-box !important;
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 30px !important;
        max-height: 104px !important;
        padding: 4px 12px 4px 10px !important;
        margin: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #1f2d2a !important;
        font: inherit !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        text-align: left !important;
        direction: ltr !important;
        writing-mode: horizontal-tb !important;
        unicode-bidi: plaintext !important;
        white-space: pre-wrap !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        resize: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    body[data-shell-view="chat"] .fm-message-textarea::placeholder {
        color: #72817d !important;
        opacity: 1 !important;
        text-align: left !important;
    }

    body[data-shell-view="chat"] .fm-attach-button {
        display: inline-flex !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: end !important;
        justify-self: end !important;
        position: static !important;
        transform: none !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        border: 1px solid rgba(16, 44, 36, 0.09) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.68) !important;
        color: #5b6965 !important;
        box-shadow: none !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }

    body[data-shell-view="chat"] .fm-action-button {
        display: inline-flex !important;
        grid-column: 2 !important;
        grid-row: auto !important;
        align-self: end !important;
        justify-self: end !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #179b57 !important;
        color: #07150f !important;
        box-shadow: 0 10px 18px rgba(23, 155, 87, 0.26) !important;
        font-size: 19px !important;
        line-height: 1 !important;
    }

    body[data-shell-view="chat"] .fm-action-button.voice-note-send-mode {
        color: #fff !important;
        font-size: 20px !important;
    }

    body[data-shell-view="chat"] #sendButton {
        display: none !important;
    }

    body[data-shell-view="chat"] .composer-note,
    body[data-shell-view="chat"] .voice-recorder-status {
        margin: 0 12px 1px !important;
        min-height: 0 !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    body[data-keyboard-open="true"] .composer-note,
    body[data-keyboard-open="true"] .voice-recorder-status {
        display: none !important;
    }

}

@media (max-width: 860px) {
    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;
        grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header {
        min-height: 64px !important;
        max-height: none !important;
        padding: 8px 12px 8px 8px !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-top {
        min-height: 48px !important;
        max-height: none !important;
        grid-template-columns: minmax(0, 1fr) 126px !important;
        overflow: visible !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-identity {
        grid-template-columns: 32px 42px minmax(0, 1fr) !important;
        min-height: 48px !important;
        max-height: none !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: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 26px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #activeChatAvatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .call-actions {
        grid-auto-columns: 40px !important;
        min-width: 126px !important;
        max-width: 126px !important;
        gap: 3px !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: 40px !important;
        height: 40px !important;
        min-width: 40px !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;
    }

    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 8px !important;
        z-index: 18 !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;
    }
}

@media (max-width: 860px) {
    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;
        grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
        overflow: hidden !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header {
        min-height: 64px !important;
        max-height: none !important;
        padding: 8px 12px 8px 8px !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-top {
        min-height: 48px !important;
        max-height: none !important;
        grid-template-columns: minmax(0, 1fr) 126px !important;
        overflow: visible !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .chat-header-identity {
        grid-template-columns: 32px 42px minmax(0, 1fr) !important;
        min-height: 48px !important;
        max-height: none !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: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 26px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] #activeChatAvatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    html.native-android-shell body[data-shell-view="chat"] .call-actions {
        grid-auto-columns: 40px !important;
        min-width: 126px !important;
        max-width: 126px !important;
        gap: 3px !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: 40px !important;
        height: 40px !important;
        min-width: 40px !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;
    }

    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 8px !important;
        z-index: 18 !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;
    }
}

@media (max-width: 860px) {
    #chatPane .chat-header-identity {
        display: grid !important;
        grid-template-columns: 28px 40px minmax(0, 1fr) !important;
        align-items: center !important;
        max-height: 42px !important;
        overflow: hidden !important;
    }

    #chatBackButton,
    #chatBackButton.chat-back-button,
    #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;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 24px !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    #messageForm.input-area.fm-mobile-composer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px !important;
        align-items: end !important;
        width: calc(100% - 12px) !important;
        margin: 0 6px 0 !important;
        padding: 5px !important;
        gap: 7px !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 8px 20px rgba(8, 30, 24, 0.12) !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 18 !important;
    }

    #messageForm .composer-input-shell.fm-input-pill {
        display: grid !important;
        grid-column: 1 !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: end !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        max-height: 122px !important;
        padding: 5px 5px 5px 16px !important;
        border-radius: 18px !important;
        background: #eef2f4 !important;
        box-shadow: inset 0 0 0 1px rgba(15, 75, 60, 0.08) !important;
        overflow: hidden !important;
    }

    #messageForm #messageInput.fm-message-textarea,
    #messageForm .composer-input-shell #messageInput.fm-message-textarea,
    textarea#messageInput.fm-message-textarea {
        box-sizing: border-box !important;
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        position: static !important;
        order: 1 !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        inline-size: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 30px !important;
        height: 30px;
        max-height: 104px !important;
        padding: 4px 12px 4px 10px !important;
        margin: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #1f2d2a !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        text-align: left !important;
        direction: ltr !important;
        writing-mode: horizontal-tb !important;
        unicode-bidi: plaintext !important;
        white-space: pre-wrap !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        resize: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    #messageForm #attachButton.fm-attach-button,
    #messageForm .composer-input-shell #attachButton.fm-attach-button,
    button#attachButton.fm-attach-button {
        display: inline-flex !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: 2 !important;
        align-self: end !important;
        justify-self: end !important;
        position: static !important;
        transform: none !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        border: 1px solid rgba(16, 44, 36, 0.09) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.68) !important;
        color: #5b6965 !important;
        box-shadow: none !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }

    #messageForm #voiceNoteButton.fm-action-button {
        display: inline-flex !important;
        grid-column: 2 !important;
        align-self: end !important;
        justify-self: end !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #179b57 !important;
        color: #07150f !important;
        box-shadow: 0 10px 18px rgba(23, 155, 87, 0.26) !important;
        font-size: 19px !important;
        line-height: 1 !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
    }

    #messageForm #voiceNoteButton.fm-action-button.voice-note-send-mode {
        color: #fff !important;
        font-size: 20px !important;
    }

}
