/* ============================================================================
 * RoomStamp - create-event.css
 *
 * Purpose:
 * Create-event + success (mock-01 form, mock-02 “You’re live” + QR card).
 *
 * Layer: pages
 * Last updated: 2026-04-19T00:00:00Z
 * ============================================================================ */

@import './join-card.css';

/* Ensure [hidden] wins over `display: flex/grid` on wizard wraps. Without this,
 * the host identity chip and the name/contact field wrappers would render
 * for anonymous users because `.rs-field { display: flex }` (and siblings)
 * override the UA default `[hidden] { display: none }`. */
.rs-field[hidden],
.rs-join-check[hidden],
.rs-create-room-host-row__cell[hidden],
.rs-org-identity-locked[hidden] {
  display: none !important;
}

/* Join form + create-flow: consent checkboxes as soft cards + live tip callout */
.rs-join-consents {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}

label.rs-join-check,
div.rs-join-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.65rem 0.85rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--rs-text);
  background: var(--rs-card);
  border: 1px solid var(--rs-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

label.rs-join-check:hover,
div.rs-join-check:hover {
  border-color: var(--rs-brand-border);
}

label.rs-join-check:focus-within,
div.rs-join-check:focus-within {
  border-color: var(--rs-brand);
  box-shadow: var(--rs-focus-ring);
}

label.rs-join-check input[type='checkbox'],
div.rs-join-check input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--rs-brand);
  cursor: pointer;
}

label.rs-join-check span,
div.rs-join-check > label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--rs-text-secondary);
}

.rs-join-live-status-note {
  margin: 0.1rem 0 0;
  padding: 0.65rem 0.85rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  color: var(--rs-text-secondary);
  background: linear-gradient(135deg, var(--rs-brand-muted) 0%, rgba(79, 143, 247, 0.1) 100%);
  border: 1px solid var(--rs-brand-border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--rs-brand);
}

.rs-join-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.24rem;
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 0.8rem;
  padding: 0.15rem 0.25rem 0.2rem;
}

.rs-join-invite__kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
}

.rs-join-invite__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 126, 255, 0.22);
  background: rgba(79, 143, 247, 0.14);
  color: var(--rs-brand);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.rs-join-invite__pill--inviter {
  color: var(--rs-text);
  background: rgba(79, 143, 247, 0.08);
}

.rs-join-invite__pill--neutral {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.rs-join-invite__name {
  font-weight: 700;
  color: var(--rs-brand);
}

.rs-join-invite__kicker-text {
  font-weight: 500;
}

.rs-join-kicker-invited {
  color: var(--rs-brand);
  font-weight: 700;
}

.rs-join-kicker-rest {
  color: var(--rs-text);
  font-weight: 500;
}

.rs-join-invite__event {
  margin: 0;
  font-size: clamp(1.8rem, 5.4vw, 2.45rem);
  font-weight: 880;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.rs-join-invite__starts {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.36);
  background: rgba(79, 70, 229, 0.14);
  font-size: 0.72rem;
  color: #c7d2fe;
  opacity: 1;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 780;
}

.rs-page--join {
  --rs-entry-shell-surface: var(--rs-app-shell-header-bg);
  --rs-entry-shell-section: var(--rs-app-shell-header-bg);
  --rs-entry-shell-border: var(--rs-app-shell-header-border);
  --rs-entry-shell-border-soft: var(--rs-app-shell-header-border);
  --rs-entry-shell-shadow: var(--rs-app-shell-header-shadow);
}

.rs-page--join .rs-screen--create {
  width: min(calc(100vw - 2rem), 28rem);
  padding: 0.45rem 0.95rem 1rem;
  gap: 0.82rem;
}

/* Join room should use the compact full-screen surface with no app-shell chrome. */
.rs-page--join .rs-app-header,
.rs-page--join .rs-app-tabbar,
.rs-page--join .rs-page-footer {
  display: none !important;
}

.rs-page--join .rs-app-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.rs-join-layout {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  width: 100%;
  margin: 0 auto;
}

.rs-join-hero {
  width: min(100%, 32rem);
  margin: 0;
  border-radius: 1.18rem;
}

.rs-join-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1.15;
  object-fit: cover;
}

