.lobby {
  max-width: 42rem;
  text-align: center;
}
#onboarding,
#login,
#create {
  display: grid;
  gap: 0.8rem;
  max-width: 28rem;
  margin: 1rem auto 2rem;
}
[hidden] {
  display: none !important;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  font-weight: 700;
}
#my-avatar .avatar {
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
}
#roster,
.roster {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.roster li,
#roster li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.room-card {
  padding: 1.5rem;
  margin-block: 1rem;
  border: 1px solid var(--line);
  background: white;
  border-radius: 1rem;
}
.room-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.room-actions select {
  font: inherit;
  min-height: 48px;
  max-width: 100%;
}
.room-actions input {
  flex: 1;
  min-width: 10rem;
}
.teacher-view {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  font-weight: 650;
}
.identity-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.identity-header .identity {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.identity-header .room-label {
  overflow-wrap: anywhere;
}
.identity-header button {
  font-size: 0.85rem;
}
#connection-status {
  color: var(--muted);
  font-size: 0.85rem;
}
.teacher-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 17rem;
  overflow-y: auto;
  padding: 1.25rem;
  border-left: 1px solid var(--line);
  background: white;
  z-index: 11;
}
.teacher-sidebar label,
.teacher-sidebar button,
.teacher-sidebar select {
  display: block;
  width: 100%;
  margin-block: 0.75rem;
}
.teacher-sidebar select {
  font: inherit;
  min-height: 48px;
}
.with-teacher-sidebar {
  padding-right: 17rem;
}
.with-teacher-sidebar .layout {
  grid-template-columns: minmax(0, 1fr) 13rem;
}
@media (max-width: 65rem) {
  .with-teacher-sidebar .layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 48rem) {
  .teacher-sidebar {
    position: static;
    width: auto;
  }
  .with-teacher-sidebar {
    padding-right: 0;
  }
}
