.collab-presence { position: relative; }
.collab-presence > button { height: 36px; min-width: 64px; padding: 3px 7px; display: flex; align-items: center; gap: 5px; background: #101217; }
.collab-presence > button > b { font-size: 10px; color: #dce1e9; }
.collab-avatars { display: flex; }
.presence-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; border: 2px solid #101217; color: #08100d; font-size: 9px; font-weight: 800; }
.presence-avatar:first-child { margin-left: 0; }
.presence-panel { position: absolute; right: -82px; top: 45px; width: 340px; max-height: 430px; overflow: auto; background: #121419; border: 1px solid #343843; border-radius: 10px; box-shadow: 0 18px 55px #000b; z-index: 40; text-align: left; }
.presence-panel header { padding: 14px 15px; border-bottom: 1px solid #292c34; }
.presence-panel header b, .presence-panel header small { display: block; }
.presence-panel header b { font-size: 10px; letter-spacing: .8px; }
.presence-panel header small { margin-top: 4px; color: #818894; font-size: 10px; }
.presence-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #24272e; }
.presence-row:last-child { border-bottom: 0; }
.presence-row .presence-avatar { width: 32px; height: 32px; margin: 0; border-color: #15171c; }
.presence-copy { min-width: 0; }
.presence-copy b, .presence-copy small, .presence-copy em, .presence-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-copy b { font-size: 12px; }
.presence-copy b i { font-style: normal; color: #67ddb0; font-size: 8px; margin-left: 5px; }
.presence-copy small { color: #9298a5; font-size: 10px; margin-top: 3px; }
.presence-copy strong { color: #67ddb0; font-size: 9px; margin-top: 3px; }
.presence-copy em { font-style: normal; color: #d9ae62; font-size: 9px; margin-top: 3px; }
.remote-actions { position: fixed; inset: 0; pointer-events: none; z-index: 99; }
.remote-action-ring { position: fixed; border: 2px solid var(--collab-color); border-radius: 7px; box-shadow: 0 0 0 2px #05070acc, 0 0 20px color-mix(in srgb,var(--collab-color) 58%,transparent); animation: collab-click-pulse .7s ease-out infinite alternate; }
.remote-action-ring.is-pressed { background: color-mix(in srgb,var(--collab-color) 20%,transparent); transform: scale(.98); }
.remote-action-ring span { position: absolute; left: -2px; bottom: calc(100% + 5px); max-width: 280px; padding: 4px 7px; border-radius: 5px; background: var(--collab-color); color: #07100d; font-size: 9px; line-height: 1.2; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 12px #000a; }
.remote-cursors { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.remote-cursor { position: fixed; left: 0; top: 0; opacity: 0; transition: transform .14s cubic-bezier(.2,.7,.2,1), opacity .16s ease; will-change: transform; filter: drop-shadow(0 3px 5px #000c); }
.remote-cursor.visible { opacity: 1; }
.remote-cursor i { display: block; width: 18px; height: 22px; background: var(--cursor-color); clip-path: polygon(0 0,100% 64%,58% 67%,77% 100%,58% 100%,40% 70%,8% 100%); border-radius: 2px; }
.remote-cursor::after { content: ""; position: absolute; left: 1px; top: 1px; width: 15px; height: 19px; clip-path: polygon(0 0,100% 64%,58% 67%,77% 100%,58% 100%,40% 70%,8% 100%); box-shadow: inset 0 0 0 1px #fff9; }
.remote-cursor span { display: block; margin: -1px 0 0 13px; padding: 4px 7px; border: 1px solid #fff3; border-radius: 4px; background: var(--cursor-color); color: #07100d; font-size: 9px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 12px #0009; }
.remote-cursor.is-pressed i { transform: scale(.86); transform-origin: 2px 2px; }
.collab-editing { box-shadow: 0 0 0 2px var(--collab-color,#72aeea) !important; }
.collab-active { outline: 2px solid var(--collab-color,#72aeea) !important; outline-offset: 2px; filter: brightness(1.14); }
@keyframes collab-click-pulse { from { opacity:.72; box-shadow:0 0 0 2px #05070acc,0 0 8px color-mix(in srgb,var(--collab-color) 35%,transparent) } to { opacity:1; box-shadow:0 0 0 2px #05070acc,0 0 24px color-mix(in srgb,var(--collab-color) 75%,transparent) } }
.deck.draining { border-color: #d9ae62; }
.deck.draining .live-cover { box-shadow: 0 0 22px #d9ae6255; }
.deck.draining .deck-label { color: #e4bd72; }
@media (max-width:1100px) { .collab-presence { display:none; } }
