.remember-login{display:flex!important;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}.remember-login input{width:20px!important;height:20px;flex:0 0 20px;accent-color:#249e79}.remember-note{display:block;color:var(--muted);line-height:1.9;margin-bottom:14px}#chat-status{grid-column:1/-1;flex-basis:100%;font-size:12px;color:var(--text);line-height:1.8}#chat-status:empty{display:none}.message-bubble p{overflow-wrap:anywhere}.chat-compose{flex-wrap:wrap}.message-media{max-width:100%;height:auto}.report-dialog{max-width:calc(100vw - 32px)}.chat-compose input{min-width:0}.auth-card input{font-size:16px}.send-message,.picker-toggle{touch-action:manipulation}
@media(max-width:980px){
 .chat-workspace{grid-template-columns:1fr!important;gap:14px}.direct-sidebar{height:auto!important;position:static!important;width:100%!important;max-height:none!important;border-radius:16px;overflow:hidden}.direct-sidebar>header{padding:12px 16px}.direct-sidebar>.direct-user{margin:8px 12px}.direct-users{height:auto!important;display:flex!important;gap:8px;overflow-x:auto;max-height:none!important;padding:8px 12px 12px;scrollbar-width:thin}.direct-users .direct-user{flex:0 0 auto;min-width:145px;padding:10px;margin:0}.direct-users .direct-user img{width:32px;height:32px}.chat-header{flex-wrap:wrap;gap:14px}.chat-header-tools{flex-wrap:wrap}.chat-shell{min-width:0}.admin-top{flex-direction:column;align-items:stretch}.admin-top-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.blog-studio-grid,.admin-grid,.admin-community-grid{grid-template-columns:1fr!important}.post-editor{min-width:0}.post-manager article{min-width:0;overflow-wrap:anywhere}.sg-review{align-items:stretch}.sg-review .btn{flex:1}.sg-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
}
@media(max-width:600px){
 .nav-wrap{justify-content:space-between!important;gap:8px!important}.menu-toggle{min-width:44px;min-height:44px}.menu-toggle span{background:var(--text)!important}.theme-toggle{min-width:40px;min-height:40px}.brand{margin-left:auto!important}.brand-copy>b{font-size:.9rem!important}.brand-copy>small{font-size:.38rem!important}.header-newsbar{height:34px!important}.section{padding:44px 16px!important}.section-heading h2{font-size:28px!important;line-height:1.6}.hero{padding:145px 18px 45px!important;min-height:0!important}.hero-copy h1{font-size:36px!important;line-height:1.6}.hero-actions{display:grid!important;gap:10px!important}.hero-actions .btn{width:100%}.rank-grid,.feature-grid,.blog-grid{grid-template-columns:1fr!important;gap:16px!important}.rank-card{padding:24px!important;border-radius:20px!important}.rank-card p{min-height:0!important}.rank-card a{display:block;text-align:center;padding:14px!important}.stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:12px!important}.final-cta{padding:36px 16px!important}.footer{flex-wrap:wrap;padding:30px 18px!important;gap:20px!important}.footer-links{flex-wrap:wrap;gap:14px!important}.auth-page{display:flex!important;flex-direction:column;padding:130px 14px 40px!important;gap:20px!important;min-height:100dvh}.auth-showcase{width:100%;padding:0 12px;text-align:center}.auth-showcase h1{font-size:28px!important;line-height:1.5}.auth-showcase .auth-logo-orbit{display:none}.auth-showcase .auth-lead{font-size:13px}.auth-card{width:100%;padding:24px 20px!important;border-radius:20px!important}.auth-card input:not([type=checkbox]),.auth-card button{min-height:48px}.auth-security{padding:12px!important}.admin-page{width:100%!important;padding:130px 12px 40px!important}.admin-brand-lockup{gap:12px!important}.admin-brand-lockup h1{font-size:23px!important}.admin-brand-lockup img{width:48px!important;height:48px!important}.admin-top-actions a,.admin-top-actions button{padding:12px!important;font-size:12px!important}.admin-panel>header{flex-wrap:wrap!important;padding:18px!important}.admin-workspace-head{padding:18px!important}.admin-workspace-head h2{font-size:22px!important}.post-editor,.blog-studio-form{padding:16px!important}.editor-row{grid-template-columns:1fr!important}.post-library-tools{flex-wrap:wrap}.post-library-tools input{min-width:0;width:100%}.post-actions{flex-wrap:wrap}.download-admin-layout>form{padding:16px}.admin-page input,.admin-page textarea,.admin-page select,.sg-store input,.sg-store textarea,.sg-store select{font-size:16px!important;max-width:100%}.sg-store{margin-top:130px;padding:14px}.sg-box{padding:20px!important}.sg-order-head strong{font-size:16px}.sg-review input{min-width:0;flex-basis:100%}.chat-page{width:100%!important;padding:122px 10px 16px!important}.chat-header h1{font-size:24px!important;margin:8px 0}.chat-header p{font-size:12px;line-height:1.8}.chat-rules{display:none}.notification-button{padding:10px 12px!important;font-size:11px}.chat-header-tools{width:100%}.direct-sidebar>header{display:none}.direct-sidebar{display:flex!important;align-items:stretch}.direct-sidebar>.direct-user{flex:0 0 84px;margin:8px 4px;padding:8px;font-size:11px}.direct-sidebar .direct-user small{display:none}.direct-sidebar .public-avatar{width:26px;height:26px}.direct-users{flex:1;min-width:0;padding:8px;gap:6px}.direct-users .direct-user{min-width:110px;gap:8px}.direct-users .direct-user b{font-size:11px}.messenger-shell{display:flex!important;flex-direction:column;height:clamp(400px,calc(100dvh - 260px),680px);min-height:360px!important;border-radius:18px!important}.chat-channel-head{padding:12px!important;flex:0 0 auto}.chat-channel-head>span{font-size:10px}.chat-messages{height:auto!important;min-height:0!important;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:12px!important}.chat-message{gap:7px!important;margin-bottom:14px!important}.chat-avatar img{width:28px!important;height:28px!important}.message-bubble{max-width:calc(100% - 38px)!important;padding:10px 12px!important;min-width:0}.message-bubble>header{gap:5px!important;flex-wrap:wrap}.message-bubble time{font-size:9px!important}.message-bubble p{font-size:14px!important;line-height:1.8}.mini-rank{font-size:9px}.messenger-compose{position:relative;display:flex!important;flex:0 0 auto;padding:10px!important;gap:6px!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important}.messenger-compose #chat-input{flex:1 1 120px;width:auto!important;font-size:16px!important;padding:12px!important;min-height:46px}.picker-toggle{width:36px!important;min-width:36px!important;height:42px;font-size:16px!important}.send-message{min-height:44px;padding:10px 14px!important;font-size:12px!important}.chat-picker{bottom:72px!important;right:8px!important;left:8px!important;width:auto!important;max-height:240px;overflow-y:auto}.selected-media{flex-basis:100%}.chat-messages audio{max-width:100%;width:220px}.account-page,.files-page,.games-page{padding-top:130px!important}.account-grid,.profile-grid{grid-template-columns:1fr!important}.account-actions{flex-wrap:wrap}.account-actions a,.account-actions button{min-height:44px}
}