@media (max-width: 700px) {
  .rs-join-hero__image {
    aspect-ratio: 16 / 9;
    object-position: center center;
  }
}

@media (min-width: 701px) {
  .rs-join-layout {
    align-items: center;
  }
}

.rs-join-form {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: 0.88rem;
  border-radius: 1.18rem;
}

.rs-join-name-field__body {
  gap: 0.3rem;
}

.rs-join-name-field__body .rs-field__label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.34);
  background: rgba(99, 102, 241, 0.12);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  font-weight: 780;
  color: #c7d2fe;
}

.rs-join-name-field__input {
  min-height: 3.35rem;
  font-size: 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.24);
  color: #f8fafc;
  font-weight: 640;
  letter-spacing: 0.01em;
}

.rs-join-minimal-note {
  margin: -0.15rem 0 0;
  padding: 0.52rem 0.7rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.45;
  letter-spacing: 0.004em;
  color: var(--rs-text);
  font-weight: 620;
  text-align: center;
}

.rs-join-actions {
  margin-top: 0.2rem;
}

.rs-join-submit {
  width: 100%;
  min-height: 3.15rem;
  border-radius: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #9333ea 100%);
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 10px 28px rgba(76, 29, 149, 0.35);
}

.rs-join-submit:hover {
  color: #fff;
  background: linear-gradient(135deg, #818cf8 0%, #8b5cf6 50%, #a855f7 100%);
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 12px 32px rgba(76, 29, 149, 0.42);
  filter: none;
}

html.rs-room-theme--light .rs-join-invite {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html.rs-room-theme--light .rs-join-invite__pill {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.09);
  color: #1d4ed8;
}

html.rs-room-theme--light .rs-join-invite__pill--inviter {
  color: #0f172a;
  background: rgba(59, 130, 246, 0.07);
}

html.rs-room-theme--light .rs-join-invite__event {
  background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.rs-room-theme--light .rs-join-invite__starts {
  border-color: rgba(99, 102, 241, 0.24);
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
}

html.rs-room-theme--light .rs-join-hero {
  border-color: rgba(203, 213, 225, 0.88);
}

html.rs-room-theme--light .rs-join-form {
  border-color: rgba(203, 213, 225, 0.88);
}

html.rs-room-theme--light .rs-join-name-field__body .rs-field__label {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
}

html.rs-room-theme--light .rs-join-name-field__input {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
}

html.rs-room-theme--light .rs-join-minimal-note {
  color: #0f172a;
}

html.rs-room-theme--light .rs-join-submit {
  color: #fff;
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.28);
}

@media (min-width: 52rem) {
  .rs-join-layout {
    gap: 1.15rem;
  }

  .rs-join-form {
    padding: 1.15rem;
  }
}

@media (max-width: 720px) {
  .rs-page--join .rs-screen--create {
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 0.75rem 0.9rem;
    gap: 0.72rem;
  }

  .rs-join-layout {
    gap: 0.72rem;
  }

  .rs-join-hero,
  .rs-join-form {
    border-radius: 1rem;
  }
}

.rs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/**
 * Host “Create your profile”: one row — type (~25%) + value (~75%).
 * LastUpdatedUTC: 2026-05-03T18:00:00Z
 */
.rs-create-contact-inline {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-inline-size: 0;
}

.rs-create-contact-inline__legend {
  margin: 0 0 0.35rem;
  padding: 0;
}

.rs-create-contact-inline__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 0.45rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (max-width: 420px) {
  .rs-create-contact-inline__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rs-create-contact-inline__type,
.rs-create-contact-inline__value {
  min-width: 0;
}

.rs-create-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.rs-create-step[hidden] {
  display: none !important;
}

.rs-create-manage-email {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rs-create-manage-email__check.rs-join-check {
  padding: 0.75rem 0.95rem 0.8rem;
  background: linear-gradient(135deg, var(--rs-brand-muted) 0%, rgba(79, 143, 247, 0.08) 100%);
  border-color: var(--rs-brand-border);
  border-left: 3px solid var(--rs-brand);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.rs-create-manage-email__check.rs-join-check input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
}

.rs-create-manage-email__check.rs-join-check > label {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--rs-text);
}

.rs-create-manage-email__field {
  margin: 0;
  padding: 0;
}

.rs-create-manage-email__field[hidden] {
  display: none !important;
}

/* Your name + room name: one card, one rail; side‑by‑side on wider screens */
.rs-create-room-host-row > .rs-field__body.rs-create-room-host-row__body {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.rs-create-room-host-row__cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (min-width: 36rem) {
  .rs-create-room-host-row > .rs-field__body.rs-create-room-host-row__body:has(.rs-field--room-title-reveal.is-visible) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    column-gap: 1rem;
    align-items: start;
  }
}

/* Room name fades in after “your name” has text */
.rs-field--room-title-reveal:not(.is-visible) {
  max-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.2rem);
  border: none;
  transition:
    opacity 0.32s ease,
    max-height 0.4s ease,
    transform 0.32s ease;
}

.rs-field--room-title-reveal.is-visible {
  max-height: 7rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.32s ease,
    max-height 0.4s ease,
    transform 0.32s ease;
}

/* Divider between your name and room name when room title is shown */
.rs-create-room-host-row__body:has(.rs-field--room-title-reveal.is-visible) .rs-create-room-host-row__cell--title {
  border-top: 1px solid var(--rs-border);
  padding-top: 0.55rem;
  margin-top: 0.05rem;
}

@media (min-width: 36rem) {
  .rs-create-room-host-row__body:has(.rs-field--room-title-reveal.is-visible) .rs-create-room-host-row__cell--title {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid var(--rs-border);
    padding-left: 1rem;
    margin-left: 0;
  }
}

/* Purpose + duration: duration progressively appears for room-now flow */
.rs-create-purpose-row > .rs-field__body.rs-create-purpose-row__body {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.rs-create-purpose-row__cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (min-width: 36rem) {
  .rs-create-purpose-row > .rs-field__body.rs-create-purpose-row__body:has(.rs-field--duration-reveal.is-visible) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    column-gap: 1rem;
    align-items: start;
  }
}

.rs-field--duration-reveal:not(.is-visible) {
  max-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.2rem);
  border: none;
  transition:
    opacity 0.32s ease,
    max-height 0.4s ease,
    transform 0.32s ease;
}

