@media(max-width:768px){
*{min-width:0}
body{font-size:14px}

.header{flex-direction:column;gap:8px;padding:10px 12px;position:sticky;top:0;z-index:100}
.logo a{font-size:18px}
.search-box{width:100%;order:3;max-width:100%}
.search-box input{padding:10px 14px;font-size:16px;border-radius:8px}
.nav-actions{width:100%;display:flex;flex-wrap:wrap;gap:6px}
.nav-actions .btn,.nav-actions .nav-btn{padding:8px 12px;font-size:12px;border-radius:8px}

.main{flex-direction:column!important}
.sidebar-wrap{width:100%!important;min-width:100%!important;max-width:100%!important}
.sidebar{height:300px;position:relative;border-right:none;border-bottom:1px solid var(--border);overflow:hidden}
.chat-header{padding:10px 14px;font-size:13px;border-bottom:1px solid var(--border)}
.chat-msgs{flex:1;padding:8px 12px;overflow-y:auto}
.chat-input-wrap{padding:8px 12px;gap:6px;background:var(--bg)}
.chat-input-wrap input{padding:10px 14px;font-size:14px;border-radius:20px}
.chat-input-wrap button{padding:8px 14px;font-size:13px;border-radius:20px}
.msg{padding:5px 0;border-bottom:1px solid var(--border);font-size:12px}
.msg-user{font-size:10px}
.msg-time{font-size:8px}
.msg-text{font-size:11px;margin-top:1px}

.content,.content-full{padding:12px!important;width:100%!important}
.welcome-panel{padding:12px 14px;margin-bottom:10px;border-radius:8px;display:block}
.welcome-panel h2{font-size:16px;margin-bottom:2px}
.welcome-panel p{font-size:11px}

.stats-panel{grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:10px}
.stat-item{padding:10px 6px;border-radius:8px}
.stat-value{font-size:16px}
.stat-label{font-size:8px}

.card-grid{grid-template-columns:1fr;gap:6px;margin-bottom:16px}
.card{padding:12px 14px;border-radius:8px}
.card h3{font-size:14px;margin-bottom:2px}
.card p{font-size:11px}

.panel{padding:12px;margin-bottom:8px;border-radius:8px}

.post-card{padding:12px;margin-bottom:8px;border-radius:8px}
.post-avatar{width:32px;height:32px}
.post-username{font-size:12px}
.post-body{font-size:12px;line-height:1.5}
.post-footer{gap:6px}

.reply-box textarea{min-height:90px;font-size:14px;padding:10px}
.reply-toolbar{gap:2px;padding:6px}
.reply-toolbar .tb-btn{padding:5px 8px;font-size:10px}

.topic-head h2{font-size:16px}
.topic-meta{font-size:9px}

.msgs-wrap{flex-direction:column!important;height:auto!important}
.msgs-left{width:100%!important;max-height:180px}
.msgs-right{min-height:280px}

.profile-main{flex-direction:column;gap:12px;padding:0 10px 10px}
.profile-sidebar{width:100%;margin-top:-20px;text-align:center}
.profile-avatar-img{width:60px;height:60px}
.profile-name{font-size:16px}
.profile-numbers{justify-content:center;gap:16px}

.groups-grid{grid-template-columns:1fr}
.gv-wrap{flex-direction:column}
.gv-sidebar{width:100%}

.admin-container{flex-direction:column}
.admin-sidebar{width:100%;position:static;display:flex;flex-wrap:wrap;gap:4px;padding:8px}
.admin-sidebar h3{width:100%}
.admin-sidebar-link{padding:5px 8px;font-size:9px}

.form-group input,.form-group select,.form-group textarea{padding:10px 12px;font-size:16px}
.file-attach{padding:8px 10px;gap:8px}
.file-attach-name{font-size:11px}

footer{padding:8px;font-size:9px}

.type-switch{width:100%}
.type-opt{padding:8px;font-size:11px}
.editor-toolbar{gap:2px;padding:6px}
.editor-area{flex-direction:column}
.editor-area textarea{min-height:180px;font-size:13px}

.chat-reply-bar{padding:6px 8px}
#reply-username{font-size:10px}
#reply-text{font-size:9px}
}

