/* Copyright 2026 На связи contributors. SPDX-License-Identifier: AGPL-3.0-only */
.ns-startup{max-width:420px;margin:15vh auto;padding:24px;font:16px/1.5 system-ui,sans-serif;color:#173c37;text-align:center}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 html .mx_MatrixChat_wrapper{height:var(--ns-viewport-height,100dvh);min-height:0;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 html .mx_MatrixChat{height:100%;min-width:0;min-height:0}
 .ns-mobile-shell{display:flex;flex:1;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
 .ns-mobile-list{display:flex;width:100%;height:100%;min-width:0;min-height:0}
 .ns-mobile-list .mx_LeftPanel_outerWrapper{flex:1;min-width:0;max-width:none;height:100%}
 .ns-mobile-list .mx_LeftPanel_wrapper--user{width:100%;min-width:0}
 .ns-mobile-list .mx_LeftPanel{contain:none;min-width:0;width:100%}
 .ns-mobile-list .mx_LeftPanel_roomListContainer{min-height:0}
 .ns-mobile-room{display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0}
 .ns-mobile-shell[data-pane=list]>.ns-mobile-room,.ns-mobile-shell[data-pane=room]>.ns-mobile-list{display:none}
 .ns-mobile-back{flex-shrink:0;min-height:44px;text-align:left;padding:10px 16px;border:0;border-bottom:1px solid var(--cpd-color-border-interactive-primary);background:var(--cpd-color-bg-canvas-default);color:var(--cpd-color-text-primary);font:600 16px/1.4 system-ui;cursor:pointer}
 .ns-mobile-room .mx_RoomView_wrapper{flex:1;min-width:0;min-height:0;overflow:hidden}
 .ns-mobile-room .mx_RoomView{min-width:0;max-width:100%;height:100%}
 .ns-mobile-room .mx_RoomHeader{min-width:0;max-width:100%}
 .ns-mobile-room .mx_RoomHeader_name{min-width:0;overflow:hidden;text-overflow:ellipsis}
 html input,html textarea,html [contenteditable=true]{font-size:16px}
 html .mx_Dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(var(--ns-viewport-height,100dvh) - 24px);overflow:auto}
 html .mx_AuthPage_modal{width:calc(100% - 24px);max-width:500px;margin:12px auto auto;box-sizing:border-box}
 html .mx_AuthHeader{display:none}
 html .mx_AuthPage_modalContent,html .mx_AuthBody,html .mx_Welcome,html .mx_DefaultWelcome{width:100%;min-width:0;box-sizing:border-box}
 html .mx_AuthBody{padding:24px}html .mx_Welcome{padding:32px 20px 16px}
 html .mx_DefaultWelcome_buttons a{width:100%;max-width:100%;box-sizing:border-box}
 html .mx_DefaultWelcome h1{overflow-wrap:anywhere;font-size:24px}
}
.ns-login{width:100%;max-width:390px;margin:auto;overflow-wrap:anywhere}.ns-login>img{display:block;margin:0 auto 20px}.ns-login h1,.ns-login>p{text-align:center}.ns-login>p{font-size:16px;line-height:1.5;margin-bottom:24px}
