#community .com-layout{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid #28364c;border-radius:12px;overflow:hidden;background:#111b2a}#community .com-channels{background:#0d1623;padding:20px;border-right:1px solid #28364c}#community h2{font-size:18px;margin:0 0 12px}#com-channels button{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;color:#b1c2d9}#com-channels button.active{background:#244577;color:#fff}#community .com-heading{padding:20px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #28364c}#community .com-voice{padding:16px 20px;background:#14243b;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}#community .com-controls{display:flex;gap:6px;flex-wrap:wrap;align-items:center}#community button{font-size:13px}#community [hidden]{display:none!important}#com-peers{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}#com-peers span{border:1px solid #39506c;padding:6px 10px;border-radius:20px;font-size:12px}#com-peers span.speaking{border-color:#64d9a5;background:#164334}#com-messages{height:43vh;min-height:240px;overflow-y:auto;padding:12px 20px}#com-messages article{padding:12px 0;border-bottom:1px solid #233045}#com-messages p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;color:#e0e8f5}#com-messages small{margin-left:12px;color:#899cb8}#com-messages button{float:right;background:transparent;color:#abbad0;padding:3px}#com-send{padding:16px 20px;border-top:1px solid #28364c;display:flex;gap:12px;align-items:end}#com-send label{flex:1}#com-send textarea{resize:vertical}#community details{margin-top:24px}#community .com-error{margin-bottom:12px}#com-older{margin:8px 20px}@media(max-width:760px){#community .com-layout{grid-template-columns:1fr}#community .com-channels{border-right:0;border-bottom:1px solid #28364c}#com-channels{display:flex;flex-wrap:wrap;gap:6px}#com-channels button{width:auto}#com-send{flex-direction:column;align-items:stretch}#community .com-heading{flex-wrap:wrap}}

/* Channel tree: compact voice rooms and nested participants. */

#community{font-family:'Segoe UI',sans-serif}#community .com-layout{grid-template-columns:260px minmax(0,1fr);background:#252832;border-color:#353944}#community .com-channels{background:#1c1f27;padding:18px 12px;display:flex;flex-direction:column;border-color:#353944}#community .com-channels h2{padding:0 8px 18px;border-bottom:1px solid #30343e;font-size:16px}#community .com-category{font-size:12px;font-weight:700;color:#949ba8;margin:18px 8px 8px}#community #com-channels button,#community .com-voice-channel{display:block;width:100%;padding:8px 10px;margin:2px 0;border:0;border-radius:5px;background:transparent;box-shadow:none;color:#aeb4c0;text-align:left;font-size:14px;font-weight:500;min-height:0}#community #com-channels button:hover,#community .com-voice-channel:hover{background:#2b2f39;color:#fff}#community #com-channels button.active{background:#353947;color:#fff}#community .com-voice-channel.connected{color:#72d69b}#community .com-voice-person{display:flex;align-items:center;gap:9px;padding:5px 8px 5px 30px;color:#c2c7d0;font-size:13px}#community .com-person-avatar{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#5b65a5;color:white;font-size:12px}#community .com-voice-person.speaking .com-person-avatar{outline:2px solid #65d58f}#community .com-voice{margin:24px -12px -18px;padding:12px;background:#171a21;display:block;border-top:1px solid #30343e}#community .com-voice strong{font-size:12px;color:#74dba4}#community .com-controls{gap:5px;margin-top:10px}#community .com-controls button{padding:7px 9px;min-height:0;border:0;box-shadow:none;background:#303541;color:#dce1ea;font-size:11px;border-radius:5px}#community .com-heading{padding:16px 22px;background:#252832;border-color:#353944;align-items:center}#community .com-heading h2{margin:0;font-size:17px}#community .com-heading small{display:none}#community #com-archive{padding:6px 9px;background:transparent;color:#a5adbc;box-shadow:none;border:0;font-size:12px;min-height:0}#community #com-messages{height:53vh;padding:16px 22px}#community #com-messages article{border:0;padding:10px 0;position:relative}#community #com-messages article:hover{background:#292d38}#community #com-messages strong{font-size:14px}#community #com-messages small{display:inline;font-size:11px;color:#89909e}#community #com-messages p{font-size:14px;line-height:1.5;margin:4px 0;color:#d4d7df}#community #com-messages button{float:none;position:absolute;right:0;top:0;border:0;box-shadow:none;background:#1c1f27;padding:5px;opacity:0}#community #com-messages article:hover button,#community #com-messages button:focus-visible{opacity:1}#community #com-send{border:0;padding:12px 22px 20px}#community #com-send textarea{background:#353945;border:0;border-radius:8px;min-height:48px;color:#f0f2f7}#community #com-send button{background:#5865f2;color:#fff;box-shadow:none;border:0;padding:12px 16px}#community .com-compose-label{font-size:0;gap:0}#community button:focus-visible{outline:2px solid #8c98ff;outline-offset:2px}@media(max-width:760px){#community .com-layout{grid-template-columns:1fr}#community .com-channels{display:block}#community #com-channels{display:block}#community .com-voice{margin-bottom:0}#community #com-messages{height:42vh}#community #com-messages button{opacity:1}}



#community .com-peer-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#community .com-peer-status{display:flex;gap:5px;margin-left:auto;color:#969da9;flex-shrink:0}#community .com-peer-status svg{display:block}



#community .com-volume{width:52px;min-width:36px;padding:0;height:16px;accent-color:#8491ee}#community #com-device-settings{margin-top:12px;font-size:12px}#community #com-device-settings input[type=checkbox]{width:auto}#community #com-device-settings meter{width:100%}#community .com-voice-person.speaking .com-person-avatar{outline:2px solid #57e389;box-shadow:0 0 0 2px #225b39}#community .com-voice{margin-top:auto}#community .com-connection{display:flex;align-items:center;gap:8px;padding:8px 0;color:#969eac}#community .com-connection strong{color:inherit;font-size:12px;flex:1}#community .com-connection.connected{color:#72d89a}#community .com-userbar{display:flex;align-items:center;gap:8px;border-top:1px solid #303640;padding-top:10px;margin-top:8px}#community .com-user-nick{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}#community .com-userbar .com-controls{margin:0;flex-wrap:nowrap;gap:2px}#community .com-controls button,#community .com-icon-button{width:30px;height:32px;display:grid;place-items:center;padding:5px!important;border:0;background:transparent;box-shadow:none;color:#c4cbd5;border-radius:6px;min-height:0}#community .com-controls button:hover{background:#323841}#community .com-controls button.is-off{color:#f4777c;background:#42292e}#community #com-settings-open{font-size:20px}#community #com-device-settings{position:fixed;inset:0;margin:auto;width:min(720px,94vw);max-height:90vh;overflow:auto;padding:28px;border:1px solid #3b414d;border-radius:14px;background:#20252d;color:#e5e9ef;box-shadow:0 24px 90px #0008;font-size:14px}#community #com-device-settings::backdrop{background:#080c12bb}#community #com-device-settings header{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}#community #com-device-settings h2{font-size:24px;margin-bottom:8px}#community #com-device-settings p{color:#a0a9b7;font-size:13px;line-height:1.6}#community #com-device-settings button{background:#3a4352;color:#eef0ff;border:0;box-shadow:none;min-height:0;padding:10px 14px;border-radius:7px}#community #com-device-settings #com-test{background:#5865f2}#community .com-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}#community .com-settings-grid label{font-size:13px;gap:10px;color:#dae0e8}#community .com-settings-grid select{background:#171c23;border-color:#3d4552;max-width:100%;font-size:13px}#community .com-listen-setting{display:flex;flex-direction:row;align-items:center}#community .com-listen-setting input{margin:0;accent-color:#6876ff}#community .com-settings-grid input[type=range]{padding:0;accent-color:#7884ff}#community .com-mic-test{display:flex;gap:20px;align-items:center;margin:30px 0 12px}#community #com-device-settings meter{flex:1;height:20px}#community #com-device-settings footer{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid #39404c;font-size:12px;color:#9fa9b9}#community .com-peer-menu{position:fixed;z-index:1000;background:#171d24;border:1px solid #3b4553;border-radius:9px;box-shadow:0 10px 32px #0008;padding:14px;width:242px;font-size:13px}#community .com-peer-menu strong{display:block;padding-bottom:12px;border-bottom:1px solid #343c48;margin-bottom:14px}#community .com-peer-menu label{font-size:12px;display:block}#community .com-peer-menu output{float:right;color:#98a7ff}#community .com-peer-menu input{width:100%;padding:0;accent-color:#7784ff;margin:12px 0}#community .com-peer-menu button{width:100%;border:0;background:#303947;color:#e2e8f3;padding:8px;box-shadow:none}#community .com-voice-person:focus-visible{outline:2px solid #7884ff;border-radius:5px}@media(max-width:600px){#community .com-settings-grid{grid-template-columns:1fr}#community #com-device-settings{padding:20px}#community .com-mic-test{flex-wrap:wrap}#community #com-device-settings footer{flex-direction:column;align-items:start}}



#community #com-channel-dialog{position:fixed;inset:0;margin:auto;width:min(550px,92vw);max-height:90vh;overflow:auto;background:#20252d;color:#e4e9f1;border:1px solid #444c59;border-radius:12px;padding:28px}#community #com-channel-dialog::backdrop{background:#080c12bb}#community #com-channel-dialog label{margin-top:18px}#community #com-channel-dialog p{font-size:13px;color:#a8b2c2}#community .com-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}#community #com-voice-channels>div{position:relative}#community .com-room-gear{position:absolute;right:2px;top:3px;background:transparent;color:#9ba7ba;border:0;box-shadow:none;padding:4px;font-size:16px;min-height:0}#community .com-voice-channel{padding-right:28px}

#community .com-video-controls{display:flex;gap:6px;margin:8px 0}#community .com-video-controls button{font-size:11px;padding:7px;background:#303947;border:0;color:#e4eaf4;box-shadow:none}#com-videos{display:flex;flex-wrap:wrap;gap:12px;padding:12px}#com-videos:empty{display:none}#com-videos figure{margin:0;flex:1 1 260px;max-width:100%;background:#11151c;border-radius:8px;overflow:hidden}#com-videos video{display:block;width:100%;max-height:380px;object-fit:contain}#com-videos figcaption{padding:8px 12px;font-size:12px;color:#b2bfd3}

#community .com-text-channel-row{position:relative}#community #com-channels .com-text-channel-row>button:first-child{padding-right:32px}#community #com-channels button.com-text-gear{position:absolute;right:2px;top:3px;width:25px;margin:0;padding:4px;color:#9ba7ba;text-align:center;font-size:16px}#community #com-video-stage{margin-bottom:16px;border:1px solid #3a4351;border-radius:12px;background:#151b24}#community #com-video-stage>header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px;border-bottom:1px solid #343e4c}#community #com-video-stage small{color:#9aa8bc}

#community #com-videos figure.com-video-unselected{display:none}#community #com-videos figure{flex-basis:100%;background:#080a0e}#community #com-videos video{max-height:65vh;min-height:220px}#com-video-picker{display:flex;justify-content:center;gap:8px;padding:12px;flex-wrap:wrap}#community #com-video-picker button{background:#282f3b;color:#c8d3e3;border:1px solid #3a4557;border-radius:8px;box-shadow:none;padding:12px 18px}#community #com-video-picker button.active{border-color:#8191ff;background:#344572;color:white}

#community .com-main{min-width:0;position:relative}#community.com-watching .com-main>.com-heading,#community.com-watching #com-messages,#community.com-watching #com-send,#community.com-watching #com-older{display:none!important}#community #com-video-stage{border:0;border-radius:0;margin:0;background:#080a0d;min-height:65vh}#community #com-video-stage>header{padding-right:155px}#community #com-video-stage header small{display:none}#community #com-view-toggle{position:absolute;top:10px;right:12px;z-index:2;font-size:12px;padding:8px 12px;background:#293345;color:#e1e8f4;border:0;box-shadow:none}#community #com-videos{padding:0}#community #com-videos video{height:55vh;max-height:65vh;object-fit:contain}#community #com-video-picker{padding:16px;gap:10px}#community #com-video-picker button{position:relative;padding:0;width:155px;height:95px;overflow:hidden;border:2px solid #303744;border-radius:8px;background:#161b25}#community #com-video-picker button.active{border-color:#8c9aff}#community #com-video-picker video{width:100%;height:100%;object-fit:cover}#community #com-video-picker span{position:absolute;left:0;right:0;bottom:0;background:#10151dcc;color:white;text-align:left;font-size:11px;padding:5px 7px}#community.com-watching .com-layout{min-height:75vh}@media(max-width:760px){#community #com-videos video{height:35vh}#community #com-video-picker button{width:115px;height:75px}#community #com-video-stage>header{font-size:12px;padding-left:10px}}



