.social-dialog{width:min(430px,94vw)}.avatar-menu-actions{display:grid;gap:9px}.avatar-menu-actions>button{text-align:left;padding:14px 17px;background:#3f3023;border:1px solid #bf976844;border-radius:12px}.avatar-menu-actions span{display:block;font-size:12px;color:#c7b798;margin-top:4px}.peer-picker-list{display:grid;gap:8px}.peer-picker-list>button{display:flex;align-items:center;gap:12px;text-align:left}.peer-picker-list img{width:52px;height:60px;object-fit:contain;background:#594536;border-radius:12px}
.listening-invitation{position:fixed;top:100px;left:50%;transform:translateX(-50%);width:min(440px,94vw);padding:15px 20px;border:1px solid #c7a373;border-radius:16px;background:#2f2119fa;box-shadow:0 16px 60px #0008;z-index:85;color:#f9e4c1}.listening-invitation p{margin:0 0 12px}.listening-invitation>div{display:flex;gap:8px}.listening-invitation button{font-size:13px;flex:1}
.together-panel{position:fixed;left:50%;top:var(--together-top,50vh);transform:translateX(-50%);width:min(760px,90vw);max-height:calc(100dvh - var(--together-top,50vh) - 70px);z-index:25;background:linear-gradient(135deg,#39281ff7,#1b1715f7);border:1px solid #c79a615c;border-radius:18px;box-shadow:0 14px 50px #0007;color:#f4dfbc;overflow:auto;backdrop-filter:blur(14px)}
.together-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;border-bottom:1px solid #b3936130}.together-heading>span{font:11px Georgia,serif;letter-spacing:2px;color:#cfac79}.together-heading button{font-size:11px;padding:5px 9px}.together-content{display:grid;grid-template-columns:42% 1fr;min-height:230px}.together-portraits{display:flex;position:relative;align-items:end;justify-content:center;background:radial-gradient(ellipse at 50% 75%,#81624450,transparent 70%);padding:6px 10px 12px}.together-portraits:before{content:'';position:absolute;bottom:24%;left:8%;right:8%;height:32%;border-radius:28px 28px 12px 12px;background:linear-gradient(#525343,#202921);box-shadow:0 12px 20px #0006;z-index:-1}.together-portraits figure{margin:0;width:50%;text-align:center}.together-portraits img{display:block;width:100%;height:190px;object-fit:contain;object-position:bottom}.together-portraits figcaption{font-size:12px;margin-top:1px}.shared-earphones{position:absolute;width:100%;height:195px;inset:0 0 auto;pointer-events:none}.together-conversation{min-width:0;padding:10px 14px 10px 4px}.together-track{font-size:13px;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.together-messages{height:78px;overflow-y:auto;overflow-wrap:anywhere;font-size:12px;line-height:1.6;padding:6px 8px;background:#100c0944;border-radius:8px}.together-messages p{margin:0 0 6px}.together-messages strong{color:#dbb884}.together-conversation form{display:flex;gap:5px;margin-top:7px}.together-conversation input{min-width:0;flex:1;font-size:14px;border:1px solid #a7886255;background:#15110de6;border-radius:8px;color:#f7e4c7;padding:8px}.together-conversation form button{padding:7px 10px;font-size:12px}.together-tools{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;align-items:center}.together-tools button,.together-tools summary{font-size:11px;padding:5px 7px}.together-tools details p{font-size:11px}.together-conversation #togetherStatus{font-size:11px;color:#c7b99e;margin:6px 0 0}
body.together-mode #seatedAvatar,body.together-mode #roomPeers{visibility:hidden}body.together-mode .display-wrap>.display-label,body.together-mode .display-wrap>.playback-status{display:none!important}body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{position:fixed!important;left:50%!important;top:100px!important;transform:translateX(-50%)!important;width:min(700px,68vw,calc((100dvh - 410px)*16/9))!important;height:auto!important;aspect-ratio:16/9;min-height:160px!important;max-height:42dvh!important;margin:0!important;transition:none}
.background-dialog{width:min(760px,95vw)}.background-upload{margin:16px 0;padding:13px 15px;border:1px solid #aa84504d;border-radius:12px}.background-upload summary{cursor:pointer}.background-upload form{display:grid;gap:8px;margin-top:14px}.background-upload label{font-size:13px}.background-upload input[type=file]{max-width:100%}.background-upload img{max-width:100%;max-height:200px;object-fit:contain;border-radius:10px}.background-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.background-card{min-width:0;padding:8px;background:#44302166;border:1px solid #b48a5844;border-radius:12px}.background-card>button:first-child{border:0;background:none;padding:0;width:100%}.background-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border-radius:7px}.background-card strong{display:block;overflow-wrap:anywhere;font-size:13px;margin:8px 0}.background-card small{display:block;font-size:11px;color:#ccbd9f}.background-card .background-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.background-actions button{font-size:11px;padding:5px 7px}.background-card[data-selected]{outline:2px solid #e1be84}.background-pages{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
body.custom-background .backwall{background:linear-gradient(#100c091b,#100c0933),var(--member-background) center/cover no-repeat!important}body.custom-background .room>.ceiling,body.custom-background .room>.shelf,body.custom-background .room>.counter,body.custom-background .room>.pendant,body.custom-background .room>.stool{display:none!important}
#togetherPanel[hidden],#listeningInvitation[hidden],#backgroundPreview[hidden],#togetherResume[hidden]{display:none!important}
@media(max-width:767px){body.together-mode.mobile-layout:not(.details-open) #displayWrap{position:fixed!important;top:120px!important;left:3%!important;width:94%!important;height:calc(94vw * .5625)!important;min-height:0!important;max-height:30dvh!important;margin:0!important;transform:none!important;transition:none}.together-panel{width:94vw;max-height:calc(100dvh - var(--together-top) - 150px)}.together-content{grid-template-columns:32% 1fr;min-height:185px}.together-portraits{padding:4px}.together-portraits img{height:125px}.shared-earphones{height:125px;top:50%;transform:translateY(-65%)}.together-portraits figure{width:54%;margin:0 -2%}.together-portraits figcaption{font-size:10px}.together-conversation{padding:8px}.together-heading{padding:6px 10px}.together-heading>span{font-size:9px;letter-spacing:1px}.together-messages{height:62px}.together-track{font-size:11px}.background-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:620px){.together-content{min-height:160px}.together-portraits img{height:130px}.together-messages{height:44px}.together-panel{max-height:calc(100dvh - var(--together-top) - 55px)}body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{top:65px!important;min-height:120px!important;width:230px!important}.together-heading{padding:5px 12px}}
body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{top:116px!important;width:min(700px,68vw,calc((100dvh - 420px)*16/9))!important;max-height:none!important}
body.together-mode #roomCompanions{visibility:hidden}
.shared-earphones{inset:0;width:100%;height:100%;transform:none}
@media(max-width:767px){.together-content{display:block}.together-portraits{height:142px;width:270px;max-width:90%;margin:auto;align-items:end;padding:0 12px 5px}.together-portraits figure{width:110px;margin:0}.together-portraits img{height:128px}.together-portraits figcaption{font-size:11px}.shared-earphones{inset:0;width:100%;height:100%;transform:none}.together-conversation{padding:6px 12px 10px}.together-messages{height:43px}.together-track{font-size:12px}.together-tools button{font-size:11px}.together-heading{padding:6px 10px}.together-panel{max-height:calc(100dvh - var(--together-top) - 105px)}}
@media(max-height:620px) and (min-width:768px){body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{top:70px!important;width:230px!important}}
body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{width:min(700px,68vw,calc(max(160px,100dvh - 480px)*16/9))!important}
body.together-mode.remote-open #togetherPanel{visibility:hidden}
@media(max-height:620px) and (min-width:768px){body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{width:230px!important}}
body.together-mode:not(.mobile-layout) .lounge-actions{left:8px;bottom:8px;flex-direction:column;gap:4px;width:124px}
body.together-mode:not(.mobile-layout) .lounge-actions button{padding:7px 6px;font-size:11px;min-height:32px}
body.together-mode:not(.mobile-layout)>#remoteToggle:not([data-free-control]){bottom:8px;right:8px;font-size:12px;padding:9px 12px;min-height:38px}

/* v48: more conversation room without pushing the input outside the panel. */
body:not(.mobile-layout) .together-panel{height:min(380px,max(300px,calc(100dvh - 320px)));max-height:calc(100dvh - 16px);display:flex;flex-direction:column;overflow:hidden}
body:not(.mobile-layout) .together-content{min-height:0;flex:1;overflow:auto}
body:not(.mobile-layout) .together-conversation{display:flex;flex-direction:column;min-height:0;padding:14px 16px 14px 4px}
body:not(.mobile-layout) .together-messages{height:auto;min-height:80px;flex:1;font-size:13px}
body:not(.mobile-layout) .together-portraits img{height:240px;max-height:32dvh}
body:not(.mobile-layout) .together-heading{padding:11px 16px}.together-heading>span{font:600 14px system-ui,sans-serif;letter-spacing:0}
body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{width:min(700px,68vw,calc(max(120px,100dvh - 590px)*16/9))!important;min-height:120px!important}
@media(max-height:620px) and (min-width:768px){body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{top:70px!important;width:214px!important}.together-portraits img{max-height:160px!important}}
body.mobile-layout .together-messages{height:75px}
/* Shared listening: one current track, a FIFO queue and a room conversation. */
.peer-picker-list button[aria-pressed=true]{border-color:#ecc587;background:#745333;box-shadow:inset 0 0 0 1px #ecc587}.peer-picker-list button[aria-pressed=true]::after{content:'✓';margin-left:auto;color:#f9d79e}
#sendListeningInvites{margin-top:14px;width:100%}#sendListeningInvites[hidden]{display:none}
.together-tabs{display:flex;gap:6px;margin:0 0 8px;flex-shrink:0}.together-tabs button{font-size:12px;padding:6px 10px}.together-tabs button[aria-selected=true]{background:#805b34;color:#fff0d1;border-color:#d1aa70}
#togetherQueuePane,#togetherChatPane{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}#togetherChatPane[hidden],#togetherQueuePane[hidden]{display:none}
#togetherQueue{margin:0;padding:0;overflow:auto;overscroll-behavior:contain;flex:1;min-height:82px;list-style:none}#togetherQueue li{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #c59c6330}#togetherQueue li>div{flex:1;min-width:0}#togetherQueue strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere;line-height:1.45}#togetherQueue small{display:block;font-size:10px;color:#d1ba98;margin-top:3px}.queue-number{color:#d6b37a;font-size:12px;min-width:15px}#togetherQueue li button{flex:none;min-width:30px;min-height:30px;padding:3px 7px;font-size:18px}#togetherQueueEmpty{font-size:12px;color:#ddc9ad;line-height:1.6;margin:10px 0}
.together-tools{margin-top:8px;flex-shrink:0}.together-track{flex-shrink:0;overflow-wrap:anywhere}#togetherStatus{flex-shrink:0;font-size:11px;margin:7px 0 0;color:#ddc9ad;line-height:1.5}
.together-portraits.group-portraits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:center;align-items:start;gap:10px;overflow:auto;padding:12px;max-height:100%;background:none}.together-portraits.group-portraits figure{width:auto;min-width:0;margin:0}.together-portraits.group-portraits img{width:100%;height:90px!important;max-height:none!important;object-fit:contain}.together-portraits.group-portraits figcaption{font-size:11px;overflow-wrap:anywhere}
body.avatars-hidden .together-portraits{display:none}body.avatars-hidden .together-content{grid-template-columns:1fr}body:not(.mobile-layout).avatars-hidden .together-conversation{padding-left:16px}
body:not(.mobile-layout) .together-panel{height:min(440px,max(340px,calc(100dvh - 300px)))}
@media(max-width:767px){.together-conversation{display:flex;flex-direction:column;min-height:220px}.together-panel{overflow:auto}.together-portraits{height:110px}.together-portraits img{height:96px}.together-portraits.group-portraits{display:flex;justify-content:flex-start;height:80px;max-width:100%;width:auto;gap:12px;padding:5px 12px;overflow-x:auto;overflow-y:hidden}.together-portraits.group-portraits figure{flex:0 0 55px}.together-portraits.group-portraits img{height:50px!important}.together-portraits.group-portraits figcaption{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#togetherQueue{max-height:125px;min-height:60px}.together-track{margin:4px 0 8px}.together-tools button{min-height:32px}.together-conversation{padding:8px 12px 12px}}
.together-portraits.group-portraits:before{display:none}
@media(max-width:767px){.together-portraits.group-portraits figure{flex-basis:70px}}
body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{width:min(700px,68vw,calc(max(120px,100dvh - 650px)*16/9))!important}
@media(max-height:620px) and (min-width:768px){body.together-mode:not(.mobile-layout):not(.details-open) #displayWrap{width:214px!important}}

.background-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 20px}.background-pages span{font-size:14px;color:#f2ddba;min-width:96px;text-align:center}.background-pages button{min-width:64px;min-height:44px}.background-pages button:disabled{opacity:.35;cursor:default;background:transparent;box-shadow:none}.background-pages button:disabled:hover{transform:none}
