.room-panel {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 10px auto 14px;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 12px;
  color: #233044;
  background:
    radial-gradient(circle at 12% 0%, rgba(240,195,91,0.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(232,244,249,0.62));
  box-shadow: 0 10px 24px rgba(5,33,62,0.11);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.room-panel[hidden] {
  display: none;
}

.room-panel.room-panel-live-only {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  max-width: calc(100% - 12px);
  margin: 0 0 18px auto;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.room-panel-live-only .room-panel-actions {
  order: 2;
  display: flex;
}

.room-panel-live-only .room-panel-grid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.room-panel-live-only .room-panel-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow:
    0 9px 18px rgba(140, 94, 20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.room-panel-live-only button.room-panel-close {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-color: rgba(9,47,86,0.2);
  color: #092f56;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 7px 14px rgba(5,33,62,0.09);
}

.room-panel-live-only .room-panel-status,
.room-panel-live-only .room-panel-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.room-panel-show {
  display: block;
  width: fit-content;
  min-height: 34px;
  margin: 12px auto 0;
  padding: 7px 13px;
  border: 1.5px solid rgba(9,47,86,0.24);
  border-radius: 999px;
  color: #092f56;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 10px 24px rgba(5,33,62,0.12);
  cursor: pointer;
  font: 800 0.86rem/1 "Poppins", "Segoe UI", Arial, sans-serif;
}

.room-panel-show[hidden] {
  display: none;
}

.flip-it-page .room-panel.room-panel-live-only,
.flip-it-page .room-panel-show,
.deminos-page .room-panel.room-panel-live-only,
.deminos-page .room-panel-show {
  display: none !important;
}

.room-panel-show:hover {
  transform: translateY(-1px);
}

.room-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.room-panel-status {
  margin: 0;
  color: #6f788d;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.room-panel-status[hidden] {
  display: none;
}

.room-panel-grid {
  display: grid;
  grid-template-columns: max-content;
  justify-content: end;
  gap: 6px;
}

.room-panel input {
  min-height: 30px;
  padding: 5px 9px;
  border: 1.5px solid rgba(9,47,86,0.22);
  border-radius: 12px;
  color: #233044;
  background: rgba(255,255,255,0.82);
  font: 700 0.84rem/1 "Poppins", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.room-panel button,
.room-panel-live {
  min-height: 30px;
  padding: 5px 10px;
  border: 1.5px solid rgba(9,47,86,0.24);
  border-radius: 999px;
  color: #092f56;
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  font: 800 0.78rem/1 "Poppins", "Segoe UI", Arial, sans-serif;
  text-decoration: none;
}

.room-panel button.room-panel-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.room-panel button.primary,
.room-panel-live.primary {
  border-color: rgba(197,138,37,0.45);
  color: #ffffff;
  background: linear-gradient(135deg, #c58a25, #f0c35b);
}

.room-panel button:hover,
.room-panel-live:hover {
  transform: translateY(-1px);
}

.room-panel-copy {
  display: none;
  margin: 0;
  color: #257451;
  font-size: 0.82rem;
  font-weight: 700;
}

.room-panel-copy.is-visible {
  display: block;
}

@media (max-width: 720px) {
  .room-panel {
    width: min(100% - 24px, 520px);
  }

  .room-panel.room-panel-live-only {
    width: fit-content;
    max-width: calc(100% - 8px);
    margin: 0 0 14px auto;
  }

  .room-panel-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .room-panel-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .room-panel input {
    grid-column: 1 / -1;
  }

  .room-panel-actions {
    justify-content: space-between;
  }
}
