.study-edition {
  --paper: #f5f5f6;
  --ink: #151619;
  --muted: #53565e;
  background: var(--paper);
}
.study-edition [hidden] { display: none !important; }
.section-width { width: min(86%, 1100px); margin-inline: auto; }

html:has(.study-edition) { scroll-padding-top: calc(84px + env(safe-area-inset-top)); }
.study-edition .orbit-head {
  position: sticky; top: max(10px, env(safe-area-inset-top)); z-index: 8;
  width: min(92%, 1280px); min-height: 58px; margin: 12px auto 4px;
  padding: 6px 8px 6px clamp(16px, 2vw, 28px); border-radius: 999px;
  background: rgb(251 251 252 / 78%); box-shadow: inset 0 1px 0 #ffffffd9, 0 3px 18px #191b2110;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .study-edition .orbit-head {
    background: rgb(249 249 250 / 46%);
    -webkit-backdrop-filter: saturate(125%) blur(12px);
    backdrop-filter: saturate(125%) blur(12px);
  }
}
.study-edition .skip { z-index: 9; }
.study-edition .orbit-head nav { align-items: center; gap: clamp(14px, 2.6vw, 38px); }
.signup-trigger, #signup-dialog button { -webkit-tap-highlight-color: transparent; }
.signup-trigger {
  display: block; min-height: 44px; padding: 6px 21px; border: 0; border-radius: 999px;
  color: white; background: var(--ink); font-weight: 650; font-size: .9rem; white-space: nowrap;
}
.signup-trigger:hover, .signup-trigger[aria-expanded="true"] { background: #333538; }
html:has(#signup-dialog[open]) { overflow: hidden; }
#signup-dialog {
  position: fixed; inset: 0; margin: auto; width: min(700px, calc(100% - 24px));
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(22px, 3vw, 32px); border: 0; border-radius: 20px;
  box-shadow: 0 8px 22px #191b2114, 0 24px 64px #191b2129;
}
.signup-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.signup-heading h2 { margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -.045em; }
#signup-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; margin: -7px -8px -7px 0;
  border: 0; border-radius: 50%; background: transparent; color: #53555a; font: 400 1.45rem/1 Arial, sans-serif;
}
#signup-close:hover { background: #f1f1f3; }
.section-intro h2, #match-title {
  font-feature-settings: "palt"; letter-spacing: -.067em; font-weight: 560; text-wrap: balance;
}
.section-intro p { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-top: 16px; }
#registration { padding-bottom: clamp(44px, 6vw, 88px); }
#next-scene { -webkit-tap-highlight-color: transparent; }
.ring-example { min-width: 0; scroll-margin-top: 24px; }
.example-stage {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; background: #e3e3e3; border-radius: 18px;
}
#example-surface { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.example-stage:has(.example-intro:not([hidden])) #example-surface { filter: blur(1px); }
.example-intro {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch;
  overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 3vw, 40px) clamp(18px, 3vw, 40px);
  background: rgb(249 249 250 / 58%);
}
#start-example {
  margin-top: 20px; gap: 10px; min-height: 44px; padding: 8px 20px;
}
.example-intro-copy { flex: none; margin-block: auto; padding-block: 9px; }
.example-intro-copy h3 { font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.45; letter-spacing: -.04em; word-break: auto-phrase; text-wrap: balance; }
.example-intro-copy p { margin-top: 14px; font-size: 1rem; line-height: 1.8; }
.example-actions button:disabled { opacity: .5; }
.quote-lane {
  position: relative; display: flex; align-items: flex-end; min-height: 7.3rem;
  padding-block: 10px; z-index: 1; pointer-events: none;
}
#lower-quotes { align-items: flex-start; }
#example-seats { height: clamp(158px, 15vw, 222px); }
.example-seat {
  position: absolute; transform: translate(-50%, -50%); border-radius: 50%; padding: 0; border: 0;
  min-width: 44px; min-height: 44px; background: transparent; touch-action: manipulation;
}
.example-seat:focus-visible { outline: 2px solid #404040; outline-offset: 1px; }
.active-quote {
  position: relative; width: max-content; max-width: min(calc(100% - 18px), 344px); pointer-events: none;
  padding: 9px 14px 11px; border-radius: 13px; background: #fff; color: var(--ink);
  line-height: 1.5; box-shadow: 0 4px 18px #0002;
}
.active-quote::after { content: ""; position: absolute; left: var(--tail); width: 1px; height: var(--leader); background: #9b9b9e; }
#upper-quotes .active-quote::after { top: 100%; }
#lower-quotes .active-quote::after { bottom: 100%; }
#quote-name { display: block; font-size: .8rem; color: var(--muted); }
#quote-line { margin-top: 2px; font-weight: 600; font-size: .95rem; }
.example-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 12px 2px 0; }
#example-count, .discussion-heading { color: var(--muted); font-size: .85rem; }
#example-name { font-size: 1.04rem; line-height: 1.55; font-weight: 650; }
.example-actions { display: flex; align-items: center; gap: 15px; }
.example-actions button, .text-button { color: var(--ink); border: 0; background: transparent; min-height: 44px; padding: 5px 0; font-size: .88rem; text-decoration: underline; text-underline-offset: .25em; }
#play-example { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
#play-example::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
#play-example[aria-pressed="true"]::before { width: 8px; height: 10px; border: 0; border-inline: 3px solid currentColor; }
.discussion-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
#discussion-origin, #discussion-lines p, #match-description { line-height: 1.85; }
#discussion-origin { margin-bottom: 20px; color: var(--muted); }
#discussion-lines { list-style: none; padding: 0; margin: 0; }
#discussion-lines li { padding-block: 13px; border-top: 1px solid var(--line); }
#discussion-lines b { font-size: .875rem; }
.stack-section { padding-top: clamp(56px, 6.8vw, 100px); }
.section-intro { margin-bottom: 25px; }
.section-intro h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.3; }
.preference-sheet { padding: clamp(18px, 3vw, 38px); background: white; border-radius: 18px; }
.study-edition :is(.preference-sheet, .example-stage, .orbit-schedule, .method-art, .ticket) {
  border: 0;
  box-shadow: 0 3px 10px rgb(24 26 31 / 4%), 0 12px 32px rgb(24 26 31 / 7%);
}
.field-switch { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.field-switch button {
  flex: 1; padding: 9px 4px 13px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-weight: 500; font-size: .96rem;
}
.field-switch button[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.preference-sheet fieldset { min-height: 112px; margin: 23px 0 16px; padding: 0; min-width: 0; border: 0; }
.preference-sheet legend { padding: 0; margin-bottom: 9px; font-size: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; padding: 6px 17px; border: 1px solid #c9cacf; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .94rem; line-height: 1.45; cursor: pointer;
}
.choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: inherit; opacity: 0; cursor: inherit; }
@media (hover: hover) {
  .choices label:hover { background: #f3f3f4; border-color: #98999d; }
}
.choices label:has(input:checked) { background: #626366; border-color: #626366; color: #fff; }
.choices label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.note-label { display: block; margin: 18px 0 7px; font-size: .92rem; }
.preference-sheet textarea { display: block; width: 100%; padding: 10px 13px; border: 1px solid #bbbec4; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; line-height: 1.6; resize: vertical; }
#selection { overflow-wrap: anywhere; }
.form-bottom { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; }
.hint, .ticket-note { color: var(--muted); font-size: .9rem; line-height: 1.8; }
#error { color: var(--red); font-size: .94rem; }
#error:not(:empty) { margin-top: 10px; }
#match-title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
#selection { margin: 12px 0; white-space: pre-line; }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 19px; }
.ticket {
  display: flex; position: relative; background: #25282d; color: #fff; border-radius: 13px;
  background-image: radial-gradient(ellipse at 75% 105%, #303d48 0, #21252b 49%, #18191e 100%);
}
.ticket::before, .ticket::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 18px; height: 10px; background: var(--paper); }
.ticket::before { top: -1px; border-radius: 0 0 12px 12px; }
.ticket::after { bottom: -1px; border-radius: 12px 12px 0 0; }
.ticket > div { flex: 1; text-align: center; padding: clamp(20px, 2.7vw, 35px) 6px; }
.ticket > div + div { border-left: 1px dashed #96999e; }
.ticket span { color: #d7d9dd; font-size: .9rem; }
.ticket strong { display: block; margin-top: 4px; font: 400 clamp(2.6rem, 5vw, 4.25rem)/1.12 Arial, sans-serif; letter-spacing: -.06em; }
.ticket small { font: 500 .95rem/1 sans-serif; letter-spacing: 0; margin-left: 7px; }
.ticket-note { margin-top: 13px; }
@media (max-width: 720px) {
  .section-width { width: 91%; }
  .study-edition .orbit-head { width: calc(100% - 20px); min-height: 54px; gap: 8px; padding: 5px 6px 5px 13px; margin-block: 9px 2px; }
  .study-edition .orbit-head nav { gap: 11px; }
  .signup-trigger { padding-inline: 15px; font-size: .84rem; }
  .study-edition .orbit-head nav a { font-size: .84rem; }
  .orbit-actions .orbit-secondary { padding-inline: 12px; }
  #example-seats { height: clamp(145px, 42vw, 205px); }
  .example-caption { padding-top: 10px; }
  .ticket span, .field-switch button { font-size: .84rem; }
}
@media (max-width: 365px) {
  .orbit-actions .orbit-pill { padding-inline: 13px; }
  .study-edition .orbit-head nav { gap: 7px; }
  .signup-trigger { padding-inline: 11px; }
  .study-edition .orbit-head nav a { font-size: .8rem; }
}
@media (forced-colors: active) {
  .choices label:has(input:checked) {
    forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText;
  }
  .choices label:has(input:focus-visible) { outline-color: Highlight; }
  .field-switch button[aria-pressed=true] { outline: 2px solid Highlight; }
}

/* Dark mode. */
[data-theme="all-black"] .orbit-hero {
  color: #f6f6f7; background: var(--preview-background); box-shadow: 0 -100px var(--preview-background);
}
[data-theme="all-black"] .study-edition .orbit-head { color: #000; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme="all-black"] .study-edition .orbit-head { background: rgb(255 255 255 / 46%); }
}
[data-theme="all-black"] #join { background: var(--preview-background); padding-bottom: clamp(56px, 6.8vw, 100px); }
[data-theme="all-black"] #beta {
  width: 100%; padding-inline: max(7%, calc((100% - 1240px) / 2));
  background: var(--preview-background); border-top-color: transparent;
}
[data-theme="all-black"] #beta > div:first-child { color: #f6f6f7; }
[data-theme="all-black"] #join .section-intro { color: #f6f6f7; }
[data-theme="all-black"] .orbit-hero .orbit-lead,
[data-theme="all-black"] #beta .orbit-lead,
[data-theme="all-black"] #example-count,
[data-theme="all-black"] #join .section-intro p { color: #c8c8cc; }
[data-theme="all-black"] :is(.orbit-hero, #beta) .orbit-pill { color: #151517; background: #f6f6f7; border-color: #f6f6f7; }
[data-theme="all-black"] :is(.orbit-hero, #beta) .orbit-pill:hover { background: #dedee0; }
[data-theme="all-black"] .orbit-actions .orbit-secondary {
  color: #f6f6f7; background: #202022; border-color: #535355; box-shadow: none;
}
[data-theme="all-black"] .orbit-actions .orbit-secondary:hover { background: #303032; border-color: #808083; }
[data-theme="all-black"] .example-stage { background: #353535; }
[data-theme="all-black"] .example-intro { background: rgb(34 34 34 / 62%); }
[data-theme="all-black"] .example-actions button { color: inherit; }
[data-theme="all-black"] .orbit-hero :focus-visible { outline-color: #f0f0f2; }
[data-theme="all-black"] #beta > div:first-child :focus-visible { outline-color: #f0f0f2; }
@media (max-width: 1000px) {
  [data-theme="all-black"] #beta { padding-inline: 5%; }
}

/* Registration and sharing mockup, scoped to the current landing page. */
.study-edition .orbit-copy h1 { font-size: clamp(2rem, 3.65vw, 3.5rem); line-height: 1.32; }
.study-edition .orbit-fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#how .orbit-facts { margin-top: 24px; }
#how .orbit-fact-grid { width: 100%; }
.study-edition .orbit-fact-grid p { font-size: .875rem; }
.registration-cta { margin-top: 24px; }
.preference-sheet .subtag-group, #signup-form .subtag-group { min-height: 0; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.subtag-group legend { font-size: .875rem; color: var(--muted); }
#signup-dialog { border: 0; }
.mock-notice { padding: 12px 14px; margin: 16px 0 24px; background: #f1f1f3; border-radius: 10px; font-size: .875rem; line-height: 1.65; color: #555861; }
.signup-step h3 { font-size: 1.15rem; line-height: 1.55; letter-spacing: -.03em; }
.signup-step p { margin-block: 12px; line-height: 1.8; }
#signup-form { display: grid; gap: 10px; }
#signup-form fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
#signup-form legend { font-size: .95rem; margin-bottom: 10px; }
#signup-form label:not(.choices label), .member-share > label, #share-claim label { display: block; font-size: .95rem; }
#signup-dialog input:not([type=checkbox]), #signup-dialog select, #signup-dialog textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px;
  border: 1px solid #c6c8ce; border-radius: 9px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.6;
}
#signup-dialog input:focus-visible, #signup-dialog textarea:focus-visible, #signup-dialog select:focus-visible { outline: 2px solid #626366; outline-offset: 2px; }
#signup-dialog input:disabled { background: #f4f4f5; color: #64666d; }
#signup-dialog textarea { resize: vertical; }
.google-continue { display: block; width: 100%; min-height: 50px; padding: 10px 20px; margin-block: 24px; border-radius: 999px; border: 1px solid #c6c8ce; background: #fff; font-weight: 650; }
.google-continue:hover { background: #f3f3f5; }
.signup-interests { margin-block: 10px; }
.signup-interests summary, .share-conditions summary, .mock-controls summary { padding-block: 10px; cursor: pointer; }
.signup-interests summary, .share-conditions summary, .mock-controls summary { display: flex; justify-content: space-between; gap: 12px; }
.signup-interests summary::after, .share-conditions summary::after, .mock-controls summary::after { content: "+"; flex-shrink: 0; }
.signup-interests[open] summary::after, .share-conditions[open] summary::after, .mock-controls[open] summary::after { content: "−"; }
.price-survey { margin-block: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-survey p { font-size: .94rem; }
.price-survey .hint { font-size: .875rem; }
.price-survey select { margin-top: 8px; }
.amount-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.money-input { display: flex; align-items: center; gap: 8px; }
#amount-unit { display: block; margin-top: 5px; color: var(--muted); }
#survey-error, #claim-error { color: #a21f38; font-size: .9rem; }
#signup-form > .orbit-pill { justify-self: start; margin-block: 6px; }
.member-number { font-size: clamp(1.1rem, 3.5vw, 1.5rem) !important; }
#member-number { font: 500 1.35em/1 Arial, sans-serif; margin-inline: 4px; }
.member-balance { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0 8px; }
.member-balance strong { font: 400 3.3rem/1 Arial, sans-serif; }
.member-balance small { font: 500 .875rem/1 sans-serif; margin-left: 8px; }
.completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-block: 24px 12px; }
.member-share { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
#member-card, #public-member-card { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 8px 24px #1a1b2112; margin-block: 22px 10px; }
#share-text { margin-top: 8px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#share-claim { display: grid; gap: 10px; margin-top: 18px; }
#share-claim button { justify-self: start; }
#signup-dialog button:disabled { opacity: .5; }
#copy-status { font-size: .875rem; }
.share-conditions { margin-top: 14px; font-size: .9rem; }
.share-conditions ul { padding-left: 22px; }
.claim-status { background: #f2f2f4; padding: 14px; border-radius: 9px; }
.mock-controls { margin-block: 20px; border-top: 1px solid var(--line); font-size: .875rem; }
#storage-status:empty, #survey-error:empty, #claim-error:empty, #copy-status:empty { display: none; }
@media (max-width: 480px) {
  #signup-dialog { padding: 20px; }
  .field-switch button { font-size: .8rem; }
  .amount-range { gap: 7px; }
  .member-balance { font-size: .875rem; }
  .study-edition .orbit-fact-grid p { font-size: .8rem; }
}

/* A full-page dark palette, with gray and white accents. */
[data-theme="all-black"] { --preview-background: #080809; color-scheme: dark; }
[data-theme="all-black"] body.study-edition {
  --paper: #080809; --ink: #bfc0c5; --muted: #999aa2; --line: #343439;
}
[data-theme="all-black"] .orbit-hero,
[data-theme="all-black"] #join .section-intro,
[data-theme="all-black"] #beta > div:first-child { color: var(--ink); }
[data-theme="all-black"] .study-edition .orbit-head {
  color: #c8c8ce; background: rgb(28 28 31 / 72%);
  box-shadow: inset 0 1px 0 #ffffff12, 0 3px 18px #0003;
}
[data-theme="all-black"] .orbit-brand img { filter: invert(1); opacity: .75; }
[data-theme="all-black"] :is(.preference-sheet, .orbit-schedule, .active-quote),
[data-theme="all-black"] body[data-design="orbit"] dialog { background: #18181b; color: var(--ink); }
[data-theme="all-black"] .orbit-facts { background: #101012; }
[data-theme="all-black"] .method-art:not(.wave-art) { background: #1c1c20; }
[data-theme="all-black"] .tag-art span { background: #28282d; border-color: #414147; }
[data-theme="all-black"] .tag-art span:first-child { background: #48484e; border-color: #48484e; color: #dddde1; }
[data-theme="all-black"] .seat-map i { border-color: #1c1c20; }
[data-theme="all-black"] .orbit-footer { background: #101012; border-color: var(--line); }
[data-theme="all-black"] .dotted-logo { --dot-ink: #85858e; }
.study-edition a.dotted-logo { display: block; }
[data-theme="all-black"] :is(.orbit-pill, .signup-trigger) {
  background: #b7b7bf; color: #151517; border-color: #b7b7bf;
}
[data-theme="all-black"] :is(.orbit-hero, #beta) .orbit-pill { background: #b7b7bf; color: #151517; border-color: #b7b7bf; }
[data-theme="all-black"] :is(.orbit-pill, .signup-trigger):hover,
[data-theme="all-black"] :is(.orbit-hero, #beta) .orbit-pill:hover { background: #ceced4; color: #151517; }
[data-theme="all-black"] .choices label { background: #242428; color: var(--ink); border-color: #48484f; }
[data-theme="all-black"] .choices label:hover { background: #333338; }
[data-theme="all-black"] .choices label:has(input:checked) { background: #505057; border-color: #707079; color: #e2e2e7; }
[data-theme="all-black"] .preference-sheet textarea,
[data-theme="all-black"] #signup-dialog :is(input:not([type=checkbox]), select, textarea),
[data-theme="all-black"] .google-continue { background: #242428; border-color: #55555e; color: var(--ink); }
[data-theme="all-black"] textarea::placeholder,
[data-theme="all-black"] input::placeholder { color: #95959f; opacity: 1; }
[data-theme="all-black"] :is(.mock-notice, .claim-status),
[data-theme="all-black"] #signup-dialog input:disabled,
[data-theme="all-black"] :is(.google-continue, #signup-close):hover { background: #26262b; color: #aaaab3; }
[data-theme="all-black"] #signup-close { color: #bfc0c5; }
[data-theme="all-black"] :is(#error, #survey-error, #claim-error) { color: #d7a2ab; }
[data-theme="all-black"] .example-stage { background: #151515; }
[data-theme="all-black"] .example-intro { background: rgb(10 10 10 / 62%); }


.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
  color: inherit; background: transparent; cursor: pointer;
}
.theme-toggle:hover { background: rgb(128 128 128 / 18%); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .mode-sun, .theme-toggle[aria-checked="true"] .mode-moon { display: none; }
.theme-toggle[aria-checked="true"] .mode-sun { display: block; }

/* Keep the dialog frame and close control outside the scrolling content. */
.study-edition :is(#signup-dialog, #example-dialog) {
  padding: 0; overflow: hidden; max-height: calc(100dvh - 32px);
  --modal-padding: clamp(22px, 3vw, 32px);
}
.study-edition :is(#signup-dialog, #example-dialog)[open] { display: flex; flex-direction: column; }
.study-edition :is(.signup-heading, .discussion-heading) {
  flex: none; margin: 0; padding: 14px var(--modal-padding);
  min-height: 72px; border-bottom: 1px solid var(--line);
}
.study-edition #signup-close { margin: 0 -8px 0 0; }
.study-edition .modal-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--modal-padding) var(--modal-padding);
  scrollbar-width: thin; scrollbar-color: #a2a2aa transparent;
}
.study-edition #example-dialog .modal-body { padding-top: 22px; }
.study-edition .modal-body::-webkit-scrollbar { width: 6px; }
.study-edition .modal-body::-webkit-scrollbar-track { background: transparent; }
.study-edition .modal-body::-webkit-scrollbar-thumb { background: #a2a2aa; border-radius: 999px; }
.study-edition .modal-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
[data-theme="all-black"] .modal-body { scrollbar-color: #575760 transparent; }
[data-theme="all-black"] .modal-body::-webkit-scrollbar-thumb { background: #575760; }
html:has(#example-dialog[open]) { overflow: hidden; }
@media (max-width: 480px) {
  .study-edition :is(#signup-dialog, #example-dialog) { --modal-padding: 20px; }
}

/* Registration pagination and the application entry point. */
.study-edition #theme-toggle {
  position: fixed; z-index: 7; right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; color: #29292e; background: rgb(245 245 247 / 85%);
  border: 1px solid #dadade; box-shadow: 0 4px 18px #0002;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.study-edition #theme-toggle:hover { background: #e6e6ea; }
[data-theme="all-black"] .study-edition #theme-toggle { color: #c8c8ce; background: rgb(28 28 31 / 85%); border-color: #414148; }
[data-theme="all-black"] .study-edition #theme-toggle:hover { background: #303036; }
@media (max-width: 480px) {
  .study-edition .orbit-head nav { gap: 6px; }
}
.orbit-footer { padding-bottom: 70px; }

.signup-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.signup-page-actions .orbit-pill { margin-left: auto; }

:is(.login-trigger, .guide-trigger) { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-size: .9rem; white-space: nowrap; cursor: pointer; }
:is(.login-trigger, .guide-trigger):hover { background: rgb(128 128 128 / 15%); }
.guide-trigger { border: 1px solid rgb(128 128 128 / 38%); }
@media (max-width: 480px) {
  .guide-trigger { padding-inline: 9px; font-size: .84rem; }
}
#auth-error:empty { display: none; }
[data-theme="all-black"] #auth-error { color: #d7a2ab; }

.hero-details { margin-top: 18px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.hero-preview-link { margin-top: 14px; font-size: .9rem; }
.hero-preview-link a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: .25em; }
.next-session { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
#next-session-status { font-size: .95rem; line-height: 1.8; }
.auth-policy-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: .875rem; }
.auth-policy-links a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: .2em; }
.auth-policy-links .hint { flex-basis: 100%; font-size: .8rem; }
#signup-form #signup-interests { padding-block: 12px; border-block: 1px solid var(--line); }
#signup-form #signup-interests > summary { line-height: 1.6; font-size: .95rem; }
#signup-form .signup-page-actions { margin-top: 2px; padding-top: 8px; border: 0; }
#signup-form .signup-page-actions .orbit-pill { width: auto; min-width: 9rem; justify-content: center; }
#signup-form .signup-page-actions #signup-back { flex-shrink: 0; }
#signup-dialog {
  --signup-surface: #fff; --signup-control: #f5f5f5; --signup-hover: #ebebeb;
  --ink: #202020; --muted: #595959; --line: #d4d4d4;
  --signup-selected: #303030; --signup-on-selected: #fff; --signup-track: #dedede;
  background: var(--signup-surface); color: var(--ink);
}
[data-theme="all-black"] #signup-dialog {
  --signup-surface: #181818; --signup-control: #242424; --signup-hover: #303030;
  --ink: #ededed; --muted: #b8b8b8; --line: #484848;
  --signup-selected: #e0e0e0; --signup-on-selected: #181818; --signup-track: #444;
  background: var(--signup-surface); color: var(--ink);
}
.study-edition #signup-dialog :is(input:not([type=checkbox]), select, textarea, .google-continue),
#signup-dialog .choices label {
  background: var(--signup-control); color: var(--ink); border-color: var(--line);
}
#signup-dialog .choices label:hover, #signup-dialog .google-continue:hover { background: var(--signup-hover); color: var(--ink); }
#signup-dialog .choices label:has(input:checked), #signup-dialog .orbit-pill {
  background: var(--signup-selected); color: var(--signup-on-selected); border-color: var(--signup-selected);
}
#signup-dialog .orbit-pill:hover { filter: brightness(.92); }
#signup-dialog :is(input, textarea)::placeholder { color: var(--muted); }
#signup-dialog #signup-close { color: var(--ink); }
#signup-dialog #signup-close:hover { background: var(--signup-hover); color: var(--ink); }
#signup-dialog :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#signup-dialog :is(input:not([type=checkbox]), textarea, select):focus-visible { outline-offset: -3px; box-shadow: inset 0 0 0 2px var(--ink); }
.signup-progress { position: sticky; top: 0; z-index: 2; padding-block: 12px; background: var(--signup-surface); border-bottom: 1px solid var(--line); }
.signup-progress p { margin: 0 0 8px; font-size: .88rem; font-weight: 650; }
.signup-progress progress { display: block; width: 100%; height: 6px; appearance: none; accent-color: var(--signup-selected); background: var(--signup-track); border: 0; border-radius: 3px; overflow: hidden; }
.signup-progress progress::-webkit-progress-bar { background: var(--signup-track); border-radius: 3px; }
.signup-progress progress::-webkit-progress-value { background: var(--signup-selected); border-radius: 3px; }
.signup-progress progress::-moz-progress-bar { background: var(--signup-selected); border-radius: 3px; }
.signup-progress ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.signup-progress li { color: var(--muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.signup-progress li[aria-current="step"] { color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.signup-progress li.is-complete { color: var(--ink); }
#signup-dialog [data-signup-page] { min-width: 0; position: relative; z-index: 0; }
#signup-dialog [data-signup-page] h3:focus { outline: none; }
#signup-dialog :is(input, textarea, select) { scroll-margin-block: 160px 24px; }
#signup-dialog :is(#ticket-count-label, #other-note-label) { margin-top: 16px; }
#signup-dialog :is(#ticket-count-label, #other-note-label) > :is(input, textarea) { margin-top: 4px; }
@media (max-width: 600px) {
  .study-edition #signup-dialog {
    --modal-padding: 16px;
    width: calc(100% - 16px); max-width: none; max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }
  #signup-dialog .signup-heading { min-height: 60px; padding-block: 8px; gap: 8px; }
  #signup-dialog .signup-heading h2 { font-size: 1.125rem; line-height: 1.5; margin: 0; }
  #signup-dialog #signup-close { flex: 0 0 44px; width: 44px; height: 44px; }
  #signup-dialog .signup-progress { padding-block: 10px; }
  #signup-dialog .signup-progress p { font-size: .875rem; line-height: 1.5; }
  #signup-dialog .signup-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
  #signup-dialog .signup-progress li { font-size: .75rem; overflow-wrap: normal; }
  #signup-dialog .choices label { min-height: 44px; max-width: 100%; padding: 10px 12px; }
  #signup-dialog :is(input:not([type=checkbox]), select, textarea) { font-size: 16px; }
  #signup-form .signup-page-actions { gap: 12px; flex-wrap: wrap; }
  #signup-form .signup-page-actions .orbit-pill { min-width: 0; max-width: 100%; min-height: 48px; padding-inline: 18px; white-space: normal; }
  #signup-form .signup-page-actions #signup-back { min-width: 48px; min-height: 48px; }
  #signup-dialog .modal-body { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  #signup-dialog .amount-range { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #signup-dialog .amount-range > span { justify-self: center; line-height: 1; }
}
@media (max-width: 600px) and (max-height: 500px) {
  #signup-dialog .signup-progress ol { display: none; }
  #signup-dialog :is(input, textarea, select) { scroll-margin-top: 80px; }
}
#signup-error { color: #a21f38; }
#signup-error:empty { display: none; }
[data-theme="all-black"] #signup-error { color: #d7a2ab; }
.study-edition .orbit-footer-top { align-items: flex-start; gap: 20px; }
.study-edition .orbit-footer-top nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.study-edition .orbit-footer-top nav a { display: inline-block; padding-block: 9px; }
@media (max-width: 600px) {
  .study-edition .orbit-footer-top { flex-direction: column; }
}
[data-theme="all-black"] .device-welcome {
  --paper: #080809; --ink: #bfc0c5; --muted: #999aa2; --line: #343439;
  background: #080809; color: #bfc0c5;
}
[data-theme="all-black"] .device-welcome dialog { background: #18181b; color: var(--ink); }
[data-theme="all-black"] .device-welcome .device-actions .signup-trigger { background: #b7b7bf; color: #151517; border-color: #b7b7bf; }
[data-theme="all-black"] .device-welcome .device-actions .login-trigger { color: #bfc0c5; border-color: #55555e; }
[data-theme="all-black"] .device-entry header img { filter: invert(1); }

#browser-step .browser-options { display: grid; gap: 8px; }
.browser-options button {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  min-height: 48px; width: 100%; text-align: left; font: inherit; font-weight: 600;
  border: 1px solid var(--line, #95959b); border-radius: 10px; background: transparent; color: inherit; cursor: pointer;
}
.browser-options button:is(:hover, :focus-visible) { border-color: currentColor; background: color-mix(in srgb, currentColor 7%, transparent); }
.browser-options svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
#browser-address { width: 100%; padding: 10px; color: inherit; background: transparent; }
#browser-status:empty { display: none; }

html:has(#guide-dialog[open]) { overflow: hidden; }
#guide-dialog {
  --guide-padding: clamp(10px, 2vw, 24px);
  --guide-image-height: max(96px, calc(100dvh - 150px));
  position: fixed; inset: 0; margin: auto;
  width: min(1000px, calc(100% - 24px));
  max-width: max(250px, calc(var(--guide-image-height) * 16 / 9 + 2 * var(--guide-padding) + 2px));
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 0; border-color: var(--line); border-radius: 20px; color: var(--ink);
  box-shadow: 0 24px 64px #0004;
}
#guide-dialog::backdrop { background: rgb(18 18 21 / 67%); }
.guide-heading, .guide-pagination { padding-inline: var(--guide-padding); }
.guide-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-block: 6px;
}
.guide-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 650; }
#guide-dialog button { min-height: 44px; padding: 0 14px; color: inherit; font: inherit; cursor: pointer; }
#guide-dialog .guide-close {
  width: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  font: 400 1.55rem/1 Arial, sans-serif;
}
.guide-slides { display: grid; place-items: center; margin-inline: var(--guide-padding); }
.guide-slides img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: var(--guide-image-height); border-radius: 10px;
}
.guide-pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding-block: 10px;
}
.guide-pagination button { border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.guide-pagination button:first-child { justify-self: start; }
.guide-pagination button:last-child { justify-self: end; }
#guide-dialog button[aria-disabled="true"] { opacity: .45; cursor: default; }
#guide-dialog button:not([aria-disabled="true"]):hover { background: rgb(128 128 128 / 15%); }
#guide-dialog button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#guide-position { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
