/* Scoped to the approved create-room screen, including its small-screen card layout. */
html[data-brand] .commercial-modal:has(> .commercial-panel[data-glass-view=create]) {
  --room-create-wall: url('/brand/backgrounds/dark-01-desktop-v1.webp');
  --room-create-wall-mobile: url('/brand/backgrounds/dark-01-mobile-v1.webp');
  --room-create-veil: radial-gradient(ellipse at 50% 34%,#180910d4,#1b080e59 62%,#17080c35);
  --glass-pane: radial-gradient(ellipse at 14% -14%,#f7b2ae51,transparent 61%),linear-gradient(146deg,#4b2130a6,#391823ce 49%,#25101acb);
  --glass-inner: linear-gradient(145deg,#4e2838e6,#2b1421e6);
  --glass-primary: radial-gradient(ellipse at 21% -9%,#ffd4d8ad,transparent 64%),linear-gradient(152deg,#a9506d8f,#642c4ab8 56%,#813954a1);
  --glass-primary-ink: #fff6ee;
  --room-create-selected: #eda9ba;
  grid-template-columns: minmax(0,866px);
  justify-content: center;
  padding: 24px 23px;
}
html[data-brand=clean] .commercial-modal:has(> .commercial-panel[data-glass-view=create]) {
  --room-create-wall: url('/brand/club-palace-v3.webp');
  --room-create-wall-mobile: url('/brand/club-palace-mobile-v3.webp');
  --room-create-veil: radial-gradient(ellipse at 50% 32%,#fff5e28c,#f6d6be23 60%,#f7d7c518);
  --glass-pane: radial-gradient(ellipse at 17% -16%,#fffdf6d9,transparent 66%),linear-gradient(145deg,#fff4e0a6,#fce6d2b5 53%,#f7d7c2c7);
  --glass-inner: linear-gradient(151deg,#fff8ebef,#fde3d1e8);
  --glass-primary: radial-gradient(ellipse at 20% -13%,#fff4ecde,transparent 67%),linear-gradient(150deg,#efc8bcbf,#dfa6a8b0 60%,#d49ea0bb);
  --glass-primary-ink: #4b232f;
  --room-create-selected: #bc876d;
}
html[data-brand] .commercial-modal:has(> .commercial-panel[data-glass-view=create])::before {
  background: var(--room-create-veil),var(--room-create-wall) center/cover no-repeat;
}
html[data-brand] .commercial-modal > .commercial-panel[data-glass-view=create] {
  padding: 20px 25px 17px;
  border-radius: 27px;
  backdrop-filter: blur(15px) saturate(125%);
  -webkit-backdrop-filter: blur(15px) saturate(125%);
}
.commercial-panel[data-glass-view=create] .glass-flow-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
}
html[data-brand] .commercial-panel[data-glass-view=create] .glass-flow-mark {
  position: relative;
  width: 135px;
  height: 67px;
}
.commercial-panel[data-glass-view=create] .glass-flow-mark img {
  position: absolute;
  inset: 0;
  object-fit: contain;
}
html[data-brand] .commercial-panel[data-glass-view=create] #commerceTitle {
  font-size: clamp(42px,4.5vw,65px) !important;
  line-height: .96 !important;
  text-align: center;
}
.commercial-panel[data-glass-view=create] .glass-flow-steps {
  gap: 8px;
  padding: 0;
  margin: 15px 0 16px;
  border: 0;
  background: none;
}
html[data-brand] .commercial-panel[data-glass-view=create] .glass-flow-steps button {
  min-height: 40px;
  border: 1px solid var(--glass-rule) !important;
  border-radius: 999px;
  background: var(--glass-inner) !important;
  box-shadow: inset 0 1px 2px var(--glass-shine) !important;
}
html[data-brand] .commercial-panel[data-glass-view=create] .glass-flow-steps button[aria-pressed=true] {
  background: var(--glass-primary) !important;
  border-color: var(--room-create-selected) !important;
  color: var(--glass-primary-ink) !important;
}
#roomCreateForm { gap: 9px; }
#roomCreateForm .room-create-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 20px;
}
#roomCreateForm[data-shared=true] .room-create-layout {
  grid-template-columns: minmax(190px,.78fr) minmax(0,1.45fr);
}
#roomCreateForm[data-shared=true] .room-create-setup {
  padding-right: 20px;
  border-right: 1px solid var(--glass-rule);
}
#roomCreateForm .room-create-setup { min-width: 0; }
#roomCreateForm #roomCreateHost { margin-top: 14px; min-width: 0; }
#roomCreateForm :is(#roomCreateHost,#roomCreateFriends) h3 {
  font: 665 29px/1.07 var(--glass-serif);
  margin: 0 0 7px;
  letter-spacing: -.02em;
  color: var(--glass-ink);
}
#roomCreateForm .room-create-host-card {
  display: grid;
  grid-template-columns: 43px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--glass-rule);
  border-radius: 12px;
  background: var(--glass-inner);
  box-shadow: inset 0 1px 2px var(--glass-shine);
}
#roomCreateForm .room-create-host-copy { display: grid; min-width: 0; }
#roomCreateForm .room-create-host-copy strong { overflow-wrap: anywhere; }
#roomCreateForm .room-create-host-copy small { color: var(--glass-muted); font-size: 11px; }
html[data-brand] #roomCreateForm .room-create-manual {
  min-height: 34px;
  padding: 3px 0;
  color: var(--glass-ink) !important;
  font: 740 12px/1.2 var(--glass-font);
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-brand] #roomCreateForm .room-create-friends-lead {
  margin: 0;
  color: var(--glass-muted) !important;
  font: 650 12px/1.4 var(--glass-font) !important;
}
#roomCreateForm .room-create-friend-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  max-height: min(32dvh,286px);
  margin-top: 9px;
  padding: 2px;
  overflow-y: auto;
  scrollbar-color: var(--glass-rule) transparent;
  overscroll-behavior: contain;
}
#roomCreateForm .room-create-friend {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  position: relative;
  align-items: center;
  align-content: start;
  gap: 5px 4px;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--glass-rule);
  border-radius: 13px;
  background: var(--glass-inner);
  box-shadow: inset 0 1px 2px var(--glass-shine);
}
#roomCreateForm .room-create-friend:has(input:checked) { border-color: var(--room-create-selected); }
#roomCreateForm .room-create-friend:has(input:disabled) { opacity: .72; }
#roomCreateForm .room-create-friend:has(input:focus-visible) { outline: 2px solid var(--glass-accent); outline-offset: -1px; }
html[data-brand] #roomCreateForm .room-create-friend input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
html[data-brand] #roomCreateForm .room-create-friend input:disabled { cursor: default; }
#roomCreateForm .room-create-friend strong {
  min-width: 0;
  font: 710 clamp(17px,2vw,29px)/1.05 var(--glass-serif);
  overflow-wrap: anywhere;
}
#roomCreateForm .room-create-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--glass-inner);
  border: 1px solid var(--glass-rule);
}
#roomCreateForm .room-create-thumbnail-card { grid-column: 1/-1; width: 100%; aspect-ratio: 4/5; border-radius: 8px; }
#roomCreateForm .room-create-thumbnail-circle { width: 43px; height: 43px; border-radius: 50%; }
#roomCreateForm .room-create-thumbnail .room-create-portrait,
#roomCreateForm .room-create-thumbnail .portrait-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: inherit;
  margin: 0;
  padding: 0;
  background: none;
}
#roomCreateForm .room-create-thumbnail .portrait-monogram { font-size: clamp(23px,4vw,55px); }
#roomCreateForm .room-create-thumbnail-circle .portrait-monogram { font-size: 23px; }
#roomCreateForm .room-create-thumbnail :is(.portrait-jewels,.portrait-shade,.portrait-identity,.portrait-flare,.portrait-monogram small) { display: none; }
#roomCreateForm .room-create-check {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--glass-rule);
  border-radius: 50%;
  background: var(--glass-primary);
  color: var(--glass-primary-ink);
  font: 760 14px/1 var(--glass-font);
}
#roomCreateForm .room-create-friend input:not(:checked) ~ .room-create-check {
  color: transparent;
  background: var(--glass-inner);
}
#roomCreateForm .room-create-options {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 5px;
  text-align: center;
}
html[data-brand] #roomCreateForm .room-create-photos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  text-align: left;
}
html[data-brand] #roomCreateForm #roomCreateIncludePhotos {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: #994f66;
  box-shadow: none;
}
html[data-brand] #roomCreateForm :is(#roomCreatePhotoNote,.room-create-count) {
  margin: 0;
  color: var(--glass-muted) !important;
  font: 630 11px/1.35 var(--glass-font) !important;
}
#roomCreateForm .room-create-count {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
#roomCreateForm .room-create-count strong { padding: 2px 7px; border: 1px solid var(--glass-rule); border-radius: 999px; }
html[data-brand] #commerceContent #roomCreateForm .glass-flow-action {
  position: relative;
  justify-content: center;
  padding-inline: 45px;
  border-color: var(--room-create-selected) !important;
  border-radius: 999px;
  text-align: center;
  transform: none;
}
#roomCreateForm .glass-flow-action > span { pointer-events: none; }
#roomCreateForm .glass-flow-arrow {
  position: absolute;
  right: 9px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--room-create-selected);
  border-radius: 50%;
}
#roomCreateForm #roomCreateFeedback {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--glass-rule);
  border-radius: 9px;
  background: var(--glass-inner);
  font: 630 12px/1.35 var(--glass-font);
}
#roomCreateForm :is(#roomCreateHint,#roomCreateFeedback):empty { display: none; }
.commercial-panel[data-glass-view=create] .glass-flow-footer { margin-top: 5px; padding-top: 0; border: 0; }
@media (max-width: 640px) {
  html[data-brand] .commercial-modal:has(> .commercial-panel[data-glass-view=create]) { padding: 10px; }
  html[data-brand] .commercial-modal:has(> .commercial-panel[data-glass-view=create])::before {
    background: var(--room-create-veil),var(--room-create-wall-mobile) center/cover no-repeat;
  }
  html[data-brand] .commercial-modal > .commercial-panel[data-glass-view=create] {
    max-height: calc(100dvh - 20px);
    padding: 11px 12px 6px;
    border-radius: 20px;
  }
  html[data-brand] .commercial-panel[data-glass-view=create] .glass-flow-mark { width: 97px; height: 46px; }
  html[data-brand] .commercial-panel[data-glass-view=create] #commerceTitle { font-size: clamp(33px,9.9vw,50px) !important; }
  .commercial-panel[data-glass-view=create] .glass-flow-steps { margin: 10px 0; }
  html[data-brand] .commercial-panel[data-glass-view=create] .glass-flow-steps button { min-height: 37px; }
  #roomCreateForm[data-shared=true] .room-create-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  #roomCreateForm[data-shared=true] .room-create-setup { padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--glass-rule); }
  #roomCreateForm #roomCreateHost { margin-top: 8px; }
  #roomCreateForm :is(#roomCreateHost,#roomCreateFriends) h3 { font-size: 23px; margin-bottom: 3px; }
  #roomCreateForm .room-create-host-card { grid-template-columns: 35px minmax(0,1fr) auto; padding: 5px; }
  #roomCreateForm .room-create-thumbnail-circle { width: 35px; height: 35px; }
  #roomCreateForm .room-create-friend-list { gap: 5px; margin-top: 5px; }
  #roomCreateForm .room-create-friend strong { font-size: clamp(15px,4.8vw,23px); }
  #roomCreateForm .room-create-friend { border-radius: 9px; padding: 4px; }
  #roomCreateForm .room-create-check { width: 19px; height: 19px; font-size: 12px; }
  #roomCreateForm .room-create-options { gap: 4px; margin-top: 1px; }
}
