/* LVL V1.19.9S — Community Compact + Social Hub Split. Preserves social APIs and behavior. */
.lesson-nav-only .lesson-browse-btn:not(:disabled){border-color:#8d4cff!important;background:linear-gradient(135deg,#7535dc,#8f43ed)!important;color:#fff!important;opacity:1!important;box-shadow:0 7px 22px rgba(92,43,179,.18)!important}.lesson-nav-only .lesson-browse-btn:not(:disabled):hover{border-color:#a96dff!important;color:#fff!important;filter:brightness(1.06)}.lesson-nav-only .lesson-browse-btn:disabled{background:#0d1016!important;border-color:#252a36!important;opacity:.34!important;color:#656b79!important;box-shadow:none!important}
.community-mini-btn.primary-social{border-color:#7245cb;background:rgba(125,69,232,.16);color:#d8c4ff}.community-mini-btn.danger.solid{background:rgba(139,43,58,.22);border-color:#73333f;color:#ffb4bf}.community-mini-btn.report-action{border-color:#5a425f;color:#d9b8e4;background:rgba(102,54,113,.10)}
.community-profile-editor-block{border:1px solid #202430;background:#0c0f15;border-radius:14px;padding:13px;display:grid;gap:11px}.community-editor-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.community-editor-title small{display:block;color:#a970ff;font-size:9px;font-weight:900;letter-spacing:.08em}.community-editor-title p{margin:4px 0 0;color:#70788a;font-size:9px;line-height:1.45;font-weight:500}
.community-language-rows{display:grid;gap:7px}.community-language-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 34px;gap:7px;align-items:center}.community-language-row input,.community-language-row select{min-width:0}.community-icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid #2b3040;background:#11141b;color:#aeb4c2;font-size:18px;cursor:pointer}.community-icon-btn.danger:hover{border-color:#673541;color:#ffacb8}
.community-interest-search{display:flex;align-items:center;border:1px solid #282d3a;background:#10131a;border-radius:10px;padding-left:11px;color:#ad76ff;font-weight:900}.community-interest-search:focus-within{border-color:#6847ad}.community-interest-search input{border:0!important;background:transparent!important;padding-left:5px!important}.community-interest-suggestions,.community-selected-interests{display:flex;gap:6px;flex-wrap:wrap}.community-interest-chip{border:1px solid #2c3140;background:#11141b;color:#9ba2b1;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:800;cursor:pointer}.community-interest-chip:hover{border-color:#7048ba;color:#d5c0ff}.community-interest-chip.add{border-style:dashed;color:#c7a6ff}.community-interest-chip.selected{border-color:rgba(125,69,232,.45);background:rgba(125,69,232,.14);color:#d5c2ff}.community-interest-chip.selected span{margin-left:4px;color:#9279ba}.community-language-tag b{color:#cdb5ff;font-weight:800}.community-interest-tag{color:#c3a7f7;background:rgba(125,69,232,.10);border:1px solid rgba(125,69,232,.18)}.community-course-tag{color:#b8d7ff;background:rgba(63,117,198,.10);border:1px solid rgba(83,135,214,.18)}
.community-safety-modal{text-align:center;display:grid;justify-items:center;gap:9px;padding:6px 2px}.community-safety-modal h4{margin:0;font-size:18px}.community-safety-modal p{margin:0;color:#848b9a;font-size:11px;line-height:1.6;max-width:440px}.community-safety-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900}.community-safety-icon.danger{border:1px solid #60313a;background:#1b1114;color:#ff9fae}.community-safety-actions{width:100%;display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.community-report-form{display:grid;gap:13px}.community-report-form label{display:grid;gap:7px;color:#9198a7;font-size:10px;font-weight:800}.community-report-form select,.community-report-form textarea{width:100%;border:1px solid #282d3a;background:#10131a;color:#e8eaf0;border-radius:10px;padding:11px;font:inherit;font-size:11px;outline:none}.community-report-form textarea{min-height:110px;resize:vertical}.community-report-form select:focus,.community-report-form textarea:focus{border-color:#6847ad}.community-optional{font-size:8px;color:#656d7e;font-weight:500;margin-left:4px}
@media(max-width:620px){.community-language-row{grid-template-columns:minmax(0,1fr) 108px 34px}.community-profile-editor-block{padding:11px}.community-safety-actions{display:grid;grid-template-columns:1fr 1fr}.community-safety-actions .community-mini-btn{min-height:40px}.lesson-nav-only .lesson-browse-btn:not(:disabled){min-width:96px!important}}

/* LVL V1.19.9 — Friends + Private Chat */
.community-social-v1199 .community-social-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.community-social-v1199 .community-social-tabs::-webkit-scrollbar{display:none}.community-social-v1199 .community-social-tabs .community-tab{flex:0 0 auto;white-space:nowrap}
.community-social-v1199 .community-social-hero{align-items:center}.community-social-v1199 .community-social-kpis .community-kpi:nth-child(3) strong{color:#d6c4ff}
.community-friends-stack{display:grid;gap:14px}.community-friend-search-panel .community-panel-body{padding-top:0}.community-request-panel{border-color:rgba(143,67,237,.34)}
.community-request-card,.community-friend-card{align-items:center}.community-friend-card .community-person-main{min-width:0}.community-friend-presence{margin:2px 0 8px!important;font-size:10px!important;color:#778093!important}.community-friend-card:has(.community-online-dot) .community-friend-presence{color:#50d8a9!important}
.community-friend-actions,.community-request-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.community-friend-actions .primary-social,.community-request-actions .primary-social{background:linear-gradient(135deg,rgba(118,55,220,.92),rgba(143,67,237,.92));border-color:#8f43ed;color:#fff;box-shadow:0 8px 20px rgba(103,46,197,.18)}.community-friends-empty{display:grid;justify-items:center;gap:7px;text-align:center;padding:24px 12px}.community-friends-empty strong{color:#f3efff;font-size:14px}.community-friends-empty p{margin:0;color:#737b8d;font-size:11px;max-width:330px;line-height:1.55}

.community-direct-layout{display:grid;grid-template-columns:minmax(220px,310px) minmax(0,1fr);gap:14px;min-height:520px}.community-direct-browser,.community-direct-stage{border:1px solid #202534;background:#0c0f16;border-radius:18px;overflow:hidden}.community-direct-browser .community-panel-head{padding:16px;border-bottom:1px solid #202534}.community-direct-list{display:grid;padding:8px;gap:6px;max-height:620px;overflow:auto}.community-direct-card{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid transparent;background:transparent;color:#e9ebf2;border-radius:13px;padding:9px 10px;text-align:left;cursor:pointer}.community-direct-card:hover,.community-direct-card.active{background:rgba(125,69,232,.10);border-color:rgba(125,69,232,.30)}.community-direct-avatar{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#2b1c4d,#151929);border:1px solid #4c3677;color:#e7dbff;font-size:13px;font-weight:900}.community-direct-copy{display:grid;min-width:0;gap:2px}.community-direct-copy strong{font-size:11px;color:#f3f0fa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-direct-copy small{font-size:9px;color:#70788a}.community-direct-unread{min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:#8a3fff;color:#fff;font-size:9px;font-weight:900}.community-direct-chevron{color:#5e6677;font-size:22px;line-height:1}.community-direct-empty{display:grid;gap:8px;justify-items:start;padding:20px 12px}.community-direct-empty strong{font-size:12px;color:#eeeaf7}.community-direct-empty p{margin:0;color:#747c8d;font-size:10px;line-height:1.55}.community-direct-placeholder{min-height:420px}
.community-room-stage.is-direct,.community-direct-stage{min-width:0}.community-direct-head{display:grid!important;grid-template-columns:38px 44px minmax(0,1fr) auto!important;align-items:center;gap:10px;padding:12px 14px!important}.community-direct-head .community-direct-back{width:36px;height:36px;border:1px solid #282e3c;border-radius:11px;background:#10131a;color:#b9bfcc;font-size:17px;cursor:pointer}.community-direct-head .community-direct-back:hover{border-color:#6946ad;color:#dfd2ff}.community-direct-head .community-avatar{width:42px;height:42px}.community-direct-head .community-chat-title small{color:#a56cff}.community-direct-head .community-chat-title h3{font-size:16px;margin:1px 0}.community-direct-head .community-chat-title p{font-size:9px;margin:0;color:#747c8e}.community-direct-body{grid-template-columns:1fr!important}.community-direct-body .community-message-pane{min-width:0}.community-direct-log{padding:18px 16px!important;background:radial-gradient(circle at 50% 0,rgba(98,51,176,.08),transparent 42%),#090c12}.community-message.direct-message{display:flex!important;width:100%;justify-content:flex-start;margin:8px 0}.community-message.direct-message.mine{justify-content:flex-end}.community-message.direct-message .community-message-copy{max-width:min(78%,520px);background:#121620;border:1px solid #252b38;border-radius:16px 16px 16px 5px;padding:9px 11px;box-shadow:0 5px 16px rgba(0,0,0,.10)}.community-message.direct-message.mine .community-message-copy{background:linear-gradient(135deg,rgba(100,47,190,.92),rgba(127,55,220,.92));border-color:#7f48d2;border-radius:16px 16px 5px 16px;color:#fff}.community-message.direct-message .community-message-line{justify-content:flex-end;min-height:10px;margin:0 0 3px}.community-message.direct-message .community-message-line time{font-size:7px;color:#70798b}.community-message.direct-message.mine .community-message-line time{color:#d8c8f2}.community-message.direct-message .community-message-copy p{margin:0!important;font-size:11px!important;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.community-direct-composer{border-top:1px solid #202634;background:#0d1017;padding:10px!important;gap:8px}.community-direct-composer textarea{min-height:42px!important;max-height:110px;border-radius:13px!important}.community-direct-composer .btn{min-width:78px}

@media(max-width:760px){.community-social-v1199 .community-hero{padding:16px}.community-social-v1199 .community-hero h2{font-size:24px}.community-social-v1199 .community-hero p{font-size:11px}.community-social-v1199 .community-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.community-social-v1199 .community-kpi{padding:11px 9px}.community-social-v1199 .community-kpi span{font-size:8px}.community-direct-layout{grid-template-columns:1fr;min-height:0}.community-direct-browser{border-radius:15px}.community-direct-stage{min-height:430px}.community-direct-layout:has(.community-room-stage.is-direct) .community-direct-browser{display:none}.community-direct-head{grid-template-columns:36px 42px minmax(0,1fr) auto!important;padding:10px!important}.community-direct-head .community-chat-actions{display:flex;gap:5px}.community-direct-head .community-chat-actions .community-mini-btn{display:none}.community-direct-head .community-voice-btn{font-size:9px;padding:8px 9px}.community-direct-log{min-height:360px;max-height:54vh}.community-friend-card,.community-request-card{display:grid!important;grid-template-columns:52px minmax(0,1fr);gap:9px!important}.community-friend-card .community-person-actions,.community-request-card .community-request-actions{grid-column:1/-1;width:100%;justify-content:stretch}.community-friend-actions .community-mini-btn,.community-request-actions .community-mini-btn{flex:1;min-height:38px}.community-friend-actions .danger{flex:0 0 auto}.community-person-main .community-tag-row{display:none}.community-social-v1199 .community-tabbar{margin-left:-2px;margin-right:-2px;padding-left:2px;padding-right:2px}}
@media(max-width:430px){.community-social-v1199 .community-kpis{grid-template-columns:repeat(3,1fr)}.community-social-v1199 .community-kpi strong{font-size:18px}.community-social-v1199 .community-kpi small{font-size:7px}.community-social-v1199 .community-hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.community-direct-head .community-avatar-wrap{display:none}.community-direct-head{grid-template-columns:36px minmax(0,1fr) auto!important}.community-message.direct-message .community-message-copy{max-width:86%}}


/* V1.19.9E — request button states. No layout replacement/reflow after send. */
.community-mini-btn.is-sending{opacity:.78;cursor:wait;pointer-events:none;transition:opacity .15s ease,border-color .15s ease,background .15s ease,color .15s ease}
.community-mini-btn.is-request-sent{opacity:1!important;cursor:default;pointer-events:none;border-color:rgba(129,82,211,.42)!important;background:rgba(113,66,194,.10)!important;color:#cbb6ef!important;box-shadow:none!important;transition:border-color .15s ease,background .15s ease,color .15s ease}
.community-mini-btn.is-friend-confirmed{opacity:1!important;cursor:default;pointer-events:none;border-color:rgba(61,189,145,.34)!important;background:rgba(41,153,116,.10)!important;color:#9ce3ca!important;box-shadow:none!important}

/* Notification header is action-first: no noisy "N agora" counter. */
#notificationPopover .notif-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#notificationPopover .notif-head>small{display:none!important}.lvl-notification-clear{border:1px solid #4e356d;background:rgba(122,54,216,.08);color:#d6b7ff;border-radius:9px;height:32px;padding:0 12px;font-size:10px;font-weight:850;cursor:pointer}.lvl-notification-clear:active{transform:translateY(1px)}

/* =========================================================
   LVL V1.19.9S — COMMUNITY COMPACT + PRIVATE SOCIAL HUB
   Public Community = group chat / rooms / voice only.
   Friends, requests, discovery and DMs live beside the bell.
   ========================================================= */
.community-public-v1199s{display:grid;gap:12px;max-width:1320px;margin:0 auto}.community-n-hero{position:relative;overflow:hidden;min-height:154px;display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:18px;border:1px solid #26283a;border-radius:20px;padding:20px 22px;background:radial-gradient(circle at 78% 25%,rgba(111,43,217,.16),transparent 34%),linear-gradient(145deg,#11131c,#0b0d14);box-shadow:0 18px 42px rgba(0,0,0,.14)}.community-n-hero-copy{min-width:0;position:relative;z-index:2}.community-n-hero .eyebrow{font-size:9px}.community-n-hero h2{margin:7px 0 7px;font-size:28px;line-height:1.08;letter-spacing:-.035em;max-width:540px}.community-n-hero h2 span{color:#a664ff}.community-n-hero p{margin:0;max-width:620px;color:#80879a;font-size:10.5px;line-height:1.55}.community-n-orbit{position:relative;width:122px;height:122px;justify-self:end;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 48% 42%,#7131c8 0 18%,#281b49 42%,#11131d 70%);border:1px solid rgba(149,83,255,.26);box-shadow:0 0 48px rgba(117,53,220,.20),inset 0 0 28px rgba(164,100,255,.16)}.community-n-orbit span{font-size:23px;font-weight:950;letter-spacing:-.08em;color:#e4d5ff;text-shadow:0 0 18px rgba(177,111,255,.6)}.community-n-orbit i,.community-n-orbit b{position:absolute;border:1px solid rgba(166,100,255,.28);border-radius:50%;inset:-10px}.community-n-orbit b{inset:14px -20px;transform:rotate(-24deg);border-color:rgba(98,60,179,.34)}
.community-n-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.community-n-action{min-width:0;min-height:70px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;text-align:left;border:1px solid #242938;border-radius:15px;padding:10px 12px;background:#0e1118;color:#eceaf3;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.community-n-action:hover{border-color:#4b356f;background:#12151e}.community-n-action:active{transform:translateY(1px)}.community-n-action:disabled{opacity:.42;cursor:not-allowed}.community-n-action.primary{border-color:rgba(131,61,229,.55);background:linear-gradient(135deg,rgba(109,44,209,.82),rgba(135,49,237,.9));box-shadow:0 10px 26px rgba(93,39,183,.18)}.community-n-action-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;border:1px solid rgba(142,82,239,.28);background:rgba(125,69,232,.12);color:#c596ff;font-size:17px;font-weight:900}.community-n-action-icon.voice{color:#9eb9ff;border-color:rgba(71,120,224,.25);background:rgba(62,102,199,.10)}.community-n-action.primary .community-n-action-icon{color:#fff;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.09)}.community-n-action>span:last-child{min-width:0;display:grid;gap:2px}.community-n-action strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-n-action small{font-size:8.5px;color:#737b8d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-n-action.primary small{color:#d8c7f4}
.community-n-section{border:1px solid #222736;border-radius:18px;background:#0c0f16;overflow:hidden}.community-n-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:14px 15px 10px}.community-n-section-head span{display:block;color:#a15dff;font-size:8px;font-weight:900;letter-spacing:.11em}.community-n-section-head h3{margin:3px 0 0;font-size:14px}.community-n-section-head>small{color:#656d7d;font-size:8px}.community-n-room-layout{min-height:0;padding:0 10px 10px;grid-template-columns:minmax(235px,300px) minmax(0,1fr);gap:10px}.community-n-room-layout .community-room-browser,.community-n-room-layout .community-room-stage{border-radius:14px}.community-n-room-list{padding:6px;gap:5px;max-height:510px}.community-n-room-list .community-room-card{padding:9px 10px;gap:5px;border-radius:11px}.community-n-room-list .community-room-top strong{font-size:10.5px}.community-n-room-list .community-room-card p{font-size:8.5px;-webkit-line-clamp:1}.community-n-room-list .community-room-meta{font-size:7.5px;gap:7px}.community-n-room-list .community-room-pill{font-size:6.8px;padding:3px 5px}.community-n-room-layout .community-chat-head{padding:11px 12px}.community-n-room-layout .community-chat-title h3{font-size:14px}.community-n-room-layout .community-chat-title p{font-size:8.5px}.community-n-room-layout .community-chat-body{min-height:380px}.community-n-room-layout .community-message-log{min-height:285px;max-height:390px;padding:12px}.community-n-room-layout .community-member-pane{max-height:440px}.community-n-room-layout .community-composer{padding:9px}

/* Header private Social Hub */
.lvl-social-hub-wrap{position:relative;display:grid;place-items:center}.lvl-social-hub-btn{position:relative;display:grid!important;place-items:center!important;padding:0!important;border-color:#31244d!important;background:linear-gradient(145deg,#151023,#0d1017)!important}.lvl-social-hub-btn svg{width:21px;height:21px;fill:none;stroke:#b66dff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.lvl-social-hub-btn.has-unread{border-color:#6f35c8!important;box-shadow:0 0 20px rgba(119,55,220,.16)}.lvl-social-hub-btn b{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#8b3ef2;color:#fff;border:2px solid #0a0c12;font-size:8px;font-weight:950}.lvl-social-hub-btn b[hidden]{display:none}.lvl-social-hub-popover{position:absolute;z-index:96;right:0;top:47px;width:min(680px,calc(100vw - 28px));max-height:min(78vh,720px);overflow:hidden;border:1px solid #2c3040;border-radius:18px;background:#0b0e14;box-shadow:0 28px 80px rgba(0,0,0,.50),0 0 38px rgba(105,48,190,.14);display:grid;grid-template-rows:auto auto minmax(0,1fr)}.lvl-social-hub-popover[hidden]{display:none}.lvl-social-hub-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px 10px}.lvl-social-hub-head>div{display:grid;gap:1px}.lvl-social-hub-head small{font-size:7px;font-weight:900;letter-spacing:.12em;color:#9e5df5}.lvl-social-hub-head strong{font-size:13px}.lvl-social-hub-head>button{width:30px;height:30px;border-radius:9px;border:1px solid #262b39;background:#11141b;color:#9da4b3;font-size:18px;cursor:pointer}.lvl-social-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:0 10px 9px;border-bottom:1px solid #1f2430}.lvl-social-tab{min-width:0;height:34px;border:1px solid #232836;background:#10131a;color:#7f8797;border-radius:10px;font-size:9px;font-weight:850;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px}.lvl-social-tab.active{border-color:#6436a7;background:rgba(123,61,218,.13);color:#d5b7ff}.lvl-social-tab b{min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;background:#7e3dda;color:#fff;font-size:7px}.lvl-social-hub-body{min-height:0;overflow:auto;padding:9px}.lvl-social-hub-body .community-panel{border-radius:13px}.lvl-social-hub-body .community-panel-head{padding:11px 12px 9px}.lvl-social-hub-body .community-panel-head h3{font-size:12px}.lvl-social-hub-body .community-panel-head p{font-size:8px}.lvl-social-hub-body .community-panel-body{padding:10px}.lvl-social-hub-body .community-friends-stack{gap:8px}.lvl-social-hub-body .community-request-list,.lvl-social-hub-body .community-friend-list,.lvl-social-hub-body .community-people-grid{gap:6px;margin-top:7px}.lvl-social-hub-body .community-person-card{padding:8px;gap:8px;border-radius:11px}.lvl-social-hub-body .community-person-card .community-avatar{width:34px;height:34px;min-width:34px}.lvl-social-hub-body .community-person-main strong{font-size:10px}.lvl-social-hub-body .community-person-main p{font-size:8px}.lvl-social-hub-body .community-mini-btn{font-size:8px;padding:6px 8px}.lvl-social-hub-body .community-search{margin-top:4px}.lvl-social-hub-body .community-search input{min-height:38px}.lvl-social-direct-layout{grid-template-columns:210px minmax(0,1fr);gap:8px;min-height:430px}.lvl-social-direct-layout .community-direct-browser,.lvl-social-direct-layout .community-direct-stage{border-radius:13px}.lvl-social-direct-layout .community-direct-list{padding:6px;gap:4px;max-height:560px}.lvl-social-direct-layout .community-direct-card{grid-template-columns:34px minmax(0,1fr) auto;padding:7px;gap:7px;border-radius:10px}.lvl-social-direct-layout .community-direct-avatar{width:34px;height:34px;border-radius:10px;font-size:10px}.lvl-social-direct-layout .community-direct-copy strong{font-size:9.5px}.lvl-social-direct-layout .community-direct-copy small{font-size:7.5px}.lvl-social-direct-layout .community-direct-head{padding:9px 10px!important}.lvl-social-direct-layout .community-direct-log{min-height:285px;max-height:47vh;padding:11px!important}.lvl-social-direct-layout .community-direct-placeholder{min-height:330px}.lvl-social-hub-body .community-friend-presence{font-size:8px!important;margin-bottom:4px!important}

@media(max-width:900px){.community-n-room-layout{grid-template-columns:1fr}.community-n-room-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}.community-n-room-layout .community-room-stage{min-height:460px}.community-n-room-layout:has(.community-room-card.active) .community-room-browser{display:none}.lvl-social-hub-popover{position:fixed;left:12px;right:12px;top:76px;width:auto;max-height:calc(100dvh - 92px)}.lvl-social-direct-layout{grid-template-columns:1fr;min-height:0}.lvl-social-direct-layout .community-direct-stage{min-height:400px}.lvl-social-direct-layout:has(.community-room-stage.is-direct) .community-direct-browser{display:none}}
@media(max-width:620px){.community-public-v1199s{gap:9px}.community-n-hero{min-height:118px;grid-template-columns:minmax(0,1fr) 74px;padding:14px 14px;border-radius:16px}.community-n-hero h2{font-size:21px;margin:5px 0}.community-n-hero p{font-size:8.5px;line-height:1.45;max-width:420px}.community-n-orbit{width:68px;height:68px}.community-n-orbit span{font-size:14px}.community-n-orbit i{inset:-6px}.community-n-orbit b{inset:9px -11px}.community-n-actions{gap:6px}.community-n-action{min-height:57px;grid-template-columns:31px minmax(0,1fr);padding:8px;gap:7px;border-radius:12px}.community-n-action-icon{width:31px;height:31px;border-radius:9px;font-size:13px}.community-n-action strong{font-size:9px}.community-n-action small{font-size:7px}.community-n-section{border-radius:14px}.community-n-section-head{padding:11px 11px 7px}.community-n-section-head h3{font-size:12px}.community-n-room-layout{padding:0 6px 6px}.community-n-room-list{grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;gap:5px}.community-n-room-list .community-room-card{padding:8px;min-height:70px}.community-n-room-list .community-room-card p{display:none}.community-n-room-list .community-room-meta{display:grid;grid-template-columns:1fr;gap:2px}.community-n-room-list .community-room-meta span:nth-child(2){display:none}.community-n-room-layout .community-room-stage{min-height:420px}.lvl-social-hub-popover{left:8px;right:8px;top:68px;max-height:calc(100dvh - 78px);border-radius:16px}.lvl-social-hub-head{padding:11px 11px 8px}.lvl-social-tabs{padding:0 8px 8px}.lvl-social-hub-body{padding:7px}.lvl-social-hub-body .community-friend-card,.lvl-social-hub-body .community-request-card{grid-template-columns:40px minmax(0,1fr)!important;gap:6px!important}.lvl-social-hub-body .community-friend-card .community-person-actions,.lvl-social-hub-body .community-request-card .community-request-actions{gap:5px}.lvl-social-hub-body .community-friend-actions .community-mini-btn,.lvl-social-hub-body .community-request-actions .community-mini-btn{min-height:32px}.lvl-social-direct-layout .community-direct-log{min-height:300px;max-height:48vh}.top-actions{gap:5px!important}.lvl-social-hub-btn,.notification-btn{width:38px!important;height:38px!important}}
@media(max-width:390px){.community-n-hero p{max-width:290px}.community-n-action small{display:none}.community-n-action{grid-template-columns:28px minmax(0,1fr);min-height:50px;padding:7px}.community-n-action-icon{width:28px;height:28px}.community-n-room-list .community-room-meta span:first-child{display:none}.lvl-social-tab{font-size:8px}.lvl-social-hub-head strong{font-size:12px}}


/* V1.19.9S — Social Hub compact polish + fixed direct chat framing */
.lvl-social-hub-btn{overflow:visible}.lvl-social-hub-btn::before{content:'';position:absolute;inset:8px;border-radius:11px;border:1px solid rgba(124,69,232,.22);background:linear-gradient(145deg,rgba(124,69,232,.08),rgba(15,18,26,.02));pointer-events:none}.lvl-social-hub-btn svg{position:relative;z-index:1}.lvl-social-hub-btn b{z-index:2}
.lvl-social-hub-body .community-friend-card{grid-template-columns:40px minmax(0,1fr) auto;align-items:center}.lvl-social-hub-body .community-friend-card .community-person-main{padding-right:2px}.lvl-social-hub-body .community-friend-card .community-tag-row{display:none}.lvl-social-hub-body .community-friend-actions{display:grid;grid-auto-flow:row;justify-items:stretch;align-content:center;gap:5px;flex-wrap:nowrap}.lvl-social-hub-body .community-friend-actions .community-mini-btn{min-width:78px;min-height:30px;padding:6px 8px}.lvl-social-hub-body .community-friend-presence{margin-bottom:0!important}
.lvl-social-hub-popover{height:min(78vh,720px)}.lvl-social-hub-body{overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr)}
.lvl-social-direct-layout{min-height:0;height:100%}.lvl-social-direct-layout .community-direct-stage{display:grid;grid-template-rows:minmax(0,1fr);min-height:0}.lvl-social-direct-layout .community-direct-stage:has(.community-direct-head){grid-template-rows:auto auto minmax(0,1fr)}.lvl-social-direct-layout .community-direct-body{min-height:0}.lvl-social-direct-layout .community-message-pane{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;height:100%}.lvl-social-direct-layout .community-direct-log{min-height:0!important;max-height:none!important;overflow:auto;padding:10px 12px!important}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) auto;align-items:end}.lvl-social-direct-layout .community-direct-composer textarea{min-height:44px!important}.lvl-social-direct-layout .community-direct-composer .btn{height:44px}
.community-message.direct-message{margin:6px 0}.community-message.direct-message .community-message-copy{display:inline-grid;width:auto;max-width:min(72%,280px);padding:7px 10px;border-radius:15px 15px 15px 5px;box-shadow:none}.community-message.direct-message:not(.mine) .community-message-copy{margin-right:auto}.community-message.direct-message.mine .community-message-copy{margin-left:auto;max-width:min(72%,280px);border-radius:15px 15px 5px 15px}.community-message.direct-message .community-message-line{min-height:auto;display:flex;justify-content:flex-end;gap:6px;margin:0 0 2px}.community-message.direct-message .community-message-line time{font-size:6.5px;opacity:.85}.community-message.direct-message .community-message-copy p{font-size:10px!important;line-height:1.35;display:inline;margin:0!important}
@media(max-width:760px){.lvl-social-hub-body .community-friend-card{grid-template-columns:42px minmax(0,1fr) auto!important;gap:7px!important}.lvl-social-hub-body .community-friend-card .community-person-actions{grid-column:auto!important;width:auto!important;justify-content:flex-start}.lvl-social-hub-body .community-friend-actions{gap:4px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{min-width:70px;min-height:28px;padding:5px 7px;font-size:7.5px}.lvl-social-hub-body .community-request-card{grid-template-columns:42px minmax(0,1fr) auto!important}.lvl-social-hub-body .community-request-card .community-request-actions{grid-column:auto!important;width:auto!important;justify-content:flex-end}.lvl-social-hub-body .community-request-actions{display:grid;gap:4px}.lvl-social-direct-layout.is-direct-open .community-direct-browser{display:none}.lvl-social-direct-layout .community-direct-stage{min-height:0;height:100%}.lvl-social-direct-layout .community-direct-head{grid-template-columns:34px 40px minmax(0,1fr) auto!important;padding:9px 9px!important}.lvl-social-direct-layout .community-direct-log{padding:8px 9px!important}.lvl-social-direct-layout .community-direct-composer{padding:8px!important;grid-template-columns:minmax(0,1fr) 88px}.community-message.direct-message .community-message-copy,.community-message.direct-message.mine .community-message-copy{max-width:min(76%,230px)}}
@media(max-width:620px){.lvl-social-hub-popover{height:calc(100dvh - 78px);max-height:calc(100dvh - 78px)}.lvl-social-hub-body .community-friend-card{grid-template-columns:38px minmax(0,1fr) auto!important}.lvl-social-hub-body .community-friend-actions .community-mini-btn{min-width:64px;min-height:27px;padding:4px 6px}.lvl-social-hub-body .community-friend-card .community-person-main strong{font-size:9.5px}.lvl-social-hub-body .community-friend-card .community-person-main .community-handle,.lvl-social-hub-body .community-friend-presence{font-size:7.5px!important}.lvl-social-hub-body .community-request-card{grid-template-columns:38px minmax(0,1fr) auto!important;gap:6px!important}.lvl-social-direct-layout .community-direct-head .community-chat-actions .community-mini-btn{display:none}.lvl-social-direct-layout .community-direct-log{padding:8px!important}.lvl-social-direct-layout .community-direct-composer{padding:8px!important;gap:6px;grid-template-columns:minmax(0,1fr) 84px}.lvl-social-direct-layout .community-direct-composer .btn{min-width:0;height:42px}.community-message.direct-message .community-message-copy,.community-message.direct-message.mine .community-message-copy{max-width:min(80%,210px);padding:6px 9px;border-radius:14px 14px 14px 5px}.community-message.direct-message.mine .community-message-copy{border-radius:14px 14px 5px 14px}.community-message.direct-message .community-message-copy p{font-size:9.5px!important}.community-message.direct-message .community-message-line time{font-size:6px}.lvl-social-direct-layout .community-direct-placeholder{min-height:220px}}
@media(max-width:430px){.lvl-social-hub-btn::before{inset:7px;border-radius:10px}.lvl-social-direct-layout .community-direct-head .community-avatar-wrap{display:none}.lvl-social-direct-layout .community-direct-head{grid-template-columns:32px minmax(0,1fr) auto!important}.lvl-social-direct-layout .community-direct-head .community-chat-title h3{font-size:14px}.lvl-social-direct-layout .community-direct-head .community-chat-title p{font-size:8px}.community-message.direct-message .community-message-copy,.community-message.direct-message.mine .community-message-copy{max-width:min(84%,195px)}}


/* V1.19.9S — Social Hub polish: single message stage, slimmer action buttons, cleaned bubbles */
#lvlSocialHubWrap{margin-right:10px}.topbar-actions #lvlSocialHubWrap,.top-actions #lvlSocialHubWrap{margin-right:0}
.lvl-social-hub-wrap{margin-right:8px}.lvl-social-hub-wrap + .notification-wrap{margin-left:0}.lvl-social-hub-btn,.notification-btn{width:42px;height:42px}.lvl-social-hub-btn::before{inset:9px;border-radius:10px}.lvl-social-hub-btn svg{transform:scale(.96)}
.lvl-social-direct-layout:not(.is-direct-open){grid-template-columns:1fr}.lvl-social-direct-layout:not(.is-direct-open) .community-direct-stage{display:none}
.lvl-social-hub-body .community-friend-card{grid-template-columns:42px minmax(0,1fr) 96px;align-items:center;gap:10px;padding:12px 12px}.lvl-social-hub-body .community-friend-card .community-person-actions{grid-column:auto!important;width:auto!important;justify-content:flex-end}.lvl-social-hub-body .community-friend-actions{display:grid;grid-template-columns:1fr;gap:6px;width:96px;justify-items:stretch}.lvl-social-hub-body .community-friend-actions .community-mini-btn{width:96px;min-width:96px;max-width:96px;min-height:31px;padding:6px 8px;font-size:8px;border-radius:11px}.lvl-social-hub-body .community-friend-card .community-person-main strong{font-size:11px}.lvl-social-hub-body .community-friend-card .community-handle{font-size:8.5px}.lvl-social-hub-body .community-friend-presence{font-size:8px!important}
.lvl-social-direct-layout .community-direct-browser{margin-bottom:0}.lvl-social-direct-layout .community-direct-stage{border-radius:18px}.lvl-social-direct-layout .community-direct-log{padding:10px 12px!important}.lvl-social-direct-layout .community-direct-placeholder{display:grid;place-items:center;min-height:280px;padding:18px}.lvl-social-direct-layout .community-direct-placeholder .community-room-empty{border:0;background:transparent;box-shadow:none;padding:0;min-height:0}
.community-message.direct-message{margin:7px 0}.community-message.direct-message .community-message-copy{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:none!important}.community-message.direct-message .community-message-line{margin:0 0 3px}.community-message.direct-message .community-message-line strong,.community-message.direct-message .community-message-line .community-message-report{display:none!important}.community-message.direct-message .community-message-copy p{display:inline-block!important;margin:0!important;background:#121620;border:1px solid #252b38;border-radius:15px 15px 15px 6px;padding:8px 10px;max-width:min(74vw,210px);font-size:10px!important;line-height:1.34;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:none!important}.community-message.direct-message.mine .community-message-copy p{background:linear-gradient(135deg,rgba(100,47,190,.96),rgba(127,55,220,.96));border-color:#7f48d2;border-radius:15px 15px 6px 15px;color:#fff}.community-message.direct-message .community-message-copy time{padding-right:2px}
@media(max-width:760px){.lvl-social-hub-wrap{margin-right:7px}.lvl-social-hub-btn,.notification-btn{width:40px;height:40px}.lvl-social-direct-layout .community-direct-placeholder{min-height:220px}.lvl-social-hub-body .community-friend-card{grid-template-columns:40px minmax(0,1fr) 90px!important;gap:8px!important;padding:10px!important}.lvl-social-hub-body .community-friend-actions{width:90px;gap:5px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{width:90px;min-width:90px;max-width:90px;min-height:29px;padding:5px 7px;font-size:7.5px}.community-message.direct-message .community-message-copy p,.community-message.direct-message.mine .community-message-copy p{max-width:min(68vw,190px);padding:7px 9px}}
@media(max-width:620px){.lvl-social-hub-btn,.notification-btn{width:38px;height:38px}.lvl-social-hub-btn::before{inset:8px}.lvl-social-hub-wrap{margin-right:6px}.lvl-social-hub-body .community-friend-card{grid-template-columns:38px minmax(0,1fr) 84px!important;gap:7px!important;padding:9px!important}.lvl-social-hub-body .community-friend-actions{width:84px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{width:84px;min-width:84px;max-width:84px;min-height:28px;padding:4px 6px;border-radius:10px}.lvl-social-hub-body .community-friend-card .community-person-main strong{font-size:10px}.lvl-social-hub-body .community-friend-card .community-handle,.lvl-social-hub-body .community-friend-presence{font-size:7.5px!important}.lvl-social-direct-layout .community-direct-head{padding:9px 10px!important}.lvl-social-direct-layout .community-direct-head .community-chat-title h3{font-size:13px}.lvl-social-direct-layout .community-direct-head .community-chat-title p{font-size:8px}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 82px;padding:8px!important}.lvl-social-direct-layout .community-direct-composer .btn{height:40px}.community-message.direct-message .community-message-copy p,.community-message.direct-message.mine .community-message-copy p{max-width:min(66vw,176px);font-size:9.5px!important;padding:6px 8px}}
@media(max-width:430px){.lvl-social-hub-btn,.notification-btn{width:36px;height:36px}.lvl-social-hub-wrap{margin-right:5px}.lvl-social-hub-body .community-friend-card{grid-template-columns:36px minmax(0,1fr) 78px!important}.lvl-social-hub-body .community-friend-actions{width:78px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{width:78px;min-width:78px;max-width:78px;font-size:7px}.community-message.direct-message .community-message-copy p,.community-message.direct-message.mine .community-message-copy p{max-width:min(64vw,160px)}}


/* V1.19.9S — real-contacts social hub refinements */
.lvl-social-hub-popover,.lvl-social-hub-body{overflow:hidden}
.lvl-social-hub-wrap{margin-right:10px}.lvl-social-hub-btn,.notification-btn{width:38px;height:38px}.lvl-social-hub-btn svg{transform:scale(.9)}.lvl-social-hub-btn::before{inset:9px;border-radius:9px}
.community-direct-card{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.community-direct-avatar-wrap{position:relative;display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center}.community-direct-avatar-wrap .community-avatar{width:38px;height:38px;font-size:11px}.community-direct-avatar-wrap .community-online-dot,.community-direct-avatar-wrap .community-offline-dot{right:-1px;bottom:-1px}
.community-direct-copy strong{display:block}.community-direct-copy small{font-size:8px;opacity:.78}
.lvl-social-direct-layout:not(.is-direct-open){grid-template-columns:1fr}.lvl-social-direct-layout:not(.is-direct-open) .community-direct-stage{display:none}
.lvl-social-hub-body .community-friend-headline{font-size:10px;letter-spacing:.08em;text-transform:uppercase}.lvl-social-hub-body .community-friend-headline .community-friend-online.is-online{color:#2fd06f}.lvl-social-hub-body .community-friend-headline .community-friend-online.is-offline{color:#7b8190}
.lvl-social-hub-body .community-friend-searchbar{margin:0 0 10px}.lvl-social-hub-body .community-friend-searchbar input{width:100%;height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.09);background:rgba(8,11,18,.9);color:#eef1f8;padding:0 14px;font-size:12px;outline:none}.lvl-social-hub-body .community-friend-searchbar input::placeholder{color:#798295}
.lvl-social-hub-body .community-friend-card{grid-template-columns:44px minmax(0,1fr) 186px;gap:10px;align-items:center}.lvl-social-hub-body .community-friend-card .community-avatar-wrap{width:44px;height:44px}.lvl-social-hub-body .community-friend-card .community-avatar{width:44px;height:44px}.lvl-social-hub-body .community-friend-card .community-person-main{min-width:0}.lvl-social-hub-body .community-friend-card .community-person-main strong{font-size:11px}.lvl-social-hub-body .community-friend-card .community-person-actions{grid-column:auto!important;width:auto!important;justify-content:flex-end}
.lvl-social-hub-body .community-friend-actions{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;justify-content:flex-end}.lvl-social-hub-body .community-friend-actions .community-mini-btn{min-width:0;width:auto;padding:6px 8px;height:30px;font-size:7.5px;border-radius:10px;white-space:nowrap}.lvl-social-hub-body .community-friend-actions .community-mini-btn.danger{padding-inline:7px}
.lvl-social-direct-layout .community-direct-head{grid-template-columns:34px 42px minmax(0,1fr) auto!important;gap:10px}.lvl-social-direct-layout .community-direct-friend-avatar .community-avatar{width:42px;height:42px}.lvl-social-direct-layout .community-direct-head .community-chat-title h3{font-size:15px}.lvl-social-direct-layout .community-direct-head .community-chat-title p{font-size:8.2px}.lvl-social-direct-layout .community-chat-actions{display:flex;gap:6px}.lvl-social-direct-layout .community-chat-actions .community-mini-btn{height:30px;padding:6px 9px;border-radius:10px;font-size:7.5px}
.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 40px 88px;gap:8px;align-items:end}.lvl-social-direct-layout .community-direct-composer textarea{min-height:42px!important;padding:11px 12px}.lvl-social-direct-layout .community-direct-composer .btn{height:40px;min-width:88px;padding:0 14px;border-radius:12px}.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:40px;min-width:40px;height:40px;border-radius:12px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:16px;border:1px solid rgba(255,255,255,.12);background:#111722;color:#edf0f7}.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only.live{background:linear-gradient(135deg,rgba(112,52,208,.96),rgba(153,81,255,.96));border-color:#9251ef;color:#fff}
@media(max-width:760px){.lvl-social-hub-wrap{margin-right:8px}.lvl-social-hub-btn,.notification-btn{width:36px;height:36px}.lvl-social-hub-body .community-friend-card{grid-template-columns:42px minmax(0,1fr) 174px!important;gap:8px!important}.lvl-social-hub-body .community-friend-actions{gap:5px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{height:28px;padding:5px 7px;font-size:7px}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 38px 80px}.lvl-social-direct-layout .community-direct-composer .btn{min-width:80px;height:38px}}
@media(max-width:620px){.lvl-social-hub-wrap{margin-right:7px}.lvl-social-hub-btn,.notification-btn{width:35px;height:35px}.lvl-social-hub-body .community-friend-searchbar input{height:38px;font-size:11px}.lvl-social-hub-body .community-friend-card{grid-template-columns:40px minmax(0,1fr) 166px!important;gap:7px!important;padding:10px!important}.lvl-social-hub-body .community-friend-card .community-avatar-wrap,.lvl-social-hub-body .community-friend-card .community-avatar{width:40px;height:40px}.lvl-social-hub-body .community-friend-card .community-person-main strong{font-size:10px}.lvl-social-hub-body .community-friend-card .community-handle,.lvl-social-hub-body .community-friend-presence{font-size:7.3px!important}.lvl-social-hub-body .community-friend-actions .community-mini-btn{height:27px;padding:4px 6px;border-radius:9px;font-size:6.7px}.lvl-social-direct-layout .community-direct-head{grid-template-columns:32px 40px minmax(0,1fr) auto!important;gap:8px!important}.lvl-social-direct-layout .community-chat-actions .community-mini-btn{padding:5px 7px;height:28px}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 36px 72px;padding:8px!important;gap:6px}.lvl-social-direct-layout .community-direct-composer textarea{padding:10px 11px}.lvl-social-direct-layout .community-direct-composer .btn{min-width:72px;height:36px;padding:0 10px;border-radius:11px}.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:36px;min-width:36px;height:36px;border-radius:11px;font-size:14px}}
@media(max-width:430px){.lvl-social-hub-wrap{margin-right:6px}.lvl-social-hub-btn,.notification-btn{width:34px;height:34px}.lvl-social-hub-btn::before{inset:8px}.lvl-social-hub-body .community-friend-card{grid-template-columns:38px minmax(0,1fr) 156px!important}.lvl-social-hub-body .community-friend-actions{gap:4px}.lvl-social-hub-body .community-friend-actions .community-mini-btn{padding:4px 5px;font-size:6.4px}.lvl-social-direct-layout .community-direct-head{grid-template-columns:32px 36px minmax(0,1fr) auto!important}.lvl-social-direct-layout .community-direct-friend-avatar .community-avatar{width:36px;height:36px}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 34px 68px}.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:34px;min-width:34px;height:34px}.lvl-social-direct-layout .community-direct-composer .btn{min-width:68px;height:34px}}


/* V1.19.9S — avatar + layout repair */
.lvl-social-hub-body .community-friend-card{grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:10px!important}
.lvl-social-hub-body .community-friend-card .community-person-main{min-width:0}
.lvl-social-hub-body .community-friend-card .community-person-main strong{display:block;font-size:10.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-hub-body .community-friend-card .community-handle,.lvl-social-hub-body .community-friend-card .community-friend-presence{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-hub-body .community-friend-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;align-items:center!important;justify-content:flex-end!important;width:auto!important}
.lvl-social-hub-body .community-friend-actions .community-mini-btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;height:28px!important;min-height:28px!important;padding:0 8px!important;border-radius:9px!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}
.lvl-social-hub-body .community-friend-actions .community-mini-btn.primary-social{box-shadow:none!important}
.lvl-social-hub-body .community-friend-actions .community-mini-btn.danger{padding:0 7px!important}
.lvl-social-direct-layout .community-direct-card{grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important}
.lvl-social-direct-layout .community-direct-avatar-wrap{position:relative;display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center}
.lvl-social-direct-layout .community-direct-avatar-wrap .community-avatar{width:40px!important;height:40px!important;border-radius:12px!important}
.lvl-social-direct-layout .community-direct-copy{min-width:0}
.lvl-social-direct-layout .community-direct-copy strong{display:block;font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-direct-layout .community-direct-copy small{display:block;font-size:7.6px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-direct-layout .community-direct-head{grid-template-columns:34px 38px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:10px 10px 8px!important}
.lvl-social-direct-layout .community-direct-head .community-chat-actions{display:none!important}
.lvl-social-direct-layout .community-direct-head .community-avatar-wrap{display:inline-flex!important}
.lvl-social-direct-layout .community-direct-friend-avatar .community-avatar{width:38px!important;height:38px!important;border-radius:11px!important}
.lvl-social-direct-layout .community-direct-head .community-chat-title{min-width:0;display:grid;gap:1px}
.lvl-social-direct-layout .community-direct-head .community-chat-title small{font-size:7.3px;letter-spacing:.1em;line-height:1.1}
.lvl-social-direct-layout .community-direct-head .community-chat-title h3{margin:0;font-size:14px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-direct-layout .community-direct-head .community-chat-title p{margin:0;font-size:7.8px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 36px 72px!important;gap:6px!important}
.lvl-social-direct-layout .community-direct-composer textarea{min-height:40px!important;padding:10px 11px!important}
.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:36px!important;min-width:36px!important;height:36px!important;border-radius:11px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.lvl-social-direct-layout .community-direct-composer .btn{min-width:72px!important;height:36px!important;padding:0 10px!important;border-radius:11px!important}
@media(max-width:620px){.lvl-social-hub-body .community-friend-card{grid-template-columns:40px minmax(0,1fr) auto!important}.lvl-social-hub-body .community-friend-actions .community-mini-btn{height:27px!important;min-height:27px!important;padding:0 7px!important;font-size:6.8px!important}.lvl-social-direct-layout .community-direct-head{grid-template-columns:32px 36px minmax(0,1fr)!important}.lvl-social-direct-layout .community-direct-friend-avatar .community-avatar{width:36px!important;height:36px!important}.lvl-social-direct-layout .community-direct-head .community-chat-title h3{font-size:13.5px!important}.lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 34px 68px!important}.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:34px!important;min-width:34px!important;height:34px!important}.lvl-social-direct-layout .community-direct-composer .btn{min-width:68px!important;height:34px!important}}
@media(max-width:430px){.lvl-social-direct-layout .community-direct-head .community-avatar-wrap{display:inline-flex!important}.lvl-social-direct-layout .community-direct-head{grid-template-columns:32px 34px minmax(0,1fr)!important;gap:7px!important}.lvl-social-direct-layout .community-direct-friend-avatar .community-avatar{width:34px!important;height:34px!important;border-radius:10px!important}.lvl-social-direct-layout .community-direct-head .community-chat-title small{display:none}.lvl-social-direct-layout .community-direct-head .community-chat-title h3{font-size:13px!important}.lvl-social-hub-body .community-friend-card{grid-template-columns:38px minmax(0,1fr) auto!important;padding:9px!important}.lvl-social-hub-body .community-friend-actions{gap:3px!important}.lvl-social-hub-body .community-friend-actions .community-mini-btn{height:26px!important;min-height:26px!important;padding:0 6px!important;font-size:6.5px!important}}


/* V1.19.9S — interaction isolation + ChatGPT-style microphone */
.lvl-social-hub-popover{pointer-events:auto!important;isolation:isolate;overscroll-behavior:contain;touch-action:manipulation}
.lvl-social-hub-popover *{box-sizing:border-box}
.lvl-social-hub-body{overscroll-behavior:contain}
.lvl-social-direct-layout.is-direct-open{min-height:0!important;height:100%!important;overflow:hidden}
.lvl-social-direct-layout.is-direct-open .community-direct-stage{min-height:0!important;height:100%!important;overflow:hidden}
.lvl-social-direct-layout.is-direct-open .community-direct-body{min-height:0!important;height:100%!important;overflow:hidden}
.lvl-social-direct-layout.is-direct-open .community-message-pane{min-height:0!important;height:100%!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important}
.lvl-social-direct-layout.is-direct-open .community-direct-log{min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain}
.lvl-social-direct-layout .community-direct-composer{align-items:center!important}
.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#d8dde7!important;box-shadow:none!important;display:inline-grid!important;place-items:center!important;transition:background .15s ease,color .15s ease,transform .15s ease}
.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only:hover,.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only:focus-visible{background:rgba(255,255,255,.07)!important;color:#fff!important;outline:none}
.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only:active{transform:scale(.94)}
.lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only.live{background:rgba(135,65,235,.18)!important;color:#cfa8ff!important}
.community-mic-svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
@media(max-width:620px){
  .lvl-social-hub-popover{height:min(72dvh,620px)!important;max-height:calc(100dvh - 96px)!important;bottom:auto!important}
  .lvl-social-hub-body{overflow:auto!important;min-height:0!important}
  .lvl-social-direct-layout.is-direct-open{height:100%!important}
  .lvl-social-direct-layout.is-direct-open .community-direct-stage{height:100%!important}
  .lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 34px 68px!important;gap:5px!important;padding:7px 8px!important}
  .lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:32px!important;min-width:32px!important;height:32px!important}
  .community-mic-svg{width:17px;height:17px}
}
@media(max-width:430px){
  .lvl-social-hub-popover{height:min(70dvh,590px)!important;max-height:calc(100dvh - 92px)!important}
  .lvl-social-direct-layout .community-direct-composer{grid-template-columns:minmax(0,1fr) 32px 64px!important;gap:4px!important}
  .lvl-social-direct-layout .community-direct-composer .community-voice-btn.icon-only{width:30px!important;min-width:30px!important;height:30px!important}
  .lvl-social-direct-layout .community-direct-composer .btn{min-width:64px!important;height:34px!important;padding:0 9px!important}
}
