:root {
  --outer: #e6e6e3;
  --bg: #f3f3f1;
  --surface: #fff;
  --ink: #0d0d0d;
  --ink-2: #8c8c89;
  --ink-3: #b7b7b3;
  --line: rgb(0 0 0 / 0.09);
  --frame: rgb(0 0 0 / 0.14); /* the desktop frame's border */
  --tint: rgb(0 0 0 / 0.055); /* inline code */
  --on-ink: #fff; /* glyphs on an ink-colored button */
  --disabled: #e3e3e0;
  --sticker: #fff; /* the border around a screenshot */
  color-scheme: light;

  --pad: 22px;
  --top: 76px; /* where content starts, below the top buttons */
  --composer-h: 56px; /* kept in sync by app.js */
  --view-h: 852px; /* kept in sync by app.js */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  /* Lightly underdamped spring (about 12% overshoot) for the screenshots popping in. */
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* Set by boot.js: the system's setting, unless ?theme=light or ?theme=dark overrides it. */
:root[data-theme='dark'] {
  --outer: #0a0a09;
  --bg: #161615;
  --surface: #272725;
  --ink: #f1f1ee;
  --ink-2: #92928d;
  --ink-3: #5f5f5b;
  --line: rgb(255 255 255 / 0.1);
  --frame: rgb(255 255 255 / 0.14);
  --tint: rgb(255 255 255 / 0.09);
  --on-ink: #161615;
  --disabled: #3a3a37;
  --sticker: #f1f1ee;
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(
      0, 0.04, 0.142, 0.281, 0.435, 0.589, 0.731, 0.853, 0.953, 1.028, 1.079, 1.111, 1.125, 1.125, 1.116, 1.101,
      1.082, 1.062, 1.043, 1.027, 1.012, 1.001, 0.993, 0.988, 0.985, 0.984, 0.985, 0.986, 1
    );
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  display: grid;
  place-items: center;
  background: var(--outer);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Frame ---------- */

.phone {
  position: relative;
  width: 393px;
  height: min(852px, 100dvh - 40px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border: 1px solid var(--frame);
  border-radius: 46px;
  --drawer-w: 82cqw;
}
@media (max-width: 520px) {
  body {
    place-items: start stretch;
    background: var(--bg);
  }
  /* Pinned to the visible area, which shrinks and shifts when the keyboard opens (see app.js). */
  .phone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--vvh, 100dvh);
    transform: translateY(var(--vvt, 0px));
    border: 0;
    border-radius: 0;
  }
}

.top {
  position: absolute;
  z-index: 5;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.icon-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  transition: transform 160ms ease-out;
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn svg,
.jump svg,
.send svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Transcript ---------- */

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: calc(var(--top) + env(safe-area-inset-top)) var(--pad) calc(var(--composer-h) + 40px + env(safe-area-inset-bottom));
  /* Content fades out under the top buttons and behind the composer. */
  mask-image: linear-gradient(
    to bottom,
    transparent 52px,
    #000 var(--top),
    #000 calc(100% - var(--composer-h) - 40px),
    transparent calc(100% - var(--composer-h) - 8px)
  );
}
.scroll::-webkit-scrollbar {
  display: none;
}

/* Threads that are not on screen stay in the document. Taking them out would replay every
   entrance animation when they come back; this way a thread just fades in as a whole. */
.thread {
  animation: fade 220ms ease-out;
}
.thread[hidden] {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  animation: none;
}

.exchange {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exchange + .exchange {
  margin-top: 28px;
}
/* The newest exchange is at least one screen tall, so its message can sit at the top
   while the reply grows beneath it. */
.exchange:last-child {
  min-height: calc(var(--view-h) - var(--top) - var(--composer-h) - 40px);
}

.user {
  align-self: flex-end;
  max-width: 84%;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: rise 320ms var(--ease-out) backwards;
}

.turn {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Prose: plain text on the page. Each word fades in as it is revealed. */
.prose {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0;
}
.prose p + p {
  margin-top: 0.7em;
}
.prose strong {
  font-weight: 600;
}
.prose code {
  padding: 0.1em 0.36em;
  border-radius: 6px;
  background: var(--tint);
  font: 0.86em ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0;
}
.w {
  animation: fade 480ms ease-out backwards;
}

/* ---------- Progress ---------- */

/* One quiet row per step: shimmering in the present tense while it runs, gray in the
   past tense once done. Tapping a row shows the work behind it. */
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fade 240ms ease-out backwards;
}
.step + .step {
  margin-top: -10px;
}
.step-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font-size: 16px;
  text-align: left;
}
.step-head:disabled {
  cursor: default;
}
.chev {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}
/* A step that finished without any work to show has nothing to open. */
.step-head:disabled .chev {
  visibility: hidden;
}
.step.open .chev {
  transform: rotate(90deg);
}

.shimmer {
  color: transparent;
  background: linear-gradient(90deg, var(--ink-3) 0 40%, var(--ink) 50%, var(--ink-3) 60% 100%) 100% 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 1.7s linear infinite;
}

.step-body,
.account-body,
.numbers-fold {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 260ms var(--ease-out);
}
.step.open .step-body,
.account.open .account-body,
.numbers-fold.open {
  grid-template-rows: 1fr;
}
.step-body > div,
.account-body > div,
.numbers-fold > div {
  min-height: 0;
  overflow: hidden;
}
.tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 12px 1px;
  padding-left: 13px;
  border-left: 1.5px solid var(--line);
  font: 12.5px/1.45 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0;
  color: var(--ink-2);
}
.tool {
  display: flex;
  gap: 8px;
  animation: fade 240ms ease-out backwards;
}
.tool .verb {
  flex: none;
  color: var(--ink-3);
}
.tool .arg {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool .meta {
  flex: none;
  margin-left: auto;
  color: var(--ink-3);
}

.working {
  align-self: flex-start;
  min-height: 34px;
  display: flex;
  align-items: center;
  font-size: 16px;
  animation: shimmer 1.7s linear infinite, fade 240ms ease-out backwards;
}
.working.late {
  animation: shimmer 1.7s linear infinite, fade 700ms ease-in backwards;
}
.working[hidden] {
  display: none;
}
.step + .working {
  margin-top: -10px;
}
.note {
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Screenshots ---------- */

/* Screens arrive as a row of stickers: white border, slight tilt, popping in one after another. */
.shots {
  display: flex;
  justify-content: flex-start;
  padding: 10px 4px 14px;
}
.shot {
  position: relative;
  flex: none;
  width: 31%;
  aspect-ratio: 390 / 844;
  padding: 0;
  border: 4px solid var(--sticker);
  border-radius: 20px;
  background: var(--sticker);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 26px -10px rgb(0 0 0 / 0.22);
  overflow: hidden;
  cursor: zoom-in;
  rotate: var(--r);
  translate: 0 var(--y);
  animation: pop 620ms var(--spring) backwards;
  animation-delay: calc(var(--i) * 90ms);
  transition: scale 160ms ease-out;
}
.shot:active {
  scale: 0.97;
}
.shot + .shot {
  margin-left: -1.5%;
}
.shots[data-n='1'] .shot {
  width: 46%;
}
.shots[data-n='2'] .shot {
  width: 38%;
}
.shots[data-n='4'] .shot {
  width: 26%;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.shot.lifted {
  visibility: hidden;
}

.lightbox {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-out;
}
.lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 260ms ease-out;
}
.lightbox.open::before {
  opacity: 1;
}
.lightbox img {
  position: relative;
  height: min(78cqh, (100cqw - 72px) * 844 / 390);
  aspect-ratio: 390 / 844;
  border: 6px solid var(--sticker);
  border-radius: 38px;
  background: var(--sticker);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.06), 0 30px 60px -20px rgb(0 0 0 / 0.3);
}
.phone {
  container-type: size;
}

/* ---------- Install with AppDrop ---------- */

.install {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px 0 12px;
  border-radius: 23px;
  background: linear-gradient(#5c9df8, #3579f7); /* AppDrop's icon gradient */
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: rise 360ms var(--ease-out) backwards;
  transition: transform 160ms ease-out;
}
.install:active {
  transform: scale(0.97);
}
.appdrop-mark {
  flex: none;
  width: 22px;
  height: 22px;
}

/* ---------- Menu ---------- */

/* The chat slides aside to uncover the menu beneath it: threads on the page, and the
   account docked at the bottom, where the composer sits in the chat. */
.stage,
.scrim {
  position: absolute;
  inset: 0;
  transition: transform 300ms var(--ease-sheet);
}
.stage {
  z-index: 1;
  background: var(--bg);
  box-shadow: -1px 0 0 var(--line);
}
.scrim {
  z-index: 2;
  padding: 0;
  border: 0;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  transition: transform 300ms var(--ease-sheet), opacity 300ms ease-out, visibility 0s 300ms;
}
.menu-open .stage,
.menu-open .scrim {
  transform: translateX(var(--drawer-w));
  transition-duration: 420ms;
}
.menu-open .scrim {
  opacity: 0.55;
  visibility: visible;
  transition-delay: 0s;
}

.drawer {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--drawer-w);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-28px);
  transition: transform 300ms var(--ease-sheet), opacity 200ms ease-out, visibility 0s 300ms;
}
.menu-open .drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 420ms var(--ease-sheet), opacity 320ms ease-out;
}