.logout-devices{margin:12px 0 24px}.logout-devices button{padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);cursor:pointer;min-height:44px}

/* Match the selected theme in conversation surfaces. */
.direct-sidebar,.messenger-shell{background:var(--panel)!important;color:var(--text);border-color:var(--line)!important}
.chat-channel-head,.messenger-compose{background:var(--panel)!important;border-color:var(--line)!important}
.direct-user,.chat-channel-head strong{color:var(--text)!important}.direct-user small,.chat-channel-head small{color:var(--muted)!important}
[data-theme=light] .chat-messages{background:#f2f8f5!important}
[data-theme=light] .messenger-shell .message-bubble{background:#fff!important;border-color:#c5dcd3!important;color:#18352b!important}
[data-theme=light] .messenger-shell .is-mine .message-bubble{background:#d8f5e7!important}
[data-theme=light] .message-bubble strong,[data-theme=light] .message-bubble p{color:#18352b!important}
[data-theme=light] .messenger-compose>input[name=message]{background:#f4faf7!important;color:#18352b!important;border-color:#b8d5c9!important}
[data-theme=light] .notification-button{background:#e0f5ec!important;color:#23674e!important;border-color:#8dbdaa!important}
[data-theme=light] .direct-user.active,[data-theme=light] .direct-user:hover{background:#d8f5e7!important;border-color:#91bfad!important}
@media(max-width:600px){
 .messenger-shell{height:clamp(360px,calc(100dvh - 375px),680px)!important}
 .chat-page .messenger-compose{display:flex!important;flex-wrap:wrap!important}
 .chat-page .messenger-compose>input[name=message]{flex:1 1 100px;width:auto!important;min-width:80px;font-size:16px!important;height:46px!important}
 .chat-page .messenger-compose>.picker-toggle{width:36px!important;min-width:36px!important;height:44px!important}
 .chat-page .messenger-compose>.send-message{width:auto!important;height:44px!important;padding:0 12px!important;flex:0 0 auto}
 .chat-page .messenger-shell .chat-messages{height:auto!important;min-height:0!important}
 .chat-page .messenger-shell .chat-message .chat-avatar{flex-basis:28px;width:28px;height:28px}
 .chat-page .messenger-shell .chat-message .chat-avatar>img{width:28px!important;height:28px!important}
 .chat-page .messenger-shell .chat-message>.message-bubble{max-width:calc(100% - 35px)!important}
}

[data-theme=light] .auth-card label{color:#34554c!important}[data-theme=light] .remember-note{color:#526f64!important}
