    /* Room list over the game (?new_rooms=1, js/rooms/room_browser.js). */
    /* The Online tab hides its old "Sala" field in this mode. */
    .field[hidden] { display: none; }
    /* Square panel: list, share link and buttons stacked. */
    .rooms-panel { width: min(500px, 100%); height: min(500px, 100%); min-height: 0; }
    .rooms-head {
      display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
      border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 6px;
    }
    .rooms-head h2 { margin: 0; }
    .rooms-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
    .rooms-browse { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 auto; }
    .rooms-browse[hidden] { display: none; }
    .rooms-table-wrap { flex: 1 1 auto; min-width: 0; min-height: 80px; overflow-y: auto; }
    .rooms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .rooms-table th {
      position: sticky; top: 0; background: rgb(18, 18, 18);
      text-align: left; font-weight: 600; color: var(--muted);
      padding: 4px 8px; border-bottom: 1px solid var(--panel-edge);
    }
    .rooms-table td { padding: 4px 8px; white-space: nowrap; }
    .rooms-table td.rooms-name { white-space: normal; overflow-wrap: anywhere; width: 100%; }
    .rooms-table td.rooms-empty { color: var(--muted); white-space: normal; text-align: center; padding: 16px 8px; }
    .rooms-table td.rooms-ping { text-align: right; }
    .rooms-table tbody tr { cursor: pointer; }
    .rooms-table tbody tr:hover { background: rgba(255, 255, 255, 0.06); }
    .rooms-table tbody tr.selected { background: rgba(31, 181, 168, 0.22); }
    .rooms-table tbody tr.current td.rooms-name { color: var(--accent); font-weight: 700; }
    .rooms-actions { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
    .rooms-actions .btn { flex: 1 1 0; }
    .rooms-share { display: flex; gap: 6px; flex: 0 0 auto; }
    .rooms-share[hidden] { display: none; }
    .rooms-share .text-input { flex: 1 1 auto; min-width: 0; font-size: 12px; }
    .rooms-form { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; overflow-y: auto; }
    .rooms-form[hidden] { display: none; }
    .rooms-form h3 { margin: 0; font-size: 14px; }
    .rooms-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
    /* Room view: members on the left, chat on the right (js/rooms/room_chat.js). */
    .rooms-filters { display: contents; }
    .rooms-filters[hidden] { display: none; }
    .rooms-room { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 auto; }
    .rooms-room[hidden] { display: none; }
    .rooms-room-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
    .rooms-room-title { font-size: 15px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
    .rooms-room-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
    .rooms-room-body { display: flex; gap: 8px; min-height: 0; flex: 1 1 auto; }
    .rooms-members {
      list-style: none; margin: 0; padding: 6px; flex: 0 0 140px; overflow-y: auto;
      background: rgba(255, 255, 255, 0.04); border-radius: 6px; font-size: 12px;
    }
    .rooms-members li { display: flex; flex-direction: column; padding: 3px 4px; }
    .rooms-members li.you .rooms-member-name { color: var(--accent); font-weight: 700; }
    .rooms-member-name { overflow-wrap: anywhere; }
    .rooms-member-state { color: var(--muted); font-size: 11px; }
    .rooms-chat { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
    .rooms-chat-log {
      flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding: 6px;
      background: rgba(255, 255, 255, 0.04); border-radius: 6px; font-size: 12px; line-height: 1.4;
    }
    .rooms-chat-line { overflow-wrap: anywhere; }
    .rooms-chat-line.system { color: var(--muted); font-style: italic; }
    .rooms-chat-time { color: var(--muted); margin-right: 6px; }
    .rooms-chat-name { font-weight: 700; margin-right: 4px; }
    .rooms-chat-form { display: flex; gap: 6px; }
    .rooms-chat-form .text-input { flex: 1 1 auto; min-width: 0; }
    @media (max-width: 420px) {
      .rooms-room-body { flex-direction: column; }
      .rooms-members { flex: 0 0 auto; max-height: 72px; }
    }