.threads {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: calc(26px + env(safe-area-inset-top)) 10px 32px;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}
.threads::-webkit-scrollbar {
  display: none;
}
.group {
  margin: 22px 0 4px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
}
.group:first-child {
  margin-top: 0;
}
.thread-row,
.account-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  text-align: left;
  transition: transform 160ms ease-out;
}
.thread-row:active,
.account-row:active {
  transform: scale(0.98);
}
.thread-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The open thread sits on a white bubble, like a message in the chat. */
.thread-row[aria-current] {
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.account {
  flex: none;
  margin: 0 12px calc(12px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.03), 0 10px 30px -14px rgb(0 0 0 / 0.16);
  overflow: hidden;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px 8px 8px;
  border: 0;
  border-radius: 28px;
  background: none;
  text-align: left;
}
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  font-weight: 500;
}
.who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who span:last-child {
  font-size: 13px;
  color: var(--ink-2);
}
.account .chev {
  transform: rotate(-90deg);
}
.account.open .chev {
  transform: rotate(90deg);
}
.account-rows {
  margin: 0 20px;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--line);
}
.account-row {
  justify-content: space-between;
  margin: 0 -12px;
  width: calc(100% + 24px);
  font-size: 16px;
}
.account-row span + span {
  color: var(--ink-2);
}