.rs-field--duration-reveal.is-visible {
  max-height: 10rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.32s ease,
    max-height 0.4s ease,
    transform 0.32s ease;
}

.rs-create-purpose-row__body:has(.rs-field--duration-reveal.is-visible) .rs-create-purpose-row__cell--duration {
  border-top: 1px solid var(--rs-border);
  padding-top: 0.55rem;
  margin-top: 0.05rem;
}

@media (min-width: 36rem) {
  .rs-create-purpose-row__body:has(.rs-field--duration-reveal.is-visible) .rs-create-purpose-row__cell--duration {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid var(--rs-border);
    padding-left: 1rem;
    margin-left: 0;
  }
}


/* Ensure hidden attribute wins over component display rules. */
.rs-field[hidden],
#create-start-at-wrap[hidden],
#create-optional-discovery-wrap[hidden],
#create-step3-room-fields[hidden],
#create-source-block[hidden] {
  display: none !important;
}

.rs-create-step__intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rs-text-secondary);
  text-align: center;
  line-height: 1.45;
}

.rs-create-flow-terms {
  margin: 1.1rem 0 0;
  text-align: center;
}

.rs-create-intent-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rs-create-surface {
  margin-top: 1rem;
  width: 100%;
}

.rs-create-surface__title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rs-text-secondary);
  letter-spacing: -0.01em;
  text-align: center;
}

.rs-create-surface-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.rs-create-pick-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.rs-create-pick-tile__copy {
  flex: 1;
  min-width: 0;
}

