#tabShare { display: block; padding: 0; text-align: left; height: 100%; overflow: hidden; }
#roomPicker { height: 100%; min-height: 0; display: flex; align-items: stretch; }
.shareSidebar { flex: 0 0 80px; background: var(--panel); border-right: 1px solid #262a36; padding: 16px 10px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.shareSidebarHead { display: flex; justify-content: center; margin-bottom: 14px; flex-shrink: 0; }
.shareSidebarHead button { padding: 6px 10px; }
#shareServers { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.serverNavItem { position: relative; padding: 4px; background: transparent; border-radius: 16px; flex-shrink: 0; }
.serverNavItem.active { background: var(--accent); }
.serverNavItem.active::before { content: ''; position: absolute; left: -10px; top: 14px; bottom: 14px; width: 3px; background: var(--accent); border-radius: 3px; }
.serverAvatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--panel2); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 18px; font-weight: 700; }
.serverAvatar img { width: 100%; height: 100%; object-fit: cover; }
.shareBody { flex: 1; min-width: 0; min-height: 0; padding: 24px; overflow-y: auto; }
.shareHeader { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shareHeader h2 { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
#shareSidebarOpen { flex-shrink: 0; }
#roomsRefresh { margin-left: auto; }
#roomsStatus { margin-bottom: 16px; }
#roomsCurrent:not(:empty) { padding: 12px 16px; background: var(--panel); border: 1px solid #2c3142; border-radius: var(--radius); margin-bottom: 20px; }
.serverCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.serverCard { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--panel); border: 1px solid #2c3142; padding: 20px; }
.serverCard:hover { border-color: var(--accent); }
.serverInfo { min-width: 0; display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.shareGuildHeader { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.shareGuildHeader h3 { margin: 0; overflow-wrap: anywhere; }
.shareCategory { margin: 20px 0 10px; font-size: 13px; color: var(--muted); }
.shareRoomList { display: flex; flex-direction: column; gap: 8px; }
.shareRoom { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; background: var(--panel); border: 1px solid #262a36; }
.shareRoom:hover { border-color: var(--accent); }
.shareRoom.current { border-color: var(--accent); }
.shareRoomInfo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shareRoomInfo b { display: block; margin-bottom: 4px; }
.shareRoomAction { font-size: 13px; color: var(--muted); }
.shareLegacy { margin-top: 24px; }
.shareLegacy .card { width: min(620px, 100%); padding: 20px; }
#desktopHint { margin-top: 16px; }
#tabShare > .shareLegacy { padding: 24px; height: 100%; overflow-y: auto; }
#tabShare button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#shareSidebarBackdrop { display: none; }
@media (max-width: 700px) {
  #roomPicker { position: relative; }
  .shareBody { padding: 18px 14px; }
  .shareSidebar { position: absolute; z-index: 42; top: 0; left: 0; bottom: 0; width: 80px; overflow-y: auto; box-shadow: 4px 0 24px #0008; }
  #roomPicker.sidebarOpen #shareSidebarBackdrop { display: block; position: absolute; inset: 0; background: #0007; z-index: 41; }
  .shareRoomAction { display: none; }
}