/* ---------- Empty state ---------- */

.empty {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--composer-h) + 52px + env(safe-area-inset-bottom));
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.empty[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s 180ms;
}
.empty h1,
.auth h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.empty h1 span,
.auth h1 span {
  display: block;
  color: var(--ink-3);
}
.empty p,
.auth p {
  margin: 14px 0 22px;
  max-width: 19em;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.chip {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 15px;
  font-weight: 500;
  transition: transform 160ms ease-out;
}
.chip:active {
  transform: scale(0.97);
}

/* ---------- Sign in ---------- */

/* Two views over everything else, laid out like the chat: words at the bottom left, the one
   action where the composer sits. boot.js and app.js set data-user once someone is signed in. */
.auth {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--bg);
  transition: opacity 260ms ease-out;
}
:root[data-user] .auth {
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms ease-out, visibility 0s 260ms;
}
.auth-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(40px + env(safe-area-inset-top)) var(--pad) calc(12px + env(safe-area-inset-bottom));
  transition: opacity 320ms ease-out 100ms, transform 320ms var(--ease-out) 100ms;
}
.auth-view[hidden] {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease-out, visibility 0s 140ms;
}
.auth p {
  margin-bottom: 0;
}

/* The same stickers the agent sends, as the picture of what signing in gets you. */
.auth-hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}
.auth-hero .shots {
  width: 100%;
  justify-content: center;
}
.auth-hero .shot {
  width: 35%;
}
.auth-hero .shot + .shot {
  margin-left: -3%;
}

.expo-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  margin: 30px -10px 0;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  transition: transform 160ms ease-out;
}
.expo-btn:active {
  transform: scale(0.97);
}
.expo-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* The line under the headline says what is happening, at the size of the logged-out view's
   second line, so the two views share one hierarchy: headline, line, action. */