.rs-create-pick-tile__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rs-create-pick-tile__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.rs-create-surface-card[data-surface="business"] .rs-create-pick-tile__icon {
  background: var(--rs-brand-muted);
  color: var(--rs-brand);
}

.rs-create-surface-card[data-surface="social"] .rs-create-pick-tile__icon {
  background: rgba(105, 90, 255, 0.14);
  color: var(--rs-purple);
}

.rs-create-surface-card[data-surface="community"] .rs-create-pick-tile__icon {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.rs-create-surface-card[data-surface="education"] .rs-create-pick-tile__icon {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.rs-create-intent-card[data-intent="room_at_event"] .rs-create-pick-tile__icon {
  background: rgba(245, 158, 11, 0.14);
  color: var(--rs-warning);
}

.rs-create-intent-card[data-intent="new_event"] .rs-create-pick-tile__icon {
  background: rgba(123, 97, 255, 0.12);
  color: var(--rs-purple);
}

.rs-create-visibility-card[data-visibility="public"] .rs-create-pick-tile__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.rs-create-visibility-card[data-visibility="private"] .rs-create-pick-tile__icon {
  background: rgba(123, 97, 255, 0.12);
  color: var(--rs-purple);
}

.rs-create-event-ownership-card[data-event-ownership="host"] .rs-create-pick-tile__icon {
  background: var(--rs-brand-muted);
  color: var(--rs-brand);
}

.rs-create-event-ownership-card[data-event-ownership="attendee"] .rs-create-pick-tile__icon {
  background: rgba(123, 97, 255, 0.12);
  color: var(--rs-purple);
}

@media (min-width: 900px) {
  .rs-create-pick-tile__icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 0.8rem;
  }

  .rs-create-pick-tile__icon svg {
    width: 1.7rem;
    height: 1.7rem;
  }
}

.rs-create-custom-surface {
  margin-top: 0.75rem;
}

.rs-create-intent-card {
  margin: 0;
  padding: 1rem 1.1rem;
  text-align: left;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--rs-border-subtle);
  /* Use design tokens so dark mode gets slate cards + light type (not light ink on white). */
  background: var(--rs-card);
  color: var(--rs-text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font: inherit;
}

html.rs-room-theme--light .rs-create-intent-card:not(.is-selected) {
  border-color: rgba(148, 163, 184, 0.62);
}

.rs-create-intent-card:hover {
  border-color: rgba(74, 144, 226, 0.35);
  background: var(--rs-glass-surface);
}

.rs-create-intent-card.is-selected {
  border-color: rgba(123, 97, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.2), var(--shadow-action);
  background: var(--rs-glass-surface);
}

html.rs-room-theme--light .rs-create-intent-card:hover {
  background: rgba(248, 250, 252, 0.98);
}

html.rs-room-theme--light .rs-create-intent-card.is-selected {
  background: #ffffff;
}

.rs-create-intent-card__title {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--rs-text);
  margin-bottom: 0.35rem;
}

.rs-create-intent-card__desc {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--rs-text-secondary);
}

@media (min-width: 900px) {
  .rs-create-intent-card {
    padding: 1.3rem 1.35rem;
  }

  .rs-create-intent-card__title {
    font-size: 1.18rem;
    margin-bottom: 0.45rem;
  }

  .rs-create-intent-card__desc {
    font-size: 0.98rem;
  }

  .rs-create-step__intro {
    font-size: 1.05rem;
  }
}

.rs-create-back {
  display: none !important;
}

.rs-home__hero {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: start;
  column-gap: 0.55rem;
}

/* Author `display: grid` wins over the UA [hidden] rule — hide hero when JS sets hidden */
#create-flow-hero[hidden] {
  display: none !important;
}

.rs-create-flow-back {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: start;
  margin-top: clamp(0.45rem, 1.2vw, 0.7rem);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 226, 0.25);
  background: linear-gradient(180deg, rgba(74, 144, 226, 0.92), rgba(44, 118, 216, 0.96));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(43, 84, 168, 0.22);
  z-index: 2;
}

.rs-create-flow-back svg {
  width: 1.1rem;
  height: 1.1rem;
}

