/* Fieldglow: shared visual layer for the existing Rooms routes and controls. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fieldglow/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fieldglow/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fieldglow/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --fg-paper: #f4efe4;
  --fg-paper-2: #eee7d8;
  --fg-card: #fbf8f1;
  --fg-ink: #18203d;
  --fg-ink-2: #4b5274;
  --fg-ink-3: #5f647f;
  --fg-cobalt: #2a47c8;
  --fg-cobalt-deep: #1d36a6;
  --fg-cobalt-tint: #e3e8fb;
  --fg-coral: #f0643a;
  --fg-coral-ink: #a8401c;
  --fg-coral-tint: #fde6db;
  --fg-yellow: #f0bf56;
  --fg-yellow-tint: #f6e7b3;
  --fg-green: #2e6b4f;
  --fg-green-tint: #e3eedc;
  --fg-line: rgb(24 32 61 / 20%);
  --fg-line-2: rgb(24 32 61 / 12%);
  --fg-sans: "Instrument Sans", system-ui, sans-serif;
  --fg-serif: "Instrument Serif", Georgia, serif;
  --fg-dusk:
    radial-gradient(ellipse at 100% 0, rgb(255 176 128 / 48%), transparent 62%),
    linear-gradient(145deg, #b7c6ef, #d5dcf1 42%, #e9e5e6 72%, #f4efe4);
  --ink: var(--fg-ink);
  --muted: var(--fg-ink-2);
  --line: var(--fg-line);
  --page: var(--fg-paper);
  --gold: var(--fg-yellow);
  font-family: var(--fg-sans);
  color: var(--fg-ink);
  background: var(--fg-paper);
}
body {
  color: var(--fg-ink);
  background: var(--fg-paper);
}
::selection {
  color: var(--fg-ink);
  background: var(--fg-yellow-tint);
}
:focus-visible {
  outline: 2px solid var(--fg-cobalt);
  outline-offset: 3px;
}
:root :is(.ld, .me, .cr, .iv, .rv, .pj) {
  --ink: var(--fg-ink);
  --muted: var(--fg-ink-2);
  --line: var(--fg-line);
  --room: var(--fg-card);
  --well: var(--fg-paper-2);
  --clay-blue: var(--fg-cobalt);
  --clay-cream: var(--fg-card);
}
:root body :is(h1, h2),
:root body .ws :is(h1, h2) {
  font-family: var(--fg-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}
:root body :is(.ld h3, .story h3, .boundary-grid h3) {
  font-family: var(--fg-serif);
  font-weight: 400;
}
:root body h1 {
  line-height: 1.02;
}
:root body p {
  color: var(--fg-ink-2);
}
a {
  text-underline-offset: 4px;
}
:root body :is(input, textarea, select) {
  font-family: var(--fg-sans);
  color: var(--fg-ink);
  caret-color: var(--fg-cobalt);
  accent-color: var(--fg-cobalt);
}
:root
  body
  :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  background: var(--fg-card);
  border-color: var(--fg-line);
}
:root body input::placeholder,
:root body textarea::placeholder {
  color: var(--fg-ink-3);
  opacity: 1;
}
:root body :is(button, .button, .ld-button) {
  font-family: var(--fg-sans);
}
:root body :is(.button, .ld-button, button:not([class])) {
  background: var(--fg-cobalt);
  color: #fff;
  border-color: var(--fg-cobalt-deep);
}
:root
  body
  :is(
    .button.secondary,
    .ld-ghost,
    .me-ghost,
    .me-close,
    .icon-button,
    .text-button,
    .me-link
  ) {
  background: transparent;
  color: var(--fg-ink);
  border-color: var(--fg-line);
}
:root body :is(.me-pill, .pill, .beta-pill, .pj-chip) {
  border-width: 1px;
}
:root body .beta-pill {
  color: var(--fg-ink);
  background: var(--fg-yellow-tint);
  border-color: var(--fg-line);
}
:root body button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
:root body .danger {
  color: var(--fg-coral-ink);
  background: var(--fg-coral-tint);
  border-color: var(--fg-coral-ink);
}
header {
  border-bottom: 1px solid var(--fg-line);
}
:root body .brand {
  color: var(--fg-ink);
}
:root body .site-footer {
  border-color: var(--fg-line);
  color: var(--fg-ink-2);
}
:root body .site-footer a {
  color: var(--fg-ink);
}
:root body .card {
  background: var(--fg-card);
  border-color: var(--fg-line);
  box-shadow: none;
}
:root body dialog {
  color: var(--fg-ink);
  background: var(--fg-card);
  border: 1px solid var(--fg-line);
  border-radius: 20px;
  box-shadow: 0 20px 70px -20px rgb(24 32 61 / 35%);
}
:root body dialog::backdrop {
  background: rgb(24 32 61 / 35%);
}
/* Landing. Keep the original content, animation and diagram relationships. */
body:has(.ld) {
  background-image:
    linear-gradient(to bottom, transparent 55%, var(--fg-paper) 100%),
    var(--fg-dusk);
  background-repeat: no-repeat;
  background-color: var(--fg-paper);
  background-size: 100% 760px;
  overflow-x: clip;
}
body:has(.ld) > header {
  max-width: 1280px;
  margin-inline: 40px;
  padding-inline: 0;
}
main:has(.ld) {
  max-width: 1280px;
  margin-top: 60px;
  padding-inline: 40px;
}
:root .ld {
  gap: 100px;
}
:root .ld h1 {
  font-size: clamp(54px, 6vw, 86px);
  line-height: 0.98;
}
:root .ld h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.03;
}
:root .ld h3 {
  font-size: 32px;
  line-height: 1.1;
}
:root .ld .ld-lede {
  font-size: 18px;
  line-height: 1.65;
}
:root .ld > section + section::before {
  background: var(--fg-line);
}
:root .ld > section + section::after {
  display: none;
}
.ld-hero {
  isolation: isolate;
  position: relative;
  min-height: 610px;
  padding-bottom: 70px;
}
.ld-hero-copy,
.ld-room {
  position: relative;
  z-index: 1;
}
:root .ld-room {
  background: rgb(251 248 241 / 90%);
  border-color: var(--fg-line);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 55px -30px rgb(24 32 61 / 35%);
}
:root .ld-room figcaption {
  padding: 22px 24px;
  border-bottom: 1px solid var(--fg-line-2);
}
:root .ld-room-goal {
  font: 400 27px/1.12 var(--fg-serif);
}
:root .ld-chat {
  padding: 20px 24px;
}
:root .ld-msg p {
  background: var(--fg-card);
  border: 1px solid var(--fg-line-2);
  border-radius: 16px 16px 16px 5px;
}
:root .ld-msg[data-side="b"] p {
  background: var(--fg-coral-tint);
  border-radius: 16px 16px 5px 16px;
}
:root .ld-msg b {
  color: var(--fg-cobalt);
}
:root .ld-msg[data-side="b"] b {
  color: var(--fg-coral-ink);
}
:root .ld-ask {
  color: var(--fg-coral-ink);
  border-color: var(--fg-coral-ink);
}
:root .ld-outcome {
  background: var(--fg-cobalt-tint);
  color: var(--fg-ink);
  border-radius: 0;
  padding: 18px 24px;
}
:root .ld-room-foot {
  padding: 12px 24px;
}
:root .ld-avatar {
  display: grid;
  place-items: center;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
:root .ld-avatar img {
  position: static;
  width: 40px;
  height: 34px;
  object-fit: contain;
}
:root .ld-diagram {
  background: var(--fg-card);
  border: 1px solid var(--fg-line);
  border-radius: 24px;
}
:root :is(.ld-person, .ld-agentnode) {
  background: var(--fg-paper);
  border-color: var(--fg-line-2);
}
:root .ld-agentnode {
  background: var(--fg-card);
}
:root .ld-hub {
  background: var(--fg-cobalt-tint);
  border-color: var(--fg-line-2);
}
:root .ld-hub > b {
  font: 400 26px/1.1 var(--fg-serif);
}
:root .ld-hub-art {
  width: 100%;
}
:root .ld-line {
  background: var(--fg-cobalt);
  color: var(--fg-cobalt);
}
:root .ld-conn-wake .ld-line {
  background: none;
  border-color: var(--fg-coral-ink);
  color: var(--fg-coral-ink);
}
:root .ld-initial {
  background: var(--fg-yellow-tint);
  color: var(--fg-cobalt);
  border: 1px solid var(--fg-line);
}
:root .ld-person[data-side="b"] .ld-initial {
  background: var(--fg-coral-tint);
  color: var(--fg-coral-ink);
}
:root .ld-povs b {
  font: 400 28px/1.12 var(--fg-serif);
}
:root .ld-pov {
  color: var(--fg-coral-ink);
}
:root .ld-stage {
  background: transparent;
  border-color: var(--fg-line);
  box-shadow: none;
}
:root .ld-mock {
  background: var(--fg-card);
  border-color: var(--fg-line-2);
}
:root .ld-cta {
  background: var(--fg-cobalt);
  color: #fff;
  border-radius: 30px;
}
:root .ld-cta :is(h3, p, a, code) {
  color: #fff;
}
:root .ld-cta h3 {
  font-size: 46px;
}
:root .ld-cta .ld-button {
  background: var(--fg-card);
  color: var(--fg-ink);
  border-color: var(--fg-card);
}
:root .ld-cta .ld-ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 60%);
}
:root .ld-faq summary {
  font: 400 26px/1.25 var(--fg-serif);
}
/* Working pages: the hierarchy and dense layouts remain in their original sheets. */
:root body:has(.ws) > header {
  background: var(--fg-paper);
  border-color: var(--fg-line);
}
:root .ws-rail,
:root .ws-account {
  background: var(--fg-paper-2);
}
:root .ws-nav a[aria-current="page"] {
  background: var(--fg-cobalt-tint);
  color: var(--fg-cobalt);
  border-color: transparent;
}
:root .ws-content {
  background: var(--fg-paper);
}
:root .ws-heading h1 {
  font-size: 48px;
}
:root .ws :is(.me-head, .me-block, .ws-panel) {
  border-color: var(--fg-line);
}
:root .ws .me-head {
  background: var(--fg-dusk);
}
:root .ws .me-title h2 {
  font-size: 44px;
  line-height: 1.05;
}
:root .ws :is(.me-counts strong, .me-counts button strong) {
  font: 400 28px/1 var(--fg-serif);
  color: var(--fg-cobalt);
}
:root .ws-panel :is(h2, .me-block-head h2) {
  font-size: 30px;
}
:root .ws .me-block {
  background: var(--fg-card);
  box-shadow: none;
}
:root .me-pill[data-tone="public"],
:root .me-pill[data-tone="agent"] {
  background: var(--fg-cobalt-tint);
  color: var(--fg-cobalt);
  border-color: var(--fg-line-2);
}
:root .me-pill[data-tone="pending"] {
  background: var(--fg-coral-tint);
  color: var(--fg-coral-ink);
}
:root .me-pill[data-tone="connected"],
:root .me-pill[data-tone="ready"],
:root .me-pill[data-tone="done"] {
  background: var(--fg-green-tint);
  color: var(--fg-green);
}
:root .me-row,
:root .me-project-row {
  border-color: var(--fg-line-2);
}
:root .me-dialog h2 {
  font-size: 34px;
}
:root .ws-menu-button {
  background: var(--fg-cobalt);
  color: #fff;
  border-color: var(--fg-cobalt-deep);
}
.fg-agent-badge {
  width: 30px;
  height: 25px;
  float: left;
  margin: 1px 10px 5px 0;
  object-fit: contain;
}
:root .pj-heading {
  border-color: var(--fg-line);
  padding-block: 24px;
}
:root .pj-heading h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
}
:root .pj-section {
  background: var(--fg-card);
  border-color: var(--fg-line);
}
:root .rv h1 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
}
:root .rv :is(.chat, .sidebar) {
  background: var(--fg-card);
  border-color: var(--fg-line);
}
:root .rv .chat-head h2 {
  font: 600 16px/1.3 var(--fg-sans);
}
:root .rv .sidebar :is(h2, h3) {
  font-family: var(--fg-sans);
  font-weight: 600;
}
:root .rv .avatar:not(.person) {
  background: transparent;
  overflow: visible;
}
:root .rv .avatar img {
  width: 32px;
  height: 28px;
}
:root .rv .bubble {
  background: var(--fg-cobalt-tint);
  color: var(--fg-ink);
  border: 1px solid var(--fg-line-2);
}
:root .rv .message[data-side="other"] .bubble {
  background: var(--fg-coral-tint);
}
:root .rv :is(.composer, .chat-head, .side-section) {
  border-color: var(--fg-line-2);
}
:root :is(.iv-art, .iv-scene, .cr-card, .entry-card, .public-card) {
  background: var(--fg-card);
  border-color: var(--fg-line);
}
:root .iv-art {
  background: var(--fg-dusk);
}
:root .iv-art img,
:root .iv-pair img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
:root .cr h1 {
  font-size: clamp(42px, 5vw, 60px);
}
:root .cr-art {
  width: 130px;
  margin: 0;
}
:root .public-head > img {
  width: 145px;
  height: 190px;
  object-fit: contain;
}
/* Guide chrome changes; story images and their descriptions are untouched. */
:root body:has(.chapters),
:root body:has(#guide) {
  font-family: var(--fg-sans);
  background: var(--fg-paper);
}
:root body:has(.chapters) header,
:root body:has(#guide) header {
  background: var(--fg-paper);
  border-color: var(--fg-line);
}
:root body:has(.chapters) .chapters {
  background: var(--fg-paper);
}
:root
  :is(
    .chapters a[aria-current="location"],
    .sidebar a[aria-current="location"]
  ) {
  color: var(--fg-cobalt);
  background: var(--fg-cobalt-tint);
}
:root body:has(.chapters) h1,
:root body:has(#guide) h1 {
  font-size: clamp(46px, 5.5vw, 76px);
}
:root body:has(.chapters) h2,
:root body:has(#guide) h2 {
  font-size: 40px;
  line-height: 1.05;
}
:root
  :is(.connect-steps, .best-list, .setup-panel, .copy-block, .feature-list) {
  border-color: var(--fg-line);
}
:root :is(.copy-row, .example, .note-example, .note, .callout, pre) {
  background: var(--fg-card);
  border-color: var(--fg-line);
}
:root .last-card {
  background: var(--fg-cobalt-tint);
}
/* Shared small botanical room. Decorative, no participant or state claims. */
.fg-room-garden {
  position: relative;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 160 / 96;
  margin: auto;
  border: 1px solid var(--fg-cobalt);
  border-radius: 45% 45% 12px 12px / 30% 30% 12px 12px;
  overflow: hidden;
  background: var(--fg-yellow-tint);
}
.fg-room-garden > img {
  position: absolute;
  object-fit: contain;
}
:root .fg-room-garden .fg-room-fern {
  width: 24%;
  height: 53%;
  bottom: -8%;
  opacity: 0.55;
  margin: 0;
}
.fg-room-fern-left {
  left: 3%;
  transform: rotate(-14deg);
}
.fg-room-fern-right {
  right: 3%;
  transform: rotate(14deg) scaleX(-1);
}
:root .fg-room-garden .fg-room-flower {
  width: 20%;
  height: 39%;
  left: 43%;
  bottom: -5%;
  opacity: 0.5;
  margin: 0;
}
:root .fg-room-garden .fg-room-agent {
  width: 29%;
  height: 39.6%;
  top: 20%;
  margin: 0;
}
.fg-room-agent-a {
  left: 15%;
}
:root .fg-room-garden .fg-room-agent-b {
  left: 55%;
  top: 28%;
}
.fg-room-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--fg-cobalt);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.fg-profile-garden {
  width: 100%;
  height: 100%;
  position: relative;
}
.fg-profile-garden > img {
  position: absolute;
  object-fit: contain;
}
:root .fg-profile-fern {
  width: 40%;
  height: 80%;
  right: 0;
  bottom: -5%;
  opacity: 0.5;
  transform: rotate(15deg);
}
:root .fg-profile-flower {
  width: 50%;
  height: 100%;
  left: 0;
  top: -5%;
  opacity: 0.65;
  transform: rotate(-10deg);
}
:root .fg-profile-butterfly {
  width: 40%;
  height: 42%;
  left: 34%;
  top: 4%;
}
:root .fg-profile-butterfly-small {
  width: 22%;
  height: 25%;
  left: 58%;
  top: 52%;
}
.fg-hero-garden {
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.fg-hero-garden > img {
  position: absolute;
  object-fit: contain;
}
.fg-hero-fern {
  width: 135px;
  height: 220px;
  left: -50px;
  bottom: -60px;
  opacity: 0.3;
  transform: rotate(-15deg);
}
.fg-hero-flower {
  width: 180px;
  height: 260px;
  right: -35px;
  bottom: -70px;
  opacity: 0.3;
  transform: rotate(12deg);
}
.fg-motion-control {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 11px;
  border: 1px solid var(--fg-line);
  border-radius: 999px;
  background: var(--fg-card);
  color: var(--fg-ink-2);
  cursor: pointer;
}
.fg-flutter {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.fg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.fg-flutter .bf {
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 250ms ease;
}
.fg-flutter .bf.is-tucked {
  opacity: 0;
}
.fg-flutter .bf[hidden],
.fg-motion-control[hidden] {
  display: none;
}
.fg-flutter svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
@media (hover: hover) and (pointer: fine) {
  :root
    body
    :is(.button, .ld-button, button:not([class])):not(:disabled):hover {
    background: var(--fg-cobalt-deep);
    color: #fff;
  }
  :root body :is(.button.secondary, .ld-ghost, .me-ghost):not(:disabled):hover {
    background: var(--fg-cobalt-tint);
    color: var(--fg-ink);
  }
  :root .ld-cta .ld-ghost:hover {
    background: rgb(255 255 255 / 12%);
    color: #fff;
  }
}
@media (max-width: 760px) {
  :root .public-head > img {
    width: 90px;
    height: 125px;
  }
  :root .cr-art {
    width: 72px;
  }
  :root .cr h1 {
    font-size: 36px;
  }

  body:has(.ld) > header {
    margin-inline: 20px;
  }
  main:has(.ld) {
    padding-inline: 20px;
    margin-top: 36px;
  }
  :root .ld {
    gap: 72px;
  }
  :root .ld h1 {
    font-size: clamp(48px, 10.7vw, 66px);
  }
  :root .ld h2 {
    font-size: 42px;
  }
  :root .ld h3 {
    font-size: 30px;
  }
  .ld-hero {
    min-height: 0;
    padding-bottom: 44px;
  }
  :root .ld .ld-lede {
    font-size: 17px;
  }
  :root .ld > section + section::before {
    top: -36px;
  }
  :root .ld-cta h3 {
    font-size: 38px;
  }
  :root .ld-faq summary {
    font-size: 23px;
  }
  :root .ws-heading h1 {
    font-size: 40px;
  }
  :root .ws .me-title h2 {
    font-size: 38px;
  }
  :root body:has(.chapters) h1,
  :root body:has(#guide) h1 {
    font-size: 46px;
  }
  :root body:has(.chapters) h2,
  :root body:has(#guide) h2 {
    font-size: 34px;
  }
  .fg-hero-fern {
    width: 100px;
    height: 160px;
    bottom: -28px;
    left: -35px;
  }
  .fg-hero-flower {
    width: 130px;
    height: 190px;
    bottom: -35px;
    right: -20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root *,
  :root *::before,
  :root *::after {
    scroll-behavior: auto;
  }
}

:root .ld h1 em {
  color: var(--fg-cobalt);
  font-style: italic;
}

/* White CTA actions must outrank the shared ghost-button foreground. */
:root body .ld-cta .ld-ghost {
  color: #fff;
}
:root body .ld-cta :focus-visible {
  outline-color: var(--fg-card);
}
@media (hover: hover) and (pointer: fine) {
  :root body .ld-cta .ld-ghost:hover {
    color: #fff;
  }
}

/* Profile handoff: quiet paper rail, botanical dusk header, grouped actions. */
:root .ws-account {
  margin: 0 12px 20px;
  padding: 16px 12px;
  border: 1px solid var(--fg-line);
  border-radius: 16px;
  background: var(--fg-card);
}
:root .ws-nav a {
  border-radius: 999px;
}
:root .ws .me-head {
  grid-template-columns: 152px minmax(0, 1fr) 172px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
}
:root .ws .me-sandbox {
  grid-column: 1;
  grid-row: 1;
  width: 152px;
  height: 180px;
  margin: 0;
}
:root .ws .me-head-body {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}
:root .ws .me-head > .me-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}
:root .ws .me-head .me-actions button {
  min-height: 44px;
  margin: 0;
}
:root .ws .me-head > .me-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
}
:root .ws .me-head > .me-status:empty {
  display: none;
}
:root .ws .me-block {
  border-radius: 20px;
}
@media (max-width: 1120px) {
  :root .ws .me-head {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
  }
  :root .ws .me-sandbox {
    width: 120px;
    height: 160px;
  }
  :root .ws .me-head > .me-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  :root .ws .me-head {
    grid-template-columns: minmax(0, 1fr) 76px;
    padding: 22px;
    gap: 20px 12px;
  }
  :root .ws .me-head-body {
    grid-column: 1;
  }
  :root .ws .me-sandbox {
    grid-column: 2;
    width: 76px;
    height: 110px;
    align-self: start;
  }
  :root .ws .me-title h2 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }
  :root .ws .me-head > .me-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Signed-out entry and invite: one decision beside the supplied cage scene. */
:root:has(.entry-hero) {
  background: var(--fg-paper);
}
body:has(.entry-hero) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(to bottom, transparent 55%, var(--fg-paper) 100%),
    var(--fg-dusk) top / 100% 760px no-repeat,
    var(--fg-paper);
}
body:has(.entry-hero) > :is(header, footer) {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}
main:has(.entry-hero) {
  flex: 1;
  display: grid;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(12px, 3vh, 32px) clamp(20px, 4vw, 52px);
}
.entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.entry-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.entry-copy h1 {
  font-size: clamp(44px, min(5.4vw, 8.5vh), 78px);
  line-height: 0.99;
  max-width: 15ch;
  margin: 0 0 22px;
}
.entry-copy h1 .entry-line {
  white-space: nowrap;
}
.entry-copy h1:has(.entry-line) {
  max-width: none;
  font-size: clamp(40px, min(4.4vw, 8vh), 70px);
}
.entry-copy h1 em {
  display: block;
  color: var(--fg-cobalt);
}
.entry-copy > p {
  max-width: 43ch;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 34px;
}
:root body .entry-actions .ld-button {
  border-radius: 999px;
  min-height: 50px;
  margin: 0;
  padding: 0 26px;
  font-size: 16px;
}
.entry-explore {
  color: var(--fg-cobalt);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .entry-explore:hover {
    text-decoration-color: currentColor;
  }
}
.entry-cage {
  position: relative;
  min-width: 0;
  margin: 0;
}
.entry-cage-art {
  aspect-ratio: 560 / 480;
  max-height: min(62vh, 560px);
  margin-inline: auto;
}
.entry-cage .fg-cage {
  --fg-cream: #fff9ef;
  --fg-glow: #ffb98f;
  --fg-wing-cream: #fffaf2;
  --fg-wing-peach: #ffe3d2;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.entry-cage .fg-cage .fg-bf *,
.entry-cage .fg-cage g path {
  vector-effect: non-scaling-stroke;
}
.entry-invite .iv-identity {
  margin: 18px 0 0 !important;
  font-size: 14px;
}
.entry-invite #change-account {
  margin-top: 4px;
}
.entry-invite .iv-consent {
  max-width: 43ch;
}
.entry-invite .iv-note {
  font-size: 13px;
  margin-top: 8px;
}
.entry-agent-route {
  max-width: 44ch;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--fg-line);
}
.entry-agent-route > p:first-child {
  margin: 0 0 12px;
  font-size: 15px;
}
:root body .entry-agent-route .ld-button {
  margin: 0;
}
.entry-agent-route .iv-status {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.entry-agent-route .ld-textbutton {
  margin: 8px 0 0;
}
.entry-agent-route .iv-setup {
  margin-top: 10px;
  background: var(--fg-card);
}
.entry-invite .iv-footnote {
  margin: 24px 0 0 !important;
  color: var(--fg-ink-2);
}
@media (max-width: 760px) {
  .entry-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .entry-copy h1 {
    font-size: clamp(44px, 10vw, 64px);
  }
  .entry-cage {
    width: min(100%, 460px);
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  main:has(.entry-hero) {
    margin-top: 36px;
  }
  .entry-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  :root body .entry-actions .ld-button {
    width: 100%;
  }
  .entry-cage {
    width: min(100%, 340px);
  }
}
@media (prefers-color-scheme: dark) {
  :root:has(.entry-hero) {
    background: #171e35;
  }
  body:has(.entry-hero) {
    --fg-paper: #171e35;
    --fg-paper-2: #202a48;
    --fg-card: #293454;
    --fg-ink: #f8f4ed;
    --fg-ink-2: #d6d8e6;
    --fg-ink-3: #c4cbde;
    --fg-cobalt: #b8c9ff;
    --fg-cobalt-deep: #1d36a6;
    --fg-cobalt-tint: #344b88;
    --fg-line: rgb(248 244 237 / 28%);
    --fg-dusk:
      radial-gradient(
        ellipse at 90% 12%,
        rgb(230 117 77 / 20%),
        transparent 65%
      ),
      linear-gradient(145deg, #293d7d, #293454 55%, #171e35);
    color: var(--fg-ink);
  }
  :root body:has(.entry-hero) .entry-actions .ld-button {
    background: #b8c9ff;
    color: #18203d;
    border-color: #b8c9ff;
  }
  :root body:has(.entry-hero) .entry-actions .ld-button:disabled {
    opacity: 0.55;
  }
}

/* Desktop entry is one view: no page scroll when it fits. */
@media (min-width: 761px) and (min-height: 620px) {
  :root:has(.entry-hero:not(.entry-invite .entry-hero)) {
    overflow: hidden;
  }
}
/* Rooms beta: outlined pill with glowing text, legible on the dusk glow. */
:root body .beta-pill {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--fg-coral-ink);
  font-weight: 600;
  text-shadow: 0 0 10px rgb(240 100 58 / 35%);
}
@media (prefers-color-scheme: dark) {
  :root body .beta-pill {
    color: #ffd27a;
    text-shadow:
      0 0 6px rgb(255 210 122 / 70%),
      0 0 18px rgb(255 185 143 / 45%);
  }
}
@media (max-width: 600px) {
  .entry-copy h1 .entry-line {
    white-space: normal;
  }
}
