/* Mobile-only layer. Desktop dimensions, themes and behavior remain unchanged. */
#wp-mobile-nav,#wp-mobile-header,#wp-mobile-voice,.wp-mobile-settings-back,.wp-mobile-person,.wp-mobile-pip,.wp-mobile-full-exit{display:none}
html.wp-mobile{--wp-safe-top:env(safe-area-inset-top,0px);--wp-safe-bottom:env(safe-area-inset-bottom,0px);--wp-nav-height:calc(58px + var(--wp-safe-bottom));height:100%;overflow:hidden;overscroll-behavior:none}
html.wp-mobile body{height:var(--wp-mobile-height,100dvh);width:100%;overflow:hidden;overscroll-behavior:none;margin:0}
.wp-mobile #app:not([hidden]){display:flex!important;flex-direction:column;position:relative;height:100%;min-height:0;width:100%;padding-top:var(--wp-safe-top);overflow:hidden}
.wp-mobile #app .titlebar{display:none!important}
.wp-mobile .workspace{display:flex!important;flex:1 1 auto;min-height:0;width:100%;padding:0!important;overflow:hidden;gap:0!important}
.wp-mobile .navigation-column{width:100%!important;max-width:none!important;min-width:0!important;flex:1!important;min-height:0;display:flex;flex-direction:column}
.wp-mobile .navigation-upper{flex:1;min-height:0;display:flex;overflow:hidden}
.wp-mobile .servers{width:60px!important;flex:0 0 60px!important;overflow-y:auto;overscroll-behavior:contain;padding:10px 5px!important;gap:8px}
.wp-mobile .server-btn{width:44px!important;height:44px!important;min-height:44px;flex:none;margin:0 auto!important}
.wp-mobile .sidebar{flex:1!important;width:auto!important;min-width:0!important;max-width:none!important;display:flex;flex-direction:column;overflow:hidden}
.wp-mobile .sidebar-head{min-height:54px!important;height:auto!important;padding:8px 12px!important;flex:none}
.wp-mobile .channels{flex:1;min-height:0;overflow-y:auto;padding:10px 8px!important;overscroll-behavior:contain}
.wp-mobile .channel{min-height:44px!important;touch-action:pan-y;gap:9px}.wp-mobile .voice-person{min-height:36px;touch-action:pan-y}.wp-mobile .section-label{margin-top:14px}
.wp-mobile .account-dock{display:none!important}
.wp-mobile #app[data-mobile-page="main"] .navigation-column,.wp-mobile #app[data-mobile-page="browse"] .main{display:none!important}
.wp-mobile #app .main{flex:1 1 100%!important;width:100%!important;min-width:0!important;min-height:0!important;margin:0!important;border-radius:0!important;display:flex;flex-direction:column;overflow:hidden}
.wp-mobile #wp-mobile-header{display:flex;flex:none;align-items:center;min-height:50px;border-bottom:1px solid var(--line);gap:8px;padding:0 8px;background:var(--main)}
.wp-mobile #wp-mobile-header strong{flex:1;font-size:17px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wp-mobile #wp-mobile-header button{display:grid;place-items:center;width:44px;height:44px;flex:none;color:var(--muted)}.wp-mobile #wp-mobile-header button svg{width:23px;height:23px}.wp-mobile #wp-mobile-header button span{display:none}.wp-mobile #wp-mobile-header button[data-action="mobile-back"] svg{transform:rotate(90deg)}
.wp-mobile #chat-header{display:none!important}.wp-mobile .main-body{flex:1;min-height:0;position:relative;display:flex!important;overflow:hidden}.wp-mobile .chat-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.wp-mobile #content{min-width:0;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding-inline:8px!important}.wp-mobile #members{display:none!important}.wp-mobile #app[data-mobile-members="true"] #members:not([hidden]){display:block!important;position:absolute;inset:0 0 0 auto;width:min(84%,310px)!important;max-width:100%;z-index:20;box-shadow:-10px 0 25px #0008;overflow:auto}
.wp-mobile #wp-mobile-nav{display:flex;flex:0 0 var(--wp-nav-height);height:var(--wp-nav-height);padding:4px max(8px,env(safe-area-inset-right)) var(--wp-safe-bottom) max(8px,env(safe-area-inset-left));border-top:1px solid var(--line);background:var(--main);align-items:stretch;justify-content:space-around;z-index:22}
.wp-mobile #wp-mobile-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:11px;min-width:0}.wp-mobile #wp-mobile-nav button svg{width:23px;height:23px}.wp-mobile #wp-mobile-nav button.selected{color:var(--brand)}
.wp-mobile #app[data-mobile-call="true"] #wp-mobile-voice{display:flex;flex:none;align-items:center;gap:4px;background:var(--layer);border-top:1px solid var(--line);padding:4px 8px;min-height:50px}.wp-mobile #wp-mobile-voice button{width:42px;height:42px;flex:none;display:grid;place-items:center;color:var(--text);border-radius:8px}.wp-mobile #wp-mobile-voice button svg{width:21px;height:21px}.wp-mobile #wp-mobile-voice .wp-voice-label{flex:1;min-width:0;width:auto;display:flex;align-items:center;gap:8px;text-align:left;color:var(--green)}.wp-mobile #wp-mobile-voice .wp-voice-label span{min-width:0}.wp-mobile #wp-mobile-voice .wp-voice-label small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-mobile #wp-mobile-voice .wp-hangup{background:#b63241;color:#fff}
.wp-mobile #message-form{flex:none;margin:4px 8px 8px!important;width:auto!important;min-height:48px;max-width:100%;padding:3px 7px!important;gap:4px}.wp-mobile #message{font-size:16px!important;min-width:0;max-height:30vh}.wp-mobile #message-form .icon-button{min-width:38px;min-height:38px}.wp-mobile .wp-typing{font-size:11px;flex:none}.wp-mobile .message{max-width:100%;padding-left:4px!important;padding-right:4px!important}.wp-mobile .message-body{min-width:0;max-width:100%}.wp-mobile .message-text,.wp-mobile .chat-link{overflow-wrap:anywhere;word-break:break-word}.wp-mobile .link-embed,.wp-mobile .media-card,.wp-mobile .chat-video,.wp-mobile .embed-video,.wp-mobile .media-attachment,.wp-mobile .chat-image{max-width:100%!important;min-width:0!important}.wp-mobile .chat-video,.wp-mobile .embed-video{height:auto!important;object-fit:contain}.wp-mobile .wp-mention-popup{max-height:32vh}.wp-mobile .pending-attachments{max-height:24vh;overflow:auto}
.wp-mobile .wp-activity{width:auto!important;max-width:none!important;min-width:0!important;border:0!important;flex:none;padding:10px!important}.wp-mobile .main-body:has(.wp-activity:not([hidden])){flex-direction:column;overflow:auto}.wp-mobile .main-body:has(.wp-activity:not([hidden])) .chat-main{flex:none;overflow:visible}.wp-mobile .main-body:has(.wp-activity:not([hidden])) #content{overflow:visible}.wp-mobile .friend-row{min-height:56px}.wp-mobile .friend-top{padding:12px 6px!important;gap:6px}.wp-mobile .friend-top h2{font-size:17px}
.wp-mobile .call-stage.redesigned-call:not([hidden]){display:flex!important;flex:1;min-height:0;max-height:none!important;padding:8px!important;gap:7px;overflow:auto}.wp-mobile .redesigned-call .participant-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:center;gap:7px;width:100%;min-height:0;overflow:auto}.wp-mobile .redesigned-call .participant-grid.one{grid-template-columns:minmax(0,1fr)!important}.wp-mobile .redesigned-call .participant-grid .call-tile{width:100%!important;height:auto!important;min-height:112px!important;aspect-ratio:4/3;max-height:100%}.wp-mobile .redesigned-call .participant-grid .call-tile.stream-tile{aspect-ratio:16/9;grid-column:1/-1}.wp-mobile .redesigned-call .focused-area{min-height:0;flex:1;width:100%;display:flex;align-items:center;justify-content:center}.wp-mobile .redesigned-call .focused-area .call-tile{max-width:100%;max-height:100%;min-height:0!important}.wp-mobile .redesigned-call .call-tile video{object-fit:contain!important}.wp-mobile .redesigned-call .tile-profile .avatar{width:48px!important;height:48px!important;font-size:17px!important}.wp-mobile .redesigned-call .call-label{font-size:12px;max-width:80%}.wp-mobile .redesigned-call .stream-controls{opacity:1!important;visibility:visible!important;pointer-events:auto!important}.wp-mobile .redesigned-call .stream-controls button{min-height:36px;min-width:36px}.wp-mobile .redesigned-call .stream-volume-pop{display:none!important}.wp-mobile .wp-mobile-person{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#15151bdf;color:#fff;font-size:24px;z-index:5}.wp-mobile .wp-mobile-pip{display:grid;place-items:center}.wp-mobile .redesigned-call .participant-strip{display:flex;overflow-x:auto;min-height:76px;width:100%;gap:6px}.wp-mobile .redesigned-call .compact-tile{width:104px!important;min-width:104px!important;height:72px!important}.wp-mobile .strip-wrap{flex:none;width:100%;height:auto!important}.wp-mobile .call-toolbar{flex:none;height:auto!important;min-height:48px;gap:8px!important;padding:4px!important}.wp-mobile .call-toolbar button{min-width:44px;min-height:44px}.wp-mobile .call-toolbar button:disabled{opacity:.35}
.wp-mobile #call-stage.app-fullscreen{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;z-index:120!important;background:#000!important;padding:0!important;display:flex!important;align-items:center;justify-content:center}.wp-mobile #call-stage.app-fullscreen .focused-area{height:100%;width:100%;flex:1}.wp-mobile #call-stage.app-fullscreen .call-tile{max-width:100vw;max-height:100dvh}.wp-mobile .wp-mobile-full-exit{display:flex;align-items:center;gap:7px;position:absolute;top:calc(10px + var(--wp-safe-top));left:10px;z-index:130;padding:10px 12px;border-radius:8px;background:#15151bdc;color:#fff;font-size:13px}.wp-mobile .wp-mobile-full-exit svg{width:19px;height:19px}
.wp-mobile #mini-player{width:min(44vw,220px)!important;right:10px!important;bottom:calc(var(--wp-nav-height) + 60px)!important;z-index:32}.wp-mobile .mini-player-close{opacity:1!important;width:34px;height:34px}.wp-mobile .mini-player-bar{font-size:11px;padding:12px 6px 4px}.wp-mobile .mini-live{font-size:9px}
.wp-mobile #context-menu:not([hidden]),.wp-mobile #mini-profile:not([hidden]),.wp-mobile #quick-menu:not([hidden]){position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;max-height:calc(var(--wp-mobile-height,100dvh) - 48px)!important;overflow:auto;border-radius:18px 18px 0 0!important;padding-bottom:calc(12px + var(--wp-safe-bottom))!important;z-index:90;box-shadow:0 -15px 80px #000c}.wp-mobile #context-menu .context-item{min-height:44px}.wp-mobile .context-volume input{width:100%;min-height:40px}.wp-mobile #modal:not([hidden]){align-items:flex-end!important;padding:0!important}.wp-mobile #modal-inner{width:100%!important;max-width:100%!important;max-height:calc(var(--wp-mobile-height,100dvh) - var(--wp-safe-top) - 12px)!important;overflow:auto;margin:0!important;border-radius:18px 18px 0 0!important;padding-bottom:calc(18px + var(--wp-safe-bottom))!important}.wp-mobile .modal input:not([type=range]),.wp-mobile .modal textarea,.wp-mobile .modal select{font-size:16px!important}.wp-mobile .wp-mobile-alert-list button{display:flex;flex-direction:column;gap:4px;padding:12px;text-align:left;width:100%;border-bottom:1px solid var(--line)}.wp-mobile .wp-mobile-alert-list small{color:var(--muted)}
.wp-mobile #settings-page:not([hidden]){position:fixed!important;inset:0;z-index:60;width:100%;height:var(--wp-mobile-height,100dvh);display:flex!important;overflow:hidden;padding-top:var(--wp-safe-top);padding-bottom:var(--wp-safe-bottom)}.wp-mobile .settings-nav{width:100%!important;max-width:none!important;min-width:0!important;flex:1!important;overflow:auto;padding:12px!important}.wp-mobile .settings-nav-inner{width:100%!important;max-width:none!important;padding:0!important}.wp-mobile .settings-tab{min-height:45px}.wp-mobile .settings-main{display:none!important}.wp-mobile.wp-mobile-settings-detail .settings-nav{display:none!important}.wp-mobile.wp-mobile-settings-detail .settings-main{display:block!important;flex:1;min-width:0;width:100%;overflow:auto;padding:12px!important}.wp-mobile .settings-content{max-width:none!important;width:100%!important;padding:4px!important}.wp-mobile .settings-close{display:none!important}.wp-mobile .wp-mobile-settings-back{display:block;padding:12px 0;color:var(--brand);font-size:15px}.wp-mobile .settings-two{grid-template-columns:1fr!important;display:grid!important}.wp-mobile .settings-field select,.wp-mobile .settings-field input{max-width:100%;font-size:16px!important}
.wp-mobile .login{min-height:0!important;height:100%;overflow:auto;padding:16px!important}.wp-mobile .login-card{max-width:100%!important;width:100%!important;margin:auto!important;padding:24px!important}.wp-mobile .login-card input{font-size:16px!important}.wp-mobile #toast{max-width:calc(100% - 24px);bottom:calc(var(--wp-nav-height) + 14px)!important;z-index:150}
.wp-mobile.wp-mobile-keyboard #wp-mobile-nav,.wp-mobile.wp-mobile-keyboard #wp-mobile-voice{display:none!important}.wp-mobile.wp-mobile-keyboard #mini-player{display:none!important}
.wp-mobile .wp-records{left:66px!important;right:8px;max-width:calc(100vw - 74px);white-space:normal;overflow:auto}.wp-mobile .wp-join-delete{opacity:1}.wp-mobile button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (orientation:landscape) and (max-height:520px){.wp-mobile #wp-mobile-nav{flex-basis:44px;height:44px;padding-bottom:0}.wp-mobile #wp-mobile-nav button{flex-direction:row;gap:6px}.wp-mobile #wp-mobile-nav button svg{width:19px;height:19px}.wp-mobile #wp-mobile-header{min-height:40px}.wp-mobile #wp-mobile-header button{height:40px}.wp-mobile #app[data-mobile-call="true"] #wp-mobile-voice{min-height:40px}.wp-mobile #wp-mobile-voice button{height:34px}.wp-mobile .redesigned-call .participant-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){.wp-mobile *{scroll-behavior:auto!important}}
/* Preserve existing channel/DM header actions (call, search, members, etc.). */
.wp-mobile #wp-mobile-header{display:none!important}.wp-mobile #chat-header{display:flex!important;flex:none;min-height:52px;height:auto!important;padding:4px 8px!important;gap:6px!important;overflow:hidden}.wp-mobile #chat-header .topic{display:none!important}.wp-mobile #chat-header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.wp-mobile #chat-header .icon-button{min-width:36px;width:36px;height:40px;flex:none}.wp-mobile #chat-header .wp-mobile-back svg{transform:rotate(90deg)}.wp-mobile-back{display:none}.wp-mobile #chat-header .wp-mobile-back{display:grid;place-items:center}.wp-mobile #chat-header>svg{flex:none;width:18px}.wp-mobile #members.wp-activity:not([hidden]){display:block!important;position:static!important;width:auto!important;max-width:none!important;box-shadow:none!important;overflow:visible!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])){display:flex!important;flex-direction:column;overflow:auto!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])) .chat-main{min-height:auto!important;flex:none!important;overflow:visible!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])) #content{min-height:auto!important;overflow:visible!important;flex:none!important}
.wp-mobile #wp-mobile-nav button{position:relative}.wp-mobile #wp-mobile-nav .wp-mobile-unread:after{content:'';position:absolute;top:5px;left:calc(50% + 8px);width:8px;height:8px;border:2px solid var(--main);border-radius:50%;background:#ed4245}.wp-mobile .voice-person{cursor:pointer}.wp-mobile .wp-mobile-person{touch-action:manipulation}.wp-mobile .wp-activity-card{margin-bottom:8px}

/* Mobile navigation and media correction; never changes desktop. */
#wp-home-head{display:none}.wp-mobile #wp-home-head{display:flex;flex:none;align-items:center;justify-content:space-between;padding:12px 15px;border-bottom:1px solid var(--line);font-size:19px}.wp-mobile #wp-home-head button{font-size:13px;padding:8px 12px;background:var(--layer);border-radius:8px;color:var(--text)}
.wp-mobile #app[data-mobile-stage="true"] #wp-mobile-voice{display:none!important}.wp-mobile #app[data-mobile-stage="true"] #wp-mobile-nav{display:none!important}.wp-mobile #app[data-mobile-stage="true"] .call-toolbar{padding-bottom:calc(8px + var(--wp-safe-bottom))!important}.wp-mobile #app[data-mobile-stage="true"] .participant-grid{align-content:center!important}.wp-mobile #app[data-mobile-stage="true"] .call-stage{justify-content:center}.wp-mobile .wp-own-share video[data-video]{opacity:0!important;pointer-events:none!important}.wp-mobile .wp-own-share:after{content:'Sua tela está sendo compartilhada';position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px;pointer-events:none}.wp-mobile #call-stage.app-fullscreen,.wp-mobile #call-stage:fullscreen{inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;transform:none!important}.wp-mobile #call-stage.app-fullscreen .focused-area,.wp-mobile #call-stage:fullscreen .focused-area{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;overflow:hidden!important}.wp-mobile #call-stage.app-fullscreen .focused-area>.call-tile,.wp-mobile #call-stage:fullscreen .focused-area>.call-tile{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;transform:none!important}.wp-mobile #call-stage.app-fullscreen video[data-video],.wp-mobile #call-stage:fullscreen video[data-video]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.wp-mobile .wp-activity{display:none!important}.wp-mobile #members.wp-activity:not([hidden]){display:none!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])){overflow:hidden!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])) .chat-main{flex:1!important;overflow:hidden!important;min-height:0!important}.wp-mobile .main-body:has(#members.wp-activity:not([hidden])) #content{flex:1!important;overflow:auto!important;min-height:0!important}.wp-mobile .wp-friend-mobile-activity{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.wp-mobile .wp-friend-mobile-activity svg{width:14px;height:14px;flex:none}.wp-mobile .friend-row .identity{min-width:0}.wp-mobile .friend-row .identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Native-sized mobile shell: safe areas counted once; no oversized nav spacer. */
html.wp-mobile,html.wp-mobile body{height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
html.wp-mobile body{height:var(--wp-mobile-height,100dvh)}
.wp-mobile #app:not([hidden]){box-sizing:border-box;height:100%;min-height:0;max-height:100%;padding-bottom:0!important}
.wp-mobile #wp-mobile-nav{box-sizing:border-box;flex:0 0 auto;height:auto;min-height:calc(58px + var(--wp-safe-bottom));padding-top:4px;padding-bottom:var(--wp-safe-bottom);align-items:center}
.wp-mobile #wp-mobile-nav button{height:50px;flex:1 1 0;justify-content:center}
.wp-mobile #app[data-mobile-call="true"] #wp-mobile-voice{margin:4px 8px 6px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.wp-mobile .server-btn.selected:before{content:"";position:absolute;left:-7px;top:50%;transform:translateY(-50%);width:4px;height:30px;background:#fff!important;border-radius:0 4px 4px 0;opacity:1;z-index:5}
.wp-mobile .server-btn:not(.selected):hover:before{display:none}
.wp-mobile .settings-kicker{color:var(--text)!important;opacity:1!important;filter:none!important;text-shadow:none!important;position:relative;z-index:2}
.wp-mobile .settings-nav,.wp-mobile .settings-nav-inner{mask-image:none!important;-webkit-mask-image:none!important;filter:none!important}
.wp-mobile .settings-nav:before,.wp-mobile .settings-nav:after{display:none!important}
@media (orientation:landscape) and (max-height:520px){.wp-mobile #wp-mobile-nav{min-height:44px;padding-bottom:var(--wp-safe-bottom)}.wp-mobile #wp-mobile-nav button{height:40px}}