.auth-status {
  align-self: flex-start;
}
/* The numbers to pick from: three tiles that arrive the way screenshots do. The fold clips
   what it hides, so it runs edge to edge and leaves room below for the tiles' shadows. */
.numbers-fold {
  width: auto;
  margin: 0 calc(-1 * var(--pad));
  transition: grid-template-rows 260ms var(--ease-out), margin-bottom 260ms var(--ease-out);
}
.numbers-fold.open {
  margin-bottom: -24px; /* the shadow room below the tiles doubles as the gap to Cancel */
}
.auth-open {
  margin-top: 20px;
  text-decoration: none;
}
.auth-open[hidden] {
  display: none;
}
.number-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.number-input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 26px -10px rgb(0 0 0 / 0.22);
  outline: none;
}
.number-input:focus {
  box-shadow: 0 0 0 2px var(--ink), 0 10px 26px -10px rgb(0 0 0 / 0.22);
}
.number-submit {
  flex: none;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 16px;
  font-weight: 500;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}
.number-submit:disabled {
  opacity: 0.4;
}
.number-submit:active:not(:disabled) {
  transform: scale(0.97);
}
.numbers {
  display: flex;
  gap: 10px;
  padding: 16px calc(var(--pad) + 4px) 36px;
}
.number {
  flex: 1;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 10px 26px -10px rgb(0 0 0 / 0.22);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  rotate: var(--r);
  translate: 0 var(--y);
  animation: pop 620ms var(--spring) backwards;
  animation-delay: calc(100ms + var(--i) * 90ms);
  transition: scale 160ms ease-out, opacity 240ms ease-out;
}
.number:not(:disabled):active {
  scale: 0.95;
}
.number:disabled {
  cursor: default;
}
.number:disabled:not(.picked) {
  opacity: 0.3;
}
/* Cancel takes the slot the sign-in button had, as plain text: it is the way out, not the task. */
.text-btn {
  flex: none;
  height: 56px;
  margin: 30px -10px 0;
  border: 0;
  border-radius: 28px;
  background: none;
  font-weight: 500;
  transition: transform 160ms ease-out;
}
.text-btn:active {
  transform: scale(0.97);
}

/* ---------- Jump to latest ---------- */

.jump {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(var(--composer-h) + 26px + env(safe-area-inset-bottom));
  width: 36px;
  height: 36px;
  margin-left: -18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.04), 0 6px 16px -6px rgb(0 0 0 / 0.2);
  transition: opacity 180ms ease-out, transform 180ms var(--ease-out);
}
.jump svg {
  width: 18px;
  height: 18px;
}
.jump:active {
  transform: scale(0.92);
}
.jump[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s 140ms;
}

/* ---------- Composer ---------- */

.composer {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.03), 0 10px 30px -14px rgb(0 0 0 / 0.16);
}
.composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: none;
  line-height: 24px;
}
.composer textarea::placeholder {
  color: var(--ink-3);
}
.send {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  transition: transform 160ms ease-out, background-color 200ms ease;
}
.send:disabled {
  background: var(--disabled);
  cursor: default;
}
.send:not(:disabled):active {
  transform: scale(0.92);
}
.send svg {
  position: absolute;
  inset: 9px;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}
.send .icon-stop {
  fill: currentColor;
  stroke: none;
}
.send .icon-stop,
.send[data-mode='stop'] .icon-send {
  opacity: 0;
  transform: scale(0.6);
  filter: blur(3px);
}
.send[data-mode='stop'] .icon-stop {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Motion ---------- */

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    scale: 0.8;
    rotate: 0deg;
    translate: 0 18px;
  }
}
@keyframes shimmer {
  to {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer {
    animation: none;
    color: var(--ink-2);
    background: none;
  }
  .working {
    animation: none;
  }
  .shot,
  .number,
  .user {
    animation-name: fade;
    animation-duration: 200ms;
    animation-timing-function: ease;
  }
  .step-body,
  .account-body,
  .numbers-fold,
  .chev,
  .stage,
  .scrim {
    transition: none;
  }
  .drawer {
    transform: none;
  }
}
