body.orbit-prejoin{background:#191919}
.orbit-prejoin .lobby{grid-template-columns:minmax(0,390px) minmax(0,340px);align-items:center;justify-content:center;gap:clamp(16px,4vw,56px)}
.orbit-prejoin .topbar .brand-mark,.orbit-prejoin .preview,.orbit-prejoin .join-card #legacy-join-button,.orbit-prejoin .intro-copy{display:none}
.orbit-prejoin .join-card{background:transparent;border:0;box-shadow:none}
.orbit-prejoin .join-card input{background:#303030;border:1px solid rgba(255,255,255,.18);border-radius:6px;color:#fff}
.orbit-prejoin .join-intro h1{font-size:22px;letter-spacing:-.4px}
.orbit-media-setup>div{max-width:100%;margin:auto}
.orbit-media-setup .orbit-camera-options{padding:0 16px 12px}
.orbit-setup-filters{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px 0 8px;font-size:13px;font-weight:600}
/* Narrow widths stack the credentials above the 5f13586 media panel, whose footer holds the only
   Join action. Pin that footer to the viewport bottom at the panel width so the single submit stays
   visible beside the required fields; the panel grid keeps the footer's row, so at full scroll the
   footer rests where the panel draws it. (Sticky cannot work here: the footer is
   a grid item and cannot rise above the panel content box, 29 px short at 620x560.) The fill is the
   translucent panel colour made opaque over the page. */
@media(max-width:760px){
  .orbit-media-setup>div>div:has(#join-button){position:fixed;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:min(390px,calc(100% - 30px));background:#292929;border-radius:0 0 12px 12px;box-shadow:0 -8px 16px rgba(0,0,0,.35)}
  .orbit-prejoin .setup-device-access{scroll-margin-block-end:120px}
}
@media(max-width:760px){.orbit-prejoin .lobby{display:flex;flex-direction:column-reverse}.orbit-prejoin .join-card{width:min(390px,100%);padding:12px}.orbit-prejoin #original-prejoin{width:min(390px,100%)}}


/* The media setup and Campfire each supply their own chrome. */
body.orbit-prejoin:not(.original-call) .topbar { display: none; }
body.orbit-prejoin:not(.original-call) .lobby { min-height: 100dvh; margin: 0 auto; padding: 44px 0 24px; }
.orbit-prejoin #preview-status { position: static; }
.orbit-prejoin #preview-status:empty { display: none; }
body.orbit-desktop.orbit-prejoin:not(.original-call)::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 36px; -webkit-app-region: drag;
}
body.original-call:not(.compact) .topbar { display: none; }
body.original-call:not(.compact) .room { min-height: 100dvh; padding: 0; }
/* The Campfire navigation owns its native title-bar row. Keep notices below
   that row, including when a small window scrolls. */
.orbit-campfire-status:has(.room-status:not([hidden], .room-status-carded)) {
  position: sticky;
  top: max(56px, var(--call-nav-height, 0px));
  z-index: 3;
}
.orbit-campfire-status .room-status:not(.room-status-carded) {
  margin: 0 16px 8px;
  overflow-wrap: anywhere;
  -webkit-app-region: no-drag;
}
body.original-call .room-heading {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0;
}
body.original-call .room-heading button { display: none; }
.orbit-campfire-nav { -webkit-app-region: drag; }
.orbit-campfire-nav button { -webkit-app-region: no-drag; }
body.orbit-prejoin #join-form input {
  background-color: #303030;
}

/* 3ea3a34 camera-access view ($O disc, IconStack 30, "No camera access" in the primary colour). */
.orbit-camera-access { display:grid; justify-items:center; gap:8px; max-width:280px; text-align:center; }
.orbit-camera-access-icon { display:flex; align-items:center; justify-content:center; width:150px; height:150px; border-radius:50%; background:rgba(255,255,255,.04); }
.orbit-camera-access-title { margin:0; color:#fff; font-size:13px; line-height:16px; }
.orbit-camera-access-detail { margin:0; color:rgba(255,255,255,.6); font-size:12px; line-height:16px; }

.orbit-camera-access-settings { margin-top:4px; padding:6px 12px; border:1px solid rgba(255,255,255,.3); border-radius:6px; background:transparent; color:#fff; font:inherit; font-size:12px; cursor:pointer; }
.orbit-camera-access-settings:hover { background:rgba(255,255,255,.08); }
.orbit-camera-access-settings:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.orbit-setup-options { display:grid; justify-items:center; gap:12px; padding-inline:16px; max-width:390px; color:rgba(255,255,255,.75); font-size:12px; line-height:16px; }
/* The panel rule `.orbit-media-setup > div { min-height:406px }` must not stretch the options row. */
.orbit-media-setup > .orbit-setup-options { min-height:0; margin:20px auto 0; }
.orbit-setup-notes { display:grid; gap:2px; text-align:center; }
.orbit-setup-notes p { margin:0; }
.orbit-setup-notes:empty { display:none; }
:is(.orbit-setup-autostart,.orbit-setup-companion) { display:flex; align-items:center; gap:8px; cursor:pointer; }
:is(.orbit-setup-autostart,.orbit-setup-companion) input { accent-color:#fff; width:16px; height:16px; }
:is(.orbit-setup-autostart,.orbit-setup-companion) input:disabled { cursor:not-allowed; }
:is(.orbit-setup-autostart,.orbit-setup-companion):has(input:disabled) { opacity:.5; cursor:not-allowed; }

/* Reduced motion: whatever moves inside these surfaces (their own rules or shared ones from style.css,
   room.css and design-system.css) settles at its end state at once. Near-zero rather than zero keeps
   transitionend and animationend firing for scripts that wait on them. Nothing changes when motion is allowed. */
@media (prefers-reduced-motion: reduce) {
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options),
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options) *,
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options)::before,
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options)::after,
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options) *::before,
  :where(.orbit-prejoin, .orbit-camera-access, .orbit-setup-options) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
