/* The assistant's browser page. Light only.

   One sheet for every copy. What a copy looks like comes from tokens:
   - the house look is the default below (paper and ink, Archivo and Manrope);
   - the one accent is the copy's own colour, set from /api/about when the page loads;
   - a company with its own brand has a small sheet beside this one (brand-<company>.css)
     that replaces the surface, ink, type and masthead tokens. Nothing else is written per copy.

   Every size that takes vertical room reads the smaller of a width and a height
   measure, so the whole desk fits one laptop screen. */
:root {
  /* surfaces and ink */
  --paper: #f9f8f5;
  --paper-deep: #f1efe9;
  --card: #ffffff;
  --ink-rgb: 12 19 31;
  --ink: rgb(var(--ink-rgb));
  --ink-04: rgb(var(--ink-rgb) / 0.04);
  --ink-08: rgb(var(--ink-rgb) / 0.08);
  --ink-28: rgb(var(--ink-rgb) / 0.28);
  --ink-62: rgb(var(--ink-rgb) / 0.66);
  --ink-82: rgb(var(--ink-rgb) / 0.84);
  --ink-hover: rgb(var(--ink-rgb) / 0.86);
  --line: rgb(var(--ink-rgb) / 0.16);

  /* the one accent: buttons, focus, links, what is picked, problems, the wordmark's dot */
  --accent: #c85a32;
  --accent-text: color-mix(in srgb, var(--accent) 84%, black);
  --accent-wash: color-mix(in srgb, var(--accent) 9%, transparent);
  --accent-ring: color-mix(in srgb, var(--accent) 22%, transparent);

  /* masthead */
  --mast-bg: color-mix(in srgb, var(--paper) 95%, transparent);
  --mast-ink: var(--ink);
  --mast-quiet: var(--ink-62);
  --mast-line: var(--line);
  --mast-hover: var(--ink-08);
  --mast-focus: var(--accent);
  --mast-dot: var(--accent);
  --mast-bad: var(--accent-text);

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-statement: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 450;
  --fw-reply: 560;
  --fw-semi: 640;
  --fw-bold: 680;
  --fw-head: 760;
  --track-head: -0.03em;
  --track-tight: -0.012em;

  /* shape and measure */
  --r-card: 12px;
  --r-ctl: 10px;
  --r-sm: 8px;
  --sheet: 78rem;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: clamp(46px, 6.5vh, 56px);
  --fs-body: clamp(0.97rem, min(1.15vw, 2vh), 1.08rem);
  --fs-reply: clamp(1.15rem, min(1.9vw, 3.2vh), 1.6rem);
  --fs-h1: clamp(1.4rem, min(2.4vw, 3.8vh), 1.8rem);
  --fs-h2: clamp(1.1rem, min(1.6vw, 2.7vh), 1.35rem);
  --pad: clamp(16px, min(2.4vw, 3.4vh), 28px);
  --gap: clamp(14px, min(2vw, 2.8vh), 24px);
  --talk: clamp(72px, min(9vw, 12.5vh), 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-text: var(--accent);
    --accent-wash: var(--ink-04);
    --accent-ring: var(--ink-28);
    --mast-bg: var(--paper);
  }
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  background: var(--paper);
}
/* Nothing is drawn until the copy's own look is known, so one copy never flashes another's. */
html.loading body {
  visibility: hidden;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--fw-regular) var(--fs-body) / 1.5 var(--font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
h1,
h2,
p,
ol {
  margin: 0;
  padding: 0;
  max-width: none;
}
h1,
h2 {
  font-weight: var(--fw-head);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
ol {
  list-style: none;
}
b {
  font-weight: var(--fw-bold);
}
:is(section, div, p, button, aside, span, ol, ul, li, a, img)[hidden] {
  display: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
/* The focus ring is the accent, and follows the shape of whatever it is on. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.sheet {
  max-width: var(--sheet);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---- Controls shared by every screen ---- */
.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-ctl);
  padding: 0 22px;
  font-weight: var(--fw-bold);
  min-height: 48px;
  transition: background 0.2s;
}
.primary:hover {
  background: var(--accent-text);
}
.quiet {
  background: none;
  border: 0;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-62);
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.quiet:hover {
  color: var(--ink);
  background: var(--ink-08);
}
.problem {
  color: var(--accent-text);
  font-family: var(--font-statement);
  font-weight: var(--fw-semi);
  text-wrap: balance;
}
input[type="text"],
.type input {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 12px 14px;
  min-width: 0;
}
input::placeholder {
  color: var(--ink-62);
}
input[type="text"]:focus-visible,
.type input:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

/* ---- Masthead ---- */
.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--mast-bg);
  color: var(--mast-ink);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mast-line);
}
.mast .sheet {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 16px);
  min-height: var(--nav-h);
}
.mast :focus-visible {
  outline-color: var(--mast-focus);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
/* A company's own sheet gives this its logo and size; without one it takes no room. */
.brand-mark {
  flex: none;
  background: center / contain no-repeat;
}
.logo {
  font-weight: var(--fw-head);
  letter-spacing: var(--track-head);
  font-size: 1.1rem;
  white-space: nowrap;
}
.logo i {
  font-style: normal;
  color: var(--mast-dot);
}
.conn {
  margin-left: auto;
  font-family: var(--font-statement);
  font-size: 0.9rem;
  color: var(--mast-quiet);
  white-space: nowrap;
}
.conn.bad {
  color: var(--mast-bad);
}
.mast .quiet {
  color: var(--mast-quiet);
}
.mast .quiet:hover {
  color: var(--mast-ink);
  background: var(--mast-hover);
}

/* ---- Connect: one card in the middle of the page ---- */
.pair {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--nav-h) - 1px);
  padding-block: var(--pad);
}
.pair-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 10px 40px rgb(var(--ink-rgb) / 0.08);
  padding: clamp(24px, 4.6vh, 40px) clamp(20px, 4vw, 40px);
  /* Measured in the card's own type, so its two lines of words each fit on one line at any size. */
  width: min(36em, 100%);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: clamp(12px, 2.2vh, 18px);
}
.pair-logo {
  height: 34px;
  width: auto;
  align-self: center;
}
.pair-card h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
}
/* The card's words run its full width; where they must wrap, the lines are evened out. */
.pair-how {
  color: var(--ink-82);
  line-height: 1.45;
  text-wrap: balance;
}
.pair-small {
  font-size: 0.85rem;
  color: var(--ink-62);
  text-wrap: balance;
}
#pair-form {
  --box: clamp(40px, 11vw, 56px);
  --box-gap: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-block: clamp(2px, 0.8vh, 8px);
}
#pair-form .primary {
  width: calc(var(--box) * 6 + var(--box-gap) * 5);
}
/* Six boxes drawn behind one field, so a code can be typed or pasted in one go. */
.code {
  position: relative;
  width: calc(var(--box) * 6 + var(--box-gap) * 5);
  height: clamp(52px, 8vh, 60px);
}
.code-boxes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, var(--box));
  gap: var(--box-gap);
}
.code-boxes i {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-ctl);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
/* The box the next character goes in carries the focus ring. */
.code:focus-within[data-at="0"] i:nth-child(1),
.code:focus-within[data-at="1"] i:nth-child(2),
.code:focus-within[data-at="2"] i:nth-child(3),
.code:focus-within[data-at="3"] i:nth-child(4),
.code:focus-within[data-at="4"] i:nth-child(5),
.code:focus-within[data-at="5"] i:nth-child(6) {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
/* The field is one slot wider than the boxes and cut off at their edge, so the space after
   the sixth character never pushes the first one out of its box. */
.code-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* clip, where the browser has it: a clipped box cannot be scrolled by the caret, a hidden one can */
  overflow: clip;
}
#code {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--box) * 7 + var(--box-gap) * 6);
  border: 0;
  outline: 0;
  background: none;
  padding: 0 0 0 calc((var(--box) - 1ch) / 2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: calc(var(--box) + var(--box-gap) - 1ch);
  text-transform: uppercase;
  color: var(--ink);
  caret-color: var(--accent);
}

