.room-presence { position: relative; display: inline-flex; align-items: center; min-width: 0; }
#roomsPanel .presence-trigger { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px; border: 1px solid #f8944547; border-radius: 12px; color: #ffcb9c; background: #50280f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.presence-menu { position: absolute; z-index: 12; bottom: calc(100% + 8px); left: 0; width: min(310px, calc(100vw - 64px)); max-height: min(420px, 48dvh); display: flex; flex-direction: column; padding: 10px; border: 1px solid #ff9b4e7a; border-radius: 18px; background: linear-gradient(145deg, #472310, #21130e); box-shadow: 0 12px 40px #0009; color: #ffd7b2; }
.presence-menu[hidden] { display: none; }
.presence-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 8px; }
#roomsPanel .presence-header h3 { margin: 0 0 0 4px; font-size: 14px; line-height: 1.4; }
#roomsPanel .presence-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: #713516; color: #ffd5ad; font-size: 23px; }
.presence-list { list-style: none; display: flex; flex-direction: column; gap: 7px; min-height: 0; max-height: 32dvh; overflow-y: auto; overscroll-behavior: contain; margin: 6px 0; padding: 0 3px; scrollbar-width: thin; scrollbar-color: #b85a29 #29170f; }
.presence-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; border-radius: 12px; background: #6f331426; }
.presence-avatar { display: grid; place-items: center; position: relative; overflow: hidden; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffad6266; background: linear-gradient(145deg, #ff9b2a, #d94312); color: #411a09; font-size: 16px; font-weight: 700; }
.presence-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.presence-person-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.presence-person-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #ffd2a6; }
.presence-person-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #cf986d; }
.presence-empty { padding: 14px 6px; font-size: 11px; line-height: 1.6; color: #d79d74; }
.presence-note { flex: 0 0 auto; margin: 4px 3px 1px; font-size: 9px; line-height: 1.5; color: #c68d63; }
#roomsPanel .presence-trigger:focus-visible, #roomsPanel .presence-close:focus-visible { outline: 2px solid #ffc17d; outline-offset: 3px; }
