/* Correctifs d'affichage des deux modes d'identité. */
.guest-fields[hidden],
.reserved-identity[hidden],
.identity-switch[hidden],
.auth-panel[hidden],
.member-panel[hidden] {
  display: none !important;
}

/* Sélecteur de salons version cartes. */
.room-picker-panel {
  overflow: hidden;
}

.room-search-wrap {
  margin-bottom: 8px;
}

.room-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.room-filter-tabs::-webkit-scrollbar {
  display: none;
}

.room-filter-tabs button {
  min-height: 29px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid #e6dfeb;
  border-radius: 999px;
  background: #fff;
  color: #766d7d;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.room-filter-tabs button:hover {
  border-color: #cbb8e1;
  color: #5e2baa;
}

.room-filter-tabs button.active {
  border-color: #6d35d5;
  background: #6d35d5;
  color: #fff;
  box-shadow: 0 6px 16px rgba(109, 53, 213, .18);
}

.room-options {
  max-height: 280px;
  padding: 0 13px 12px;
}

.room-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.room-card {
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 6px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e9e2ed;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}

.room-card:hover {
  border-color: #cab5e2;
  box-shadow: 0 8px 21px rgba(47, 22, 69, .07);
  transform: translateY(-1px);
}

.room-card.selected {
  border-color: #7c47da;
  background: #f8f3ff;
  box-shadow: 0 0 0 2px rgba(109, 53, 213, .08);
}

.room-card.is-hidden {
  display: none;
}

.room-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.room-card-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0e8fb;
  color: #6d35d5;
  font-size: 13px;
  font-style: normal;
}

.room-card.selected .room-card-icon {
  background: #e7daf9;
}

.room-card-copy {
  min-width: 0;
}

.room-card-copy b,
.room-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card-copy b {
  color: #28212e;
  font-size: 11px;
}

.room-card-copy small {
  margin-top: 3px;
  color: #968b9d;
  font-size: 9px;
}

.room-card-copy small i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #36b37e;
  vertical-align: 1px;
}

.room-card-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #ded5e5;
  border-radius: 7px;
  color: transparent;
  font-size: 10px;
  font-weight: 800;
}

.room-card.selected .room-card-check {
  border-color: #6d35d5;
  background: #6d35d5;
  color: #fff;
}

.room-favorite-badge {
  color: #7a43d8;
}

.room-empty {
  grid-column: 1 / -1;
  padding: 32px 15px;
  color: #8b818f;
  text-align: center;
  font-size: 11px;
}

.room-picker-foot {
  border-radius: 0 0 18px 18px;
}

.member-card .member-ident {
  color: #8b7d92;
}

.member-card .member-ident span {
  color: #5e3a80;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

@media (max-width: 650px) {
  .room-picker-panel {
    overflow: hidden;
  }

  .room-card-grid {
    grid-template-columns: 1fr;
  }

  .room-options {
    max-height: 44vh;
  }
}