/* ---- The desk: the voice bar and the inbox, side by side on a laptop ---- */
.desk {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  padding-block: var(--pad);
  align-items: stretch;
  min-height: calc(100svh - var(--nav-h) - 1px);
}
.bar,
.inbox,
.set-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--pad);
}
.bar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: clamp(10px, 2.2vh, 22px);
}

.talk {
  position: relative;
  width: var(--talk);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.talk svg {
  width: 38%;
  height: 38%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.talk svg rect {
  fill: currentColor;
  stroke: none;
}
.talk:hover {
  background: var(--ink-hover);
}
.talk:focus-visible {
  outline-offset: 4px;
}
.talk .ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.92);
}
.bar.listening .talk {
  background: var(--accent);
  transform: scale(1.04);
}
.bar.listening .talk .ring {
  opacity: 0.55;
  animation: ring 1.3s var(--ease) infinite;
}
.bar.working .talk {
  background: var(--ink-62);
}
@keyframes ring {
  from {
    opacity: 0.6;
    transform: scale(0.94);
  }
  to {
    opacity: 0;
    transform: scale(1.22);
  }
}

.said {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 14px);
  min-height: 0;
  overflow: auto;
}
.hint {
  font-family: var(--font-statement);
  color: var(--ink-62);
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1rem, min(1.4vw, 2.4vh), 1.2rem);
}
.heard {
  font-family: var(--font-statement);
  color: var(--ink-82);
  font-size: clamp(1rem, min(1.3vw, 2.3vh), 1.15rem);
}
.heard::before {
  content: "You said: ";
  color: var(--ink-62);
}
.reply-text {
  font-size: var(--fs-reply);
  line-height: 1.28;
  letter-spacing: var(--track-tight);
  font-weight: var(--fw-reply);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}