.rs-home__hero .rs-home__kicker,
.rs-home__hero .rs-home__lede {
  grid-column: 2;
  text-align: center;
}

.rs-create-flow-back:focus-visible {
  outline: 2px solid rgba(74, 144, 226, 0.45);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .rs-home__hero {
    grid-template-columns: 2.25rem 1fr 2.25rem;
  }

  .rs-create-flow-back {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.rs-create-lite-back {
  align-self: center;
  min-height: 34px;
  padding: 0.35rem 0.62rem;
  font-size: 0.78rem;
  border-radius: 999px;
  opacity: 0.9;
  flex: 0 0 auto;
}

.rs-create-time-hint {
  display: none !important;
}

.rs-field__input--select {
  cursor: pointer;
}

.rs-role-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rs-role-picker__custom {
  min-height: 2.75rem;
}

.rs-create-role-hint {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--rs-text-secondary);
}

.rs-create-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.rs-create-room-duration-note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--rs-text-secondary);
  line-height: 1.45;
}

.rs-create-room-duration-note--tight {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

#create-room-duration-wrap .rs-field__label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 0.78rem;
}

#create-source-block {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

#create-source-block .rs-field__label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 0.78rem;
}

.rs-screen--create {
  padding-top: 0.35rem;
}

.rs-screen--create .rs-screen__header {
  padding-top: 0.25rem;
}

.rs-field__input--textarea {
  min-height: 4.75rem;
  resize: vertical;
  line-height: 1.45;
}

.rs-create-form {
  display: flex;
  flex-direction: column;
  gap: 1.22rem;
}

.rs-create-looking-for-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.rs-create-looking-for-toggle input[type='checkbox'] {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--rs-accent, #2563eb);
}

.rs-create-looking-for-toggle__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.rs-create-looking-for-toggle__label {
  margin: 0;
}

.rs-create-looking-for-toggle__help {
  margin: 0;
}

/* Host profile: tap-to-upload avatar (large target + preview), RoomStamp chrome */
.rs-org-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  margin: 0.1rem 0 0.25rem;
}

.rs-org-avatar-hit {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  cursor: pointer;
}

.rs-org-avatar-hit__surface {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0 0.05rem;
}

.rs-org-avatar-file-input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.rs-org-avatar-ring {
  position: relative;
  width: min(36vw, 136px);
  height: min(36vw, 136px);
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.9));
  border: 2px solid rgba(74, 144, 226, 0.3);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rs-org-avatar-ring--profile-ref {
  overflow: visible;
}

.rs-profile-ref {
  position: absolute;
  right: 0.15rem;
  bottom: 0.1rem;
  z-index: 2;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.42);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  user-select: none;
}

.rs-profile-ref--overlay {
  font-size: 0.56rem;
  right: 0.05rem;
  bottom: 0.05rem;
  background: rgba(15, 23, 42, 0.38);
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.rs-profile-ref:hover,
.rs-profile-ref:focus-visible {
  color: rgba(15, 23, 42, 0.72);
  border-color: rgba(74, 144, 226, 0.35);
}

.rs-profile-ref--copied {
  color: rgba(22, 101, 52, 0.85);
}

.rs-profile-ref-hint {
  margin: 0.15rem 0 0;
  max-width: 20rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(100, 116, 139, 0.92);
}

.is-avatar.is-avatar--media {
  position: relative;
}

.rs-org-avatar-hit:hover .rs-org-avatar-ring {
  border-color: rgba(123, 97, 255, 0.42);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.rs-org-avatar-hit:focus-within .rs-org-avatar-ring {
  border-color: rgba(74, 144, 226, 0.55);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.22), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rs-org-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(74, 144, 226, 0.52);
}

.rs-org-avatar-placeholder svg {
  width: 3.35rem;
  height: 3.35rem;
}

.rs-org-avatar-preview-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rs-org-avatar-tap-label {
  position: relative;
  z-index: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rs-brand);
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.rs-avatar-file-status {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: var(--rs-text-secondary);
  max-width: 28ch;
  line-height: 1.45;
  text-align: center;
}

#create-step2-fields {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

#create-optional-discovery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.rs-create-step3-final {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.rs-create-step3-final[hidden] {
  display: none !important;
}

