/* M00–M09 mobile messages and calls. Desktop layouts and navigation gestures stay owned by their existing modules. */
.fm2-backdrop,.fm2-sheet-handle,.fm2-minimize,.fm2-resume{display:none}
@media(max-width:780px){


 .fm2-ready{--fm2-bg:#fff;--fm2-ink:#1f2557;--fm2-muted:#68728b;--fm2-soft:#f1efff;--fm2-line:#e8e8f3;--fm2-accent:#6447f5}
 html#night-mode .fm2-ready,html.falue-night-mode .fm2-ready,html[data-theme=dark] .fm2-ready,body[data-falue-ambient-theme=dark] .fm2-ready,body.dark .fm2-ready,body.night_mode .fm2-ready{--fm2-bg:#14151d;--fm2-ink:#f2f1fa;--fm2-muted:#b2b3c6;--fm2-soft:#272337;--fm2-line:#343140;--fm2-accent:#ad91ff}
 .fm2-ready .fmc-header{min-height:56px;padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:4px;background:var(--fm2-bg);border-color:var(--fm2-line)}
 .fm2-ready .fmc-avatar{width:38px;height:38px}.fm2-ready .fmc-name{font-size:15px}.fm2-ready .fmc-actions button{border-radius:50%;background:var(--fm2-soft);margin:0 1px;color:var(--fm2-accent)}
 .fm2-ready.fmc-inbox{top:calc(var(--fmc-top,0px) + 84px + env(safe-area-inset-top))!important;height:calc(var(--fmc-height,100dvh) - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
 body.falue-footer-minimized .fm2-ready.fmc-inbox{height:calc(var(--fmc-height,100dvh) - 126px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
 .fm2-ready.fmc-inbox>.wow_content{border:0!important;box-shadow:none!important;background:var(--fm2-bg)!important;border-radius:20px!important;margin:0 10px!important}
 .fm2-ready .falue-msg-inbox-header{padding:14px 16px 8px!important;min-height:56px!important;flex-basis:auto!important}.fm2-ready .falue-msg-inbox-title{font-size:23px!important}
 .fm2-ready .mobileopenlist{min-height:74px!important;border-radius:14px!important}.fm2-ready .falue-msg-inbox input[type=search]{font-size:16px!important;min-height:44px}
 .fm2-ready .messages-wrapper.falue-msg-bubble{border-radius:20px!important;padding:10px 13px!important;max-width:86%!important;box-shadow:none!important;overflow-wrap:anywhere}
 .fm2-ready .messages-wrapper.incoming{background:var(--fm2-soft)!important;color:var(--fm2-ink)!important}
 .fm2-ready .messages-wrapper.outgoing{background:#6944f5!important;color:#fff!important}
 .fm2-ready .messages-wrapper .message-text{font-size:15px!important;line-height:1.5!important;color:inherit!important}
 .fm2-ready .message-media img,.fm2-ready .message-media video{max-width:100%!important;border-radius:14px!important}
 .fm2-ready .tag_msg_write{background:var(--fm2-bg)!important}.fm2-ready .tag_msg_write .tag_write_msg{border-radius:24px!important;background:var(--fm2-soft)!important}
 .fm2-ready .tag_msg_write .send-button{border-radius:50%!important}.fm2-ready .tag_msg_write textarea{color:var(--fm2-ink)!important}
 /* One call surface fills the available viewport, including previews. */
 body.fm2-call-open{overflow:hidden!important;padding:0!important}
 body.fm2-call-open #tag_header_layout,body.fm2-call-open .falue-mobile-profile-topbar,body.fm2-call-open [data-falue-concept-dock],body.fm2-call-open .falue-footer-restore-control,body.fm2-call-open .tag_navbar_top,body.fm2-call-open .tag_navbar_top_right{display:none!important}
 body.fm2-call-open #contnet{padding:0!important;margin:0!important}
 .tag_messages.fm2-ready.fm2-call:not(.fmc-inbox){position:fixed!important;inset:auto 0!important;top:var(--fm2-top,0px)!important;height:var(--fm2-height,100dvh)!important;min-height:0!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;z-index:1060;overflow:hidden!important;background:var(--fm2-bg)!important}
 .fm2-ready.fm2-call>.wow_content{height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;box-shadow:none!important}
 .tag_messages.fm2-ready.fm2-call .falue-msg-workspace{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important;gap:0!important;padding:0!important}
 .fm2-ready.fm2-call:not(.fmc-inbox) .fmc-header,.fm2-ready.fm2-call .falue-call-inbox{display:none!important}
 .tag_messages.fm2-ready.fm2-call:not(.fmc-inbox) .fg-stage,.tag_messages.fm2-ready .falue-call-stage{display:flex!important;width:100%!important;flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom))!important;box-shadow:none!important;overflow:hidden!important}
 .fm2-ready .fg-room-header,.fm2-ready .falue-call-heading{min-height:48px!important;padding:0 0 8px!important;gap:8px!important;flex:none!important;margin:0!important}
 .fm2-ready .fg-room-name,.fm2-ready .falue-call-title h1{font-size:16px!important;color:inherit!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .fm2-ready .fg-room-summary{font-size:11px!important}.fm2-ready .fg-call-badge,.fm2-ready .falue-call-badge,.fm2-ready .falue-call-avatar-stack{display:none!important}
 .fm2-minimize{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#ffffff20;color:inherit;cursor:pointer}
 .fm2-minimize[hidden]{display:none!important}.fm2-minimize svg{width:22px;height:22px}
 .fm2-ready .fg-stage[data-type=video]{background:#151b27!important;color:#fff!important}.fm2-ready .fg-stage[data-type=video] .fg-room-summary{color:#c0c5d2}
 .fm2-ready .fg-stage[data-type=video] .fg-view-switch{background:#ffffff16;margin-bottom:8px}.fm2-ready .fg-view{min-height:40px;padding:6px 13px;color:#d9d7ee}.fm2-ready .fg-view[aria-pressed=true]{background:#6944f5;color:#fff}
 .fm2-ready .fg-media{min-height:0!important}.fm2-ready .fg-stage[data-type=video][data-view=speaker] .fg-media{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr) 80px;overflow-x:auto;overflow-y:hidden;gap:6px}
 .fm2-ready .fg-stage[data-type=video][data-view=grid] .fg-media{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(140px,calc((var(--fm2-height,100dvh) - 245px)/3));overflow-y:auto;gap:8px}
 .fm2-ready .fg-stage[data-type=video][data-view=grid][data-count-small=true] .fg-media{grid-auto-rows:minmax(130px,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}
 .fm2-ready .fg-tile{border-radius:16px}.fm2-ready .fg-tile-label{font-size:11px!important}.fm2-ready .fg-tile-label svg{display:block;width:14px;height:14px}.fm2-ready .fg-pin{width:44px;height:44px;right:4px;top:4px}
 .fm2-ready .fg-controls,.fm2-ready .falue-call-control-bar{min-height:72px;flex:none;margin-top:8px!important;padding:8px 2px!important;border-radius:24px!important;gap:2px!important;width:100%!important;max-width:none!important}
 .fm2-ready .fg-control,.fm2-ready .falue-call-control-bar button{min-width:44px!important;min-height:60px!important;flex:1;font-size:10px!important}
 .fm2-ready .fg-control>svg,.fm2-ready .falue-call-control-bar button>span{width:48px!important;height:48px!important;border-radius:50%!important}
 .fm2-ready .fg-control>svg{padding:13px!important}.fm2-ready .falue-call-control-bar button small{font-size:10px!important}
 .fm2-ready .fg-controls [data-fg-control=share],.fm2-ready .falue-call-control-bar #falue-call-share{display:none!important}
 .fm2-ready .fg-stage[data-type=video] .fg-controls [data-fg-control=info]{display:none!important}
 .fm2-ready .fg-stage[data-type=audio]{background:radial-gradient(ellipse at 50% 38%,var(--fm2-soft),var(--fm2-bg) 75%)!important;color:var(--fm2-ink)!important}
 .fm2-ready .fg-stage[data-type=audio] .fg-room-summary,.fm2-ready .fg-stage[data-type=audio] .fg-feedback{color:var(--fm2-muted)}
 .fm2-ready .fg-stage[data-type=audio] .fg-media{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(150px,1fr);padding:20px 6px;gap:16px 8px;overflow:auto}
 .fm2-ready .fg-stage[data-type=audio] .fg-tile-avatar{width:clamp(64px,20vw,88px)!important;height:clamp(64px,20vw,88px)!important;box-shadow:0 0 0 4px var(--fm2-soft)}
 .fm2-ready .fg-stage[data-type=audio] .fg-tile-label{color:var(--fm2-ink)!important;font-size:12px!important;white-space:normal;text-align:center}
 .fm2-ready .fg-stage[data-type=audio] .is-speaking .fg-tile-avatar{box-shadow:0 0 0 3px #9066ff,0 0 0 8px #9066ff20,0 0 24px #9066ff50}
 .fm2-ready .fg-stage[data-type=audio] .fg-controls{background:var(--fm2-bg);border:1px solid var(--fm2-line);color:var(--fm2-ink)}
 .fm2-ready .fg-stage[data-type=audio] .fg-control>svg{background:var(--fm2-soft)}.fm2-ready .fg-stage[data-type=audio] .fg-end>svg{background:#ff354f;color:#fff}
 /* Direct video: full-size remote surface with preserved self-preview. */
 .fm2-ready.falue-call-page:not(.falue-audio-page) .falue-call-stage{position:relative;background:#171c27!important;color:#fff;gap:0!important;padding:0!important}
 .fm2-ready.falue-call-page:not(.falue-audio-page) .falue-call-heading{position:absolute;z-index:5;top:0;left:0;right:0;padding:calc(8px + env(safe-area-inset-top)) 12px 28px!important;background:linear-gradient(#10121cbb,transparent);color:#fff}
 .fm2-ready.falue-call-page:not(.falue-audio-page) #falue-call-duration,.fm2-ready.falue-call-page:not(.falue-audio-page) .falue-call-title p{color:#e3e3ed}
 .fm2-ready .falue-call-video-grid{flex:1!important;border:0!important;border-radius:0!important;min-height:0!important;isolation:auto}
 .fm2-ready .falue-call-video-grid .falue-call-tile{border-radius:0!important}.fm2-ready .falue-call-video-grid[data-focus=remote] .falue-call-local-tile,.fm2-ready .falue-call-video-grid[data-focus=local] .falue-call-remote-tile{width:104px!important;height:146px!important;top:auto!important;left:auto!important;right:12px!important;bottom:calc(106px + env(safe-area-inset-bottom))!important;border-radius:14px!important;border:1px solid #ffffffb0!important}
 .fm2-ready .falue-call-video,.fm2-ready .falue-call-video video{object-fit:cover!important}
 .fm2-ready.falue-call-page:not(.falue-audio-page) .falue-call-control-bar{position:absolute;z-index:5;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto!important;background:#181b24dd;backdrop-filter:blur(14px)}
 .fm2-ready.falue-call-page:not(.falue-audio-page) #falue-call-control-feedback{position:absolute;z-index:6;bottom:110px;left:16px;right:128px;color:#fff;background:#161923bf;border-radius:10px;padding:6px}
 .fm2-ready .falue-call-focus-target{min-width:44px;min-height:44px}
 .fm2-ready.falue-audio-page .falue-audio-stage{background:radial-gradient(ellipse at 50% 40%,#dfe4ff,var(--fm2-bg) 78%)!important;color:var(--fm2-ink)!important;gap:8px!important}
 .fm2-ready.falue-audio-page .falue-audio-center{min-height:0;gap:16px;padding:16px 0;overflow:auto}
 .fm2-ready.falue-audio-page .falue-audio-portrait-row{min-height:200px;gap:12px}.fm2-ready.falue-audio-page .falue-audio-halo{width:144px;height:144px}.fm2-ready.falue-audio-page .falue-audio-halo .falue-call-avatar{width:120px;height:120px}
 .fm2-ready.falue-audio-page .falue-audio-center h2{font-size:20px;color:var(--fm2-ink)}.fm2-ready.falue-audio-page #falue-call-status,.fm2-ready.falue-audio-page #falue-audio-mic-state,.fm2-ready.falue-audio-page #falue-call-duration{color:var(--fm2-muted)}
 .fm2-ready.falue-audio-page .falue-call-control-bar{background:var(--fm2-bg);border-color:var(--fm2-line)}.fm2-ready.falue-audio-page .falue-call-control-bar button{color:var(--fm2-ink)}.fm2-ready.falue-audio-page .falue-call-control-bar button>span{background:var(--fm2-soft)}.fm2-ready.falue-audio-page .falue-call-end>span{background:#ff354f;color:#fff}
 body[data-falue-ambient-theme=dark] .fm2-ready.falue-audio-page .falue-audio-stage,html#night-mode .fm2-ready.falue-audio-page .falue-audio-stage{background:radial-gradient(ellipse at 50% 40%,#2d2751,var(--fm2-bg) 78%)!important}
 /* All conversation context uses the same bottom sheet. */
 .fm2-ready .fm2-sheet-target{display:none!important}
 .tag_messages.fm2-ready.fm2-sheet-open .fm2-sheet-target.fm2-sheet-visible{display:flex!important;flex-direction:column!important;position:absolute!important;inset:auto 0 0!important;top:auto!important;width:100%!important;height:min(72%,680px)!important;min-height:0!important;max-height:72%!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;margin:0!important;border:1px solid var(--fm2-line)!important;border-bottom:0!important;border-radius:20px 20px 0 0!important;box-shadow:0 -8px 40px #10122425!important;z-index:31!important;background:var(--fm2-bg)!important;color:var(--fm2-ink)!important;transform:none!important;overflow:hidden!important;animation:fm2-sheet-in .18s ease-out}
 .fm2-ready .fm2-sheet-handle{display:flex;align-items:center;justify-content:center;flex:none;align-self:center;width:64px;height:28px;margin:-5px 0 4px;border:0;background:transparent;border-radius:10px;touch-action:none;cursor:grab}
 .fm2-sheet-handle::before{content:'';width:36px;height:4px;border-radius:4px;background:#a4a8bc}
 .fm2-ready.fm2-sheet-open .fm2-backdrop{display:block;position:absolute;inset:0;background:#0c112247;border:0;border-radius:0;z-index:30;width:100%;height:100%;padding:0}
 .fm2-ready .fm2-sheet-target .fmc-context-close{display:none!important}.fm2-ready .fm2-sheet-target>header,.fm2-ready .falue-call-context-heading{flex:none;margin:0!important}
 .fm2-ready .fm2-sheet-target h2{color:var(--fm2-ink)!important;font-size:17px!important;margin-bottom:12px!important}
 .fm2-ready .fg-tabs,.fm2-ready .falue-call-context-tabs{background:var(--fm2-soft);margin-bottom:10px;min-height:44px;flex:none}
 .fm2-ready .fg-tabs button,.fm2-ready .falue-call-context-tabs button{min-height:36px;font-size:12px;color:var(--fm2-muted)}.fm2-ready .fg-tabs button[aria-selected=true],.fm2-ready .falue-call-context-tabs button[aria-selected=true]{background:#6944f5;color:#fff}
 .fm2-ready .fm2-sheet-target #falue-msg-details-content{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
 .fm2-ready .fm2-sheet-target #falue-call-chat-input,.fm2-ready .fm2-sheet-target textarea{font-size:16px!important;min-height:44px!important;color:var(--fm2-ink)!important}
 .fm2-ready .fm2-sheet-target #falue-call-chat-form{min-height:52px;background:var(--fm2-soft);border-color:var(--fm2-line)}.fm2-ready .fm2-sheet-target #falue-call-chat-form button{width:44px;height:44px}
 .fm2-ready .falue-call-panel{color:var(--fm2-ink)}.fm2-ready .falue-call-person h3,.fm2-ready .falue-call-member strong{color:var(--fm2-ink)}
 .fm2-ready .fm2-sheet-target [hidden]{display:none!important}
 .fm2-ready.fm2-minimized .falue-call-stage{display:none!important}.fm2-ready.fm2-minimized .falue-call-inbox{display:flex!important;flex:1!important;min-height:0!important;width:100%!important}
 .fm2-ready.fm2-minimized .fm2-resume{display:block;flex:none;min-height:52px;border:0;border-radius:16px;background:#6944f5;color:white;margin:10px;padding:12px;font:inherit}
 @media(max-width:359px){.fm2-ready .fg-control>svg,.fm2-ready .falue-call-control-bar button>span{width:44px!important;height:44px!important}.fm2-ready .fmc-avatar{display:none}.fm2-ready .fg-controls,.fm2-ready .falue-call-control-bar{gap:0!important}}
 @media(prefers-reduced-motion:reduce){.fm2-ready .fm2-sheet-visible{animation:none!important}}
}
@keyframes fm2-sheet-in{from{opacity:.5;translate:0 18px}to{opacity:1;translate:0 0}}
