/* Cues waitlist: the header "Get access" control (.access-*: pill, email
   field, error bubble; hover #191919) and the waitlist dialog (buttons, text
   field, multiselect, textarea, progress, arrow button).
   Markup is rendered by js/waitlist.js. Token var()s carry literal fallbacks. */

/* ======================================================================
   Header "Get access" (rendered into [data-access-mount])
   ====================================================================== */

/* wrapper: relative block shrink-0, 160 x 45 at xl */
.access {
  position: relative;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 1280px) {
  .access { width: 160px; height: 45px; }
}

/* the pill: primary button + header overrides */
.access-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overflow: hidden;
  background-color: var(--surface-inverse, #242424);
  color: var(--text-inverse, #fcfcfc);
  /* <1280: 88 x 28, px-3, gap-1.5, 12/18 label, no arrow */
  min-width: 88px;                  /* the label sets ~1 % narrower here; also the slot site.css reserves */
  height: 28px;
  gap: 6px;
  padding: 0 12px;
  font-family: var(--font-sans, "Geist", ui-sans-serif, system-ui, sans-serif);
  transition: background-color .15s ease, color .15s ease, opacity .15s ease, scale .15s ease, translate .15s ease;
}
@media (hover: hover) {
  .access-button:hover { background-color: var(--surface-inverse-hover, rgb(0 0 0 / .9)); } /* renders #191919 */
}
.access-button:active {
  background-color: var(--tonal-100, #000);
  scale: .97;
  translate: 0 1px;                 /* max-xl:active:translate-y-px */
  transition-duration: 50ms;        /* --duration-press */
}
.access-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  opacity: 1;
  transition: opacity .1s cubic-bezier(.23, 1, .32, 1) 75ms;   /* label returns after 75 ms */
}
.access-arrow { display: none; }

@media (min-width: 1280px) {
  .access-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 45px;
    gap: 8px;
    padding: 0 45px 0 16px;
  }
  .access-button:active { translate: none; }
  .access-label { font-size: 16px; line-height: 24px; }
  .access-arrow {
    position: absolute;
    inset-block: 0;
    right: 0;
    display: flex;
    aspect-ratio: 1;
    height: 100%;
    align-items: center;
    justify-content: center;
  }
  .access-arrow svg { width: 18px; height: 18px; flex-shrink: 0; }   /* 18 x 18 in the 45 x 45 cell */
}

.access[data-state="open"] .access-button,
.access[data-state="submitting"] .access-button { pointer-events: none; }
.access[data-state="open"] .access-label,
.access[data-state="submitting"] .access-label { opacity: 0; transition-delay: 0ms; }

