@font-face {
  font-family: Geist;
  src: url('/pilot-fonts/geist-regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('/pilot-fonts/geist-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/pilot-fonts/playfair-display.ttf') format('truetype');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0e2126;
  --band: #0a181c;
  --card: #16313a;
  --text: #eae1cb;
  --dim: #a9bbb7;
  --hair: #465a5b;
  --accent: #e2a44f;
  --room-frame: #f5efe0;
  --focus: #f6c67b;
  --r-control: 6px;
  --r-card: 12px;
  --masthead: 65px;
  color: var(--text);
  background: var(--bg);
  font:
    16px/1.5 Geist,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  min-height: var(--masthead);
  border-bottom: 1px solid var(--hair);
  background: var(--band);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font:
    25px/1.1 'Playfair Display',
    Georgia,
    serif;
  text-decoration: none;
}
.brand span,
.eyebrow {
  color: var(--accent);
}
.product {
  color: var(--dim);
  font-size: 13px;
}
#stage {
  min-width: 0;
}
body:not(.has-workspace) #stage {
  display: grid;
  min-height: calc(100dvh - var(--masthead));
  align-items: center;
  padding: clamp(28px, 7vw, 100px) clamp(16px, 8vw, 128px);
  background: radial-gradient(ellipse at 100% 25%, #183a40 0, transparent 58%), var(--bg);
}
.prompt {
  max-width: 52rem;
  min-width: 0;
}
.eyebrow {
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 12px;
}
h1 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.048em;
  margin: 0 0 20px;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}
p {
  margin: 0 0 16px;
}
#intro {
  color: var(--dim);
  max-width: 48ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--hair);
  border-radius: var(--r-control);
  padding: 9px 14px;
  font:
    600 14px/1.25 Geist,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--card);
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
button:hover {
  border-color: var(--accent);
}
.button:active,
button:active {
  background: var(--band);
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
.primary,
button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--band);
  background: var(--accent);
}
.primary:hover,
.primary:active,
button[aria-pressed='true']:hover {
  background: var(--focus);
}
.pairing {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  max-width: min(100%, 40rem);
  padding: clamp(14px, 4vw, 22px);
  margin-top: 27px;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card);
}
.pair-link {
  display: block;
  line-height: 0;
  border-radius: var(--r-control);
}
.pair-link img {
  width: min(132px, 100%);
  aspect-ratio: 1;
  background: white;
  border-radius: var(--r-control);
}
.pairing > div {
  flex: 1 1 200px;
}
.subtle {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 0;
}
.room-code {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 600;
  letter-spacing: 0.13em;
  margin: 0 0 4px;
}
#pair-instruction {
  margin: 0;
  color: var(--dim);
}
.prompt-form {
  display: grid;
  gap: 10px;
  max-width: 22rem;
  margin-top: 22px;
}
.prompt-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--r-control);
  background: var(--band);
  color: var(--text);
  font:
    600 20px/1.3 Geist,
    Arial,
    sans-serif;
  letter-spacing: 0.14em;
  padding: 8px 12px;
}
#room-code-input {
  font-size: 20px;
  letter-spacing: 0.14em;
}
.prompt-form input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.passkey-list {
  max-width: 32rem;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.passkey-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--hair);
  border-radius: var(--r-control);
  background: var(--band);
}
.notice {
  color: var(--text);
  margin-top: 17px;
}
.notice:empty {
  display: none;
}
.has-workspace .masthead {
  display: none;
}
.workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.remote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: calc(7px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 7px
    max(10px, env(safe-area-inset-left));
  background: var(--band);
  border-bottom: 1px solid var(--hair);
}
.remote-status {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 28px;
  color: var(--dim);
  font-size: 14px;
}
.signal {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.is-live .signal {
  background: var(--accent);
  color: var(--accent);
}
.remote-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.remote-options:has(> [hidden] + [hidden]) {
  display: none;
}
.pointer-options {
  background: var(--band);
  color: var(--dim);
  border-bottom: 1px solid var(--hair);
  padding: 0 12px;
}
.pointer-options summary {
  display: list-item;
  align-content: center;
  min-height: 44px;
  width: fit-content;
  cursor: pointer;
  color: var(--text);
}
.pointer-options summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.pointer-options p {
  margin-bottom: 6px;
  font-size: 13px;
}
.trackpad {
  width: min(100%, 360px);
  min-height: 68px;
  margin-bottom: 9px;
  touch-action: none;
  cursor: crosshair;
}
.remote-notice {
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  padding: 6px 12px;
  margin: 0;
}
.frame-wrap {
  grid-row: 3;
  grid-column: 1;
  min-height: 0;
  position: relative;
  background: var(--room-frame);
}
.frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.room-frame iframe,
.frame-wrap.is-blocked iframe {
  pointer-events: none;
}
.frame-note {
  grid-row: 3;
  grid-column: 1;
  z-index: 1;
  align-self: center;
  justify-self: center;
  margin: 0 14px;
  padding: 12px 18px;
  border-radius: var(--r-control);
  background: var(--band);
  text-align: center;
}
dialog {
  max-width: min(29rem, calc(100% - 32px));
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  color: var(--text);
  background: var(--card);
  padding: 20px;
}
dialog::backdrop {
  background: #0a181cbd;
}
@media (max-width: 510px) {
  .remote-actions {
    justify-content: space-between;
    width: 100%;
  }
  .remote-actions button {
    padding-inline: 9px;
  }
}

.privacy-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  color: var(--dim);
  font-size: 0.9375rem;
}
.privacy-note summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  color: var(--text);
}
.privacy-note summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