.rs-create-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.rs-location-field {
  position: relative;
  overflow: visible;
  z-index: 3;
}

.rs-location-field #location-city,
.rs-location-field #location-state,
.rs-location-field #location-country {
  display: none;
}

.rs-location-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rs-location-icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.rs-location-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
  border-radius: 10px;
}

@media (min-width: 760px) {
  .rs-create-row-2 {
    gap: 0.95rem;
  }
}

.rs-location-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  border: 1px solid var(--rs-border-subtle);
  background: var(--rs-card);
  border-radius: 10px;
  overflow: hidden;
  z-index: 12;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.rs-location-suggest__item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--rs-text);
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
}

.rs-location-suggest__item + .rs-location-suggest__item {
  border-top: 1px solid var(--rs-border-subtle);
}

.rs-location-suggest__item:hover {
  background: var(--rs-glass-surface);
}

.rs-location-suggest__item:focus-visible {
  outline: 2px solid rgba(74, 144, 226, 0.6);
  outline-offset: -2px;
}

.rs-create-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rs-create-limit-notice {
  margin-top: 0.7rem;
  margin-bottom: 0.2rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(217, 119, 6, 0.42);
  border-radius: 0.78rem;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.08));
  color: var(--rs-text);
}

.rs-create-limit-notice__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
}

.rs-create-limit-notice__body {
  margin: 0.24rem 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.rs-create-limit-notice__meta {
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--rs-text-muted);
}

.rs-create-limit-notice--brand {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(56, 189, 248, 0.09));
}

html.rs-room-theme--light .rs-create-limit-notice {
  border-color: rgba(180, 83, 9, 0.3);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.22), rgba(254, 249, 195, 0.85));
}

html.rs-room-theme--light .rs-create-limit-notice--brand {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.85), rgba(224, 242, 254, 0.92));
}

.rs-create-actions--spaced {
  margin-top: 0.75rem;
}

/* `.btn { display: inline-flex }` can override `[hidden]` in some engines; keep only one CTA visible. */
#create-form-actions .btn[hidden] {
  display: none !important;
}

.rs-create-form .rs-create-actions .btn-primary,
#create-form-actions .btn-primary {
  flex: 1 1 140px;
  min-height: 52px;
  font-size: 1rem;
}

.rs-result {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
  align-items: stretch;
}

.rs-result.is-visible {
  display: flex;
}

.rs-result--centered {
  align-items: center;
}

.rs-result__frame {
  width: 100%;
  max-width: min(100%, var(--rs-app-canvas-max));
}

.rs-result__frame--compact {
  max-width: min(100%, 36rem);
}

.rs-result__card {
  width: 100%;
  max-width: min(100%, var(--rs-app-canvas-max));
  margin: 0 auto 1rem;
}

.rs-result__action {
  width: 100%;
  max-width: min(100%, var(--rs-app-canvas-max));
  text-align: center;
}

.rs-result__action + .rs-result__action {
  margin-top: 0.5rem;
}

.rs-result__notice {
  margin: 0 0 0.75rem;
  text-align: center;
  max-width: min(100%, var(--rs-app-canvas-max));
}

.rs-result__notice--left {
  text-align: left;
}

.rs-result__title--flush {
  margin-top: 0;
}

.rs-result__intro {
  text-align: center;
}

.rs-result .rs-live-status {
  margin-top: -0.25rem;
  font-size: 0.88rem;
}

.rs-result__live-line {
  font-size: clamp(1.02rem, 3.2vw, 1.18rem);
}

.rs-result__activity {
  margin-top: 0.12rem;
}

.rs-live-word {
  color: var(--rs-purple);
  font-weight: 800;
}

/* Create success: premium QR card (pattern, gradient frame, brand mark, CTA strip) */
.rs-result-qr-showcase {
  align-self: center;
  width: 100%;
  max-width: 318px;
}

.rs-result-qr-showcase__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  background: #ffffff;
}

