/* ── Room ── */

/* Room group by controls */
.room-group-by {
  display: flex;
  align-items: center;
}
.room-group-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-right: 2px;
}
.room-group-link {
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 4px 7px;
  position: relative;
  cursor: pointer;
}
.room-group-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #e0ddd7;
}
.room-group-link-last::after {
  display: none;
}
.room-group-link:hover {
  color: var(--color-accent-hover);
}
.room-group-link.room-pill-active {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  background: #edf2f4;
}
.room-group-clear {
  font-family: inherit;
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
  background: none;
  border: none;
  padding: 0;
  margin-left: var(--space-1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.room-group-clear-visible {
  opacity: 1;
  pointer-events: auto;
}
.room-group-clear-visible:hover {
  color: var(--color-danger);
}

/* Circle room */
#cohort {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.circle-room {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 420px;
  margin: 0 auto;
  overflow: visible;
}
.room-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  text-align: center;
  z-index: 1;
  will-change: transform, opacity;
  opacity: 0;
}
.cohort-name {
  font-size: 9px;
  color: var(--color-text-tertiary);
  margin-top: 3px;
  white-space: nowrap;
}
.cohort-note {
  text-align: center;
  font-size: var(--text-3xs);
  color: var(--color-text-tertiary);
  margin: var(--space-3) 0 0;
}

/* Hover scale */
.room-avatar:hover .cohort-avatar:not(.empty) {
  transform: scale(1.06);
  transition: transform var(--transition-normal);
}
.cohort-remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  font-size: var(--text-4xs);
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.cohort-slot-wrap:hover .cohort-remove-btn {
  display: flex;
}

/* Room zones */
.room-zone {
  pointer-events: none;
}
.room-zone-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 0;
  font-size: var(--text-4xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.4px;
  color: var(--color-text-tertiary);
  text-transform: capitalize;
}
.room-zone-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  flex-shrink: 0;
}
.room-remaining {
  padding-top: var(--space-1);
}
.room-remaining-label {
  font-size: var(--text-4xs);
  color: #b0ada5;
  letter-spacing: 0.3px;
  text-align: center;
  margin-bottom: var(--space-2);
}
.room-remaining-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.room-remaining-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: rgba(79, 109, 122, 0.08);
}

/* ── Mobile curate bottom bar ── */
.curate-bottom-bar {
  display: none; /* shown via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  z-index: 200;
  padding: 12px 20px 16px;
  padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.curate-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.curate-bar-circle-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}
.curate-bar-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.curate-bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 9px;
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.curate-bar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-circle);
}
.curate-bar-count {
  font-size: var(--text-2xs);
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

/* ── Mobile curate circle modal ── */
.curate-circle-modal {
  display: none; /* shown via media query when opened */
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-white);
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.curate-circle-modal.is-open {
  transform: translateY(0);
}
.curate-circle-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.curate-circle-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.curate-circle-modal-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.curate-circle-modal-count {
  font-size: var(--text-3xs);
  color: var(--color-text-tertiary);
}
.curate-circle-modal-close {
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 20;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curate-circle-modal-close:hover {
  color: var(--color-text);
}
.curate-circle-modal-filters {
  padding: 0 20px 8px;
}
.curate-circle-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
  min-height: 0;
}
.curate-circle-modal-body .circle-room {
  min-height: calc(100vh - 200px);
}
.curate-circle-modal-footer {
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
