body:has(.private-room-entry-backdrop:not([hidden])) {
  overflow: hidden;
}

.private-room-entry-backdrop {
  position: fixed;
  z-index: 88;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    1rem
    max(1rem, env(safe-area-inset-bottom));
  background: rgb(2 3 12 / 78%);
  backdrop-filter: blur(0.85rem);
}

.private-room-entry-backdrop[hidden] {
  display: none;
}

.private-room-entry {
  position: relative;
  display: grid;
  width: min(28rem, 100%);
  max-height: calc(100dvh - 2rem);
  gap: 1rem;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--color-accent) 42%, var(--color-border));
  border-radius: 1.5rem;
  padding: clamp(1.2rem, 4vw, 1.6rem);
  background:
    radial-gradient(circle at 100% 0, rgb(126 69 255 / 14%), transparent 17rem),
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 52%),
    var(--color-surface);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 54%);
}

.private-room-entry-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.private-room-entry-close:hover {
  background: rgb(255 255 255 / 6%);
  color: var(--color-text);
}

.private-room-entry-close:focus {
  outline: none;
}

.private-room-entry-close:focus-visible {
  border-color: color-mix(in srgb, var(--color-accent) 68%, white);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-accent) 22%, transparent);
  color: var(--color-text);
}

.private-room-entry-copy {
  display: grid;
  gap: 0.35rem;
  padding-right: 3.2rem;
}

.private-room-entry-copy .eyebrow,
.private-room-entry-copy h2,
.private-room-entry [data-private-room-entry-feedback] {
  margin: 0;
}

.private-room-entry-copy h2 {
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: -0.035em;
}

.private-room-entry-copy h2:focus {
  outline: none;
}

.private-room-entry-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgb(7 10 27 / 58%);
}

.private-room-entry-summary[hidden] {
  display: none;
}

.private-room-entry-summary strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-room-entry-summary span {
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.6rem;
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.private-room-entry [data-private-room-entry-feedback] {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.private-room-entry [data-private-room-entry-feedback][data-kind="error"] {
  color: var(--color-danger);
}

.private-room-entry [data-private-room-entry-retry] {
  justify-self: start;
}

.private-room-entry-auth-actions {
  display: grid;
  gap: 0.75rem;
}

.private-room-entry-auth-actions[hidden] {
  display: none;
}

.private-room-entry-auth-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.private-room-entry-auth-primary > * {
  width: 100%;
  min-height: var(--control-min);
}

.private-room-entry-auth-separator {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.private-room-entry-auth-separator::before,
.private-room-entry-auth-separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-border);
}

.private-room-entry-google {
  display: inline-flex;
  width: 100%;
  min-height: var(--control-min);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
}

.private-room-entry-google::before {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background: center / contain no-repeat url("/assets/icons/google.svg");
  content: "";
}

@media (max-width: 28rem) {
  .private-room-entry {
    border-radius: 1.25rem;
    padding: 1rem;
  }

  .private-room-entry-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .private-room-entry-auth-primary {
    grid-template-columns: 1fr;
  }
}