#community .com-layout{grid-template-columns:240px minmax(0,1fr) 190px;align-items:stretch}#community #com-members{padding:16px 12px;background:#1d222b;border-left:1px solid #333d4b;max-height:78vh;overflow:auto}#community #com-members h3{font-size:13px;color:#9eabbc;margin:0 0 16px}#community #com-member-list>div{padding:9px 0}#community #com-member-list strong{display:block;font-size:13px;overflow-wrap:anywhere}#community #com-member-list small{display:block;font-size:11px;color:#96a4b9;margin-top:3px}#community .com-main{display:flex;flex-direction:column;height:78vh;min-height:450px}#community #com-messages{flex:1;min-height:0;height:auto;overflow:auto}#community #com-send{flex-shrink:0;margin-top:auto}#community .com-heading{flex-shrink:0}#community #com-video-stage{min-height:0;overflow:auto;height:100%}@media(max-width:1100px){#community .com-layout{grid-template-columns:210px minmax(0,1fr)}#community #com-members{display:none}}@media(max-width:760px){#community .com-layout{grid-template-columns:1fr}#community .com-main{height:70vh}}



#community .com-access{max-height:230px;overflow:auto;border:1px solid #465165;margin-top:16px}#community .com-access label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0!important}#community .com-access input{width:auto}

/* Equal-height columns; only channel/message/member lists scroll. */

#community .com-layout,#community.com-watching .com-layout{height:78dvh;min-height:480px;max-height:1000px;overflow:hidden;align-items:stretch}

#community .com-channels{min-height:0;overflow:hidden;padding:0;display:flex;flex-direction:column}

#community .com-channel-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:18px 12px;scrollbar-width:thin}

#community .com-channels .com-voice{flex-shrink:0;margin:0;padding:10px 12px;border-top:1px solid #343c48}

#community .com-main{height:100%;min-height:0;overflow:hidden}

#community #com-members{height:100%;max-height:none;min-height:0;box-sizing:border-box;scrollbar-width:thin}

#community #com-messages{height:auto;min-height:0;flex:1 1 0;scrollbar-width:thin}

#community #com-send{margin:0;padding:12px 20px;flex:0 0 auto;background:#252832}

#community #com-send textarea{height:54px;min-height:54px;max-height:120px;resize:vertical}

#community .com-heading{justify-content:flex-start;gap:12px;padding:12px 20px;min-height:58px;box-sizing:border-box}

#community .com-heading>div{flex:1;min-width:0}

#community #com-channel-settings,#community #com-archive{background:transparent;box-shadow:none;border:0;color:#a5b3c8;min-height:0;padding:7px;font-size:12px}

#community #com-channel-settings:hover,#community #com-archive:hover{background:#323a48;color:white}

#community #com-older{flex-shrink:0}

