@media(max-width:1050px){.app-shell{grid-template-columns:64px 236px minmax(400px,1fr)}.members-panel{display:none}}
@media(max-width:780px){.mobile-only{display:inline-grid}.auth-shell{grid-template-columns:1fr;padding:24px;min-height:100dvh}.auth-brand{grid-column:1}.auth-copy{display:none}.auth-card{width:100%;max-width:460px;margin:auto}.theme-toggle.floating{top:16px;right:16px}.app-shell{grid-template-columns:1fr}.server-rail{display:none}.channel-panel{position:fixed;left:0;top:0;bottom:0;width:min(320px,86vw);transform:translateX(-102%);transition:transform .2s ease;box-shadow:20px 0 50px var(--shadow);border-right:1px solid var(--line)}.channel-panel.mobile-open{transform:translateX(0)}.chat-area{grid-column:1}.channel-title small,.channel-title i{display:none}.chat-head{padding:0 10px;height:58px;flex-basis:58px}.channel-title{gap:7px}.channel-title>span{font-size:22px}.call-actions button{width:32px;height:32px}.call-actions .head-sep,.call-actions button:last-child{display:none}.message{padding-left:14px;padding-right:14px}.composer-wrap{padding:8px 10px max(10px,env(safe-area-inset-bottom))}.composer button[title="GIF"],.composer button[title="Эмодзи"]{display:none}.welcome{padding:28px 16px 22px}.welcome h2{font-size:23px}.modal-card{max-height:calc(100dvh - 30px);overflow:auto}.setting-row{align-items:flex-start;flex-direction:column;gap:10px}.setting-row>button{align-self:stretch}.version-popover{right:15px;bottom:max(15px,env(safe-area-inset-bottom))}}
@media(max-width:520px){.auth-shell{padding:18px 14px}.auth-brand{padding-right:44px}.auth-card{padding:20px;border-radius:20px}.message{gap:9px}.msg-actions{display:none}.msg-av{width:32px;height:32px}.composer-wrap{padding-left:8px;padding-right:8px}.composer{padding:5px}.typing{display:none}.version-popover{width:calc(100vw - 20px);right:10px}.call-actions .callBtn:nth-child(3){display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:780px){.channel-list{padding-bottom:16px}.group-toggle{padding-top:7px;padding-bottom:7px}.voice-lobby{padding:18px 12px}.voice-lobby-card{padding:26px 18px;border-radius:18px}.voice-lobby h2{font-size:25px}.compact-modal{max-height:calc(100dvh - 30px);overflow:auto}}
@media(max-width:520px){.workspace-add{width:30px;height:30px}.voice-orb{width:72px;height:72px;border-radius:22px;font-size:32px}.channel-type-option{grid-template-columns:32px 1fr 18px;padding:10px}.captcha-shell{padding:10px}.captcha-label{align-items:flex-start;flex-direction:column;gap:5px}.captcha-label small{padding-left:0;background:transparent;border:0}}

/* v1.4.0 WebRTC responsive stage */
@media(max-width:1050px){.voice-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}}
@media(max-width:780px){.voice-lobby{padding:12px}.voice-shell{gap:10px}.voice-heading{padding-bottom:10px}.voice-heading h2{font-size:22px}.voice-status{padding:7px 9px;max-width:48%}.voice-status b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-prejoin{min-height:320px;padding:26px 18px;border-radius:18px}.voice-stage{border-radius:16px;padding:7px}.voice-grid{grid-template-columns:1fr;grid-auto-rows:minmax(210px,58vh);gap:7px}.voice-tile{min-height:210px;border-radius:13px}.voice-controls{position:sticky;bottom:0;z-index:4;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:15px;padding:7px}.voice-control{min-width:58px;grid-template-columns:1fr;padding:8px 9px;gap:3px}.voice-control span{font-size:17px}.voice-control b{font-size:9px}.voice-channel-participants{margin-left:20px}}
@media(max-width:520px){.voice-heading{align-items:flex-start}.voice-heading h2{max-width:55vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-prejoin-actions{width:100%;flex-direction:column}.voice-prejoin-actions .voice-join{width:100%;margin-top:0}.voice-grid{grid-auto-rows:minmax(190px,48vh)}.voice-controls{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.voice-control{min-width:0;padding:7px 3px}.voice-control b{display:none}.voice-avatar-fallback .avatar{width:64px;height:64px;font-size:19px}.voice-tile-meta{padding:9px 10px}}

/* v1.5.0 responsive settings / adaptive voice */
@media(max-width:1050px){.settings-card{width:min(860px,calc(100vw - 24px))}.voice-grid[data-count="7"]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.voice-grid[data-count="7"] .voice-tile:first-child,.voice-grid[data-count="7"] .voice-tile:nth-child(2){grid-column:auto}}
@media(max-width:780px){.shortcut-view{padding:20px 14px}.settings-card{width:calc(100vw - 18px);max-height:calc(100dvh - 18px)}.settings-layout{grid-template-columns:1fr;min-height:0}.settings-tabs{position:sticky;top:0;z-index:3;display:flex;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:9px;background:color-mix(in srgb,var(--panel-3) 94%,transparent);backdrop-filter:blur(12px)}.settings-tabs button{white-space:nowrap}.settings-content{padding:16px}.settings-grid{grid-template-columns:1fr}.profile-editor{grid-template-columns:86px minmax(0,1fr);gap:14px}.profile-avatar-button{width:76px;height:76px;border-radius:22px}.hotkey-row{grid-template-columns:minmax(0,1fr) auto}.hotkey-row .soft{grid-column:1/-1}.voice-stage{overflow:auto}.voice-grid,.voice-grid[data-count="1"],.voice-grid[data-count="2"],.voice-grid[data-count="3"],.voice-grid[data-count="4"],.voice-grid[data-count="5"],.voice-grid[data-count="6"],.voice-grid[data-count="7"]{height:auto;min-height:100%;grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(210px,58vh)}.voice-grid[data-count="3"] .voice-tile:first-child,.voice-grid[data-count="7"] .voice-tile:first-child,.voice-grid[data-count="7"] .voice-tile:nth-child(2){grid-row:auto;grid-column:auto}.voice-grid.focus-mode{height:100%;min-height:360px}.voice-grid.focus-mode .voice-tile.focused{height:100%;min-height:360px}.mini-voice-status{gap:2px}}
@media(max-width:520px){.workspace-head-copy small{display:none}.workspace-head-icon{width:29px;height:29px;flex-basis:29px}.profile-editor{grid-template-columns:1fr;justify-items:center}.settings-form-stack{width:100%}.settings-section-title h4{font-size:20px}.hotkey-row{grid-template-columns:1fr;gap:7px}.hotkey-row kbd{justify-self:start}.voice-grid,.voice-grid[data-count]{grid-auto-rows:minmax(190px,50vh)}.voice-tile-actions{left:7px;top:7px}.voice-tile-actions button{width:28px;height:28px}.mini-voice-status i{width:14px;height:14px}.voice-channel-participants>div{padding:5px 4px;gap:4px}.channel-unread-badge{min-width:17px;height:17px}}

/* v1.6.0 voice stage + per-voice chat responsive layout */
@media(max-width:1180px){.voice-main-layout{grid-template-columns:minmax(0,1fr) minmax(260px,32vw)}}
@media(max-width:900px){.voice-lobby{overflow:auto}.voice-shell{height:auto;min-height:100%}.voice-main-layout{display:flex;flex-direction:column;min-height:0}.voice-call-column{min-height:560px}.voice-channel-chat{min-height:360px;max-height:48dvh}.voice-stage{min-height:420px}.voice-grid,.voice-grid[data-count="1"],.voice-grid[data-count="2"],.voice-grid[data-count="3"],.voice-grid[data-count="4"],.voice-grid[data-count="5"],.voice-grid[data-count="6"],.voice-grid[data-count="7"]{height:100%;min-height:0;grid-template-columns:repeat(var(--voice-cols,1),minmax(0,1fr));grid-template-rows:repeat(var(--voice-rows,1),minmax(190px,1fr));grid-auto-rows:minmax(190px,1fr)}.voice-grid[data-count] .voice-tile{min-height:190px}.voice-stage.stage-focus-mode{min-height:70dvh}.voice-stage.stage-focus-mode .voice-grid{height:100%}.voice-stage.stage-focus-mode .voice-tile.focused{min-height:68dvh}}
@media(max-width:620px){.voice-call-column{min-height:480px}.voice-stage{min-height:360px}.voice-grid,.voice-grid[data-count]{--voice-cols:1!important;grid-template-columns:1fr!important;grid-template-rows:none!important;grid-auto-rows:minmax(220px,45dvh)!important;overflow:auto}.voice-grid[data-count] .voice-tile{height:auto;min-height:220px}.voice-channel-chat{min-height:320px;max-height:52dvh}.voice-chat-head>span{display:none}.voice-chat-composer{padding:6px}.voice-chat-composer button{width:30px;height:30px;flex-basis:30px}}