.rs-result-qr-showcase__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(79, 143, 247, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 92% 78%, rgba(14, 165, 233, 0.12) 0%, transparent 52%),
    radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.1) 1px, transparent 0);
  background-size: auto, auto, 15px 15px;
  pointer-events: none;
}

.rs-result-qr-showcase__body {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.05rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.82rem;
}

.rs-result-qr-showcase__ring {
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f8ff7 0%, #5b7bff 42%, #3fb8ff 100%);
  box-shadow: 0 10px 30px rgba(67, 56, 202, 0.24);
}

.rs-result-qr-showcase__stage {
  position: relative;
  border-radius: 15px;
  background: #ffffff;
  padding: 10px;
  line-height: 0;
}

.rs-result-qr-showcase__img {
  display: block;
  width: 100%;
  max-width: min(72vw, 280px);
  height: auto;
  border-radius: 10px;
}

.rs-result-qr-showcase__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.rs-result-qr-showcase__brand-img {
  max-width: 100%;
  max-height: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rs-result-qr-showcase__meta {
  width: 100%;
  text-align: center;
}

.rs-result-qr-showcase__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rs-text);
}

.rs-result-qr-showcase__schedule {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--rs-text-secondary);
}

.rs-result-qr-showcase__cta {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.72rem 1rem 0.8rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(92deg, #2563eb 0%, #4a90e2 34%, #0ea5e9 100%);
  text-shadow: 0 1px 0 rgba(15, 23, 42, 0.2);
}

.rs-result-share {
  align-self: stretch;
  padding: 0.75rem 0.85rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.rs-result-share__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rs-text-muted, #64748b);
  margin-bottom: 0.38rem;
}

.rs-result-share__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.rs-result-share__key {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: clamp(1.05rem, 3.8vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  line-height: 1.2;
}

.rs-result-share__copy-key {
  flex: 0 0 auto;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

.rs-result-share__hint {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--rs-text-secondary);
}

.rs-result__join-url-input {
  font-size: 0.78rem;
  line-height: 1.35;
}

.rs-result__link-row {
  margin-top: 0.1rem;
  align-self: stretch;
}

.rs-result__copy-btn {
  align-self: stretch;
  width: 100%;
  min-height: 48px;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 12px;
}

.rs-result > a.btn-primary#another-btn {
  align-self: stretch;
  justify-content: center;
  min-height: 52px;
}

/* Post-create host profile (GroupQR-style step before QR) */
#create-host-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

#create-host-panel.is-visible {
  display: flex;
}

.rs-err {
  color: var(--rs-error);
  font-size: 0.88rem;
  margin: 0;
}

.rs-err--stack {
  margin: 0 0 0.75rem;
}

/* Identity chip shown to signed-in hosts in place of name/email fields */
.rs-org-identity-locked {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rs-border-soft, rgba(100, 116, 139, 0.2));
  border-radius: 14px;
  background: var(--rs-surface-soft, rgba(248, 250, 252, 0.7));
}

.rs-org-identity-locked__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.rs-org-identity-locked__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rs-org-identity-locked__title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rs-text-muted, #475569);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rs-org-identity-locked__row {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.rs-org-identity-locked__label {
  flex: 0 0 auto;
  color: var(--rs-text-muted, #64748b);
  min-width: 3.25rem;
  font-size: 0.82rem;
}

.rs-org-identity-locked__value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--rs-text, #0f172a);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-org-identity-locked__hint {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

.rs-org-identity-locked__link {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.rs-org-identity-locked__link:hover,
.rs-org-identity-locked__link:focus {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .rs-org-identity-locked {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.2);
  }
  .rs-org-identity-locked__icon {
    background: rgba(129, 140, 248, 0.18);
    color: #a5b4fc;
  }
  .rs-org-identity-locked__value {
    color: #e2e8f0;
  }
  .rs-org-identity-locked__link {
    color: #a5b4fc;
  }
}

/* datetime-local: readable on light cards (WebKit / Chromium) */
.rs-field__input[type='datetime-local'] {
  color-scheme: light;
  min-height: 2.5rem;
}