@media(max-width:760px){#community .com-layout,#community.com-watching .com-layout{height:auto;max-height:none;min-height:0}#community .com-channel-scroll{max-height:240px;flex:auto}#community .com-main{height:65dvh;min-height:350px}#community .com-heading{flex-wrap:wrap}#community .com-heading>div{flex-basis:100%}}



#community #com-member-list h4{font-size:12px;margin:20px 0 6px;font-weight:600}#community #com-member-list h4:first-child{margin-top:0}

#community #com-stickers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:12px;background:#1c2330;max-height:210px;overflow:auto;flex-shrink:0}#community #com-stickers button{background:#303a4b;border:0;box-shadow:none;color:#e5ebf5;padding:10px;font-size:14px}#community #com-stickers-toggle{font-size:23px;padding:9px 12px}#community #com-messages p.com-sticker{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:130px;padding:16px;border-radius:18px;background:#303c54}#community .com-sticker span:first-child{font-size:64px;line-height:1.2}#community .com-sticker span:last-child{font-size:15px;font-weight:700}#community.com-watching #com-stickers{display:none!important}@media(max-width:600px){#community #com-stickers{grid-template-columns:repeat(2,minmax(0,1fr))}}

#community #com-stickers{display:block;max-height:300px;padding:10px}#community .com-pack-tabs{display:flex;gap:6px;position:sticky;top:0;background:#1c2330;padding-bottom:8px;flex-wrap:wrap}#community .com-pack-tabs button.active{background:#5365b3!important;color:#fff}#community .com-pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:6px}#community #com-stickers .com-pack-grid button{background:transparent;padding:6px;height:82px;border-radius:8px}#community #com-stickers .com-pack-grid button:hover{background:#344158}#community .com-pack-grid img{width:100%;height:100%;object-fit:contain}#community #com-messages p.com-image-sticker{background:none;border:0;padding:0;margin:8px 0;display:block}#community .com-image-sticker img{display:block;width:160px;height:160px;object-fit:contain}


#com-floating-dock{position:fixed;z-index:1500;right:18px;bottom:18px;display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #40516a;border-radius:10px;background:#17251f;color:#dce9e2;box-shadow:0 12px 35px #0008}#com-floating-dock[hidden]{display:none}#com-floating-dock strong{font-size:12px;color:#74dba4}#com-floating-dock button{min-height:0;padding:8px 10px;border:0;border-radius:6px;background:#354339;color:#eef5f0;box-shadow:none;font-size:12px}#com-floating-dock button:last-child{background:#553138;color:#ffced2}@media(max-width:600px){#com-floating-dock{left:8px;right:8px;bottom:8px;flex-wrap:wrap}#com-floating-dock strong{flex-basis:100%}}

/* Keep the voice-bar controls on one exact baseline. */
#community .com-userbar .com-controls{display:grid;grid-template-columns:repeat(3,32px);align-items:center;justify-content:end;gap:2px}
#community .com-userbar .com-controls button{width:32px;height:32px;margin:0;line-height:0;align-self:center}
#community .com-userbar .com-controls button[hidden]{display:none!important}
#community .com-userbar .com-controls svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#community #com-settings-open{font-size:0}

/* Community identity, friends and private messages. */
#community .com-server-title{display:flex;width:100%;align-items:center;justify-content:space-between;padding:10px 8px 16px;background:transparent;border:0;border-bottom:1px solid #30343e;border-radius:0;color:#f0f3f8;font-size:16px;font-weight:700;box-shadow:none;text-align:left}#community .com-server-title:hover{background:#292e38}#community .com-friends-open{display:flex;align-items:center;gap:8px;width:100%;margin:10px 0;padding:9px 10px;border:0;background:#292e38;color:#e9edf5;box-shadow:none;text-align:left}#com-notify-count{margin-left:auto;min-width:19px;padding:2px 5px;border-radius:10px;background:#ef4b5f;color:white;text-align:center;font-size:11px}#com-server-banner{height:145px;flex:0 0 145px;background-size:cover;background-position:center;border-bottom:1px solid #394253}#community #com-member-list>div{cursor:pointer;border-radius:6px;padding:8px}#community #com-member-list>div:hover{background:#2b313c}#community .com-profile-link{cursor:pointer}#community .com-profile-link:hover{text-decoration:underline}
.com-social-modal{width:min(850px,94vw);max-height:88vh;padding:0;overflow:hidden;border:1px solid #3b4453;border-radius:14px;background:#20242d;color:#edf1f7;box-shadow:0 25px 90px #000a}.com-social-modal::backdrop{background:#090c12c7}.com-social-modal>header{display:flex;align-items:center;padding:16px 20px;border-bottom:1px solid #343b48}.com-social-modal>header h2{margin:0;flex:1;font-size:20px}.com-social-modal>header button{border:0;background:transparent;color:#cbd2dd;box-shadow:none}.com-social-body{padding:20px;max-height:75vh;overflow:auto}.com-profile-banner,.com-settings-banner{height:180px;margin:-20px -20px 0;background:linear-gradient(135deg,#33495d,#20382e);background-size:cover;background-position:center}.com-profile-avatar{width:96px;height:96px;margin-top:-48px;border:6px solid #20242d;border-radius:50%;image-rendering:pixelated;background:#313844}.com-profile-modal h3{font-size:24px;margin:8px 0}.com-profile-role{font-weight:700}.com-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.com-profile-actions button,.com-social-modal form button{background:#5865f2;color:white;border:0;box-shadow:none}.com-friend-add{display:flex;gap:8px;margin-bottom:15px}.com-friend-add input{flex:1}.com-pending>div{display:flex;justify-content:space-between;align-items:center;padding:8px;background:#303744;margin:5px 0}.com-friends-layout{display:grid;grid-template-columns:240px 1fr;min-height:430px;border:1px solid #353e4d}.com-friends-layout>aside{padding:10px;border-right:1px solid #353e4d}.com-friend{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;width:100%;padding:8px;border:0;background:transparent;color:#cbd2de;box-shadow:none;text-align:left}.com-friend:hover{background:#303744}.com-friend.online span{color:#78dba1}.com-friend img{width:34px;height:34px;border-radius:50%;image-rendering:pixelated}.com-friend b{color:#ff7585}.com-friends-layout>section{display:flex;flex-direction:column;min-width:0}.com-friends-layout>section>header{padding:12px;border-bottom:1px solid #353e4d}.com-dm-profile{background:transparent;border:0;box-shadow:none;color:white;font-weight:700}.com-dm-log{flex:1;overflow:auto;padding:12px}.com-dm-log article{padding:8px;border-radius:8px}.com-dm-log article.mine{background:#292f3b}.com-dm-log p{margin:4px 0;white-space:pre-wrap}.com-dm-log small{color:#8f9cad}.com-dm-send{display:flex;gap:8px;padding:12px}.com-dm-send textarea{flex:1;min-height:50px}.com-server-modal form{display:grid;gap:14px;margin-top:18px}.com-server-modal label{display:grid;gap:6px}.com-server-modal .com-check{display:flex;align-items:center}.com-server-modal .com-check input{width:auto}.com-server-links{display:flex;gap:10px;margin-top:16px}@media(max-width:700px){.com-friends-layout{grid-template-columns:1fr}.com-friends-layout>aside{border-right:0;border-bottom:1px solid #353e4d;max-height:150px;overflow:auto}.com-profile-banner,.com-settings-banner{height:120px}}
.com-profile-media-edit{display:flex;gap:10px;flex-wrap:wrap;width:100%}.com-profile-media-edit label{display:grid;gap:5px;padding:10px;border-radius:8px;background:#303744;font-size:12px}.com-profile-media-edit input[type=file],.com-server-modal input[type=file]{padding:8px;background:#171c24;border:1px dashed #566176;color:#cfd7e4}

/* Server banner belongs to the server identity block in the left sidebar. */
#community #com-server-banner{width:calc(100% + 24px);height:112px;min-height:112px;margin:0 -12px 8px;display:block;background-size:cover;background-position:center;border:0;border-bottom:1px solid #394253;border-radius:0}#community #com-server-banner[hidden]{display:none}

.com-role-head{display:flex;gap:14px;align-items:start}.com-role-head button{background:transparent;border:0;color:#bfc8d6;box-shadow:none}.com-role-head h3{margin:0 0 5px}.com-role-head p{margin:0;color:#98a4b5;font-size:12px}.com-role-list{display:grid;gap:8px;margin-top:18px}.com-role-row{display:grid;grid-template-columns:minmax(150px,1fr) 85px 100px auto;gap:10px;align-items:end;padding:12px;border-radius:8px;background:#292f39}.com-role-row label{display:grid;gap:5px;font-size:11px;color:#abb5c5}.com-role-row input{height:38px}.com-role-row input[type=color]{padding:3px}.com-role-row button{height:38px}@media(max-width:650px){.com-role-row{grid-template-columns:1fr 80px}.com-role-row label:first-of-type{grid-column:1/-1}}

.com-profile-description{max-width:620px;color:#c3cad6;line-height:1.55;white-space:pre-wrap}.com-my-profile-settings{margin-top:26px;padding-top:22px;border-top:1px solid #39404c}.com-my-profile-settings h3{margin:0 0 5px;font-size:18px}.com-my-profile-settings>div>p{margin:0 0 16px!important}.com-profile-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.com-my-profile-settings label{display:grid;gap:7px;margin-top:12px}.com-my-profile-settings input[type=file]{padding:10px;background:#171c23;border:1px dashed #4c586a}.com-my-profile-settings textarea{resize:vertical;background:#171c23;border-color:#3d4552}.com-my-profile-settings .com-profile-save{margin-top:14px;background:#5865f2!important}@media(max-width:600px){.com-profile-settings-grid{grid-template-columns:1fr}}

#community .com-message-head{display:flex;align-items:center;gap:8px}#community .com-message-head small{margin-left:2px}#community .com-message-avatar,#community .com-member-avatar{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#4f5d85;color:#fff;font-size:12px}#community .com-message-avatar img,#community .com-member-avatar img,#community .com-person-avatar img,#community .com-userbar .com-person-avatar img{width:100%;height:100%;object-fit:cover;display:block}#community #com-messages article>p{margin-left:42px}#community .com-member{display:grid!important;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:8px}#community .com-member-avatar{width:28px;height:28px}#community .com-person-avatar{overflow:hidden}#community .com-userbar .com-person-avatar{overflow:hidden}

.com-friend-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#52628d;color:#fff;font-style:normal;font-weight:700}.com-friend-avatar img{width:100%;height:100%;object-fit:cover;display:block}

#community #com-member-list .com-offline-heading{margin-top:24px!important;color:#7f8897!important}#community #com-member-list .com-member.offline{opacity:.48}#community #com-member-list .com-member.offline:hover{opacity:.8}#community #com-member-list .com-member.offline .com-member-avatar{filter:grayscale(1)}

/* Discord-like friends/server navigation. */
#community .com-layout{grid-template-columns:58px 240px minmax(0,1fr) 190px}#community .com-server-rail{display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px 7px;background:#151821;border-right:1px solid #303744}#community .com-server-rail>span{width:32px;height:1px;background:#353b47}#community .com-server-rail button{position:relative;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:14px;background:#2b303c;color:#eef2f8;box-shadow:none;font-size:21px;transition:.15s}#community .com-server-rail button:hover,#community .com-server-rail button.active{border-radius:11px;background:#5865f2}#community .com-server-rail button.active:before{content:'';position:absolute;left:-10px;width:4px;height:28px;border-radius:0 4px 4px 0;background:#fff}#community .com-server-rail b{position:absolute;right:-4px;top:-5px;min-width:17px;padding:2px 4px;border-radius:10px;background:#e84c5f;color:#fff;font-size:10px}.com-social-page{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;background:#20242d}.com-social-page[hidden]{display:none}.com-social-page>header{height:58px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #363d49}.com-social-page>header h2{margin:0;font-size:18px}.com-social-page-body{padding:20px;overflow:auto;flex:1;min-height:0}.com-main.show-social>.com-heading,.com-main.show-social>#com-messages,.com-main.show-social>#com-older,.com-main.show-social>#com-stickers,.com-main.show-social>#com-send,.com-main.show-social>#com-video-stage,.com-main.show-social>#com-view-toggle,.com-main.show-social>#com-server-banner{visibility:hidden}.com-main.show-social .com-friends-layout{height:calc(100% - 70px);min-height:350px}.com-main.show-social .com-social-page-body{overflow:hidden}.com-main.show-social .com-friend-add{height:44px}@media(max-width:1100px){#community .com-layout{grid-template-columns:54px 210px minmax(0,1fr)}}@media(max-width:760px){#community .com-layout{grid-template-columns:50px minmax(0,1fr)}#community .com-channels{display:none}#community #com-members{display:none}.com-social-page-body{padding:10px}}

#community .com-server-rail .com-rail-server{overflow:hidden}#community .com-server-rail .com-rail-server img{display:block;width:100%;height:100%;object-fit:cover}.com-server-media-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:600px){.com-server-media-fields{grid-template-columns:1fr}}

#community.com-social-active .com-layout{grid-template-columns:58px minmax(0,1fr) 190px}#community.com-social-active .com-channels,#community.com-social-active #com-members{display:none!important}#com-social-members{padding:16px 12px;background:#1d222b;border-left:1px solid #333d4b;overflow:auto}#com-social-members[hidden]{display:none}#com-social-members h3{font-size:13px;color:#9eabbc;margin:0 0 16px}.com-social-member{display:flex;align-items:center;gap:9px;width:100%;padding:8px 5px;border:0;border-radius:7px;background:transparent;color:#dbe1ea;box-shadow:none;text-align:left}.com-social-member:hover{background:#2b313c}.com-social-member>span:first-child{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;overflow:hidden;background:#52628d}.com-social-member img{width:100%;height:100%;object-fit:cover}.com-social-member strong,.com-social-member small{display:block;overflow:hidden;text-overflow:ellipsis}.com-social-member small{font-size:10px;color:#929fb1;margin-top:2px}@media(max-width:1100px){#community.com-social-active .com-layout{grid-template-columns:54px minmax(0,1fr)}#com-social-members{display:none!important}}
/* In friends/DM view keep the active voice controls, but hide the open server channel tree. */
#community.com-social-active .com-layout{grid-template-columns:58px 240px minmax(0,1fr) 190px}#community.com-social-active .com-channels{display:flex!important}#community.com-social-active .com-channels .com-channel-scroll{display:none!important}#community.com-social-active .com-channels .com-voice{margin-top:auto}@media(max-width:1100px){#community.com-social-active .com-layout{grid-template-columns:54px 210px minmax(0,1fr)}#community.com-social-active #com-social-members{display:none!important}}@media(max-width:760px){#community.com-social-active .com-layout{grid-template-columns:50px minmax(0,1fr)}#community.com-social-active .com-channels{display:none!important}}
/* Private-message composer stays pinned while only the message history scrolls. */
#community .com-social-page{min-height:0}#community .com-social-page-body{display:flex;flex-direction:column;min-height:0}#community .com-social-page-body>.com-friend-add,#community .com-social-page-body>.com-pending{flex:0 0 auto}#community .com-social-page-body>.com-friends-layout{flex:1 1 0;height:auto!important;min-height:0!important;overflow:hidden}#community .com-friends-layout>section{min-height:0;overflow:hidden}#community .com-dm-log{flex:1 1 0;min-height:0;overflow-y:auto}#community .com-dm-send{flex:0 0 auto;background:#20242d;border-top:1px solid #353e4d}#community .com-dm-send textarea{height:58px;min-height:58px;max-height:120px;resize:vertical}

.com-social-page>header{gap:22px}.com-friends-tabs{display:flex;align-items:center;gap:5px}.com-friends-tabs button{padding:7px 12px;border:0;border-radius:5px;background:transparent;color:#b8c0ce;box-shadow:none}.com-friends-tabs button:hover,.com-friends-tabs button.active{background:#353b47;color:#fff}.com-friends-tabs button[data-mode=add]{background:#248046;color:#fff}.com-friend-add[hidden],.com-pending[hidden],.com-friends-layout[hidden],.com-friend[hidden]{display:none!important}.com-friend-add{display:grid;grid-template-columns:1fr auto;align-items:end;padding:22px;border:1px solid #363e4c;border-radius:10px}.com-friend-add>div{grid-column:1/-1}.com-friend-add h3{margin:0 0 5px;font-size:20px}.com-friend-add p{margin:0 0 16px;color:#aab3c1}.com-friend-remove{background:#5a3038!important;color:#ffb9c0!important}@media(max-width:700px){.com-social-page>header{height:auto;align-items:flex-start;flex-direction:column;padding-block:10px}.com-friends-tabs{flex-wrap:wrap}.com-friend-add{grid-template-columns:1fr}}

.com-social-page>header{position:relative;z-index:12;flex:0 0 auto;background:#20242d}.com-social-page-body{position:relative;z-index:1}

/* Friends header stays horizontal and the hidden server column no longer wastes space. */
#community.com-social-active .com-layout{position:relative;grid-template-columns:58px minmax(0,1fr) 190px}#community.com-social-active .com-channels{position:absolute;z-index:20;left:58px;bottom:0;width:240px;height:auto;min-height:0;border:0;background:transparent;pointer-events:none}#community.com-social-active .com-channels .com-voice{pointer-events:auto;border:1px solid #384252;border-radius:10px;background:#171a21;box-shadow:0 8px 30px #0008}#community.com-social-active .com-main{grid-column:2}#community.com-social-active #com-social-members{grid-column:3}.com-social-page>header{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;overflow:hidden}.com-social-page>header h2{flex:0 0 auto}.com-friends-tabs{display:flex!important;flex-flow:row nowrap!important;min-width:0;overflow-x:auto;scrollbar-width:thin}.com-friends-tabs button{flex:0 0 auto;white-space:nowrap}@media(max-width:1100px){#community.com-social-active .com-layout{grid-template-columns:54px minmax(0,1fr)}#community.com-social-active .com-channels{left:54px}#community.com-social-active .com-main{grid-column:2}}@media(max-width:700px){.com-social-page>header{align-items:flex-start!important;flex-direction:column!important}.com-friends-tabs{width:100%}}

/* Friends view uses the second column for navigation and DM contacts. */
#community.com-social-active .com-layout{grid-template-columns:58px 240px minmax(0,1fr) 190px}#community.com-social-active .com-channels{position:static;width:auto;height:auto;min-height:0;display:flex!important;pointer-events:auto;background:#1c1f27;border-right:1px solid #353944}#community.com-social-active .com-social-sidebar{display:flex;flex:1;min-height:0;flex-direction:column;padding:12px;overflow:hidden}#community.com-social-active .com-social-sidebar[hidden]{display:none}#community .com-social-sidebar>button{width:100%;padding:10px;margin-bottom:8px;border:0;border-radius:6px;background:#303540;color:#e7ebf2;box-shadow:none;text-align:left}#community .com-social-sidebar .com-find-friend{font-size:12px;text-align:center;background:#151922}#community .com-social-sidebar h3{margin:15px 5px 8px;color:#929cab;font-size:11px;text-transform:uppercase}.com-sidebar-friends{min-height:0;overflow-y:auto}.com-sidebar-friends .com-friend{display:grid}.com-main.show-social .com-friends-layout{grid-template-columns:1fr}.com-main.show-social .com-friends-layout>aside{display:none}.com-main.show-social .com-friends-layout>section{border:0}@media(max-width:1100px){#community.com-social-active .com-layout{grid-template-columns:54px 210px minmax(0,1fr)}#community.com-social-active .com-main{grid-column:3}#community.com-social-active .com-channels{position:static;width:auto}}
#community.com-social-active .com-main{grid-column:3}#community.com-social-active #com-social-members{grid-column:4}

.com-main.show-social .com-pending{display:none!important}.com-friend-directory{height:100%;padding:20px;overflow-y:auto}.com-friend-directory h3{margin:0 0 14px;font-size:13px;color:#aab4c3;text-transform:uppercase}.com-friend-directory article{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 8px;border-top:1px solid #343c49}.com-friend-directory article:hover{background:#292f39}.com-friend-directory article strong,.com-friend-directory article small{display:block}.com-friend-directory article small{margin-top:4px;color:#7fd6a0;font-size:11px}.com-directory-actions{display:flex;gap:6px}.com-directory-actions button,.com-friend-directory article>button{padding:8px 10px;border:0;background:#353d4b;color:#e6ebf2;box-shadow:none}.com-empty-state{padding:35px;color:#8f9aab;text-align:center}
/* Compact history control; disappears once the first message is loaded. */
#community #com-older{align-self:center;width:auto;min-height:0;margin:9px auto 3px;padding:7px 14px;border:0;border-radius:16px;background:#303947;color:#bac6d8;box-shadow:none;font-size:11px;flex:0 0 auto}#community #com-older:hover{background:#3a4556;color:#fff}#community #com-older:disabled{opacity:.55}

/* Discord-like actions shown only for the hovered/focused message. */
#community #com-messages article{padding-left:8px;padding-right:8px;border-radius:7px}#community .com-message-actions{position:absolute;right:8px;top:-15px;z-index:3;display:none;align-items:center;padding:3px;border:1px solid #424b5b;border-radius:7px;background:#1b2029;box-shadow:0 6px 18px #0007}#community #com-messages article:hover .com-message-actions,#community #com-messages article:focus-within .com-message-actions{display:flex}#community .com-message-actions button{position:static!important;display:grid!important;place-items:center;float:none!important;width:31px;height:29px;padding:3px!important;background:transparent!important;color:#cbd3df!important;opacity:1!important;font-size:15px;border-radius:5px}#community .com-message-actions button:hover{background:#343c49!important;color:#fff!important}#community .com-message-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:4px 0 0 42px}#community .com-message-reactions:empty{display:none}#community .com-message-reactions button{position:static!important;float:none!important;opacity:1!important;padding:4px 8px!important;border:1px solid #3e495b!important;border-radius:9px;background:#2c3442!important;color:#dce3ed!important}#community .com-message-reactions button.mine{border-color:#7289ff!important;background:#303a5b!important}#community .com-reply-quote{display:block;position:static!important;float:none!important;width:auto!important;margin:3px 0 2px 42px;padding:2px 6px!important;border:0!important;border-left:2px solid #7184a4!important;border-radius:0!important;background:transparent!important;color:#9eacbf!important;box-shadow:none!important;opacity:1!important;font-size:11px!important;text-align:left}#com-reply-bar{display:flex;align-items:center;gap:10px;margin:0 20px;padding:8px 12px;border-radius:7px 7px 0 0;background:#1a2029;color:#b7c2d2;font-size:12px}#com-reply-bar[hidden]{display:none}#com-reply-bar span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#com-reply-bar button{padding:2px 6px;border:0;background:transparent;color:#cbd3df;box-shadow:none}.com-forward-dialog{width:min(380px,92vw);padding:16px;border:1px solid #414b5b;border-radius:10px;background:#20252e;color:#edf1f7}.com-forward-dialog::backdrop{background:#090c12aa}.com-forward-dialog header{display:flex;align-items:center}.com-forward-dialog header strong{flex:1}.com-forward-dialog header button{border:0;background:transparent;color:#ccd4df;box-shadow:none}.com-forward-dialog p{padding:10px;background:#171c23;color:#acb7c7;overflow-wrap:anywhere}.com-forward-dialog>div{display:grid;gap:6px}.com-forward-dialog>div button{text-align:left;background:#303846;color:#edf1f7;border:0;box-shadow:none}

/* One-to-one call stage. */
#com-dm-call{position:absolute;z-index:15;left:0;right:0;top:0;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:22px;background:#080a0e;border-bottom:1px solid #343b47}#com-dm-call[hidden]{display:none}.com-call-people{display:flex;align-items:center;gap:18px}.com-call-people>span{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#3c465b;color:#fff;font-weight:700}.com-call-people .com-call-peer{background:#5865f2}.com-call-status{font-size:13px;color:#b9c3d1}.com-call-controls{display:flex;align-items:center;gap:8px}.com-call-controls button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:#272d37;color:#fff;box-shadow:none}.com-call-controls button.off{background:#543039;color:#ffb4bc}.com-call-controls span{padding:8px 10px;border-radius:8px;background:#1b2b23;color:#72d69b;font-size:11px}.com-call-controls .com-call-end{background:#da373c;font-size:20px;transform:rotate(135deg)}.com-call-incoming{display:flex;gap:8px}.com-call-incoming[hidden]{display:none}.com-call-incoming .accept{background:#248046}.com-call-incoming .decline{background:#da373c}.com-dm-send+button,.com-dm-call-start{margin-left:auto}.com-friends-layout>section>header{display:flex;align-items:center}.com-dm-call-start{padding:8px 12px;border:0;border-radius:7px;background:#248046;color:#fff;box-shadow:none}.com-social-page:has(#com-dm-call:not([hidden]))>header{visibility:hidden}.com-social-page:has(#com-dm-call:not([hidden])) .com-social-page-body{padding-top:205px}

/* DM call state in the persistent voice panel. */
#community .com-voice.dm-call-mode>.com-connection,#community .com-voice.dm-call-mode>#com-join,#community .com-voice.dm-call-mode>.com-video-controls{display:none!important}
#community #com-dm-call-dock{position:relative;padding:2px 0 10px;border-bottom:1px solid #343a45;margin-bottom:8px}
#community #com-dm-call-dock[hidden]{display:none!important}
#community .com-call-dock-status{display:flex;align-items:center;gap:8px;color:#57cf88;margin-bottom:9px}
#community .com-call-dock-status>span{font-size:17px}
#community .com-call-dock-status>div{min-width:0;display:flex;flex-direction:column}
#community .com-call-dock-status strong{color:#57cf88;font-size:12px}
#community .com-call-dock-status small{color:#aeb7c5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#community .com-call-dock-buttons{display:flex;justify-content:flex-end;gap:7px}
#community .com-call-dock-buttons button{width:34px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:#30343e;color:#d7dce5;box-shadow:none}
#community .com-call-dock-buttons button:hover{background:#3a404c}
#community .com-call-dock-buttons .com-dock-noise.active{color:#69d899;background:#263d34}
#community .com-call-dock-buttons .com-dock-hangup{background:#3b3f49;color:#dadde4;font-size:18px;transform:none}
#community .com-call-dock-buttons .com-dock-hangup:hover{background:#d83c43;color:#fff}
#community .com-noise-popover{position:absolute;z-index:100;left:calc(100% + 14px);bottom:0;width:270px;padding:14px;border:1px solid #30463a;border-radius:8px;background:#101d16;color:#e4ebe6;box-shadow:0 12px 36px #0009}
#community .com-noise-popover[hidden]{display:none!important}
#community .com-noise-popover header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
#community .com-noise-popover p{margin:6px 0 12px;color:#cbd5ce;font-size:12px;line-height:1.45}
#community .com-noise-popover>strong{font-size:12px}
#community .com-noise-popover>small{display:block;margin-top:12px;color:#8fa89a}
#community .com-noise-switch{display:block;position:relative;width:46px;height:24px;margin:0}
#community .com-noise-switch input{position:absolute;opacity:0}
#community .com-noise-switch span{display:block;width:46px;height:24px;border-radius:20px;background:#4a5059;cursor:pointer;transition:.15s}
#community .com-noise-switch span:after{content:'';display:block;width:18px;height:18px;margin:3px;border-radius:50%;background:#fff;transition:.15s}
#community .com-noise-switch input:checked+span{background:#5865f2}
#community .com-noise-switch input:checked+span:after{transform:translateX(22px)}
#community .com-noise-test{display:flex;align-items:center;gap:9px;margin-top:8px}
#community .com-noise-test button{width:auto;height:auto;padding:7px 10px;border:0;border-radius:6px;background:#303b35;color:#e3ebe6;box-shadow:none;font-size:11px}
#community .com-noise-test meter{width:130px;height:14px;accent-color:#58ce88}
#community .com-call-mute svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#community .com-call-mute{position:relative}
#community .com-call-mute i{display:none;position:absolute;width:24px;height:2px;background:currentColor;transform:rotate(-45deg);border-radius:2px}
#community .com-call-mute.off i{display:block}
#community .com-dm-log article.com-dm-call-event{padding:10px 12px;border-left:3px solid #4fc77f;background:#19251f;color:#cfe8d8}
#community .com-dm-log article.com-dm-call-event p{color:#cfe8d8}
#community .com-dm-sticker{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:transparent!important}
#community .com-dm-sticker img{display:block;width:auto;max-width:180px;height:auto;max-height:180px;object-fit:contain}
#community .com-dm-sticker-emoji{font-size:64px;line-height:1}
#community .com-dm-forward-label{font-size:12px;color:#aab5c4}
@media(max-width:760px){#community .com-noise-popover{position:fixed;left:12px;right:12px;bottom:90px;width:auto}}
#community .com-reply-quote img{width:28px;height:28px;margin-left:6px;object-fit:contain;vertical-align:middle;border-radius:4px}

/* Shared channel/DM voice controls: keep the original compact panel. */
#community #com-dm-call-dock{display:none!important}
#community .com-voice.dm-call-mode>.com-connection{display:flex!important}
#community .com-voice.dm-call-mode>#com-join,#community .com-voice.dm-call-mode>.com-video-controls{display:none!important}
#community .com-connection #com-noise,#community .com-connection #com-leave{flex:0 0 auto;width:32px;height:32px;padding:0!important;border:0;border-radius:7px;background:#303541;color:#dce1ea;box-shadow:none;font-size:16px}
#community .com-connection #com-noise:hover{background:#3a414d}
#community .com-connection #com-noise.active{background:#244538;color:#68da99}
#community .com-connection #com-leave{background:#3b3f49;color:#eef0f3;font-size:18px}
#community .com-connection #com-leave:hover{background:#d83c43;color:#fff}
#community .com-noise-popover{left:calc(100% + 10px);bottom:8px}

/* Noise settings open directly above the shared voice button. */
#community .com-voice{position:relative}
#community .com-voice>.com-noise-popover{position:absolute;left:auto;right:0;bottom:calc(100% + 8px);width:270px;z-index:120}
#community .com-voice>.com-noise-popover:after{content:'';position:absolute;right:51px;bottom:-6px;width:11px;height:11px;background:#101d16;border-right:1px solid #30463a;border-bottom:1px solid #30463a;transform:rotate(45deg)}
@media(max-width:760px){#community .com-voice>.com-noise-popover{position:absolute;left:0;right:0;bottom:calc(100% + 8px);width:auto}}

/* Render the noise popover as a fixed overlay so channel/sidebar clipping cannot cut it off. */
#community>.com-noise-popover{position:fixed!important;right:auto!important;bottom:auto!important;width:270px;max-width:calc(100vw - 16px);z-index:2000}
#community>.com-noise-popover:after{content:'';position:absolute;right:32px;bottom:-6px;width:11px;height:11px;background:#101d16;border-right:1px solid #30463a;border-bottom:1px solid #30463a;transform:rotate(45deg)}
@media(max-width:760px){#community>.com-noise-popover{position:fixed!important;right:auto!important;bottom:auto!important;width:min(270px,calc(100vw - 16px))}}

/* Keep the noise-suppression control visually aligned with the right-side call controls. */
#community .com-connection #com-noise{margin-left:auto!important;transform:translateX(4px)}

/* Phone layout: two-column rail + usable full-width content, with channels as a drawer. */
@media(max-width:760px){
 #community{margin-inline:0}
 #community .com-layout,#community.com-watching .com-layout,#community.com-social-active .com-layout{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);width:100%;height:calc(100dvh - 285px);min-height:500px;max-height:none;border-radius:10px;overflow:hidden}
 #community .com-server-rail{grid-column:1;grid-row:1;z-index:40;width:50px;min-width:50px;height:100%;padding:9px 5px;box-sizing:border-box;overflow-y:auto}
 #community .com-server-rail button{width:40px;height:40px;border-radius:12px}
 #community .com-main,#community.com-social-active .com-main{grid-column:2!important;grid-row:1;width:100%;height:100%!important;min-height:0!important;overflow:hidden}
 #community #com-members,#community #com-social-members{display:none!important}
 #community .com-channels,#community.com-social-active .com-channels{display:none!important}
 #community.com-mobile-channels .com-channels{display:flex!important;position:absolute;z-index:35;inset:0 0 0 50px;width:auto;height:100%;padding:12px 10px;border:0;background:#1c1f27;box-shadow:12px 0 35px #0009;pointer-events:auto}
 #community.com-mobile-channels .com-channel-scroll{max-height:none;min-height:0;flex:1;overflow-y:auto}
 #community.com-mobile-channels .com-social-sidebar{display:none!important}
 #community .com-server-title{position:sticky;top:0;z-index:2;background:#1c1f27!important}
 #community #com-server-banner{height:82px;min-height:82px;background-position:center}
 #community .com-heading{min-height:48px;padding:10px 12px;gap:6px;align-items:center;flex-wrap:wrap}
 #community .com-heading h2{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #community .com-heading>div{display:flex;gap:4px;flex-basis:auto;margin-left:auto}
 #community .com-heading button,#community #com-archive{padding:5px 6px;font-size:10px}
 #community #com-messages{padding:8px 10px;overscroll-behavior:contain}
 #community #com-messages article{padding:9px 4px}
 #community .com-message-head{gap:7px;align-items:center}
 #community .com-message-avatar{width:30px;height:30px;flex:0 0 30px}
 #community #com-messages strong{font-size:13px}
 #community #com-messages small{margin-left:3px;font-size:9px}
 #community #com-messages p{margin-left:37px;font-size:13px;line-height:1.4}
 #community .com-reply-quote,#community .com-message-reactions{margin-left:37px}
 #community .com-message-actions{right:2px;top:2px;max-width:calc(100% - 45px);overflow-x:auto}
 #community .com-message-actions button{width:29px;height:27px;font-size:13px}
 #community #com-send{display:grid!important;grid-template-columns:42px minmax(0,1fr) 76px;align-items:center;gap:7px;padding:8px 9px 10px;flex-direction:initial!important}
 #community #com-stickers-toggle{width:42px;height:44px;padding:0}
 #community #com-send label{min-width:0}
 #community #com-send textarea{height:44px;min-height:44px;max-height:100px;padding:11px 10px;resize:none;font-size:12px}
 #community #com-send>button:last-child{height:44px;padding:0 8px;font-size:11px}
 #community #com-stickers{grid-template-columns:repeat(3,minmax(0,1fr));max-height:155px;padding:8px}
 #community .com-voice{margin:12px -10px -12px;padding:10px}
 #community .com-video-controls{display:grid;grid-template-columns:1fr 1fr}
 #community .com-video-controls button{width:100%}
 #community #com-video-stage>header{padding:8px 90px 8px 8px}
 #community #com-videos video{height:32dvh}
 #community #com-video-picker{padding:8px;display:grid;grid-template-columns:1fr 1fr}
 #community #com-video-picker button{width:100%;height:72px}
 .com-social-page{inset:0;width:100%;height:100%;min-width:0}
 .com-social-page>header{height:auto!important;min-height:88px;padding:8px 10px!important;gap:7px!important;align-items:flex-start!important;flex-direction:column!important;overflow:visible!important}
 .com-social-page>header h2{font-size:16px}
 .com-friends-tabs{width:100%;gap:3px;overflow-x:auto;padding-bottom:2px}
 .com-friends-tabs button{padding:7px 9px;font-size:11px}
 .com-social-page-body{padding:8px;overflow:auto!important}
 .com-main.show-social .com-social-page-body{overflow:auto!important}
 .com-main.show-social .com-friends-layout{height:calc(100% - 4px);min-height:0;border:0}
 .com-main.show-social .com-friends-layout>section{height:100%;min-height:0}
 .com-friend-directory{padding:4px;height:auto;min-height:100%;overflow:visible}
 .com-friend-directory h3{margin:4px 4px 10px;font-size:11px}
 .com-friend-directory article{grid-template-columns:34px minmax(0,1fr);gap:8px;padding:10px 4px}
 .com-friend-directory article>.com-directory-actions{grid-column:2;justify-content:flex-start}
 .com-directory-actions button,.com-friend-directory article>button{padding:7px 8px;font-size:10px}
 .com-friend-add{grid-template-columns:1fr;padding:12px;gap:8px}
 .com-friend-add h3{font-size:17px}
 .com-friend-add input,.com-friend-add button{width:100%}
 .com-friends-layout{grid-template-columns:1fr;min-height:0}
 .com-friends-layout>aside{display:none}
 .com-friends-layout>section>header{padding:8px;gap:5px}
 .com-dm-profile{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
 .com-dm-call-start{padding:7px 8px;font-size:10px;white-space:nowrap}
 .com-dm-log{padding:8px}
 .com-dm-log article{padding:7px 6px}
 .com-dm-send{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:6px;padding:8px}
 .com-dm-send textarea{min-width:0;min-height:44px;max-height:90px}
 .com-dm-send button{padding:0 7px;font-size:10px}
 #com-dm-call{min-height:165px;padding:14px 8px}
 .com-call-people>span{width:58px;height:58px}
 .com-social-modal{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}
 .com-social-modal>header{padding:12px 14px}
 .com-social-body{padding:14px;max-height:calc(100dvh - 58px)}
 .com-profile-banner,.com-settings-banner{height:110px;margin:-14px -14px 0}
 .com-profile-avatar{width:78px;height:78px;margin-top:-39px}
 .com-role-row{grid-template-columns:1fr 70px;padding:9px}
 .com-server-links{display:grid;grid-template-columns:1fr}
}
@media(max-width:420px){
 #community .com-layout,#community.com-watching .com-layout,#community.com-social-active .com-layout{height:calc(100dvh - 270px);min-height:480px}
 #community #com-send{grid-template-columns:38px minmax(0,1fr) 68px;gap:5px;padding-inline:6px}
 #community #com-stickers-toggle{width:38px}
 #community #com-messages p{margin-left:0}
 #community .com-reply-quote,#community .com-message-reactions{margin-left:0}
 .com-friends-tabs button{padding-inline:8px}
}

/* Friends lists own their scroll area on desktop and phone. */
#community .com-main.show-social .com-friends-layout>section{
 display:flex;
 flex-direction:column;
 min-height:0;
 overflow:hidden;
}
#community .com-main.show-social .com-friend-directory{
 flex:1 1 0;
 width:100%;
 height:auto!important;
 min-height:0!important;
 box-sizing:border-box;
 overflow-x:hidden;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
#community .com-social-sidebar .com-sidebar-friends{
 flex:1 1 0;
 min-height:0;
 overflow-x:hidden;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
}
@media(max-width:760px){
 #community .com-main.show-social .com-social-page-body{overflow:hidden!important}
 #community .com-main.show-social .com-friends-layout,
 #community .com-main.show-social .com-friends-layout>section{height:100%;min-height:0}
 #community .com-main.show-social .com-friend-directory{padding:4px;overflow-y:auto!important}
}

/* Voice activity in private calls. */
#community .com-call-people>span{position:relative;transition:box-shadow .12s}
#community .com-call-people>span.speaking{box-shadow:0 0 0 4px #57d68d,0 0 18px #57d68d55}

#community .com-dm-tools{position:relative;display:flex;align-items:center;gap:8px;padding:4px 12px;flex-shrink:0}#community .com-dm-tools button{padding:5px 9px;min-height:32px}#community .com-dm-tools span{font-size:12px}#community .com-dm-emojis{position:absolute;bottom:100%;left:8px;display:flex;flex-wrap:wrap;width:240px;max-width:90%;padding:8px;background:#20242d;border:1px solid #465165;z-index:20}#community .com-dm-photo{display:block;max-width:100%;max-height:280px;object-fit:contain;border-radius:8px}#community .com-dm-file{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px}

/* One compact composer, with secondary attachment controls. */
#community .com-dm-send.com-dm-compose{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px}
#community .com-dm-compose>.com-dm-tools{padding:0;gap:2px;position:relative;align-self:center}
#community .com-dm-compose>.com-dm-tools>button{width:34px;height:38px;min-height:38px;padding:0;background:transparent;color:#bdc5d4;box-shadow:none;border:0;border-radius:7px;font-size:18px}
#community .com-dm-compose>.com-dm-tools>button:hover{background:#353c49;color:#fff}
#community .com-dm-compose>.com-dm-tools>span:not(:empty){position:absolute;bottom:calc(100% + 12px);left:0;width:240px;max-width:70vw;background:#303744;color:#f0c5c5;border:1px solid #596171;border-radius:7px;padding:8px 10px;font-size:12px;z-index:21}
#community .com-dm-compose>textarea{width:100%;min-width:0;margin:0}
#community .com-dm-compose>button{min-height:44px;padding:8px 12px}
@media(max-width:760px){#community .com-dm-send.com-dm-compose{grid-template-columns:auto minmax(0,1fr);gap:6px;padding:8px}#community .com-dm-compose>button{grid-column:2;justify-self:end;min-height:36px}#community .com-dm-compose>.com-dm-tools>button{width:29px}#community .com-dm-compose>.com-dm-tools{gap:0}}

.com-photo-viewer{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:16px;background:#080a0eef;color:#edf1f7;box-sizing:border-box}.com-photo-viewer::backdrop{background:#000c}.com-photo-viewer[open]{display:flex;flex-direction:column;gap:12px}.com-photo-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.com-photo-viewer>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.com-photo-viewer nav{display:flex;flex-direction:row;gap:5px;margin:0}.com-photo-viewer button{background:#252831;color:#e4e8ef;border:1px solid #454955;box-shadow:none;font-size:12px;padding:8px 10px;white-space:nowrap}.com-photo-canvas{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center}.com-photo-canvas>img{display:block;max-width:100%;max-height:100%;object-fit:contain}.com-photo-canvas.zoomed{display:block}.com-photo-canvas.zoomed>img{max-width:none;max-height:none;min-width:150%;height:auto;cursor:zoom-out}.com-photo-recipients{position:absolute;right:18px;top:75px;display:grid;gap:6px;width:260px;max-width:90vw;max-height:65vh;overflow:auto;background:#20242d;padding:12px;border:1px solid #49515e;border-radius:10px}.com-dm-photo{cursor:zoom-in}@media(max-width:600px){.com-photo-viewer{padding:8px}.com-photo-viewer>header{flex-direction:column;align-items:stretch}.com-photo-viewer nav{overflow-x:auto}.com-photo-viewer button{font-size:11px;padding:7px}.com-photo-recipients{top:100px}}

/* StaffHub appearance: same layout, three coordinated palettes. */
html[data-community-theme]{--ct-bg:#111318;--ct-panel:#20242c;--ct-soft:#292e38;--ct-input:#15191f;--ct-text:#edf0f6;--ct-muted:#aab2c2;--ct-line:#3b414f;--ct-accent:#9296ff;--ct-button:linear-gradient(135deg,#616be0,#7779cf);--ct-mine:#272c3a;--ct-call:#20382e;color-scheme:dark}
html[data-community-theme=white]{--ct-bg:#f5f6f8;--ct-panel:#fff;--ct-soft:#e9edf4;--ct-input:#f1f4f9;--ct-text:#202938;--ct-muted:#596579;--ct-line:#d2d9e4;--ct-accent:#514bc2;--ct-button:linear-gradient(135deg,#5554c8,#436bb1);--ct-mine:#e9edfb;--ct-call:#e2f1e8;color-scheme:light}
html[data-community-theme=gradient]{--ct-bg:linear-gradient(120deg,#102a49 0%,#171331 55%,#351946 100%);--ct-panel:#d9e5ff0d;--ct-soft:#c8d5ff15;--ct-input:#090d246b;--ct-text:#eef3ff;--ct-muted:#b9c4db;--ct-line:#a8b9eb30;--ct-accent:#a7b9ff;--ct-button:linear-gradient(115deg,#705bd3,#327f9b);--ct-mine:linear-gradient(115deg,#407eb425,#8b4fb525);--ct-call:linear-gradient(110deg,#205448bb,#263f3caa)}
html[data-community-theme] body:has(#community){background:var(--ct-bg);color:var(--ct-text)}
html[data-community-theme] :is(.sidebar,.topbar,footer):not(.com-photo-viewer *){background:var(--ct-panel);color:var(--ct-muted);border-color:var(--ct-line)}
html[data-community-theme] :is(.brand,.page-heading h1){color:var(--ct-text)}
html[data-community-theme] #community .com-layout{background:var(--ct-bg);border-color:var(--ct-line);box-shadow:0 18px 55px #0002}
html[data-community-theme] #community :is(.com-channels,.com-server-rail,#com-members,#com-social-members,.com-social-page,.com-heading,.com-social-page>header,.com-social-sidebar,.com-voice,.com-dm-send,#com-send,.com-friends-layout>section>header){background:var(--ct-panel)!important;color:var(--ct-text);border-color:var(--ct-line)!important}
html[data-community-theme] #community :is(.com-social-page,.com-main){background:transparent!important}
html[data-community-theme] #community :is(.com-friends-layout,.com-friend-directory article,.com-userbar,.com-dm-send,.com-social-sidebar h3){border-color:var(--ct-line)}
html[data-community-theme] #community :is(p,.com-dm-profile,.com-peer-name,.com-social-member,.com-friend,.com-heading h2){color:var(--ct-text)}
html[data-community-theme] #community :is(small,.com-category,.com-empty-state,.com-social-sidebar h3,.com-friend-directory h3,.com-friends-tabs button){color:var(--ct-muted)}
html[data-community-theme] #community :is(input:not([type=checkbox]):not([type=range]),textarea,select){background:var(--ct-input)!important;color:var(--ct-text)!important;border:1px solid var(--ct-line)!important;box-shadow:inset 0 1px 3px #0001}
html[data-community-theme] #community :is(input,textarea)::placeholder{color:var(--ct-muted);opacity:.85}
html[data-community-theme] #community :is(.com-friend:hover,.com-social-member:hover,.com-friend-directory article:hover,.com-find-friend,.com-friends-home,.com-directory-actions button,.com-video-controls button){background:var(--ct-soft)!important;color:var(--ct-text)!important;box-shadow:none}
html[data-community-theme] #community :is(.com-friends-tabs button.active,.com-friends-tabs button[data-mode=add],.com-dm-call-start,.com-dm-send>button,#com-send>button,#com-join){background:var(--ct-button)!important;color:white!important;border:1px solid #ffffff26;box-shadow:0 3px 12px #0002}
html[data-community-theme] #community .com-dm-log article{margin:5px 0;padding:11px 13px;border-radius:10px}
html[data-community-theme] #community .com-dm-log article.mine{background:var(--ct-mine);border:1px solid var(--ct-line)}
html[data-community-theme] #community .com-dm-log article.com-dm-call-event{background:var(--ct-call)!important;border-left:3px solid #63c99c;color:var(--ct-text)}
html[data-community-theme] #community .com-dm-log small{font-size:11px;display:block;margin-top:5px}
html[data-community-theme] #community .com-friends-layout>section>header{margin:0 0 7px;border-radius:10px;min-height:55px}
html[data-community-theme] #community .com-dm-profile{padding:8px 12px}
html[data-community-theme] #community .com-dm-tools>button{background:transparent!important;color:var(--ct-text)!important;box-shadow:none}
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-photo-recipients,#com-device-settings){background:var(--ct-bg)!important;color:var(--ct-text)!important;border:1px solid var(--ct-line)!important;box-shadow:0 24px 80px #0006}
html[data-community-theme] :is(.com-social-modal,#com-device-settings) :is(p,label,small){color:var(--ct-muted)!important}
html[data-community-theme] :is(.com-social-modal,#com-device-settings) :is(button,input,textarea,select){background:var(--ct-soft)!important;color:var(--ct-text)!important;border-color:var(--ct-line)!important;box-shadow:0 3px 9px #0001}
html[data-community-theme] #community #com-device-settings{border-radius:18px;padding:28px;scrollbar-color:var(--ct-accent) transparent}
html[data-community-theme] #community #com-device-settings h2{color:var(--ct-text);letter-spacing:-.025em}
html[data-community-theme] #community #com-device-settings :is(hr,footer,.com-my-profile-settings){border-color:var(--ct-line)}
html[data-community-theme=white] #community :is(.com-friend.online span,.com-friend-directory article small,.com-voice strong){color:#23724b}
html[data-community-theme=white] #community .com-noise-popover{background:#f6faf7;color:#213b2c}
html[data-community-theme=white] #community .com-noise-popover p{color:#465c50}
html[data-community-theme] #community .com-theme-picker{margin:0 0 26px;padding:0 0 24px;border-bottom:1px solid var(--ct-line)}
html[data-community-theme] #community .com-theme-picker h3{font-size:18px;margin:0 0 6px}
html[data-community-theme] #community .com-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
html[data-community-theme] #community .com-theme-options button{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:7px;padding:10px!important;border:2px solid var(--ct-line)!important;border-radius:12px!important;min-width:0}
html[data-community-theme] #community .com-theme-options button[aria-pressed=true]{border-color:var(--ct-accent)!important;outline:2px solid transparent;box-shadow:0 0 0 2px #9296ff20}
html[data-community-theme] #community .com-theme-options small{font-size:11px;line-height:1.4}
.com-theme-swatch{height:48px;border-radius:6px;background:linear-gradient(110deg,#111318 28%,#282d38 28%);border:1px solid #ffffff26}
[data-theme-choice=white] .com-theme-swatch{background:linear-gradient(110deg,#e3e8f1 28%,#fff 28%)}
[data-theme-choice=gradient] .com-theme-swatch{background:linear-gradient(115deg,#256693,#4b3478,#843b7e)}
html[data-community-theme] #community :is(.com-sidebar-friends,.com-friend-directory,.com-dm-log,#com-messages){scrollbar-color:var(--ct-line) transparent}
@media(max-width:600px){html[data-community-theme] #community .com-theme-options{gap:6px}html[data-community-theme] #community .com-theme-options button{padding:7px!important}html[data-community-theme] #community .com-theme-options small{display:none}html[data-community-theme] #community .com-dm-log article{padding:9px}}
/* Refined messenger surfaces, rhythm and controls. Layout rules remain independent. */
html[data-community-theme]{--ct-radius:12px;--ct-panel:#1a1d24;--ct-soft:#252a34;--ct-line:#ffffff14;--ct-muted:#a4adbe;--ct-accent:#abb4ff;--ct-button:#626bd9;--ct-mine:#ffffff04}
html[data-community-theme=gradient]{--ct-bg:radial-gradient(ellipse at 0% 0%,#173550 0%,transparent 55%),radial-gradient(ellipse at 100% 100%,#382442 0%,transparent 60%),#121727;--ct-panel:#dce5ff06;--ct-soft:#b7c7ef12;--ct-input:#0b112b65;--ct-line:#c4d3ff1c;--ct-button:linear-gradient(115deg,#6564ca,#427e96);--ct-mine:#bbc9ff06;--ct-call:#4a9a7920}
html[data-community-theme=white]{--ct-bg:#f2f4f8;--ct-panel:#ffffff;--ct-soft:#e9edf5;--ct-input:#f4f6fa;--ct-text:#253049;--ct-muted:#59677d;--ct-line:#dce2ec;--ct-accent:#545eb8;--ct-button:#535fc1;--ct-mine:#f0f3fa;--ct-call:#e9f3ef}
html[data-community-theme] #community{font-family:'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.5}
html[data-community-theme] #community button{font-family:inherit;font-weight:600;letter-spacing:0;transition:background .14s,border-color .14s,color .14s;transform:none}
.com-ui-icon{display:block;width:20px;height:20px;flex:none;vertical-align:middle}
html[data-community-theme] #community button:focus-visible{outline:2px solid var(--ct-accent);outline-offset:3px}
html[data-community-theme] #community .com-layout{border-radius:16px;box-shadow:0 12px 40px #06091420}
html[data-community-theme] #community .com-server-rail{padding-top:16px;gap:12px;background:#080c171a!important}
html[data-community-theme] #community .com-server-rail button{border-radius:14px;width:42px;height:42px;background:var(--ct-soft);color:var(--ct-text)}
html[data-community-theme] #community .com-server-rail button.active{background:var(--ct-button);box-shadow:0 4px 14px #0002}
html[data-community-theme] #community .com-social-sidebar{padding:14px 10px 8px;gap:2px}
html[data-community-theme] #community .com-social-sidebar>button{min-height:40px;border-radius:8px;margin-bottom:6px}
html[data-community-theme] #community .com-social-sidebar .com-friends-home{display:flex;align-items:center;gap:10px;color:var(--ct-accent)!important;background:var(--ct-soft)!important;text-align:left}
html[data-community-theme] #community .com-find-friend{font-weight:400!important;font-size:12px!important;text-align:left!important;border:1px solid var(--ct-line)!important}
html[data-community-theme] #community .com-social-sidebar h3{margin:18px 9px 8px;text-transform:none;font-size:11px;font-weight:600;letter-spacing:.02em}
html[data-community-theme] #community .com-sidebar-friends .com-friend{padding:9px 8px;border-radius:9px;gap:10px;font-size:13px;font-weight:500}
html[data-community-theme] #community .com-friend>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-community-theme] #community .com-friend-avatar{width:34px;height:34px;background:#637298;color:#fff}
html[data-community-theme] #community .com-social-page>header{gap:24px;padding-inline:22px;border-bottom:1px solid var(--ct-line);min-height:62px}
html[data-community-theme] #community .com-social-page>header h2{font-size:17px;font-weight:650;letter-spacing:-.02em}
html[data-community-theme] #community .com-friends-tabs{gap:5px}
html[data-community-theme] #community .com-friends-tabs button{min-height:34px;padding:6px 12px;font-size:12px;border-radius:7px;background:transparent;box-shadow:none}
html[data-community-theme] #community .com-friends-tabs button.active{background:var(--ct-soft)!important;color:var(--ct-text)!important;box-shadow:none;border-color:var(--ct-line)}
html[data-community-theme] #community .com-social-page-body{padding:14px 18px}
html[data-community-theme] #community .com-friends-layout{border:0}
html[data-community-theme] #community .com-friends-layout>section>header{margin:0;padding:10px 5px 12px;border-radius:0;min-height:56px;background:transparent!important;border-bottom:1px solid var(--ct-line)!important}
html[data-community-theme] #community .com-dm-profile{font-size:14px;font-weight:650;padding-left:9px}
html[data-community-theme] #community .com-dm-call-start{display:inline-flex;gap:8px;align-items:center;font-size:12px;padding:8px 12px;min-height:36px;border-radius:8px;box-shadow:none}
html[data-community-theme] #community .com-dm-call-start svg{width:16px;height:16px}
html[data-community-theme] #community .com-dm-log{padding:14px 0;scrollbar-width:thin;scrollbar-gutter:stable}
html[data-community-theme] #community .com-dm-log article{padding:9px 12px;margin:2px 0;border:0!important;border-radius:8px;background:transparent}
html[data-community-theme] #community .com-dm-log article.mine{background:var(--ct-mine)}
html[data-community-theme] #community .com-dm-log article:hover{background:var(--ct-soft)}
html[data-community-theme] #community .com-dm-log article>strong{font-size:13px;font-weight:650;color:var(--ct-text)}
html[data-community-theme] #community .com-dm-log p{font-size:14px;line-height:1.55;margin:3px 0;overflow-wrap:anywhere}
html[data-community-theme] #community .com-dm-log small{font-size:10px;opacity:.85;margin-top:4px}
html[data-community-theme] #community .com-dm-log article.com-dm-call-event{border-left:2px solid #65b89a!important;padding-block:8px;margin:7px 0}
html[data-community-theme] #community .com-dm-log article.com-dm-call-event>strong{font-size:12px}
html[data-community-theme] #community .com-dm-log article.com-dm-call-event p{font-size:12px}
html[data-community-theme] #community .com-dm-send.com-dm-compose{background:var(--ct-soft)!important;border:1px solid var(--ct-line);border-radius:12px;padding:7px;gap:7px;margin-top:8px}
html[data-community-theme] #community .com-dm-compose>textarea{background:transparent!important;border:0!important;box-shadow:none!important;height:46px;min-height:46px;resize:none;padding:11px 6px;font-size:14px}
html[data-community-theme] #community .com-dm-compose>textarea:focus{outline:none}
html[data-community-theme] #community .com-dm-compose:focus-within{border-color:var(--ct-accent)}
html[data-community-theme] #community .com-dm-compose>button{border-radius:8px;font-size:12px;min-height:38px;padding:8px 13px;box-shadow:none}
html[data-community-theme] #community .com-dm-tools>button{display:grid;place-items:center;width:32px;height:38px;color:var(--ct-muted)!important}
html[data-community-theme] #community .com-dm-emojis{background:var(--ct-bg);border-color:var(--ct-line);border-radius:12px;box-shadow:0 12px 30px #0004;padding:10px}
html[data-community-theme] #community .com-dm-emojis button{background:transparent;color:var(--ct-text);box-shadow:none;border:0;width:38px;height:38px;font-size:22px;padding:4px}
html[data-community-theme] #community .com-dm-file{display:flex;align-items:center;gap:8px;background:var(--ct-soft);color:var(--ct-text);box-shadow:none;border:1px solid var(--ct-line);border-radius:8px;min-height:36px;font-size:12px;padding:7px 10px;margin-top:6px}
html[data-community-theme] #community #com-social-members{padding:20px 10px}
html[data-community-theme] #community #com-social-members h3{font-size:11px;font-weight:600;margin:0 8px 14px;color:var(--ct-muted)}
html[data-community-theme] #community .com-social-member{padding:9px 8px;gap:10px;border-radius:8px}
html[data-community-theme] #community .com-social-member strong{font-size:12px;font-weight:600}
html[data-community-theme] #community .com-social-member small{font-size:10px;margin-top:2px}
html[data-community-theme] #community .com-voice{border-radius:0!important;box-shadow:none!important;border-inline:0!important;border-bottom:0!important;padding:12px!important}
html[data-community-theme] #community .com-connection{gap:8px;padding:5px 0 10px}
html[data-community-theme] #community .com-connection strong{font-size:11px;line-height:1.5}
html[data-community-theme] #community .com-userbar{padding-top:10px;margin-top:10px}
html[data-community-theme] #community .com-friend-directory{padding:8px 0}
html[data-community-theme] #community .com-friend-directory article{padding:12px 10px;border-radius:8px;border-top:1px solid var(--ct-line)}
html[data-community-theme] #community .com-friend-directory h3{font-size:11px;text-transform:none;margin:4px 10px 12px}
html[data-community-theme] #community .com-directory-actions button{font-size:11px;min-height:32px;border-radius:7px}
html[data-community-theme] #community .com-friend-add{height:auto!important;padding:22px;background:var(--ct-soft);border:1px solid var(--ct-line)}
html[data-community-theme] #community .com-friend-add p{font-size:13px;color:var(--ct-muted)}
html[data-community-theme] #community #com-device-settings{width:min(780px,94vw);padding:30px;border-radius:18px}
html[data-community-theme] #community #com-device-settings header{margin-bottom:26px}
html[data-community-theme] #community #com-device-settings h2{font-size:25px;padding:0;border:0;margin-bottom:8px}
html[data-community-theme] #community #com-device-settings :is(input:not([type=checkbox]):not([type=range]),select,textarea){border-radius:9px!important;padding:11px 12px;box-shadow:none!important;font:inherit}
html[data-community-theme] #community #com-device-settings label{font-size:13px}
html[data-community-theme] #community #com-device-settings button{border-radius:8px;box-shadow:none;font-weight:600}
html[data-community-theme] #community #com-device-settings :is(#com-test,.com-profile-save){background:var(--ct-button)!important;color:#fff!important}
html[data-community-theme] #community .com-theme-options button[aria-pressed=true] strong:after{content:' ✓';color:var(--ct-accent)}
html[data-community-theme] #community .com-theme-options button{box-shadow:none!important}
html[data-community-theme] #community #com-dm-call{background:#0b1020f5;padding:24px;gap:17px}
html[data-community-theme=white] #community #com-dm-call{background:#e9edf5;color:#253049}
html[data-community-theme] #community .com-call-controls button{border-radius:50%;width:42px;height:42px;box-shadow:none}
html[data-community-theme] #community .com-call-controls .com-call-end{background:#d74054;color:white}
html[data-community-theme] #community .com-call-people>span{width:72px;height:72px}
html[data-community-theme] #community .com-call-status{font-size:12px;font-weight:500}
html[data-community-theme=white] #community :is(.com-server-rail,.com-social-sidebar){background:#edf0f7!important}
html[data-community-theme=white] #community .com-dm-profile{color:#253049!important}
@media(max-width:760px){html[data-community-theme] #community .com-layout{border-radius:12px}html[data-community-theme] #community .com-social-page-body{padding:8px}html[data-community-theme] #community .com-social-page>header{padding:10px!important;gap:8px!important}html[data-community-theme] #community .com-friends-tabs button{min-height:36px;padding:6px 9px}html[data-community-theme] #community .com-dm-log article{padding:8px}html[data-community-theme] #community .com-dm-compose>textarea{font-size:16px}html[data-community-theme] #community .com-dm-tools>button{min-width:34px;min-height:40px}html[data-community-theme] #community .com-dm-send.com-dm-compose{padding:6px}html[data-community-theme] #community .com-dm-call-start{padding:7px 9px}html[data-community-theme] #community #com-device-settings{padding:20px}html[data-community-theme] #community .com-friend-directory article{padding:10px 5px}html[data-community-theme] #community .com-theme-options strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){html[data-community-theme] #community *{transition:none!important;scroll-behavior:auto!important}}
html[data-community-theme] #community .com-dm-log article{position:relative;padding:12px 12px 12px 58px!important;background:transparent!important;border-radius:6px!important;margin:1px 0!important}
html[data-community-theme] #community .com-dm-log article:hover{background:var(--ct-soft)!important}
.com-dm-message-head{display:flex;align-items:center;gap:9px;min-height:22px}
.com-dm-message-head>.com-friend-avatar{position:absolute;left:10px;top:12px;width:34px;height:34px}
html[data-community-theme] #community .com-dm-message-head>small{display:inline;margin:0;font-size:10px;color:var(--ct-muted)}
html[data-community-theme] #community .com-dm-message-head>strong{font-size:13px;font-weight:650}
.com-dm-actions{display:none;position:absolute;right:10px;top:-12px;z-index:3;gap:3px;padding:3px;background:var(--ct-panel);border:1px solid var(--ct-line);border-radius:8px;box-shadow:0 4px 14px #0003}
.com-dm-log article:hover .com-dm-actions,.com-dm-log article:focus-within .com-dm-actions{display:flex}
html[data-community-theme] #community .com-dm-actions button{font-size:11px;min-height:30px;padding:5px 8px;background:var(--ct-input);color:var(--ct-text);border:0;box-shadow:none}
.com-dm-sticker-picker{position:absolute;bottom:calc(100% + 12px);left:0;width:320px;max-width:70vw;height:290px;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:10px;background:#202535;border:1px solid var(--ct-line);border-radius:12px;z-index:22;box-shadow:0 12px 40px #0006}
html[data-community-theme=white] .com-dm-sticker-picker{background:#fff}
#community .com-dm-sticker-picker button{padding:5px;background:transparent;border:0;box-shadow:none;height:80px}
.com-dm-sticker-picker img{width:100%;height:100%;object-fit:contain}
.com-forward-dialog .com-social-body{display:grid;gap:7px}
@media(pointer:coarse){.com-dm-actions{position:static;display:flex;width:max-content;margin-top:7px;box-shadow:none}.com-dm-sticker-picker{max-width:65vw}}

/* Finish: opaque floating surfaces and readable reply excerpts. */
html[data-community-theme]{--ct-float:#222733}
html[data-community-theme=gradient]{--ct-float:#24283f}
html[data-community-theme=white]{--ct-float:#fff}
html[data-community-theme] #community :is(.com-dm-actions,.com-dm-emojis,.com-dm-sticker-picker){background:var(--ct-float)!important;border-color:var(--ct-line)}
html[data-community-theme] #community .com-dm-quote{margin:4px 0 8px;padding:7px 11px;border:0;border-left:3px solid var(--ct-accent);border-radius:0 6px 6px 0;background:var(--ct-soft);color:var(--ct-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere;max-height:100px;overflow:auto}
html[data-community-theme] #community .com-dm-sticker-picker button:hover{background:var(--ct-soft)}
html[data-community-theme] #community .com-dm-message-head{flex-wrap:wrap;column-gap:8px;row-gap:0}
html[data-community-theme] #community .com-dm-photo{max-height:320px;max-width:min(100%,440px);border-radius:10px;margin:7px 0;box-shadow:0 2px 12px #0002}
html[data-community-theme] #community .com-dm-tools>button:disabled{opacity:.45}
@media(max-width:760px){html[data-community-theme] #community .com-dm-message-head>small{font-size:9px}html[data-community-theme] #community .com-dm-photo{max-height:240px}.com-dm-actions{max-width:100%}}

#community .com-unread-senders{display:flex;gap:7px;padding:8px 18px;overflow-x:auto;flex:0 0 auto;border-bottom:1px solid var(--ct-line);background:var(--ct-soft)}
#community .com-unread-senders button{white-space:nowrap;min-height:30px;padding:5px 10px;border:1px solid var(--ct-line);border-radius:7px;background:var(--ct-input);color:var(--ct-text);box-shadow:none;font-size:12px}
#community .com-sidebar-friends .has-unread{background:var(--ct-soft)!important;font-weight:700!important}
#community .com-friend b:not(:empty){display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#d84665;color:#fff;font-size:11px}

/* Conversation orientation: quieter presence, selected contact, welcoming empty DM. */
html[data-community-theme] #community .com-sidebar-friends .com-friend{position:relative;min-height:58px;padding:9px 10px;margin:2px 0}
html[data-community-theme] #community .com-sidebar-friends .com-friend>span{display:flex;flex-direction:column;gap:2px;color:var(--ct-text)!important}
html[data-community-theme] #community .com-sidebar-friends .com-friend>span strong{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-community-theme] #community .com-sidebar-friends .com-friend>span small{font-size:10px;line-height:1.3;font-weight:400;color:var(--ct-muted)}
html[data-community-theme] #community .com-sidebar-friends .com-friend.online>span small{color:#80c8ac}
html[data-community-theme=white] #community .com-sidebar-friends .com-friend.online>span small{color:#267153}
html[data-community-theme] #community .com-sidebar-friends .com-friend.is-current{background:var(--ct-soft)!important;box-shadow:inset 3px 0 var(--ct-accent);border-radius:8px}
html[data-community-theme] #community .com-sidebar-friends .com-friend.is-current>span strong{color:var(--ct-accent)}
html[data-community-theme] #community .com-dm-welcome{display:flex;align-items:flex-start;flex-direction:column;justify-content:flex-end;min-height:200px;padding:30px 16px 24px;max-width:480px}
html[data-community-theme] #community .com-dm-welcome h3{font-size:23px;letter-spacing:-.025em;color:var(--ct-text);margin:16px 0 8px;line-height:1.2}
html[data-community-theme] #community .com-dm-welcome p{font-size:13px;line-height:1.7;color:var(--ct-muted);max-width:46ch}
html[data-community-theme] #community .com-welcome-icon{display:grid;place-items:center;width:52px;height:52px;background:var(--ct-soft);border:1px solid var(--ct-line);border-radius:16px;color:var(--ct-accent)}
html[data-community-theme] #community .com-welcome-icon svg{width:26px;height:26px}
html[data-community-theme] #community .com-directory-actions button:hover{border-color:var(--ct-accent);color:var(--ct-accent)!important}
html[data-community-theme] #community .com-dm-actions button:hover{background:var(--ct-soft);color:var(--ct-accent)}
html[data-community-theme] #community .com-theme-swatch{box-shadow:inset 0 0 0 1px #ffffff08}
@media(max-width:760px){html[data-community-theme] #community .com-dm-welcome{padding:20px 10px;min-height:160px}html[data-community-theme] #community .com-dm-welcome h3{font-size:20px}html[data-community-theme] #community .com-directory-actions button{min-height:36px}}
/* Reactions align with the beginning of the message, including stickers. */
#community #com-messages article>.com-message-reactions{margin-left:0!important;justify-content:flex-start}

/* Match server conversation surfaces to the private messenger. */
html[data-community-theme] #community #com-messages{background:transparent;padding:16px 18px;scrollbar-gutter:stable}
html[data-community-theme] #community #com-messages article{background:transparent;padding:11px 10px;border:0;border-radius:7px;margin:2px 0}
html[data-community-theme] #community #com-messages article:hover{background:var(--ct-soft)}
html[data-community-theme] #community #com-messages .com-message-head{gap:9px;align-items:center;flex-wrap:wrap}
html[data-community-theme] #community #com-messages .com-message-head strong{font-size:13px;font-weight:650}
html[data-community-theme] #community #com-messages .com-message-head small{font-size:10px;color:var(--ct-muted);opacity:.85}
html[data-community-theme] #community #com-messages article>p{color:var(--ct-text);font-size:14px;line-height:1.6;margin-top:5px;margin-bottom:6px}
html[data-community-theme] #community #com-messages .com-message-actions{background:var(--ct-float);border:1px solid var(--ct-line);border-radius:9px;box-shadow:0 5px 20px #0003;padding:4px;top:-12px}
html[data-community-theme] #community #com-messages .com-message-actions button{color:var(--ct-text)!important;width:30px;height:30px}
html[data-community-theme] #community #com-messages .com-message-actions button:hover{background:var(--ct-soft)!important}
html[data-community-theme] #community #com-messages .com-message-reactions{gap:5px;margin-top:7px}
html[data-community-theme] #community #com-messages .com-message-reactions button{background:var(--ct-soft)!important;color:var(--ct-text)!important;border:1px solid var(--ct-line)!important;box-shadow:none;min-height:29px;padding:4px 9px!important;border-radius:8px}
html[data-community-theme] #community #com-messages .com-message-reactions button.mine{border-color:var(--ct-accent)!important;color:var(--ct-accent)!important}
html[data-community-theme] #community #com-messages .com-reply-quote{color:var(--ct-muted)!important;background:var(--ct-soft)!important;border-left-color:var(--ct-accent)!important;padding:5px 9px!important;border-radius:0 6px 6px 0!important;max-width:90%;overflow-wrap:anywhere}
html[data-community-theme] #community #com-send{background:var(--ct-soft)!important;margin:8px 16px 14px;padding:8px;gap:8px;border:1px solid var(--ct-line);border-radius:12px}
html[data-community-theme] #community #com-send:focus-within{border-color:var(--ct-accent)}
html[data-community-theme] #community #com-send textarea{background:transparent!important;border:0!important;box-shadow:none!important;resize:none;font-size:14px;height:46px;min-height:46px}
html[data-community-theme] #community #com-send textarea:focus{outline:none}
html[data-community-theme] #community #com-send button{min-height:38px;border-radius:8px;font-size:12px;box-shadow:none;padding:8px 12px}
html[data-community-theme] #community #com-send #com-stickers-toggle{background:transparent!important;color:var(--ct-muted)!important;font-size:21px;border:0}
html[data-community-theme] #community #com-reply-bar{background:var(--ct-soft);color:var(--ct-muted);border:1px solid var(--ct-line);margin:0 16px;font-size:12px}
html[data-community-theme] #community #com-stickers{background:var(--ct-float);border-top:1px solid var(--ct-line);border-bottom:1px solid var(--ct-line);padding:10px 14px}
html[data-community-theme] #community .com-pack-tabs{background:var(--ct-float)}
html[data-community-theme] #community #com-stickers .com-pack-tabs button{background:var(--ct-soft);color:var(--ct-text);border-radius:7px;font-size:12px;padding:7px 10px}
html[data-community-theme] #community #com-stickers .com-pack-tabs button.active{background:var(--ct-button)!important;color:#fff!important}
html[data-community-theme] #community #com-stickers .com-pack-grid button:hover{background:var(--ct-soft)}
html[data-community-theme] #community #com-older{background:transparent;color:var(--ct-muted);border:1px solid var(--ct-line);border-radius:8px;box-shadow:none;font-size:11px;min-height:32px;margin:8px 18px;padding:5px 10px}
html[data-community-theme] #community :is(#com-channel-settings,#com-archive){color:var(--ct-muted);font-size:11px}
html[data-community-theme] #community :is(#com-channel-settings,#com-archive):hover{background:var(--ct-soft);color:var(--ct-text)}
html[data-community-theme] #community #com-channels button{font-size:13px;border-radius:7px;padding-block:8px;color:var(--ct-muted)}
html[data-community-theme] #community #com-channels button.active{background:var(--ct-soft);color:var(--ct-text);box-shadow:inset 2px 0 var(--ct-accent)}
html[data-community-theme] #community .com-category{font-size:11px;text-transform:none;font-weight:600}
html[data-community-theme] #community :is(.com-voice-person,.com-peer-name){font-size:12px;color:var(--ct-text)}
html[data-community-theme] #community .com-voice-person:hover{background:var(--ct-soft);border-radius:6px}
html[data-community-theme] #community #com-member-list .com-member:hover{background:var(--ct-soft)}
html[data-community-theme=white] #community #com-messages :is(.com-message-avatar,.com-person-avatar){background:#697cac;color:white}
@media(max-width:760px){html[data-community-theme] #community #com-messages{padding:10px 7px}html[data-community-theme] #community #com-messages article{padding:9px 5px}html[data-community-theme] #community #com-send{margin:6px;padding:6px;grid-template-columns:34px minmax(0,1fr) 70px!important}html[data-community-theme] #community #com-send textarea{font-size:16px}html[data-community-theme] #community #com-send button{padding:6px;font-size:11px}html[data-community-theme] #community #com-send #com-stickers-toggle{width:34px}html[data-community-theme] #community #com-messages .com-message-actions{max-width:100%;right:0;top:0}html[data-community-theme] #community #com-older{margin:6px 8px}}
#community [draggable=true]{cursor:grab}#community.com-dragging [draggable=true]{cursor:grabbing}#community .com-drop-target{outline:2px solid var(--ct-accent,#8997ed);outline-offset:-2px;background:var(--ct-soft,#30394b)!important;border-radius:7px}

/* Phone drawers must be opaque: the chat never shines through navigation. */
@media(max-width:760px){html[data-community-theme] #community.com-mobile-channels .com-channels{background:var(--ct-float,#222733)!important;opacity:1!important;isolation:isolate}html[data-community-theme] #community.com-mobile-channels .com-main{visibility:hidden;pointer-events:none}html[data-community-theme] #community.com-mobile-channels .com-server-title{background:var(--ct-float,#222733)!important}html[data-community-theme] #community .com-voice{background:var(--ct-float,#222733)!important}html[data-community-theme] #community.com-mobile-channels .com-channel-scroll{overflow-x:hidden}html[data-community-theme] #community .com-server-rail{background:var(--ct-float,#222733)!important}}
.com-paste-preview{width:min(560px,94vw);border:1px solid var(--ct-line);border-radius:14px;padding:16px;background:var(--ct-float,#222733);color:var(--ct-text,#fff)}
.com-paste-preview::backdrop{background:#080b16bb}.com-paste-preview>header{display:flex;align-items:center;justify-content:space-between}.com-paste-preview h2{font-size:18px;margin:0}.com-paste-preview .com-social-body{padding:14px 0 0}.com-paste-preview img{display:block;max-width:100%;max-height:50vh;object-fit:contain;margin:auto;border-radius:8px}.com-paste-actions{display:flex;justify-content:flex-end;gap:8px}.com-paste-preview button{background:var(--ct-soft);color:var(--ct-text);box-shadow:none}.com-paste-actions button:last-child{background:var(--ct-button);color:white}

/* Unified secondary surfaces: profile, forwarding and photo tools. */
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview){border-radius:16px;overflow:hidden;box-shadow:0 24px 80px #05091566}
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview)>header{padding:17px 20px;border-bottom:1px solid var(--ct-line);gap:14px;background:var(--ct-soft);display:flex;align-items:center;justify-content:space-between}
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview)>header h2{font:650 17px/1.4 'Segoe UI',sans-serif;letter-spacing:-.015em;margin:0;color:var(--ct-text)}
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview)>header>button{width:34px;height:34px;min-height:34px;padding:0;background:transparent!important;color:var(--ct-muted)!important;border:0;box-shadow:none!important;border-radius:8px}
html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview)>header>button:hover{background:var(--ct-soft)!important;color:var(--ct-text)!important}
html[data-community-theme] .com-social-body{padding:20px;scrollbar-width:thin;scrollbar-color:var(--ct-line) transparent}
html[data-community-theme] .com-profile-modal{width:min(520px,94vw)}
html[data-community-theme] .com-profile-modal .com-profile-avatar{border:5px solid var(--ct-float);width:86px;height:86px;margin-top:-43px;object-fit:cover;image-rendering:auto;background:var(--ct-soft)}
html[data-community-theme] .com-profile-modal h3{font-size:24px;letter-spacing:-.025em;margin:10px 0 4px;color:var(--ct-text)}
html[data-community-theme] .com-profile-role{font-size:12px;margin-bottom:16px}
html[data-community-theme] .com-profile-description{padding:15px 0;margin:0;border-top:1px solid var(--ct-line);font-size:13px;line-height:1.7;color:var(--ct-muted)}
html[data-community-theme] .com-profile-actions{gap:8px;padding-top:14px;border-top:1px solid var(--ct-line);margin-top:6px}
html[data-community-theme] .com-profile-actions>button{min-height:39px;border-radius:8px;font-size:12px;padding:9px 13px;background:var(--ct-soft)!important;color:var(--ct-text)!important;box-shadow:none!important}
html[data-community-theme] .com-profile-actions>.com-friend-remove{background:transparent!important;color:#e88595!important;border:1px solid #b8576940!important}
html[data-community-theme=white] .com-profile-actions>.com-friend-remove{color:#aa3049!important}
html[data-community-theme] .com-profile-media-edit{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-community-theme] .com-profile-media-edit label{padding:10px;background:var(--ct-soft);border-radius:8px;font-size:12px;min-width:0}
html[data-community-theme] .com-profile-media-edit input{max-width:100%;font-size:11px}
html[data-community-theme] .com-forward-dialog .com-social-body>button{width:100%;justify-content:flex-start;min-height:42px;padding:10px 12px;border:1px solid var(--ct-line);border-radius:8px;background:var(--ct-soft);color:var(--ct-text);box-shadow:none;font-size:13px;text-align:left}
html[data-community-theme] .com-forward-dialog .com-social-body>button:hover{border-color:var(--ct-accent)}
html[data-community-theme] .com-paste-preview{padding:0;background:var(--ct-float)}
html[data-community-theme] .com-paste-preview .com-social-body{padding:16px}
html[data-community-theme] .com-paste-preview .com-paste-actions{padding-top:12px;margin-top:12px;border-top:1px solid var(--ct-line)}
html[data-community-theme] .com-photo-viewer>header{padding:4px 6px 12px;gap:14px;border-bottom:1px solid #ffffff18}
html[data-community-theme] .com-photo-viewer>header strong{font-weight:500;font-size:12px;color:#cdd5e7;max-width:55%}
html[data-community-theme] .com-photo-viewer nav{padding:4px;border:1px solid #ffffff20;border-radius:11px;background:#222733dd;gap:3px}
html[data-community-theme] .com-photo-viewer nav button{background:transparent;border:0;box-shadow:none;color:#e5eaf4;min-height:34px;padding:7px 10px;border-radius:7px;font-size:12px}
html[data-community-theme] .com-photo-viewer nav button:hover{background:#ffffff13}
html[data-community-theme] .com-photo-canvas>img{border-radius:4px;box-shadow:0 15px 60px #0005}
html[data-community-theme] .com-photo-recipients{background:var(--ct-float)!important;padding:10px;gap:5px;border-radius:12px}
html[data-community-theme] .com-photo-recipients button{background:var(--ct-soft);color:var(--ct-text);border-color:var(--ct-line);text-align:left;min-height:40px}
@media(max-width:760px){html[data-community-theme] .com-social-modal{border-radius:0}html[data-community-theme] .com-profile-modal{width:100vw}html[data-community-theme] :is(.com-social-modal,.com-forward-dialog,.com-paste-preview)>header{padding:12px 14px}html[data-community-theme] .com-social-body{padding:14px}html[data-community-theme] .com-profile-actions>button{min-height:44px}html[data-community-theme] .com-profile-media-edit{grid-template-columns:1fr}html[data-community-theme] .com-photo-viewer>header{align-items:stretch}html[data-community-theme] .com-photo-viewer>header strong{max-width:100%;padding:4px}html[data-community-theme] .com-photo-viewer nav{justify-content:space-between;max-width:100%}html[data-community-theme] .com-photo-viewer nav button{font-size:11px;padding:6px;min-height:40px}}
html[data-community-theme] :is(#com-device-settings,.com-profile-modal) .com-profile-actions>.com-friend-remove{background:transparent!important;color:#e88595!important;border:1px solid #b8576940!important}
html[data-community-theme=white] :is(#com-device-settings,.com-profile-modal) .com-profile-actions>.com-friend-remove{color:#aa3049!important}

#community .com-dm-reply-draft{grid-column:1/-1;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--ct-line);padding:4px 8px 8px;color:var(--ct-muted);font-size:12px}
#community .com-dm-reply-draft span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#community .com-dm-reply-draft button{width:28px;height:28px;min-height:28px;padding:0;background:transparent;color:var(--ct-muted);border:0;box-shadow:none}
#community .com-forward-source{font-size:11px;color:var(--ct-accent);margin:3px 0 7px}

/* Equal avatar and text columns in the right-hand DM participant list. */
html[data-community-theme] #community #com-social-members .com-social-member{display:grid;grid-template-columns:32px minmax(0,1fr);justify-content:start;align-items:center;gap:10px;width:100%;padding:9px 8px;text-align:left}
html[data-community-theme] #community #com-social-members .com-social-member>span:first-child{width:32px;height:32px;margin:0}
html[data-community-theme] #community #com-social-members .com-social-member>span:last-child{min-width:0;justify-self:stretch;text-align:left}

/* Keep portrait and landscape call photos inside the same circular viewport. */
#community .com-call-people>span{flex:0 0 auto;aspect-ratio:1;min-width:0;min-height:0;overflow:hidden;isolation:isolate}
#community .com-call-people>span>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:cover;object-position:center;border-radius:inherit}
