/* Discord-inspired voice workspace; original media elements and handlers stay mounted. */
.docspace-v58[data-community-view=voice] #members{display:none}.docspace-v58[data-community-view=voice] .workspace{grid-template-columns:minmax(0,1fr)}
.docspace-v58 #page.v60-voice-page{padding:0;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:0;background:#100d15}.docspace-v58 #page.v60-voice-page[hidden]{display:none!important}
.v60-voice-page>.page-heading{padding:12px 20px;margin:0;min-height:70px;flex-shrink:0;align-items:center;border-bottom:1px solid var(--border);background:var(--panel)}.v60-voice-page>.page-heading h2{font-size:18px;margin:0}.v60-voice-page>.page-heading p{margin:3px 0 0;font-size:12px;color:var(--muted)}.v60-voice-page>.page-heading>[data-view=channels]{margin-left:auto;font-size:12px;background:transparent}.v60-voice-page #v60-chat-toggle{display:flex;align-items:center;gap:7px;font-size:12px;background:var(--hover)}
.v60-voice-shell{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;min-width:0;position:relative}.v60-voice-shell.chat-open{grid-template-columns:minmax(0,1fr) 330px}
.v60-call-stage{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 45% 30%,#21152e,#0b0a0e 80%)}
.v60-call-stage .voice-grid{flex:1;min-height:0;overflow:auto;align-content:center;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;padding:20px;scrollbar-width:thin}.v60-call-stage .voice-grid:has(>.voice-tile:nth-child(5)){align-content:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.v60-call-stage .voice-tile{aspect-ratio:16/10;min-width:0;min-height:175px;max-height:580px;background:linear-gradient(145deg,hsl(var(--v60-tile-hue,260) 25% 23%),hsl(var(--v60-tile-hue,260) 23% 11%));border:2px solid #ffffff0b;border-radius:12px;overflow:hidden;box-shadow:0 10px 35px #0003}.v60-call-stage .voice-tile.speaking{border-color:#48d8ad;box-shadow:0 0 0 1px #48d8ad44}.v60-call-stage .voice-avatar{display:grid;place-items:center;flex:1;width:100%}.v60-call-stage .voice-avatar>.avatar{width:92px;height:92px;font-size:30px;border-radius:50%;box-shadow:0 4px 28px #0005}.v60-call-stage .voice-tile.speaking .voice-avatar>.avatar{outline:3px solid #48d8ad;outline-offset:4px}
.v60-call-stage .voice-tile>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}.v60-call-stage .voice-caption{position:absolute;left:12px;right:12px;bottom:10px;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:7px;background:#100d18b8;backdrop-filter:blur(8px);font-size:12px}.v60-call-stage .voice-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v60-call-stage .voice-caption small{margin-left:auto;color:#d5cce2;font-size:11px}.v60-call-stage .voice-tile.v60-muted .voice-caption:before{content:'⌁';color:#ffabb9;font-size:17px}.v60-call-stage .voice-tile.v60-deafened .voice-caption:before{content:'◌';color:#ffabb9}
.v60-focus{position:absolute;top:8px;right:8px;width:29px;height:29px;padding:3px;background:#100b18a8;border:1px solid #ffffff1c;color:white;opacity:.6}.voice-tile:hover>.v60-focus,.v60-focus:focus-visible{opacity:1}.v60-call-stage .media-fullscreen{top:8px;right:43px;bottom:auto}.v60-call-stage .voice-grid.v60-focus-mode{grid-template-columns:1fr;align-content:center}.v60-call-stage .voice-grid.v60-focus-mode>.voice-tile:not(.v60-focused){display:none}.v60-call-stage .voice-grid.v60-focus-mode>.v60-focused{max-height:none;min-height:250px;aspect-ratio:16/10}
.v60-call-stage .voice-controls{flex-shrink:0;gap:9px;padding:16px 14px 20px;background:linear-gradient(transparent,#100b16);align-items:center;flex-wrap:wrap;margin:0}.v60-call-stage .voice-controls button{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:22px;padding:10px 14px;min-height:43px;background:#30283a;color:#eee9f8;border:1px solid #ffffff10}.v60-call-stage .voice-controls button.danger{background:#a3314e;color:white;border-color:#bd4f6b}.v60-call-stage .voice-controls button.active{background:#6842ad}.v60-call-stage .voice-controls label{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}.v60-call-stage .voice-controls select{max-width:130px;font-size:11px;background:#1e1729;color:var(--text);border:1px solid var(--border);border-radius:6px}
.v60-voice-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel);border-left:1px solid var(--border)}.v60-chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;min-height:54px;border-bottom:1px solid var(--border);flex-shrink:0}.v60-chat-head>strong{display:flex;gap:8px;align-items:center;min-width:0;font-size:13px}.v60-chat-head>strong>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v60-chat-head button{background:transparent;width:28px;height:28px;padding:0;font-size:22px;color:var(--muted)}
.v60-chat-list{flex:1;min-height:0;overflow:auto;padding:12px 12px 18px;scrollbar-width:thin;overflow-wrap:anywhere}.v60-chat-message{display:flex;gap:9px;margin:14px 0;align-items:flex-start}.v60-chat-message>.avatar{width:32px;height:32px;flex-shrink:0;font-size:11px;border-radius:50%}.v60-chat-message>div{min-width:0;flex:1}.v60-chat-message header{display:flex;gap:7px;align-items:baseline}.v60-chat-message header strong{font-size:12px;overflow-wrap:anywhere}.v60-chat-message time{font-size:10px;color:var(--muted)}.v60-chat-message p{font-size:13px;line-height:1.5;white-space:pre-wrap;margin:4px 0 0}.v60-chat-message a{color:#bfaaff;text-decoration:none}.v60-chat-message a:hover{text-decoration:underline}.v60-chat-image{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:8px;margin-top:8px}.v60-file{display:flex;align-items:center;gap:7px;min-width:0;padding:10px;background:var(--rail);border:1px solid var(--border);border-radius:7px;font-size:11px;margin-top:6px}.v60-file>span{min-width:0;overflow-wrap:anywhere}.v60-chat-message .v60-remove{font-size:10px;padding:2px 0;background:transparent;border:0;color:var(--muted);opacity:.55}.v60-chat-message:hover .v60-remove,.v60-remove:focus-visible{opacity:1}.v60-deleted{font-style:italic;color:var(--muted)}
.v60-chat-empty{padding:30px 7px;color:var(--muted);font-size:12px;line-height:1.6}.v60-chat-empty strong{color:var(--text);font-size:16px}.v60-chat-note{font-size:10px;line-height:1.45;color:var(--muted);padding:5px 13px;margin:0;flex-shrink:0}.v60-chat-note.error{color:#ff9fb1}.v60-voice-chat form{display:flex;align-items:flex-end;gap:4px;background:var(--hover);border:1px solid var(--border);border-radius:9px;margin:6px 10px 12px;padding:6px;flex-shrink:0}.v60-voice-chat form button{background:transparent;min-width:28px;width:28px;min-height:33px;padding:4px;color:var(--accent)}.v60-voice-chat textarea{flex:1;min-width:0;max-height:100px;resize:vertical;border:0;background:transparent;color:var(--text);padding:8px 3px;font-size:12px;line-height:1.5}.v60-voice-chat textarea::placeholder{color:var(--muted)}.v60-chat-attachment{display:flex;align-items:center;gap:8px;padding:8px 12px;color:var(--muted);font-size:11px}.v60-chat-attachment>span{flex:1;overflow-wrap:anywhere}.v60-chat-attachment>button{background:transparent;padding:3px;font-size:17px}
/* Channel list: participants remain next to the original join button. */
.v60-voice-group{position:relative;margin:2px 0 6px}.v60-voice-group>[data-voice-room]{width:100%;padding-right:43px!important;min-height:35px!important;border-radius:6px!important}.v60-voice-group.v60-active-room>[data-voice-room]{background:#48d8ad15;color:#86e6bd}.v60-voice-group>[data-voice-room]>small{margin-left:auto;font-size:10px;min-width:17px;background:var(--rail);padding:2px 4px;border-radius:4px}.v60-room-chat{position:absolute;right:5px;top:5px;width:27px;height:27px;padding:4px;background:transparent;color:var(--muted);opacity:.5}.v60-voice-group:hover>.v60-room-chat,.v60-room-chat:focus-visible{opacity:1;background:var(--hover)}.v60-room-chat .icon{width:16px;height:16px}.v60-voice-group .voice-users{margin:1px 0 6px}.v60-voice-group .voice-user{display:flex;align-items:center;gap:7px;width:calc(100% - 29px);margin:2px 0 2px 29px;padding:3px 5px;background:transparent;border:0;border-radius:5px;text-align:left;color:var(--muted);font-size:11px;min-height:27px}.v60-voice-group .voice-user:hover{background:var(--hover);color:var(--text)}.v60-voice-group .voice-user>span:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v60-voice-group .voice-user>small{margin-left:auto;white-space:nowrap;color:#aca0be}.v60-voice-group .voice-user .avatar{width:22px;height:22px;min-width:22px;flex-shrink:0;border-radius:50%}.v60-voice-group .voice-user.speaking{color:#9ceac9}.v60-voice-group .voice-user.speaking>.avatar{outline:2px solid #48d8ad;outline-offset:1px}.v60-voice-category{margin:17px 0 5px!important;padding:0!important}.v60-voice-category button{display:flex;align-items:center;gap:7px;width:100%;text-align:left;background:transparent;color:var(--muted);border:0;padding:6px 9px;font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:.04em}.v60-voice-category button:before{content:'⌄';font-size:13px}.v60-voice-category button[aria-expanded=false]:before{content:'›'}.v60-channel-info{background:transparent;color:var(--muted);padding:3px;font-size:18px;line-height:1;opacity:.3}.hub-nav-channel:hover .v60-channel-info,.v60-channel-info:focus-visible{opacity:1}.docspace-v58 .hub-nav-channel{gap:2px}.docspace-v58 .hub-nav-channel>[data-channel]{min-width:0}.v60-channel-info{flex-shrink:0;width:22px}#v60-voice-clock{color:#8dcdb6;font-size:10px;font-variant-numeric:tabular-nums}
@media(min-width:1700px){.v60-voice-shell.chat-open{grid-template-columns:minmax(0,1fr) 370px}.v60-call-stage .voice-grid{padding:28px;gap:18px}.v60-call-stage .voice-tile{min-height:230px}}
@media(max-width:1180px){.v60-voice-shell.chat-open{grid-template-columns:minmax(0,1fr) 290px}.v60-call-stage .voice-grid{padding:12px;gap:10px}.v60-call-stage .voice-controls{gap:5px;padding:10px}.v60-call-stage .voice-controls button{padding:9px 11px}.v60-call-stage .voice-controls button>span{display:none}.v60-call-stage .voice-controls label{width:100%;justify-content:center}}
@media(max-width:900px){.v60-voice-shell.chat-open{grid-template-columns:minmax(0,1fr)}.v60-voice-chat{position:absolute;inset:0 0 0 auto;width:min(350px,100%);z-index:5;box-shadow:-18px 0 45px #0008}.v60-voice-page>.page-heading{padding:10px 13px;gap:7px}.v60-voice-page>.page-heading h2{font-size:15px}.v60-voice-page>.page-heading>[data-view=channels]{font-size:10px;padding:6px}.v60-voice-page #v60-chat-toggle>span{display:none}.v60-call-stage .voice-controls label{width:auto}.v60-call-stage .voice-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.v60-call-stage .voice-tile{min-height:170px}.v60-call-stage .voice-avatar>.avatar{width:74px;height:74px;font-size:24px}}
@media(max-width:500px){.v60-call-stage .voice-grid{align-content:start;padding:9px}.v60-call-stage .voice-tile{aspect-ratio:16/10;min-height:150px}.v60-call-stage .voice-controls{padding-bottom:12px;gap:6px}.v60-call-stage .voice-controls button{padding:10px 12px}.v60-call-stage .voice-controls label{display:none}.v60-voice-chat{width:100%}.v60-voice-page>.page-heading{min-height:60px}.v60-voice-page>.page-heading>[data-view=channels]{max-width:78px}.v60-chat-message p{font-size:14px}.v60-voice-chat textarea{font-size:16px}.v60-voice-group>[data-voice-room]{padding-right:40px!important}}
/* Override the earlier media grid's fixed sizing without replacing its video nodes. */
.v60-call-stage #voice-media-grid{width:100%;max-width:none;margin:0;padding:20px;align-items:stretch;align-content:center;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));flex:1;min-height:0;overflow:auto}
.v60-call-stage #voice-media-grid .voice-tile{width:100%;max-width:none;min-height:175px;max-height:580px;aspect-ratio:16/10;background:linear-gradient(145deg,hsl(var(--v60-tile-hue,260) 25% 23%),hsl(var(--v60-tile-hue,260) 23% 11%));border-color:#ffffff0b}.v60-call-stage #voice-media-grid .voice-tile.speaking{border-color:#48d8ad}.v60-call-stage #voice-media-grid .voice-tile.screen-tile{grid-column:1/-1;max-height:70vh}.v60-call-stage #voice-media-grid .voice-tile:only-child{max-width:none}.v60-call-stage #voice-media-grid.v60-focus-mode{grid-template-columns:1fr}.v60-call-stage #voice-media-grid.v60-focus-mode>.v60-focused{max-height:none;min-height:250px}
@media(max-width:1180px){.v60-call-stage #voice-media-grid{padding:12px;gap:10px}}
@media(max-width:500px){.v60-call-stage #voice-media-grid{padding:9px;align-content:start;grid-template-columns:1fr}.v60-call-stage #voice-media-grid .voice-tile{min-height:150px}}
