/* Primary controls remain in one place; secondary tools open on demand. */
[hidden] { display:none !important; }
.current-live-button { flex:0 0 auto; min-height:44px; padding:8px 12px; border:1px solid #ff9f5370; background:#71320f; color:#ffcf9a; font-size:11px; }
#roomsPanel .room-primary-actions { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; overflow:visible; position:relative; z-index:8; }
#roomsPanel .room-primary-actions > .btn, #roomsPanel .room-primary-actions > .overlive-chat-trigger { width:100%; min-height:46px; padding:9px 5px; font-size:11px; }
#roomsPanel .room-primary-actions .overlive-chat-trigger { position:static; display:inline-flex; margin:0; justify-content:center; border-radius:11px; box-shadow:none; background:#fff0df; color:#57260e; }
#roomsPanel .room-primary-actions .overlive-chat-trigger > span:first-child { display:none; }
#roomsPanel .room-primary-actions .chat-unread { min-width:18px; min-height:18px; font-size:9px; }
.room-chat-dock { flex:0 0 auto; min-width:0; width:100%; margin-top:8px; }
#roomsPanel .room-chat-dock .overlive-chat-trigger { position:static; inset:auto; display:flex; width:100%; min-height:48px; margin:0; padding:11px 16px; justify-content:center; border-radius:14px; box-shadow:none; background:#fff0df; color:#57260e; }
#roomsPanel .room-chat-dock .chat-unread { min-width:20px; min-height:20px; font-size:10px; }
#roomsPanel .room-more { position:relative; display:block; min-width:0; }
#roomsPanel .room-more > summary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:46px; border:1px solid #ffbd775c; border-radius:11px; background:#fff0df; color:#57260e; cursor:pointer; font-size:11px; font-weight:700; list-style:none; }
#roomsPanel .room-more > summary::-webkit-details-marker { display:none; }
#roomsPanel .room-more[open] > summary { background:#ff963e; }
.room-more-menu { position:absolute; z-index:30; top:calc(100% + 7px); right:0; width:min(280px,calc(100vw - 65px)); max-height:min(390px,52dvh); overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid #ff9b4e70; border-radius:16px; background:#2e180f; box-shadow:0 14px 35px #0009; }
.room-more:not([open]) > .room-more-menu { display:none; }
#roomsPanel .room-more-menu > .btn { flex:0 0 auto; min-height:44px; width:100%; font-size:12px; padding:10px; justify-content:flex-start; }
#roomsPanel .room-more-menu > .field { display:flex; align-items:center; justify-content:space-between; gap:9px; margin:3px 0; padding:5px 9px; }
#roomsPanel .room-more-menu select { width:76px; min-height:44px; padding:7px; }
#roomsPanel .room-more-menu .danger { color:#9b281d; background:#ffd9c5; }
#roomsPanel #sharedRoomSetup .room-name-row, #roomsPanel #sharedRoomSetup .room-limit-row { display:none; }
#sharedInviteDialog { background:#2e180f; color:#ffd8b7; border-color:#ff9b4e70; }
#sharedInviteDialog .room-invite { max-height:none; overflow:visible; }
#sharedInviteDialog input { width:100%; padding:12px; border:1px solid #b96c3b80; border-radius:10px; background:#1a100b; color:#ffcfab; font-size:13px; }
#sharedInviteDialog .close { min-width:44px; min-height:44px; background:#6e341a; color:#ffcc9a; }
.room-audio-unlock { display:flex; align-items:center; justify-content:space-between; gap:10px; flex:0 0 auto; padding:9px; border:1px solid #ffba7077; border-radius:12px; background:#71320f; color:#ffd8b3; font-size:10px; }
#roomsPanel .room-audio-unlock .btn { flex:0 0 auto; min-height:44px; padding:8px 12px; font-size:11px; }
.public-live-cover { width:100%; height:140px; flex:0 0 auto; object-fit:cover; border-radius:12px; background:#1c0e09; }
.public-live-card { overflow:hidden; }
.app-secondary-options { flex:0 0 auto; margin:8px 0 18px; padding:12px; border:1px solid #ff9b4e35; border-radius:16px; background:#2a160e; }
.app-secondary-options > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:#efb382; font-size:12px; font-weight:700; }
.app-secondary-options > .panel { margin-top:10px !important; }
.app-secondary-options .space-actions { margin-block:10px; }
.room-directory-controls { align-items:stretch; }
.room-directory-controls .btn { min-height:46px; }
#publicLiveStatus { margin-block:5px 12px; }
@media(min-width:761px){ #roomsPanel .room-primary-actions { max-width:600px; } }
@media(max-width:500px){ .current-live-button{font-size:10px;padding-inline:9px} #roomsPanel .room-header h2{font-size:20px} #sharedRoomNotice{font-size:10px} }