/* the email field: hidden below xl; 304 x 45 at the top-right, wiping in from the right */
.access-form { display: none; }
@media (min-width: 1280px) {
  .access-form {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    width: 304px;
    height: 45px;
    border: 1px solid var(--border-default, rgb(0 0 0 / .10));
    border-radius: 9999px;
    background-color: var(--surface-primary, #fcfcfc);
    pointer-events: none;
    clip-path: inset(0 0 -64px 100%);
    transition: border-color .18s cubic-bezier(.23, 1, .32, 1), clip-path .18s cubic-bezier(.23, 1, .32, 1);
  }
  .access[data-state="open"] .access-form,
  .access[data-state="submitting"] .access-form {
    clip-path: inset(0 0 -64px 0);
    pointer-events: auto;
    transition-duration: .24s;
  }
  .access-form:focus-within { border-color: var(--border-strong, rgb(0 0 0 / .20)); }
  .access-form.is-error,
  .access-form.is-error:focus-within { border-color: #f66; }
}

.access-input {
  height: 100%;
  min-width: 0;
  flex: 1 1 0%;
  border: 0;
  background-color: transparent;
  padding: 0 12px 0 20px;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-primary, #282828);
  outline: none;
  opacity: 0;
  transition: opacity 75ms cubic-bezier(.23, 1, .32, 1) 0ms;
}
/* The placeholder is this field's only visible label, so it gets 4.7:1 (AA) instead of the design's tertiary .4 (2.8:1). */
.access-input::placeholder { color: rgb(0 0 0 / .55); opacity: 1; }
.access[data-state="open"] .access-input,
.access[data-state="submitting"] .access-input {
  opacity: 1;
  transition: opacity .15s cubic-bezier(.23, 1, .32, 1) 50ms;
}
.access-input:disabled { cursor: default; }

/* submit circle: WaitlistArrowButton, aspect-square h-full (43 inside the border) */
.access-submit {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  height: 100%;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: var(--surface-inverse, #242424);
  color: var(--text-inverse, #fcfcfc);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease, scale .15s ease;
}
.access-submit:disabled { pointer-events: none; opacity: 1; }      /* data-[disabled]:opacity-100! */
@media (hover: hover) {
  .access-submit:hover { background-color: var(--surface-inverse-hover, rgb(0 0 0 / .9)); }
}
.access-submit:active { background-color: var(--tonal-100, #000); scale: .99; transition-duration: 50ms; }

/* arrow (16) and spinner (22) share one 24 px cell */
.access-icons,
.wl-go-icons {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}
.access-icons > svg,
.wl-go-icons > svg {
  grid-area: 1 / 1;
  transition: opacity .15s cubic-bezier(.23, 1, .32, 1), transform .15s cubic-bezier(.23, 1, .32, 1);
}
.access-icons .wl-i-arrow { width: 16px; height: 16px; }
.wl-spinner { width: 22px; height: 22px; opacity: 0; transform: scale(.9); }
.access[data-state="submitting"] .wl-i-arrow,
.wl-go[aria-busy="true"] .wl-i-arrow { opacity: 0; transform: translateX(2px) scale(.9); }
.access[data-state="submitting"] .wl-spinner,
.wl-go[aria-busy="true"] .wl-spinner { opacity: 1; transform: scale(1); }
.access[data-state="submitting"] .wl-spinner > *,
.wl-go[aria-busy="true"] .wl-spinner > * { animation: wl-spin 1s linear infinite; transform-origin: 12px 12px; transform-box: view-box; }
@keyframes wl-spin { to { transform: rotate(360deg); } }

/* error bubble under the open field (kept visible by the clip-path's -64px bottom inset) */
.access-error {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  border: 1px solid var(--border-subtle, rgb(0 0 0 / .08));
  border-radius: 0;
  background-color: var(--surface-primary, #fcfcfc);
  padding: 8px 12px;
  font-size: 12px;
  line-height: 18px;
  color: #cc3333;                   /* error text 5:1 (AA); the border stays #f66 */
}

/* self-contained helpers (same as the shell's .sr-only / .focus-ring) */
.access .sr-only,
.wl-portal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}
.access-button,
.access-submit { outline: 1px solid transparent; }
.access-button:focus-visible,
.access-submit:focus-visible { outline-color: var(--focus-ring, #000); outline-offset: 2px; }

/* honeypot: off-screen, never focusable by keyboard, hidden from assistive tech */
.wl-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ======================================================================
   Waitlist dialog (appended to <body>)
   ====================================================================== */

.wl-portal { font-family: var(--font-sans, "Geist", ui-sans-serif, system-ui, sans-serif); color: var(--text-primary, #282828); }
html.wl-locked { overflow: hidden; }
html.wl-locked.wl-gutter { scrollbar-gutter: stable; }

/* backdrop: black 35 % + 4 px blur, fades 200 ms ease-out (exit 150 ms) */
.wl-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgb(0 0 0 / .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity .2s cubic-bezier(0, 0, .2, 1);
}
.wl-portal[data-starting] .wl-backdrop,
.wl-portal[data-ending] .wl-backdrop { opacity: 0; }
.wl-portal[data-ending] .wl-backdrop { transition-duration: .15s; }

/* completion sweep: ltr band, #51a6f5 -> #75db84, 1.1 s + .7 s fade */
.wl-sweep {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}
.wl-sweep-band {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 60vw;
  background: linear-gradient(90deg,
    rgb(81 166 245 / 0) 0%,
    rgb(81 166 245 / .38) 35%,
    rgb(117 219 132 / .38) 65%,
    rgb(117 219 132 / 0) 100%);
  transform: translateX(-60vw);
  opacity: 0;
}

/* viewport: full-screen flex column the panel centres in (>=768); the drawer anchors bottom (<768) */
.wl-viewport {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.wl-popup {
  pointer-events: auto;
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid var(--border-default, rgb(0 0 0 / .10));
  border-radius: 4px;                       /* rounded-sm, no shadow */
  background-color: var(--surface-primary, #fcfcfc);
  outline: none;
  font-family: var(--font-sans, "Geist", ui-sans-serif, system-ui, sans-serif);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary, #282828);
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
}

/* <768: bottom drawer, 100dvh - 92px, p-5, slides up 200 ms ease-out (150 ms out), swipe to close */
@media (max-width: 767.98px) {
  .wl-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
    padding: 20px;
    transform: translateY(var(--wl-swipe, 0px));
    transition: transform .2s cubic-bezier(0, 0, .2, 1);
    touch-action: pan-x pinch-zoom;   /* vertical drags swipe the drawer; pinch zoom still works */
  }
  .wl-portal[data-starting] .wl-popup,
  .wl-portal[data-ending] .wl-popup { transform: translateY(100%); }
  .wl-portal[data-ending] .wl-popup { transition-duration: .15s; }
  .wl-popup[data-swiping] { transition: none; }
  .wl-popup textarea, .wl-ms-list { touch-action: pan-y; }
  /* the body is a scroll container, so it restates the drawer's touch-action (a scroller does not
     inherit its ancestors' restriction). When it overflows it pans natively instead, and
     swipe-to-close then starts on the header or footer. */
  .wl-body { touch-action: pan-x pinch-zoom; }
  .wl-body.is-scrollable { touch-action: pan-y pinch-zoom; }
}

/* >=768: centred modal, max 768 wide, 786 tall (max 100dvh - 4rem, min 480), p-8; scale .95 -> 1 + fade, 200 ms (150 out) */
@media (min-width: 768px) {
  .wl-viewport {
    overflow-y: auto;
    transition: opacity .2s cubic-bezier(0, 0, .2, 1), scale .2s cubic-bezier(0, 0, .2, 1);
  }
  .wl-portal[data-starting] .wl-viewport,
  .wl-portal[data-ending] .wl-viewport { opacity: 0; scale: .95; }
  .wl-portal[data-ending] .wl-viewport { transition-duration: .15s; }
  .wl-popup {
    margin: auto;
    height: 786px;
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    min-height: 480px;
    max-width: 768px;
    padding: 32px;
  }
}
/* very short viewports (landscape phones, small windows): let the panel fit, its body scrolls */
@media (max-height: 520px) {
  .wl-popup { min-height: 0; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
}
@media (max-width: 767.98px) and (max-height: 520px) {
  .wl-popup { height: calc(100vh - 1rem); height: calc(100dvh - 1rem); }
}

/* ---------- buttons (primary / secondary; small 34 / medium 44; square corners in the dialog) ---------- */
.wl-btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  outline: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease, scale .15s ease;
}
.wl-btn:focus-visible { outline-color: var(--focus-ring, #000); outline-offset: 2px; }
.wl-btn:active { scale: .99; transition-duration: 50ms; }
.wl-btn:disabled,
.wl-btn[aria-disabled="true"] { pointer-events: none; opacity: .5; }   /* busy buttons keep focus (aria-disabled) */
.wl-btn svg { width: 1.125em; height: 1.125em; flex-shrink: 0; }
.wl-btn-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wl-btn--sm { height: 34px; gap: 6px; padding: 0 14px; font-size: 14px; line-height: 21px; }
.wl-btn--md { height: 44px; gap: 8px; padding: 0 16px; font-size: 16px; line-height: 24px; }

.wl-btn--primary { background-color: var(--surface-inverse, #242424); color: var(--text-inverse, #fcfcfc); }
.wl-btn--primary .wl-btn-label { font-weight: 500; }
@media (hover: hover) { .wl-btn--primary:hover { background-color: var(--surface-inverse-hover, rgb(0 0 0 / .9)); } }
.wl-btn--primary:active { background-color: var(--tonal-100, #000); }

.wl-btn--secondary { background-color: var(--surface-pressed, rgb(0 0 0 / .06)); color: var(--text-secondary, #676767); }
.wl-btn--secondary .wl-btn-label { font-weight: 400; }
@media (hover: hover) { .wl-btn--secondary:hover { background-color: rgb(0 0 0 / .08); color: var(--text-primary, #282828); } }
.wl-btn--secondary:active { background-color: rgb(0 0 0 / .10); }

/* icon-only squares: back / forward / close are size-8 (32 px) with invisible hit areas */
.wl-btn--icon { width: 32px; height: 32px; padding: 0; }
.wl-btn--icon::before { content: ""; position: absolute; inset: -6px -4px; pointer-events: inherit; }   /* hit-area-x-1 hit-area-y-1.5 */
.wl-close::before { inset: -6px; }                                                                        /* hit-area-1.5 */

/* ---------- header row: [back, forward] [joining as] [close] ---------- */
.wl-header {
  display: grid;
  min-height: 38px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.wl-header-start { display: flex; align-items: center; gap: 8px; justify-self: start; }
.wl-header-center { position: relative; justify-self: center; min-width: 0; text-align: center; }
.wl-header-end { display: flex; align-items: center; gap: 8px; justify-self: end; }
.wl-joining { display: flex; flex-direction: column; align-items: center; }
.wl-joining-label { font-size: 12px; line-height: 18px; color: var(--text-secondary, #676767); }   /* AA: tertiary is 2.8:1 on #fcfcfc */
.wl-joining-email { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; line-height: 21px; color: var(--text-primary, #282828); }
.wl-notyou {
  margin-top: 2px;
  border: 0;
  border-radius: 4px;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary, #676767);              /* AA (tertiary is 2.8:1) */
  text-decoration: underline;
  text-decoration-color: var(--border-default, rgb(0 0 0 / .10));
  text-underline-offset: 2px;
  outline: 1px solid transparent;
  transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) { .wl-notyou:hover { color: var(--text-primary, #282828); } }
.wl-notyou:focus-visible { outline-color: var(--focus-ring, #000); outline-offset: 2px; }

/* ---------- body: one screen at a time ----------
   The body scrolls when a screen is taller than the space it gets (short or landscape
   viewports); screens keep at least their natural height and centre only when they fit. */
.wl-body {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 0%;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wl-screen { display: flex; min-height: auto; flex: 1 0 auto; flex-direction: column; }
.wl-screen--center { justify-content: center; justify-content: safe center; }
.wl-screen--status { align-items: center; justify-content: center; justify-content: safe center; text-align: center; }
.wl-screen--textarea { gap: 32px; padding-top: 64px; padding-bottom: 32px; }
@media (min-width: 768px) { .wl-screen--textarea { gap: 48px; } }

.wl-form {
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 572px;
  flex-direction: column;
  gap: 32px;
}
.wl-form--select { max-width: 512px; }
@media (min-width: 768px) { .wl-form { gap: 48px; } }

/* question titles: Geist 500, 20/30 (<768) and 24/30 (>=768), balanced, left; each word animated */
.wl-title {
  width: 100%;
  margin: 0;
  text-wrap: balance;
  text-align: left;
  font-family: var(--font-sans, "Geist", ui-sans-serif, system-ui, sans-serif);
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--text-primary, #282828);
  outline: none;
}
.wl-screen--status .wl-title { text-align: center; }
@media (min-width: 768px) { .wl-title { font-size: 24px; line-height: 30px; } }
.wl-word { display: inline-block; white-space: pre; }

/* field row: input, a 0 -> 72 px spacer, and the -> button that slides in at the right */
.wl-row { position: relative; display: flex; align-items: flex-start; }
.wl-row--center { align-items: center; z-index: 100; }
.wl-row.is-shaking { animation: wl-shake .4s ease-in-out; }
@keyframes wl-shake {
  0%, 100% { transform: translate(0); }
  15% { transform: translate(-8px); }
  30% { transform: translate(7px); }
  45% { transform: translate(-5px); }
  60% { transform: translate(3px); }
  75% { transform: translate(-2px); }
}
.wl-field { position: relative; width: 100%; min-width: 0; }
.wl-spacer { width: 0; flex-shrink: 0; }
.wl-go-wrap { position: absolute; top: 0; right: 0; }
.wl-row--center .wl-go-wrap { top: 0; bottom: 0; display: flex; align-items: center; }
.wl-go-holder { display: flex; }

/* input-ring: 1 px rgba(0,0,0,.1) ring drawn with box-shadow; focus = 2 px #51a6f5 at 60 %;
   invalid = 2 px #f66; valid + filled = 2 px #75db84 (glow width 0 in the dialog) */
.wl-ring {
  --wl-stroke: var(--border-default, rgb(0 0 0 / .10));
  --wl-stroke-w: 1px;
  box-shadow: 0 0 0 var(--wl-stroke-w) var(--wl-stroke);
  transition: box-shadow .15s ease;
}
.wl-ring:focus-within,
.wl-ring:focus { --wl-stroke: rgb(81 166 245 / .6); --wl-stroke-w: 2px; }
.wl-ring.is-valid { --wl-stroke: #75db84; --wl-stroke-w: 2px; }
.wl-ring.is-invalid,
.wl-ring.is-invalid:focus { --wl-stroke: #f66; --wl-stroke-w: 2px; }

.wl-input {
  display: block;
  height: 45px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: var(--surface-primary, #fcfcfc);
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 21px;
  color: var(--text-primary, #282828);
  caret-color: #51a6f5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.wl-input::placeholder { color: var(--text-tertiary, rgb(0 0 0 / .4)); opacity: 1; }
@media (min-width: 768px) { .wl-input { height: 48px; line-height: 24px; } }

/* the -> button (WaitlistArrowButton): 64 x 45 (48 at >=768), 24 px arrow */
.wl-go { width: 64px; height: 45px; padding: 0; }
@media (min-width: 768px) { .wl-go { height: 48px; } }
.wl-go .wl-i-arrow { width: 24px; height: 24px; }
.wl-go[aria-busy="true"] { opacity: 1; }

/* messages under the field: error, toast, typo suggestion (px-4 / md:px-6, with a 72 px gutter) */
.wl-msgs { display: flow-root; }
.wl-msg-row { margin-top: 12px; display: flex; width: 100%; }
.wl-msg { display: flex; min-width: 0; flex: 1 1 0%; padding: 0 16px; }
.wl-msg p { max-width: 100%; margin: 0; text-align: left; font-size: 14px; line-height: 21px; color: #cc3333; }   /* AA error text */
.wl-msg-gutter { width: 72px; flex-shrink: 0; }
.wl-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 16px; text-align: left; }
.wl-suggest p { margin: 0; max-width: 100%; overflow-wrap: break-word; font-size: 14px; line-height: 21px; color: var(--text-secondary, #676767); }   /* AA */
.wl-suggest p span { color: var(--text-primary, #282828); }
.wl-suggest-actions { display: flex; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
@media (min-width: 768px) {
  .wl-msg { padding: 0 24px; }
  .wl-suggest { flex-direction: row; align-items: center; padding: 0 24px; }
}

/* "Skip for now" */
.wl-skip {
  margin-top: 20px;
  border: 0;
  border-radius: 4px;
  background: none;
  padding: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-secondary, #676767);
  text-decoration: underline;
  text-decoration-color: var(--border-default, rgb(0 0 0 / .10));
  text-underline-offset: 4px;
  outline: 1px solid transparent;
  transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) { .wl-skip:hover { color: var(--text-primary, #282828); } }
.wl-skip:focus-visible { outline-color: var(--focus-ring, #000); outline-offset: 2px; }
.wl-skip:disabled { cursor: default; }

/* ---------- multiselect: select-like trigger + inline listbox popup ---------- */
.wl-ms-trigger {
  display: flex;
  height: 45px;
  width: 100%;
  align-items: center;
  border: 0;
  border-radius: 0;
  background-color: var(--surface-primary, #fcfcfc);
  padding: 0 16px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  line-height: 21px;
  color: var(--text-primary, #282828);
  outline: none;
}
@media (min-width: 768px) { .wl-ms-trigger { height: 48px; line-height: 24px; } }
.wl-ms-value { min-width: 0; flex: 1 1 0%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-ms-value[data-placeholder] { color: var(--text-secondary, #676767); }   /* AA: it reads as an instruction, not a hint */
.wl-ms-icon { margin-left: 8px; display: flex; flex-shrink: 0; color: rgb(0 0 0 / .4); }
.wl-ms-icon svg { width: 20px; height: 20px; }

.wl-ms-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: .5px solid var(--border-strong, rgb(0 0 0 / .20));
  border-radius: 0;
  background-color: var(--surface-primary, #fcfcfc);
  box-shadow: none;
  outline: none;
  transform-origin: top center;
  transition: opacity .2s cubic-bezier(0, 0, .2, 1), scale .2s cubic-bezier(0, 0, .2, 1);
}
.wl-ms-pop[data-starting],
.wl-ms-pop[data-ending] { opacity: 0; scale: .95; }
.wl-ms-pop[data-ending] { transition-duration: .15s; }
.wl-ms-list {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  outline: none;
}
.wl-ms-item {
  display: flex;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary, #282828);
  outline: none;
}
@media (min-width: 768px) { .wl-ms-item { padding: 12px 16px; } }
.wl-ms-item.is-active { background-color: var(--surface-hover, rgb(0 0 0 / .04)); }
.wl-ms-item-text { min-width: 0; flex: 1 1 0%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-ms-check { margin-left: 8px; display: none; flex-shrink: 0; color: rgb(0 0 0 / .8); }
.wl-ms-check svg { width: 20px; height: 20px; }
.wl-ms-item[aria-selected="true"] .wl-ms-check { display: flex; }

/* ---------- textarea (fills the body height; arrow-up submit at bottom-right) ---------- */
.wl-ta-block { display: flex; min-height: 0; flex: 1 1 0%; flex-direction: column; }
.wl-ta-wrap { position: relative; display: flex; min-height: 0; flex: 1 1 0%; flex-direction: column; }
.wl-ta-box {
  position: relative;
  height: 100%;
  min-height: 86px;
  flex: 1 1 0%;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background-color: var(--surface-primary, #fcfcfc);
}
.wl-textarea {
  display: block;
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary, #282828);
  outline: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wl-textarea::placeholder { color: var(--text-tertiary, rgb(0 0 0 / .4)); opacity: 1; }
.wl-ta-action { position: absolute; right: 24px; bottom: 24px; }
.wl-ta-submit { width: 40px; height: 40px; padding: 0; }
.wl-hint { margin: 12px 0 0; padding: 0 8px; text-align: left; font-size: 14px; line-height: 21px; color: var(--text-secondary, #676767); }   /* AA */

/* ---------- confirmation and done ---------- */
.wl-check { display: block; width: 48px; height: 48px; color: #0bcc29; overflow: visible; }
.wl-check circle { transform-box: fill-box; transform-origin: center; }
.wl-status-title { margin: 32px 0 0; }
.wl-screen--done .wl-status-title { margin-top: 0; }
/* Informative dialog text uses the secondary grey (5.5:1) instead of the design's tertiary rgb(0 0 0 / .4) (2.8:1): WCAG AA. */
.wl-status-text { margin: 16px 0 0; max-width: 384px; font-size: 16px; line-height: 24px; color: var(--text-secondary, #676767); }
.wl-status-text + .wl-status-text { margin-top: 8px; }
.wl-actions { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .wl-actions { flex-direction: row; } }

/* toast for non-text screens: rounded pill, #f66 at 10 %, 6 s */
.wl-toast-wrap {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 20;
  display: flex;
  justify-content: center;
}
.wl-toast { border-radius: 9999px; background-color: rgb(255 102 102 / .1); padding: 12px 24px; }
.wl-toast span { font-size: 14px; line-height: 21px; color: #cc3333; }   /* AA error text, also on the tinted pill */

/* ---------- footer: FormProgress, two steps with 20 px rings ---------- */
.wl-footer { display: flex; align-items: center; justify-content: center; padding-bottom: 24px; }
@media (min-width: 768px) { .wl-footer { padding-bottom: 0; } }
.wl-progress { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.wl-step { display: flex; align-items: center; gap: 8px; }
.wl-pr { position: relative; display: block; width: 20px; height: 20px; flex-shrink: 0; }
.wl-pr > svg { display: block; }
.wl-pr-base { width: 20px; height: 20px; }
.wl-pr-track { color: var(--border-default, rgb(0 0 0 / .10)); }
.wl-pr-fill {
  color: var(--text-primary, #282828);
  transition: stroke-dashoffset .3s ease-in-out, opacity .3s ease-in-out;
}
.wl-pr-fill.is-empty { opacity: 0; }
.wl-pr-done {
  position: absolute;
  inset: -2px;
  width: 24px;
  height: 24px;
  color: #0bcc29;
  scale: .5;
  opacity: 0;
  transition: scale .15s cubic-bezier(0, 0, .2, 1) 0ms, opacity .15s cubic-bezier(0, 0, .2, 1) 0ms;
}
.wl-pr-done path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .15s cubic-bezier(0, 0, .2, 1) 0ms; }
.wl-step.is-complete .wl-pr-done {
  scale: 1;
  opacity: 1;
  transition: scale .2s cubic-bezier(.34, 1.56, .64, 1) .3s, opacity .2s cubic-bezier(.34, 1.56, .64, 1) .3s;
}
.wl-step.is-complete .wl-pr-done path { stroke-dashoffset: 0; transition: stroke-dashoffset .2s cubic-bezier(0, 0, .2, 1) 450ms; }
.wl-step-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--text-secondary, #676767);              /* AA (tertiary is 2.8:1) */
  transition: color .15s ease;
}
.wl-step.is-on .wl-step-label { font-weight: 500; color: var(--text-primary, #282828); }

/* ---------- reduced motion: no transitions, no shake (the spinner keeps turning) ---------- */
@media (prefers-reduced-motion: reduce) {
  .access, .access *,
  .wl-portal, .wl-portal * { transition: none !important; }
  .wl-row.is-shaking { animation: none; }
  .wl-sweep { display: none; }
}