.reply-text b {
  font-weight: var(--fw-head);
}
.reply-text a {
  color: var(--accent-text);
  font-weight: var(--fw-semi);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  border-radius: 3px;
}
.reply-text a:hover {
  color: var(--ink);
}
.reply.is-error .reply-text {
  color: var(--accent-text);
}
.reply.is-long .reply-text {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
  font-family: var(--font-statement);
}
.reply.is-long .reply-text b {
  font-weight: var(--fw-bold);
}
.reply.is-progress .reply-text {
  color: var(--ink-62);
  font-weight: var(--fw-regular);
}
/* A reply's picture (the brief's card, a chart): the full width of the reply, and no taller than
   the window can spare, so the words and buttons under it stay in view on a laptop. */
.picture {
  display: block;
  max-width: 100%;
  max-height: clamp(140px, calc(60svh - 200px), 420px);
  width: auto;
  height: auto;
  border-radius: var(--r-ctl);
  margin-bottom: clamp(8px, 1.6vh, 14px);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(10px, 1.8vh, 16px);
}
.links:empty {
  display: none;
}
.links button,
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: var(--fw-semi);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.links button:hover,
.links a:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.links .undo {
  border-color: var(--accent);
  color: var(--accent-text);
}

.type {
  width: 100%;
  display: flex;
  gap: 8px;
}
.type input {
  flex: 1;
  background: var(--paper);
}
.send {
  flex: none;
  width: 48px;
  border-radius: var(--r-ctl);
  border: 0;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.send svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.send:hover {
  background: var(--ink-hover);
}

/* ---- The inbox: one card, one plain list ---- */
.inbox {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inbox h2 {
  font-size: var(--fs-h2);
}
.picked {
  font-family: var(--font-statement);
  color: var(--accent-text);
  font-size: 0.95rem;
  margin-top: 4px;
}
.rows {
  margin: clamp(6px, 1.2vh, 12px) -10px 0;
  overflow: auto;
  min-height: 0;
  display: grid;
  align-content: start;
}
.rows li + li {
  border-top: 1px solid var(--ink-08);
}
.rows button {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: clamp(6px, 1.1vh, 10px) 10px;
  line-height: 1.4;
  transition: background 0.15s;
}
.rows button:hover {
  background: var(--ink-04);
}
.rows button:focus-visible {
  outline-offset: -2px;
}
.rows button[aria-pressed="true"] {
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.rows .from {
  font-weight: var(--fw-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows .when {
  font-family: var(--font-statement);
  color: var(--ink-62);
  font-size: 0.9rem;
}
.rows .subject {
  grid-column: 1 / -1;
  font-family: var(--font-statement);
  color: var(--ink-82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty {
  font-family: var(--font-statement);
  color: var(--ink-62);
  margin-top: 12px;
}

/* a phone, or a narrow window: the bar first, the inbox under it */
@media (max-width: 820px) {
  .desk {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  /* A long reply scrolls inside the bar, so the button and the typing box stay on screen. */
  .bar {
    min-height: min(56svh, 420px);
    max-height: calc(100svh - var(--nav-h) - 2 * var(--pad));
  }
  .rows {
    max-height: none;
  }
  .primary {
    min-height: 52px;
  }
}
@media (min-width: 821px) {
  /* One screen: the bar and the inbox each scroll inside, never the page. */
  .desk {
    height: calc(100svh - var(--nav-h) - 1px);
    grid-template-rows: minmax(0, 1fr);
  }
  .bar {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar.listening .talk .ring {
    animation: none;
    opacity: 0.5;
  }
  .bar.listening .talk {
    transform: none;
  }
}

/* ---- Settings: two columns of cards on a laptop, the same width as the desk. It may scroll. ---- */
.settings {
  padding: var(--pad) 0 clamp(32px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap);
  align-items: start;
}
/* With nothing to show on the right, the left column takes the full width. */
.settings:not(:has(.set-col + .set-col .set-card:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr);
}
.set-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.set-head h1 {
  font-size: clamp(1.5rem, min(2.6vw, 4.4vh), 2.1rem);
  line-height: 1.1;
}
.set-head .quiet {
  margin-right: -9px;
}
.set-col {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}
.set-card h2 {
  font-size: var(--fs-h2);
}
.set-how {
  color: var(--ink-62);
  margin-top: 6px;
}
.set-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-08);
}
.set-list:empty {
  display: none;
}
.set-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-08);
}
.set-list .set-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.set-list .set-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-62);
  margin-top: 2px;
}
.set-list input[type="text"] {
  flex: 1;
  padding: 8px 10px;
}
.set-act {
  background: none;
  border: 0;
  font-size: 0.9rem;
  font-weight: var(--fw-semi);
  color: var(--ink-62);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.set-act:last-child {
  margin-right: -8px;
}
.set-act:hover {
  background: var(--ink-08);
  color: var(--ink);
}
.set-act.danger:hover {
  color: var(--accent-text);
  background: var(--accent-wash);
}
.set-empty {
  margin-top: 14px;
  color: var(--ink-62);
}
.set-add {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.set-add input {
  flex: 1;
}
.set-card .problem {
  margin-top: 12px;
}
.set-facts {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
}
.set-facts dt {
  color: var(--ink-62);
}
.set-facts dd {
  margin: 0;
  font-weight: var(--fw-semi);
  min-width: 0;
  overflow-wrap: anywhere;
}
.set-plain {
  margin: 12px 0 0;
  padding: 0 0 0 1.1em;
  display: grid;
  gap: 8px;
  color: var(--ink-82);
  list-style: disc;
}
@media (max-width: 900px) {
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .set-list li {
    flex-wrap: wrap;
    gap: 2px 6px;
    padding: 10px 0 6px;
  }
  .set-list .set-text {
    flex-basis: 100%;
  }
  .set-list .set-act:first-of-type {
    margin-left: -8px;
  }
  .set-list li:not(:has(.set-act)) {
    padding-bottom: 10px;
  }
  .set-facts {
    gap: 6px 14px;
  }
  .set-add {
    flex-direction: column;
  }
  .set-add .primary {
    min-height: 46px;
  }
  /* The header's buttons stay on one line; a phone shows the short form. */
  .wide-only {
    display: none;
  }
}

/* ---- The invitation page ---- */
.second {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--ink-28);
  border-radius: var(--r-ctl);
  padding: 0 20px;
  min-height: 48px;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.second:hover {
  background: var(--ink-04);
  border-color: var(--ink);
}
.primary:disabled,
.second:disabled {
  opacity: 0.6;
}
.pair-small a {
  color: var(--accent-text);
  font-weight: var(--fw-semi);
}
.join-card {
  width: min(48em, 100%);
}
.join-open,
.join-closed {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vh, 18px);
}
.join-link {
  align-self: center;
}
.join-ways {
  list-style: none;
  margin: clamp(2px, 0.8vh, 8px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  text-align: left;
}
.join-way {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  padding: clamp(12px, 2vh, 16px) clamp(14px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--paper);
}
.join-way h2 {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: var(--track-tight);
}
.join-words p {
  color: var(--ink-62);
  font-size: 0.93rem;
  line-height: 1.4;
  margin-top: 2px;
}
.join-way .primary,
.join-way .second {
  min-width: 13.5em;
  white-space: nowrap;
}
.join-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.join-steps {
  list-style: decimal;
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-82);
}
.join-steps li + li {
  margin-top: 4px;
}
/* The button stays on the right, whichever of the steps or the line about the code is beside it. */
.join-more .primary {
  grid-column: 2;
  grid-row: 1;
}
.join-steps,
.join-note {
  grid-column: 1;
  grid-row: 1;
}
.join-note {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-82);
}
.join-note b {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .join-way,
  .join-more {
    grid-template-columns: 1fr;
  }
  .join-more .primary,
  .join-steps,
  .join-note {
    grid-column: 1;
    grid-row: auto;
  }
  .join-way .primary,
  .join-way .second {
    width: 100%;
    min-width: 0;
  }
}
