/* Gabarito and Hanken Grotesk, from @fontsource-variable 5.3.0. See fonts/OFL.txt. */
@font-face {
  font-family: "Gabarito";
  src: url("/assets/fonts/gabarito-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens. Each pair is light, then dark. The device picks one, and theme.ts can fix it with
   data-theme. In the dark, --navy is the ink and the strong fill, so it turns light, and --on-navy
   is the text on that fill. */
:root {
  color-scheme: light dark;
  --navy: light-dark(#0b2239, #eef2f6);
  --on-navy: light-dark(#fff, #0b2239);
  /* The main buttons: navy by day, off-white at night. */
  --fill: light-dark(#0b2239, #e9eef4);
  --fill-hover: light-dark(#17335c, #ffffff);
  --on-fill: light-dark(#fff, #0b2239);
  --blue: #1f6bff;
  /* The live map: a navy sea, blue dots of land and the brand's yellow for people. */
  --map-sea: light-dark(#0b2239, #08182a);
  --map-land: light-dark(#2f5d93, #2a5283);
  --map-dot: #ffc917;
  /* Text on the map's white chips and cards, and on its yellow dots, in both themes. */
  --map-ink: #0b2239;
  --map-ink-mute: #44546a;
  /* Focus: the navy (off-white at night) for the line, and the warm sand for a field's halo. */
  --focus: var(--navy);
  --focus-halo: light-dark(#e8e6e0, #243344);
  --blue-deep: light-dark(#1457d6, #8ab8ff);
  /* Links: an ocean blue between the navy and the brand blue, calmer than a browser's default. */
  --link: light-dark(#2a5d94, #9cc3f5);
  --red: #e5352b;
  --red-deep: #bf241b;
  --cream: #fff8df;
  /* Found words: every match, and the matches in the message the find bar shows. */
  --mark: light-dark(#ffe9a3, #5a4a10);
  --mark-now: #ffc917;
  --line: light-dark(#e6e4dd, #263443);
  --text: light-dark(#44546a, #b9c5d2);
  --mute: light-dark(#5f6e80, #8e9cad);
  /* Labels and secondary text that must read stronger than --text. */
  --text-strong: light-dark(#3b4658, #d3dbe4);
  --green: light-dark(#0f8a5f, #3fcf98);
  --bad: light-dark(#c62a21, #ff8077);
  --bad-soft: light-dark(#fdeceb, #3b2028);
  --bad-line: light-dark(#f2c4c0, #6e3036);
  --tile-blue: light-dark(#e6ecf3, #1f3147);
  --tile-peach: light-dark(#f3e8e4, #3a2a2b);
  --tile-yellow: light-dark(#f1ecdb, #383220);
  --tile-mint: light-dark(#e3eee9, #1b3833);
  /* The busiest hours, from few to many: pale to deep blue by day, dim to bright at night. */
  --heat-1: light-dark(#d6e4ff, #1d3558);
  --heat-2: light-dark(#9dbdff, #24508f);
  --heat-3: light-dark(#5b8fff, #3a74d6);
  --heat-4: light-dark(#1f5ad6, #7fb0ff);
  --display: "Gabarito", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rail: 208px;
  /* Around the panel: warm paper grey, or the night. */
  --sky: light-dark(#f3f2ee, #0b141d);
  /* The panel, cards, menus and fields. */
  --surface: light-dark(#fff, #131e2a);
  /* Behind the messages of a conversation. */
  --surface-dim: light-dark(#fafaf8, #0f1924);
  --soft: light-dark(#f1f0ec, #1c2937);
  /* --soft under the pointer, and an open menu's button. */
  --soft-hover: light-dark(#e8e6e0, #243344);
  --soft-edge: light-dark(#dcd9d0, #2e3e51);
  /* The frame of the phone in a campaign's preview. */
  --phone-bezel: light-dark(#1d2733, #05090f);
  /* A row, a link or a choice under the pointer. */
  --row-hover: light-dark(#f8f7f4, #172230);
  --field-line: light-dark(#c4c1b6, #3a4a5c);
  --field-line-hover: light-dark(#a9a59a, #52657a);
  --field-readonly: light-dark(#fafaf8, #101a25);
  /* The sidebar's buttons sit straight on the sky. */
  --side-tint: light-dark(rgb(11 34 57 / 0.05), rgb(255 255 255 / 0.05));
  --side-tint-hover: light-dark(rgb(11 34 57 / 0.09), rgb(255 255 255 / 0.09));
  --side-mute: light-dark(#6f6c63, #8693a2);
  --warn-soft: light-dark(#fdf3d7, #3a3115);
  /* A soft warm fill for text to read, such as a prompt. */
  --cream-soft: light-dark(#fbf5e3, #1f2a36);
  --warn-ink: light-dark(#7a5600, #ffd66b);
  /* A meter close to its limit. */
  --warn-fill: #d99a00;
  /* A switch's track when off: 3:1 against the card, and the white knob 3:1 against it. */
  --switch-off: light-dark(#8a867b, #62758b);
  --nobody-line: light-dark(#bdb9ae, #4a5b70);
  --code: light-dark(#0b2239, #070e15);
  /* A code block is dark in both themes, as in the docs, so its ink and colors are single values. */
  --code-bar: light-dark(#17335c, #15212e);
  --code-ink: #eef4fb;
  --code-mute: #a4b8d0;
  --code-tag: #ff9d84;
  --code-attr: #8fc5ff;
  --code-string: #ffd76a;
  --code-number: #7fe0b8;
  --code-comment: #8ea3bd;
  --scroll: light-dark(rgb(11 34 57 / 0.18), rgb(255 255 255 / 0.16));
  --scroll-hover: light-dark(rgb(11 34 57 / 0.35), rgb(255 255 255 / 0.3));
  /* The patch of sky behind the empty states' boat. */
  --pond: light-dark(#eceae4, #1c2937);
  --d-hull: var(--navy);
  /* The operator's own messages. */
  --bubble: light-dark(#0b2239, #2b3f57);
  /* A note that only the team sees, in the thread and in the composer. */
  --note: light-dark(#fff8dc, #3b3318);
  /* What a bot did: the brand blue, as a tint for fills and a deep ink for words. */
  --bot: #1f6bff;
  --bot-soft: light-dark(#e8f0ff, #18304f);
  --bot-ink: light-dark(#1457d6, #9cc3ff);
  --bot-line: light-dark(rgb(31 107 255 / 0.28), rgb(138 184 255 / 0.32));
  /* A suggested reply that is not sent yet: the operator's bubble, washed out to a pale blue. */
  --suggest: light-dark(#eef4ff, #172a44);
  /* A menu, a popover or a modal over the page. At night a lighter card with a pale edge, as a
     navy shadow is lost on the dark panel. */
  --raised: light-dark(#fff, #1a2736);
  /* --soft and --soft-hover inside a raised card, which would be lost on it at night. */
  --raised-soft: light-dark(#f1f0ec, #26364a);
  --raised-soft-hover: light-dark(#e8e6e0, #30425a);
  --raised-edge: light-dark(rgb(11 34 57 / 0.08), rgb(255 255 255 / 0.12));
  --raised-shadow: light-dark(rgb(11 34 57 / 0.1), rgb(0 0 0 / 0.5));
  --backdrop: light-dark(rgb(11 34 57 / 0.32), rgb(0 0 0 / 0.6));
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}
/* The sky's grey, so a page that is still loading already looks like the next screen. */
body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 15px / 1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--navy);
  transition: border-color 0.15s;
}
input:hover,
textarea:hover {
  border-color: var(--field-line-hover);
}
input[readonly] {
  border-color: var(--line);
  background-color: var(--field-readonly);
  color: var(--text);
}
input[aria-invalid="true"] {
  border-color: var(--bad);
}
input:focus-visible,
textarea:focus-visible {
  border-color: var(--focus);
  outline: 4px solid var(--focus-halo);
  outline-offset: 0;
}
textarea {
  padding-block: 11px;
  resize: vertical;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 6px;
  background: var(--scroll);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
  background-clip: padding-box;
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll) transparent;
  }
}

/* Buttons, as on the landing page */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font: 600 15px / 1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn.large {
  min-height: 52px;
  border-radius: 14px;
  font-size: 16.5px;
}
.btn.small {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 14px;
}
.primary,
.navy {
  background: var(--fill);
  color: var(--on-fill);
}
.primary:hover,
.navy:hover {
  background: var(--fill-hover);
}
.outline {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--navy);
}
.outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.danger {
  background: var(--red);
  color: #fff;
}
.danger:hover {
  background: var(--red-deep);
}
.link {
  padding-inline: 6px;
  color: var(--link);
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
}
.icon-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
}
.icon-button:hover:not(:disabled) {
  background: var(--soft);
}
/* A tip above a control, on hover and on keyboard focus. It ends at the control's right edge, so
   a control at the end of a row keeps its tip on screen. */
.tip {
  position: relative;
  display: inline-flex;
}
.tip-text {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fill);
  /* A table cell can set nowrap, which would push the words out of the tip. */
  white-space: normal;
  color: var(--on-fill);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.tip:hover .tip-text,
.tip:has(:focus-visible) .tip-text {
  opacity: 1;
}
.icon-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon-button[aria-disabled="true"]:hover {
  background: none;
  color: var(--mute);
}
/* The emoji button and its grid, which opens above it. */
.emoji-picker {
  position: relative;
  flex: none;
}
.emoji-grid {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(8, 36px);
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--raised-edge);
  border-radius: 14px;
  background: var(--raised);
  box-shadow: 0 12px 32px var(--raised-shadow);
}
.emoji-grid button {
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
}
.emoji-grid button:hover {
  background: var(--soft);
}
/* In a field, the button sits inside the box on the right, and the grid opens toward the left. */
.emoji-field {
  position: relative;
}
.emoji-field input,
.emoji-field textarea {
  padding-right: 48px;
}
.emoji-field .emoji-picker {
  position: absolute;
  top: 3px;
  right: 3px;
}
.emoji-field .emoji-grid {
  right: 0;
  left: auto;
}
.quiet-danger {
  color: var(--mute);
}
.quiet-danger:hover:not(:disabled) {
  background: var(--bad-soft);
  color: var(--bad);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* An uploaded image: one group of the tile, its button and the file rule, at the row's start. */
.image-upload {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 16px;
}
.image-tile {
  position: relative;
  flex: none;
}
.image-slot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--mute);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.image-slot.empty {
  border-color: transparent;
  background: var(--soft);
}
.image-slot.empty:hover:not(:disabled),
.image-slot.drop {
  background: var(--soft-hover);
  color: var(--navy);
}
.image-slot.drop {
  outline: 2px dashed var(--blue);
  outline-offset: 2px;
}
.image-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgb(13 34 64 / 0.12);
  color: var(--mute);
}
.image-remove:hover:not(:disabled) {
  color: var(--bad);
}
/* White behind it, as in the chat's header, so a transparent logo looks the same in both. */
.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-side {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}
.image-rule {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
}
/* Small shared parts */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font: 800 25px / 1 var(--display);
  letter-spacing: -0.03em;
}
.logo svg {
  display: block;
}
/* On Dinghy Cloud the account screens' logo goes back to the site. */
.logo-home {
  display: inline-flex;
  border-radius: 8px;
  text-decoration: none;
}
.logo-home:hover .logo {
  opacity: 0.8;
}
.logo-home:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--navy);
  font: 700 13px / 1 var(--display);
  letter-spacing: 0.01em;
  object-fit: cover;
}
.tint-0 {
  background: var(--tile-blue);
}
.tint-1 {
  background: var(--tile-peach);
}
.tint-2 {
  background: var(--tile-yellow);
}
.tint-3 {
  background: var(--tile-mint);
}
.note,
.hint {
  color: var(--mute);
  line-height: 1.45;
}
.hint {
  margin-top: 5px;
  font-size: 14px;
}
.bad {
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 14px;
}
.field {
  display: block;
}
.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
}
.copy-text {
  position: relative;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: var(--soft);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.copy-text:hover {
  background: var(--soft-hover);
}
.copy-text small {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}
.nothing {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px 16px;
  color: var(--mute);
  text-align: center;
}
.nothing b {
  color: var(--navy);
  font: 700 19px / 1.2 var(--display);
}
.ship {
  display: block;
  animation: bob 3.4s ease-in-out infinite;
}
.ship svg {
  display: block;
}
@keyframes bob {
  50% {
    transform: translateY(-3px) rotate(-1.5deg);
  }
}

/* Seas: canvases of swell, with the boat between them. ui.tsx and packages/widget/src/sea.ts draw them. */
.sea {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.sea canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.sea .float {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform-origin: 50% 88%;
}
.sea .sea-front {
  z-index: 3;
}
.pond {
  width: 200px;
  height: 118px;
  margin-bottom: 10px;
  border-radius: 24px;
  background: var(--pond);
}

/* Skeletons: grey bones in the shape of what loads, which skeleton.tsx draws. Each bone fades in
   after 0.3 s, so a quick load shows nothing. One light passes over every bone at once, because
   the gradient is fixed to the window and not to each bone. */
.bone-composer,
.bone-map {
  animation: skeleton-in 0.3s 0.3s both;
}
@keyframes skeleton-in {
  from {
    opacity: 0;
  }
}
/* The bones lay out in the screen's own grid, such as the Analytics cards. */
.skeleton-bones {
  display: contents;
}
.skeleton-bones > .page-row:first-child {
  border-top: 0;
}
.bone {
  display: inline-block;
  flex: none;
  max-width: 100%;
  border-radius: 6px;
  /* A screen can set --bone and --bone-light, as the sidebar does. */
  background: linear-gradient(
      100deg,
      var(--bone, var(--soft)) 40%,
      var(--bone-light, var(--soft-hover)) 50%,
      var(--bone, var(--soft)) 60%
    )
    fixed var(--bone, var(--soft));
  background-size: 200vw 100%;
  vertical-align: middle;
  animation:
    skeleton-in 0.3s 0.3s both,
    shimmer 1.6s linear infinite;
}
.bone.bone-round {
  border-radius: 50%;
}
@keyframes shimmer {
  from {
    background-position-x: 100vw;
  }
  to {
    background-position-x: -100vw;
  }
}
.bone-lines {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 9px;
  min-width: 0;
}
.bone-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
/* An Inbox row: the same box as .row, so nothing moves when the rows arrive. */
.rows-skeleton {
  padding: 0 8px 12px;
}
.bone-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}
.table-skeleton {
  padding-top: 10px;
}
.table-skeleton .bone-row {
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table-skeleton .wide-cell {
  width: 140px;
}
.rows-skeleton .bone-row + .bone-row {
  box-shadow: inset 0 1px 0 var(--line);
}
.rows-skeleton .bone-lines {
  padding-top: 3px;
}
.thread-skeleton {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.thread-skeleton .skeleton-bones {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.bone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 20px 11px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.bone-head .bone-lines {
  gap: 7px;
}
/* The newest messages sit at the bottom, over the composer, as in a loaded thread. */
.bone-bubbles {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 24px;
}
.bone-bubble {
  align-self: flex-end;
  max-width: 560px;
  border-radius: 18px;
}
.bone-bubble.visitor {
  align-self: flex-start;
}
.bone-composer {
  height: 96px;
  margin: 0 20px 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.bone-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}
.bone-bars .bone {
  flex: 1;
  border-radius: 6px 6px 0 0;
}
.bone-map {
  aspect-ratio: 360 / 150;
  border-radius: 20px;
  background: var(--map-sea);
  opacity: 0.12;
}
/* On the grey sidebar, the bones take the tint of its buttons. */
.side-skeleton {
  --bone: var(--side-tint);
  --bone-light: var(--side-tint-hover);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.bone-workspace {
  display: block;
  height: 48px;
  margin-bottom: 10px;
}
.bone-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
}
.bone-me {
  display: block;
  height: 56px;
  margin: auto 0 8px;
}
:is(.bone-workspace, .bone-me) > .bone {
  border-radius: 14px;
}
/* The search field, while the app loads. */
.list-tools > .bone:first-child {
  flex: 1;
  border-radius: 999px;
}
/* On a tablet, the sidebar is a header: the workspace, the sections in a row, and the operator's
   face at the end. */
@media (max-width: 1000px) {
  .side-skeleton {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .bone-workspace {
    width: 150px;
    height: 40px;
    margin: 0;
  }
  .bone-nav {
    min-height: 40px;
  }
  .bone-me {
    width: 40px;
    height: 40px;
    margin: 0 0 0 auto;
  }
  .bone-me > .bone {
    border-radius: 50%;
  }
}
/* On a phone: the workspace and the operator in the top bar, the sections in the tab bar. */
@media (max-width: 760px) {
  .side-skeleton {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .bone-workspace {
    width: 112px;
    height: 40px;
    margin: 0;
  }
  .bone-nav {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: calc(var(--tab-bar-height) - 9px);
    min-height: 0;
    padding: 0;
  }
  .bone-nav > .bone:last-child {
    max-width: 70%;
  }
  .bone-me {
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .bone-me > .bone {
    border-radius: 50%;
  }
}
/* No light passes over the bones. They still fade in, which moves nothing. */
@media (prefers-reduced-motion: reduce) {
  .bone {
    animation: skeleton-in 0.3s 0.3s both;
  }
}

/* Sign in, signup, invite: the landing page's sky and sea around one card. The scene stays put
   while one card replaces another. */
/* The scene grows with a card taller than the screen, so no grey shows below it. */
#root:has(> .scene) {
  position: relative;
  height: auto;
  min-height: 100%;
}
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: light-dark(#ffc917, #081522);
  transition: background-color 0.5s ease;
}
/* The account screens follow one day, in the brand's yellows: pale at dawn, warm after noon. The
   app itself stays on the calm --sky. */
.scene.morning {
  background-color: light-dark(#ffe27a, #0d2036);
}
.scene.forenoon {
  background-color: light-dark(#ffd640, #0a1b2e);
}
.scene.afternoon {
  background-color: light-dark(#ffbb1f, #071320);
}
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cloud {
  position: absolute;
  width: 120px;
  height: 56px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56' fill='%23fff3c0'%3E%3Crect x='4' y='32' width='112' height='24' rx='12'/%3E%3Ccircle cx='32' cy='30' r='18'/%3E%3Ccircle cx='58' cy='22' r='22'/%3E%3Ccircle cx='86' cy='32' r='16'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.cloud-a {
  top: 9%;
  left: 7%;
  width: 150px;
  height: 70px;
}
.cloud-b {
  top: 22%;
  right: 9%;
}
/* Clouds pass in front of the sun, which rises behind them. At night they are faint, and the sun
   is the moon. */
.cloud {
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cloud {
    opacity: 0.12;
  }
}
:root[data-theme="dark"] .cloud {
  opacity: 0.12;
}
.sun {
  position: absolute;
  bottom: 70px;
  left: 80%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow:
    0 0 0 22px light-dark(rgb(255 248 223 / 0.45), rgb(255 248 223 / 0.1)),
    0 0 0 46px light-dark(rgb(255 248 223 / 0.25), rgb(255 248 223 / 0.05));
  transform: translateX(-50%);
  transition:
    left 0.5s ease,
    bottom 0.5s ease,
    background-color 0.5s ease;
}
/* The sun rises from the left, stands high at noon and lowers on the right. */
.morning .sun {
  bottom: 110px;
  left: 14%;
  background-color: #fffbec;
}
.forenoon .sun {
  bottom: 44%;
  left: 17%;
}
.noon .sun {
  bottom: 64%;
  left: 79%;
}
.afternoon .sun {
  bottom: 26%;
  left: 86%;
  background-color: #ffefc4;
}
.signin {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 48px 20px 190px;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.card {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow:
    0 2px 4px rgb(11 34 57 / 0.06),
    0 24px 60px light-dark(rgb(11 34 57 / 0.16), rgb(0 0 0 / 0.35));
}
.card .note {
  text-wrap: pretty;
}
.card h1 {
  margin-top: 6px;
  text-wrap: balance;
  font-size: 32px;
  line-height: 1.08;
}
.card .btn {
  width: 100%;
}
.signin .card {
  animation: card-in 0.24s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
/* The form's main button stands apart from the last field, which the card's gap alone does not do. */
.card button[type="submit"].primary {
  margin-top: 8px;
}
.card .link {
  justify-self: center;
  width: auto;
  min-height: 40px;
}
/* A form inside a card, beside a part with a form of its own, such as the account's delete. It
   keeps the card's own spacing. */
.card-form {
  display: contents;
}
/* The account's or the workspace's delete at the foot of a card: quiet, and not full width. */
.card > .danger-soft {
  justify-self: center;
}
.shore {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 230px;
}

/* The app: a labeled sidebar on the paper grey, and one white panel that floats beside it. */
.shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sky);
}
.banner {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 14.5px;
  text-align: center;
}
.billing-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
/* News, not a warning: the workspace waits for the cloud to open, or the owner deleted one. */
.waiting-banner,
.deleted-banner {
  background: var(--surface);
  color: var(--navy);
}
/* The operator closes it. */
.deleted-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 4px;
}
.deleted-banner .icon-button {
  width: 32px;
  height: 32px;
}
/* A banner's button: light on the navy banners, and the dark fill on the white waiting one. */
.btn.light {
  background: var(--on-navy);
  color: var(--navy);
}
.btn.light:hover:not(:disabled) {
  background: color-mix(in srgb, var(--on-navy) 88%, var(--navy));
}
.waiting-banner .btn.light {
  background: var(--fill);
  color: var(--on-fill);
}
.waiting-banner .btn.light:hover:not(:disabled) {
  background: var(--fill-hover);
}
.billing-banner a {
  color: inherit;
  font-weight: 600;
}
.billing-banner .bad {
  padding: 4px 10px;
}
/* Bots are paused: a state to notice, in the warm fill, with Resume for owners and admins. */
.bots-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 8px 7px 14px;
  background: var(--warn-soft);
  color: var(--navy);
  text-align: left;
}
.bots-banner-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--warn-fill);
  color: #fff;
}
.bots-banner b {
  font-weight: 650;
}
.bots-banner-by {
  color: var(--warn-ink);
}
.pill.bots-resume {
  min-height: 32px;
  margin-left: 6px;
  padding: 0 14px;
  font-size: 13.5px;
}
.bots-banner-short {
  display: none;
}
/* A phone keeps the banner to one line: "Bots paused" and Resume. */
@media (max-width: 760px) {
  .bots-banner-long {
    display: none;
  }
  .bots-banner-short {
    display: inline;
  }
}
/* The workspace menu's bots switch: a small track that shows the state, as the Settings switch. */
.mini-switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: var(--switch-off);
}
.mini-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.mini-switch.on {
  background: var(--fill);
}
.mini-switch.on::after {
  left: 14px;
  background: var(--on-fill);
}
.app {
  display: grid;
  flex: 1;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px 12px 12px 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sidebar, straight on the grey: navy labels and navy icons. */
.side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 4px 18px;
  color: var(--navy);
}
.brand {
  padding: 2px 8px 12px;
}
/* In the sidebar, a focus ring in navy, like its labels. */
.workspace,
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  background: var(--side-tint);
  color: var(--navy);
  text-align: left;
  transition: background-color 0.15s;
}
.workspace {
  min-height: 48px;
  padding: 9px 12px 9px 10px;
  font: 700 15px / 1.2 var(--display);
}
button.workspace:hover,
button.workspace[aria-expanded="true"],
.me:hover,
.me[aria-expanded="true"] {
  background: var(--side-tint-hover);
}
.workspace-menu {
  margin-bottom: 14px;
}
/* The current workspace has a ring around its tile instead of a check, so the waiting counts all
   end at the same edge. */
.workspace-menu .item[aria-checked="true"] > svg:last-child {
  display: none;
}
.workspace-menu .item[aria-checked="true"] .ws-tile {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--blue-deep);
}
.side > .workspace {
  margin-bottom: 10px;
}
.ws-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--on-navy);
  font: 700 11.5px / 1 var(--display);
  letter-spacing: 0.02em;
}
.ws-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* In the workspace menu, how many chats wait in each workspace, as the Inbox item counts them. */
.ws-waiting {
  flex: none;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 11.5px / 16px var(--body);
  text-align: center;
}
/* On the closed switcher: chats wait in another workspace. */
.ws-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.workspace > svg:last-child,
.me > svg:last-child {
  flex: none;
  opacity: 0.6;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.nav button:hover {
  background: var(--side-tint);
}
.nav button[aria-current="page"],
.me.current {
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(11 34 57 / 0.06);
}
.nav svg {
  flex: none;
}
.nav .count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 12px / 18px var(--body);
  text-align: center;
  transition: opacity 0.15s;
}
/* People on the site now: quieter than the red count of those who wait. */
.nav .count.live {
  background: var(--navy);
  color: var(--on-navy);
}
.popup-wrap {
  position: relative;
}
.me-menu {
  margin-top: auto;
  margin-bottom: 12px;
}
.me {
  min-height: 56px;
  padding: 10px;
}
/* Get started, above the operator: a ring that fills, the words and the count. */
.get-started {
  position: relative;
  margin-top: auto;
}
.get-started + .me-menu {
  margin-top: 8px;
}
.get-started-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 10px;
  width: 100%;
  min-height: 52px;
  padding: 9px 12px 9px 11px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 2px 8px var(--raised-shadow);
  color: var(--navy);
  text-align: left;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.get-started-button:hover,
.get-started-button[aria-expanded="true"] {
  box-shadow:
    inset 0 0 0 1.5px var(--blue),
    0 4px 14px var(--raised-shadow);
}
.get-started-button:active {
  transform: translateY(1px);
}
/* The ring, the title and the count on the first line, and the next step under them, full width. */
.get-started-words {
  display: contents;
}
.get-started-words strong {
  grid-column: 2;
  grid-row: 1;
  font-weight: 650;
}
.get-started-words small {
  grid-column: 2 / 4;
  grid-row: 2;
  overflow: hidden;
  color: var(--mute);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steps-count {
  grid-column: 3;
  grid-row: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue-deep);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.progress-ring {
  grid-row: 1 / 3;
  transform: rotate(-90deg);
}
.progress-ring circle {
  fill: none;
  stroke-width: 3;
}
.ring-track {
  stroke: color-mix(in srgb, var(--blue) 22%, transparent);
}
.ring-fill {
  stroke: var(--blue);
  stroke-linecap: round;
}
.get-started-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: 300px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgb(11 34 57 / 0.08),
    0 4px 8px rgb(11 34 57 / 0.05),
    0 12px 32px rgb(11 34 57 / 0.12);
}
.get-started-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.get-started-panel h2 {
  font-size: 18px;
}
.steps-progress {
  color: var(--mute);
  font-size: 13.5px;
}
.get-started-panel .icon-button {
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 0;
}
.get-started-panel ol {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}
.get-started-panel li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--navy);
  text-align: left;
}
.get-started-panel li button:hover {
  background: var(--row-hover);
}
.step-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--field-line);
}
.get-started-panel li.done .step-mark {
  background: var(--green);
  box-shadow: none;
  color: #fff;
}
.step-text {
  flex: 1;
}
.get-started-panel li.done .step-text {
  color: var(--mute);
  text-decoration: line-through;
}
.get-started-panel > .text-button.quiet {
  justify-self: start;
  padding: 0;
  color: var(--mute);
  font-weight: 500;
}
/* The operator's own tile is navy, whatever tint their name gives it elsewhere. */
.me .avatar {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--on-navy);
}
/* The operator's own status: green while available, gray while away. */
.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.away {
  background: var(--mute);
}
.me .status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  box-shadow: 0 0 0 2px var(--side-tint);
}
.me-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.me-text b,
.me-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-text b {
  font-weight: 650;
}
.me-text small {
  color: var(--side-mute);
  font-size: 12.5px;
}

/* The white panel. */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px light-dark(rgb(11 34 57 / 0.06), rgb(255 255 255 / 0.04)),
    0 1px 3px rgb(11 34 57 / 0.04);
}
/* The banners and the panel share the column beside the sidebar, so the sidebar starts at the top. */
.stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.stage > .panel {
  flex: 1;
}
.split {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  min-height: 0;
}
.app.paging .split {
  display: none;
}

/* Pills: the panel's buttons. */
.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font: 600 14.5px / 1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.pill:hover:not(:disabled) {
  background: var(--soft-hover);
}
.pill.dark {
  background: var(--fill);
  color: var(--on-fill);
}
.pill:disabled,
.pill.dark:disabled,
.pill.danger:disabled {
  opacity: 1;
  background: var(--soft);
  color: var(--mute);
}
.pill.dark:hover:not(:disabled) {
  background: var(--fill-hover);
}
.pill.danger {
  background: var(--red);
  color: #fff;
}
.pill.danger:hover:not(:disabled) {
  background: var(--red-deep);
}
.pill.danger-soft {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--bad-line);
  color: var(--bad);
}
.pill.danger-soft:hover:not(:disabled) {
  background: var(--bad-soft);
}
.pill.danger-soft:disabled {
  background: var(--soft);
  box-shadow: none;
  color: var(--mute);
}
.pill.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.round {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  transition: background-color 0.15s;
}
.round:hover,
.round[aria-expanded="true"] {
  background: var(--soft-hover);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 4px;
  color: var(--blue-deep);
  font-size: 14.5px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
}

.chip.open {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}
.chip.bad {
  background: var(--bad-soft);
  color: var(--bad);
}

/* The header of a page and of the inbox list. */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 28px 34px 0;
}
.page-title {
  flex: 1 1 260px;
  min-width: 0;
}
.page-head h2 {
  font-size: 28px;
  line-height: 1.15;
}
.page-head p {
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 15px;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 560px) {
  /* A segmented control in a page's head, such as the period, or three or more controls, take
     their own full row under the line of context, as they would not fit beside the title. */
  .page-actions:has(> .choices.outlined),
  .page-actions:has(> :nth-child(3)) {
    grid-row: 3;
    grid-column: 1 / -1;
    margin-top: 12px;
  }
  /* More choices than fit, such as the Visitors filters, scroll sideways rather than wrap. */
  .page-actions > .choices.outlined {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .page-actions > .choices.outlined label {
    flex: 1 0 auto;
    justify-content: center;
    white-space: nowrap;
  }
}

/* A dropdown or a menu: a white card under (or over) its button. */
.popup {
  position: absolute;
  top: 100%;
  z-index: 50;
  min-width: max(100%, 200px);
  max-width: min(320px, calc(100vw - 24px));
  max-height: 320px;
  margin-top: 6px;
  padding: 6px;
  overflow-y: auto;
  --soft: var(--raised-soft);
  --soft-hover: var(--raised-soft-hover);
  border-radius: 16px;
  background: var(--raised);
  box-shadow:
    0 0 0 1px var(--raised-edge),
    0 4px 8px rgb(11 34 57 / 0.05),
    0 12px 32px var(--raised-shadow);
  color: var(--navy);
  font-size: 14.5px;
  text-align: left;
  outline: 0;
  animation: pop 0.14s ease-out both;
}
.side-start {
  left: 0;
}
.side-end {
  right: 0;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
.popup.up {
  top: auto;
  bottom: 100%;
  margin: 0 0 6px;
  animation-name: pop-up;
}
/* Placed in the window by its script, so an area that scrolls, such as the thread, never cuts it
   off. */
.popup.floating {
  position: fixed;
  /* The window is its box, so 100% would stretch it across the screen. */
  min-width: 200px;
  margin: 0;
}
/* A submenu beside its menu, lined up with its item by its script. */
.popup.submenu {
  min-width: 180px;
  margin: 0;
}
@keyframes pop-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
}
.item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.item.active {
  background: var(--soft);
}
/* Only a keyboard user needs to see which item the arrows are on, beyond the tint. */
.popup:focus-visible .item.active {
  box-shadow: inset 0 0 0 2px var(--focus);
}
.item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* An item that cannot be chosen now, with the reason under its label. */
.item[aria-disabled="true"] {
  color: var(--mute);
  cursor: default;
}
.item-label small {
  display: block;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 500;
}
/* A heading over a group of choices, such as Bot and People. */
.menu-label {
  margin: 6px 10px 4px;
  color: var(--mute);
  font: 700 11px / 1.3 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.menu-label:not(:first-child) {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
/* Small words at the end of a choice, such as the operator's role in a workspace. */
.select-note {
  flex: none;
  margin-left: auto;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}
.item[aria-selected="true"],
.item[aria-checked="true"] {
  font-weight: 650;
}
.item > svg:last-child:not(:first-child) {
  flex: none;
  color: var(--blue-deep);
}
/* .danger alone is the red button, so the menu item clears its fill. */
.item.danger {
  background: none;
  color: var(--bad);
}
.item.danger.active {
  background: var(--bad-soft);
}
.item.divided {
  margin-top: 9px;
}
.item.divided::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 4px;
  left: 4px;
  border-top: 1px solid var(--line);
}
.item .avatar,
.select-button .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
img.ws-tile {
  object-fit: contain;
  background: #fff;
}
.item .ws-tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 10.5px;
}
.avatar.nobody {
  border: 1.5px dashed var(--nobody-line);
  background: transparent;
  color: var(--mute);
}
.select {
  position: relative;
  display: inline-grid;
  gap: 6px;
  min-width: 0;
}
.select-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    box-shadow 0.15s;
}
.select-button:has(.avatar) {
  padding-left: 6px;
}
.select-button:hover:not(:disabled),
.select-button[aria-expanded="true"] {
  background: var(--soft-hover);
}
/* A locked choice reads as a quiet chip with a lock, not as a faded button. */
.select-button:disabled {
  opacity: 1;
  color: var(--text-strong);
}
.select-button > svg {
  flex: none;
  opacity: 0.7;
}
.select-value {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

/* A small modal. */
.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  overflow: visible;
  border: 0;
  --soft: var(--raised-soft);
  --soft-hover: var(--raised-soft-hover);
  border-radius: 20px;
  background: var(--raised);
  box-shadow:
    0 0 0 1px var(--raised-edge),
    0 24px 64px var(--raised-shadow);
  color: var(--text);
  animation: card-in 0.18s ease-out both;
}
.dialog::backdrop {
  background: var(--backdrop);
}
.dialog-body {
  display: grid;
  gap: 14px;
  padding: 26px;
}
.dialog h2 {
  font-size: 21px;
  line-height: 1.25;
}
.dialog-text {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.5;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* The inbox list. */
.list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}
.list .page-head {
  padding: 26px 24px 14px;
}
/* The search field, and the filter button beside it. */
.list-tools {
  display: flex;
  gap: 8px;
  margin: 0 16px 12px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.filter-button {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--field-line);
  color: var(--navy);
  transition: background-color 0.15s;
}
.filter-button:is(:hover, [aria-expanded="true"]) {
  background: var(--soft);
}
/* A filter other than Open and All: a dot on the button. */
.filter-button.filtered::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--surface);
}
/* The filter card: Status, and in a team Assigned to, each one segmented control. */
.popover {
  display: grid;
  gap: 6px;
  width: 300px;
  padding: 12px 12px 14px;
}
.popover-title {
  margin: 0 2px 4px;
  font-size: 15px;
}
.popover-label {
  margin: 6px 2px 0;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}
.search-note {
  margin: -4px 16px 12px;
  font-size: 13.5px;
}
.search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--mute);
  transform: translateY(-50%);
  pointer-events: none;
}
.search input {
  min-height: 42px;
  padding-left: 40px;
  border-radius: 999px;
}
/* While a search runs, a small ring takes the magnifier's place. */
.search .spinner {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.list > .text-button {
  margin: 8px auto 20px;
}
.rows {
  display: grid;
  padding: 0 8px 12px;
  transition: opacity 0.15s;
}
/* The rows a search will replace. */
.rows[aria-busy="true"] {
  opacity: 0.5;
}
.row {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  transition: background-color 0.12s;
}
.rows > li + li .row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  border-top: 1px solid var(--line);
}
.row:hover {
  background: var(--row-hover);
}
.row:hover::before,
.row[aria-current="true"]::before,
.rows > li:has(.row:is(:hover, [aria-current="true"])) + li .row::before {
  border-color: transparent;
}
.row[aria-current="true"] {
  background: var(--soft);
}
.row .avatar {
  width: 38px;
  height: 38px;
  font-size: 12.5px;
}
.row-text {
  display: grid;
  /* Without it, a long preview widens the row past the list. */
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: 3px;
  min-width: 0;
}
.row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.row strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row time {
  flex: none;
  color: var(--mute);
  font-size: 13.5px;
}
.preview {
  overflow: hidden;
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row.unread strong,
.row.unread .preview {
  font-weight: 700;
}
.row.unread .preview {
  color: var(--navy);
}
/* The dot sits right after the time, so the time gives up the space between them. */
.row.unread time {
  margin-left: auto;
}
.unread-dot {
  flex: none;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
/* One line: the chips on the left, and the handler's mark at the right end. */
.row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
}
.row-handler {
  display: inline-flex;
  flex: none;
  margin-left: auto;
}
.row-handler :is(.avatar, .handler-mark) {
  width: 20px;
  height: 20px;
  font-size: 8px;
}
.row-handler svg {
  width: 12px;
  height: 12px;
}
/* A test chat keeps its word, in an outline, as a lone flask says nothing. */
.chip.test {
  padding: 2px 9px 2px 7px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--soft-edge);
}
/* Who handles a conversation: a bot's blue mark, the team's navy one, or a person's avatar. */
.handler-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.handler-mark.bot {
  background: var(--bot);
  color: #fff;
}
.handler-mark.team {
  background: var(--navy);
  color: var(--on-navy);
}
.assignee .popup {
  min-width: 250px;
}
.assignee .item :is(.avatar, .handler-mark) {
  width: 26px;
  height: 26px;
}
.select-button:has(.handler-mark) {
  padding-left: 6px;
}
.row em {
  color: var(--blue-deep);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}
.empty-boat {
  /* Centered, a little above the middle, in a page body that fills the card. */
  padding-bottom: 12vh;
}
.page-body:has(> .empty-boat) {
  flex: 1;
  align-content: stretch;
}
/* Tabs over an empty state keep their height, and the state takes the rest. */
.page-body:has(> .choices.tabs + .empty-boat) {
  grid-template-rows: auto 1fr;
}
/* An empty Inbox list: the pixel buoy, a title, one line and at most one action, in the column's
   middle. list-empty.tsx draws the buoy. */
.list-empty {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 0 28px 20%;
  text-align: center;
}
.list-empty canvas {
  margin-bottom: 12px;
}
.list-empty b {
  color: var(--navy);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
.list-empty span {
  max-width: 230px;
  color: var(--mute);
  font-size: 14.5px;
}
.list-empty .btn {
  gap: 8px;
  margin-top: 12px;
  border-radius: 999px;
}
/* The empty-list drawing: navy line work on the paper, with the pennant the only colour. */
.empty-art {
  width: 120px;
  height: 120px;
  clip-path: circle(50%);
  margin-bottom: 14px;
  color: var(--navy);
}
.empty-sky {
  fill: var(--soft);
}
.empty-water {
  fill: var(--line);
}
.empty-sun {
  fill: light-dark(#fff, #2e3e51);
}
.empty-ink,
.empty-ripple {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-ink {
  stroke: currentColor;
  stroke-width: 2.5;
}
.empty-ripple {
  stroke: var(--mute);
  stroke-width: 2;
  opacity: 0.5;
}
.empty-sail {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.empty-hull {
  fill: currentColor;
}
.empty-flag {
  fill: var(--red);
}

/* A conversation. */
.thread {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface-dim);
}
/* The face and name over a run of the welcome chat founder's messages. */
.author-face {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--mute);
  font-size: 13px;
}
.author-face img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
/* Someone closed or reopened the conversation: a quiet line, not a bubble. */
.status-note {
  align-self: center;
  margin: 10px 0;
  color: var(--mute);
  font-size: 12.5px;
  text-align: center;
}
.thread.drop {
  outline: 3px dashed var(--blue);
  outline-offset: -10px;
}
/* The gull's pane while no conversation is open: a pixel scene over its title and line, which
   gull.tsx draws. The art keeps its own colors in the dark, as a picture does. */
.gull-pane {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 24px 44px;
  overflow: hidden;
  text-align: center;
}
.gull-pane h3 {
  color: var(--navy);
  font: 700 28px / 1.15 var(--display);
  letter-spacing: -0.01em;
}
.gull-sub {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 16px;
}
/* The key in a line of words. The cap itself is the keys sheet's, with the shortcuts' rules. */
.gull-key kbd {
  display: inline-block;
  margin: 0 2px;
  vertical-align: 1px;
}
.gull-stage,
.lookout-stage {
  position: relative;
  margin: 0 0 4px;
  line-height: 0;
}
.lookout-stage canvas {
  display: block;
}
.gull-stage canvas,
.gull-corner {
  display: block;
  cursor: pointer;
}
.gull-corner {
  position: absolute;
  right: 34px;
  bottom: 10px;
}
/* The bird in flight, over the page. It never takes a click, so it covers no control. */
.gull-flyer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
}
/* The message board on its post: a navy pixel frame with cut corners, a cream field and a yellow
   key. Fixed colors, as it is part of the picture. */
.gull-board {
  --pixel: 6px;
  position: absolute;
  display: flex;
  width: 280px;
  padding: var(--pixel);
  line-height: 1.5;
  transform: translate(-50%, -100%);
}
/* The frame is clipped on its own layer, so the error note under the board stays visible. */
.gull-board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #0b2239;
  clip-path: polygon(
    var(--pixel) 0,
    calc(100% - var(--pixel)) 0,
    calc(100% - var(--pixel)) var(--pixel),
    100% var(--pixel),
    100% calc(100% - var(--pixel)),
    calc(100% - var(--pixel)) calc(100% - var(--pixel)),
    calc(100% - var(--pixel)) 100%,
    var(--pixel) 100%,
    var(--pixel) calc(100% - var(--pixel)),
    0 calc(100% - var(--pixel)),
    0 var(--pixel),
    var(--pixel) var(--pixel)
  );
}
.gull-board input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--cream);
  color: #0b2239;
  font: inherit;
  font-size: 15px;
}
.gull-board input::placeholder {
  color: #5f6e80;
}
.gull-board input:focus {
  background: #fff;
}
.gull-send {
  min-height: 42px;
  padding: 0 14px;
  background: #ffc81e;
  box-shadow: inset calc(-1 * var(--pixel)) calc(-1 * var(--pixel)) 0 #d9a400;
  color: #0b2239;
  font-weight: 650;
}
.gull-send:hover:not(:disabled) {
  background: #ffd54d;
}
/* An empty board cannot send, and the key keeps its color: it is part of the picture. */
.gull-send:disabled {
  opacity: 1;
  cursor: not-allowed;
}
.gull-board:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.gull-board-note {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  color: var(--red);
  font-size: 14px;
}
/* One slim row: who, and what the operator can do. The rest of the visitor is in the panel. */
.thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 20px 11px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.who-is {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar-wrap {
  position: relative;
  flex: none;
  display: grid;
}
.row .avatar-wrap {
  align-self: flex-start;
}
/* A row's box sits over its avatar: on hover, and on every row once one is chosen. */
.rows > li {
  position: relative;
}
/* A circle the avatar's size, so the box takes its place without a jump. */
.row-pick {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 2px solid var(--field-line);
  border-radius: 50%;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
  opacity: 0;
  transition:
    background-color 0.12s,
    border-color 0.12s;
  /* Hidden, a tap on the picture opens the conversation. */
  pointer-events: none;
}
/* The check, drawn as two sides of a turned box. */
.row-pick::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid var(--field-line);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.row-pick:hover {
  border-color: var(--navy);
}
.row-pick:hover::after {
  border-color: var(--mute);
}
.row-pick:checked {
  border-color: var(--fill);
  background: var(--fill);
}
.row-pick:checked::after {
  border-color: var(--on-fill);
}
.rows.selecting .row-pick,
.row-pick:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.rows.selecting .row .avatar-wrap,
.rows > li:has(.row-pick:focus-visible) .row .avatar-wrap {
  visibility: hidden;
}
/* A touch screen starts a selection with a long press instead. */
@media (hover: hover) {
  .rows > li:hover .row-pick {
    opacity: 1;
    pointer-events: auto;
  }
  .rows > li:hover .row .avatar-wrap {
    visibility: hidden;
  }
}
.rows > li.picked .row {
  background: var(--suggest);
}
.who-is .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
/* The flag cut to a circle, with a ring that parts it from the avatar. */
/* The whole flag, as emoji draw it: a circle would crop most flags past recognition. */
.flag-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--surface);
  font-size: 11px;
  line-height: 1;
}
.presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2.5px var(--surface);
}
.who-text {
  min-width: 0;
}
.who-text h2 {
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-text p {
  overflow: hidden;
  color: var(--mute);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-text .live {
  color: var(--green);
  font-weight: 500;
}
.thread-head .actions {
  gap: 8px;
}
.assignee .select-button {
  min-height: 40px;
  max-width: 220px;
  padding-right: 16px;
}
.thread-head .pill,
.thread-head .assignee .select-button {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.thread-head .round {
  width: 36px;
  height: 36px;
}
.back {
  display: none;
}
.replying {
  padding: 8px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 600;
}
.replying.blocked {
  background: var(--bad-soft);
  color: var(--bad);
}
/* A conversation: the thread, and the visitor's panel on its right. */
.conversation-view {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
}
.conversation-view > .thread {
  flex: 1;
}
.visitor-panel {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 300px;
  min-height: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
/* A toggle slides the panel in from the right edge, and the thread makes room as it comes. */
.visitor-panel.entering {
  animation: panel-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.visitor-panel.leaving {
  /* Reversed, so this curve speeds up as the panel leaves. */
  animation: panel-in 0.18s cubic-bezier(0, 0, 0.6, 1) reverse forwards;
}
@keyframes panel-in {
  from {
    margin-right: -300px;
  }
}
/* Below 1200px the panel is a drawer over the thread. */
.visitor-panel.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  max-width: calc(100% - 24px);
  border-left: 0;
  box-shadow: -12px 0 32px rgb(11 34 57 / 0.16);
}
.visitor-panel.overlay.entering,
.visitor-panel.overlay.leaving {
  animation-name: drawer-in;
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
/* The panel's head: who the visitor is, and their place as tiles, on a soft blue. */
.panel-head {
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  background: var(--tile-blue);
}
.panel-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.panel-who .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
  box-shadow: 0 0 0 2px var(--surface);
}
.panel-who .presence-dot {
  box-shadow: 0 0 0 2.5px var(--tile-blue);
}
.panel-name {
  flex: 1;
  min-width: 0;
}
/* A long name takes a second line before it is cut. */
.panel-name h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* An email shown as the name breaks only after its @, and only when it cannot fit on one line. */
.panel-name .panel-email {
  display: block;
}
.email-part {
  display: inline-block;
  max-width: 100%;
}
.panel-email.one-line {
  white-space: nowrap;
}
.panel-name p {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The visitor's name and email copy themselves when clicked. */
.copy-text-button {
  display: block;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: inherit;
  cursor: pointer;
}
/* An email as the name never cuts: the heading measures it to shrink it to fit. */
.panel-email .copy-text-button {
  overflow: visible;
}
/* A name keeps the heading's two lines. */
.panel-name h3:not(.panel-email) > .copy-text-button {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.copy-text-button:hover {
  text-decoration: underline;
  text-decoration-color: var(--soft-edge);
  text-underline-offset: 3px;
}
.panel-who .icon-button {
  align-self: flex-start;
  width: 32px;
  height: 32px;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.panel-who .icon-button:hover {
  background: var(--surface);
}
/* Facts as tiles, one to a row, as the panel is too narrow for two values side by side. */
.place-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.place-tiles > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--mute);
}
.panel-head .place-tiles {
  border-color: transparent;
  background: color-mix(in srgb, var(--navy) 8%, transparent);
}
.panel-head .place-tiles > div {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.place-tiles dl {
  min-width: 0;
}
.place-tiles dt {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-tiles dd {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Links that are data, such as a visitor's pages: the link color, with a faint underline that
   turns solid on hover. */
.place-tiles a,
.journey a.page-name,
.context a,
.live-page a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 3px;
}
.place-tiles a:hover,
.journey a.page-name:hover,
.context a:hover,
.live-page a:hover {
  text-decoration-color: currentColor;
}
/* The assignee fills the row, and the status sits beside it. */
.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-bar .assignee {
  flex: 1;
}
.panel-bar .select-button {
  width: 100%;
}
.panel-bar .select-value {
  flex: 1;
}
.panel-bar .popup {
  max-width: 100%;
}
.panel-bar .chip {
  min-height: 36px;
  padding: 0 14px;
}
/* An ID to copy: monospace, cut to its line. */
.copy-id {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.copy-id code {
  overflow: hidden;
  min-width: 0;
  color: var(--mute);
  font:
    12.5px / 18px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-icon {
  flex: none;
  width: 26px;
  height: 26px;
  min-height: 0;
  border-radius: 6px;
}
/* A fold of the panel or the contact page: a title that opens or closes it. */
.fold {
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.fold h3 button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  color: var(--navy);
  font: 600 14px / 1.4 var(--display);
}
.fold-count {
  color: var(--mute);
  font: 500 12.5px / 1 var(--body);
}
.fold-chevron {
  display: grid;
  margin-left: auto;
  color: var(--mute);
  transition:
    transform 0.15s,
    opacity 0.15s;
}
[aria-expanded="false"] > .fold-chevron {
  transform: rotate(-90deg);
}
/* With a pointer, an open fold shows its chevron only on hover or focus. */
@media (hover: hover) {
  [aria-expanded="true"] > .fold-chevron {
    opacity: 0;
  }
  .fold h3 button:hover > .fold-chevron,
  .fold h3 button:focus-visible > .fold-chevron {
    opacity: 1;
  }
}
.fold-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}
.context {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 14px;
  font-size: 13.5px;
}
.context dt {
  color: var(--mute);
}
.context dd {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--navy);
}
.detail-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* What the page sent, which nobody verified. */
.context dd.unsigned {
  font-style: italic;
}
/* What the page sent, apart from the signed attributes, with a note that nobody verified it. */
.page-context {
  display: grid;
  gap: 4px;
}
/* The visitor's pages, newest first: a title as a link, and how long ago on the right. */
.journey ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 30px;
  padding-left: 20px;
}
/* A timeline: a dot for each page, joined by a line, and the newest in blue. */
.journey li::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--nobody-line);
  background: var(--surface);
}
.journey li:first-child::before {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  background: var(--blue);
}
.journey li + li::after {
  content: "";
  position: absolute;
  bottom: calc(50% + 6px);
  left: 6.5px;
  width: 1px;
  height: 20px;
  background: var(--line);
}
.journey .page-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journey time {
  flex: none;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.journey .text-button {
  min-height: 28px;
  margin-top: 4px;
  padding: 0 0 0 20px;
}
/* Where an online visitor is now. */
.journey li.now::before {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
  background: var(--green);
}
.journey .here-now {
  flex: none;
  color: var(--green);
  font-weight: 600;
}
/* An earlier visit starts under its own label, with no line to the page above. */
.journey li.visit-gap {
  padding-top: 8px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
}
.journey li.visit-gap::before,
.journey li.visit-gap::after,
.journey li.visit-gap + li::after {
  display: none;
}
.conversation-links {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
}
.conversation-links .text-button {
  display: grid;
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  text-align: left;
}
.conversation-links .text-button:hover {
  background: var(--row-hover);
}
.link-preview {
  overflow: hidden;
  color: var(--navy);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-links small {
  color: var(--mute);
  font-weight: 400;
}
/* The team's note, as a sticky note. */
.note-field {
  min-height: 72px;
  resize: vertical;
  border-color: color-mix(in srgb, var(--warn-fill) 30%, transparent);
  background: var(--note);
  color: var(--navy);
  font-size: 14px;
}
.note-field::placeholder {
  color: color-mix(in srgb, var(--warn-ink) 75%, transparent);
}
.who-text .welcome-off {
  color: var(--warn-ink);
}
.online {
  color: var(--green);
  font-weight: 600;
}
.online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}
/* The log, and the button over its bottom edge that goes back to the newest line. */
.log-wrap {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
/* The find bar over the log, and the words it finds. */
.find-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--mute);
}
.find-bar input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  margin-left: 6px;
  border-radius: 999px;
}
.find-count {
  padding: 0 6px;
  font-size: 13px;
  white-space: nowrap;
}
.find-bar .icon-button {
  width: 34px;
  height: 34px;
}
::highlight(find) {
  background: var(--mark);
  color: inherit;
}
::highlight(find-now) {
  background: var(--mark-now);
  color: var(--map-ink);
}
.row mark {
  border-radius: 2px;
  background: var(--mark);
  color: inherit;
}
.to-newest {
  position: absolute;
  right: 50%;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  transform: translateX(50%);
}
.to-newest:hover {
  background: var(--soft);
}
/* A line came in below while the operator read further up. */
.to-newest.missed::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 24px 28px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.empty {
  margin: auto;
  color: var(--mute);
}
.day {
  align-self: center;
  margin: 6px 0 10px;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}
.msg {
  align-self: flex-end;
  max-width: min(60%, 560px);
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--bubble);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
/* The small Markdown a message may use, which the composer shows as it will look. */
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(p, ul, ol, pre, blockquote) {
  margin: 0;
}
/* A quoted passage: a tinted block, like a quoted reply, with no bar at its side. */
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(blockquote) {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgb(127 127 127 / 0.14);
}
:is(.msg, .draft-body, .handoff-text, .compose-field) > * + * {
  margin-top: 10px;
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(ul, ol) {
  padding-left: 22px;
}
/* The app's own lists have no markers, but a message's list is the visitor's or the operator's. */
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(ul) {
  list-style: disc;
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(ol) {
  list-style: decimal;
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(pre, code) {
  font: 13.5px / 1.45 var(--mono);
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(code) {
  padding: 1px 4px;
  border-radius: 5px;
  background: rgb(127 127 127 / 0.18);
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(pre code) {
  display: block;
  padding: 8px 10px;
  overflow-x: auto;
}
:is(.msg, .draft-body, .handoff-text, .compose-field) :where(a) {
  color: inherit;
}
.msg.visitor {
  align-self: flex-start;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--navy);
}
/* A note that only the team sees: a soft yellow, with its label on top. */
.msg.note {
  background: var(--note);
  color: var(--navy);
}
.note-label {
  display: block;
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}
.msg.note > .note-label + * {
  margin-top: 4px;
}
/* An image deleted after 12 months: a quiet note where it was. */
.msg.removed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--mute);
  font-style: italic;
}
.meta,
.state {
  align-self: flex-end;
  margin: -2px 6px 8px;
  color: var(--mute);
  font-size: 12px;
}
.meta.visitor {
  align-self: flex-start;
}
/* What happened to a reply: sent, sent by email, failed, or read in the chat. */
.receipt {
  display: flex;
  align-self: flex-end;
  align-items: center;
  gap: 4px;
  margin: -2px 6px 4px;
  color: var(--mute);
  font-size: 12px;
}
/* An author line and its receipt read as one footer, spaced from the next message. */
.meta:has(+ .receipt) {
  margin-bottom: 2px;
}
.meta + .receipt {
  margin-bottom: 8px;
}
.receipt.read {
  color: var(--blue-deep);
}
.receipt.emailFailed {
  color: var(--bad);
}
/* A visitor's unsent words, faded, with three dots that move. */
.msg.draft {
  align-self: flex-start;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--navy);
  opacity: 0.6;
}
.meta.typing {
  display: flex;
  align-items: center;
  gap: 6px;
}
.typing-dots {
  display: inline-flex;
  gap: 3px;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.preview .draft-label {
  color: var(--bad);
  font-weight: 600;
}
.preview.typing {
  color: var(--blue-deep);
  font-style: italic;
}
.retry {
  align-self: flex-end;
  margin: -2px 6px 8px;
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}
.shot {
  align-self: flex-end;
  max-width: min(60%, 360px);
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.shot.visitor {
  align-self: flex-start;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* A message and its "…": the button sits on the bubble's inner side and shows on hover or focus. */
.bubble-row {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-self: flex-end;
  align-items: center;
  gap: 4px;
  /* The bubble's width limit, with room for the "…" beside it. */
  max-width: min(calc(60% + 34px), 594px);
  scroll-margin: 24px;
}
.bubble-row > .msg {
  max-width: none;
  min-width: 0;
}
.bubble-row.visitor {
  flex-direction: row;
  align-self: flex-start;
}
.bubble-row .popup-wrap {
  opacity: 0;
  transition: opacity 0.12s;
}
.bubble-row:is(:hover, :focus-within) .popup-wrap,
.bubble-row .popup-wrap:has([aria-expanded="true"]) {
  opacity: 1;
}
/* A touch screen has no hover, so the button always shows there, quietly. */
@media (hover: none) {
  .bubble-row .popup-wrap {
    opacity: 1;
  }
}
/* A message's menu: smaller than the app's other menus, as it opens over the thread. */
.msg-menu .popup {
  min-width: 168px;
  padding: 4px;
  border-radius: 12px;
  font-size: 13.5px;
}
.msg-menu .item {
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
}
/* A small raised chip, so it reads as a button against the thread's background. */
.msg-more {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 2px rgb(11 34 57 / 0.08);
  color: var(--text-strong);
}
.msg-more:is(:hover, [aria-expanded="true"]) {
  background: var(--soft-hover);
  color: var(--navy);
}
.shot-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  max-width: 360px;
}
.bubble-row.visitor .shot-stack {
  align-items: flex-start;
}
.shot-stack .shot {
  max-width: 100%;
}
.msg.quote-only {
  padding: 5px;
}
/* A file only downloads: its icon, its name and its size, never a preview. */
.file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.file-name {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.file-link:hover .file-name {
  text-decoration: underline;
}
.file-size {
  flex: none;
  opacity: 0.75;
  font-size: 13px;
}
/* The quoted message inside a reply: a soft block, a shade off the bubble, with no side bar. */
.quote {
  display: grid;
  gap: 1px;
  width: 100%;
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.16);
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
.msg.quote-only .quote {
  margin: 0;
}
button.quote:hover {
  background: rgb(255 255 255 / 0.24);
}
.msg.visitor .quote {
  background: var(--soft);
}
.msg.visitor button.quote:hover {
  background: var(--soft-hover);
}
.msg.note .quote {
  background: rgb(127 127 127 / 0.14);
}
.msg.note button.quote:hover {
  background: rgb(127 127 127 / 0.22);
}
.quote strong {
  font-size: 12.5px;
  font-weight: 700;
}
.quote-text {
  white-space: pre-line;
}
.quote-text.gone {
  font-style: italic;
  opacity: 0.85;
}
/* After a click on a quote or a link, the original shows where it is for a moment. */
.bubble-row.flash :is(.msg, .shot) {
  outline: 3px solid var(--map-dot);
  outline-offset: 2px;
  animation: flash-out 1.6s ease-in forwards;
}
@keyframes flash-out {
  70% {
    outline-color: var(--map-dot);
  }
  to {
    outline-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubble-row.flash :is(.msg, .shot) {
    animation: none;
  }
}
/* Above the message box while a reply quotes a message. */
.quote-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 2px;
  padding: 6px 4px 6px 10px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--mute);
  font-size: 13px;
}
.quote-chip-text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.quote-chip-text strong {
  color: var(--navy);
  font-weight: 600;
}
.quote-chip-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A link's card: under a reply's text, and above the message box before it goes. It never grows. */
.link-card {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.16);
  white-space: normal;
}
.box > .link-card {
  margin: 2px 0;
  padding-right: 4px;
  background: var(--soft);
}
.link-card a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px 6px 6px;
  color: inherit;
  text-decoration: none;
}
.link-card img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.link-card-text {
  display: grid;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}
.link-title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card a:hover .link-title {
  text-decoration: underline;
}
/* A long hostname loses its start, so its end, which names the site, stays. */
.link-host {
  overflow: hidden;
  direction: rtl;
  opacity: 0.8;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A reply being edited takes its bubble's place, with Cancel and Save for the send button. */
.compose.editing {
  align-self: flex-end;
  width: min(100%, 640px);
  padding: 0;
}
.edit-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.edit-actions .pill {
  min-height: 34px;
  padding: 0 14px;
}
.message-info dl {
  display: grid;
  gap: 6px;
  margin: 0;
}
.message-info dt {
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
}
.message-info dd {
  margin: 0;
  color: var(--text);
}
.message-info .info-time {
  color: var(--navy);
  font-weight: 600;
}
.thread > .bad {
  margin: 0 28px 10px;
}
/* 6px on top holds the box's 5.5px focus ring, which the log's bubbles could otherwise cover. */
.compose {
  padding: 6px 28px 24px;
}
/* The composer: one rounded box, the text on top and a row of tools under it. */
.box {
  display: grid;
  gap: 2px;
  padding: 6px 8px 8px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 6px 18px rgb(11 34 57 / 0.05);
}
.box:focus-within {
  box-shadow:
    0 0 0 1.5px var(--focus),
    0 0 0 5.5px var(--focus-halo),
    0 6px 18px rgb(11 34 57 / 0.05);
}
.compose.note .box {
  background: var(--note);
}
/* As tall as the round send button, so the box keeps its height between Reply and Note. */
.compose-tools .send-note {
  min-height: 40px;
  margin-left: auto;
  padding: 0 14px;
}
/* The rich text editor: it formats as the operator types, and grows up to its height. */
.compose-field {
  min-height: 44px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 6px;
  color: var(--navy);
  overflow-wrap: anywhere;
  /* Tiptap's own styles, which it cannot add itself under the content security policy. */
  white-space: break-spaces;
  font-variant-ligatures: none;
}
.compose-field pre {
  white-space: pre-wrap;
}
.compose-field img.ProseMirror-separator {
  display: inline;
  width: 0;
  height: 0;
}
.compose-field:focus-visible {
  outline: 0;
}
.compose-field .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--mute);
  pointer-events: none;
}
.format-tools .icon-button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--navy);
}
/* The address for a link, under the text, with Cancel and Save. */
.link-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 4px;
}
.link-field input {
  min-height: 36px;
}
.link-field .pill {
  flex: none;
  min-height: 34px;
  padding: 0 14px;
}
.box .icon-button {
  width: 34px;
  height: 34px;
  color: var(--mute);
}
.box .icon-button:hover {
  color: var(--navy);
}
.compose-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
/* The Aa toggle shows only on a phone, where the formats wait behind it. */
.format-toggle {
  display: none;
}
.format-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.tools-divider {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--line);
}

.send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--on-fill);
  transition: background-color 0.15s;
}
.send:hover {
  background: var(--fill-hover);
}
.compose-tools .send {
  margin-left: auto;
}
.box input.file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.closed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 28px 24px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--navy);
}
.closed svg {
  flex: none;
}

/* The image at full size, scaled down to fit the screen whole. The dialog drops a browser's own
   size limits, which are smaller than the image's on a phone. */
.viewer {
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.viewer::backdrop {
  background: rgb(11 34 57 / 0.85);
}
/* svh leaves out a phone browser's toolbar, which could otherwise cover the image's edge. */
.viewer img {
  display: block;
  max-width: 95vw;
  max-height: 95svh;
}
.viewer-actions {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
}
.viewer-actions .icon-button {
  width: 44px;
  height: 44px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(11 34 57 / 0.3);
}
.viewer-actions .icon-button:hover:not(:disabled) {
  background: var(--soft-hover);
}

/* Pages in the panel, such as each Settings page. Rows with thin lines, no cards in cards. */
.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.page-body {
  display: grid;
  align-content: start;
  padding: 10px 34px 40px;
}
.page-row {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: 16px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.page-body > .page-row:first-child {
  border-top: 0;
}
.page-row h3,
.widget-section h3,
.preview-bar h3 {
  font: 650 15.5px / 1.3 var(--body);
  letter-spacing: 0;
}
.page-about .hint {
  margin-top: 4px;
}
.page-controls {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-width: 620px;
}
.page-controls > .pill {
  min-height: 44px;
}
.page-controls > .pill,
.page-controls > .actions,
.page-controls > .select,
.page-controls > .text-button {
  justify-self: start;
}
/* A docs link: a book and a few words, under a row's help or after a page's line of context. */
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.doc-link svg {
  flex: none;
  opacity: 0.8;
}
.doc-link:hover {
  text-decoration: underline;
}
.page-head .doc-link {
  margin-left: 2px;
  font-size: inherit;
  vertical-align: baseline;
}
.page-about .doc-link {
  display: flex;
  width: fit-content;
  margin-top: 10px;
}
.page-about .doc-link + .doc-link {
  margin-top: 6px;
}

/* Settings: the grouped list on the left, the open page beside it. */
.settings {
  display: grid;
  flex: 1;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 0;
}
.settings-nav {
  overflow-y: auto;
  padding: 30px 14px 24px 20px;
  border-right: 1px solid var(--line);
}
.settings-nav h2 {
  padding: 0 10px 6px;
  font-size: 22px;
  line-height: 1.2;
}
.settings-group h3 {
  margin: 20px 10px 6px;
  color: var(--mute);
  font: 700 11.5px / 1.3 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.settings-group ul {
  display: grid;
  gap: 2px;
}
.settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-strong);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.settings-link:hover {
  background: var(--row-hover);
  color: var(--navy);
}
/* The Settings list's current page: a soft fill, never a colored edge. */
.settings-link[aria-current="page"] {
  background: var(--soft);
  color: var(--navy);
}
/* The arrow says "opens a page", which only the phone's list needs. */
.settings-arrow {
  display: none;
  flex: none;
  opacity: 0.55;
}
.settings-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
}
.settings-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.settings-back {
  display: none;
}
/* A narrow page puts each row's controls under its title, as on a phone. */
@container (max-width: 700px) {
  .page-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .danger-zone {
    margin-inline: 0;
  }
}
/* Phone: the list is its own screen, and a page opens over it with a way back. */
@media (max-width: 760px) {
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-nav {
    padding: 22px 12px 20px;
    border-right: 0;
  }
  .settings.listing .settings-pane,
  .settings:not(.listing) .settings-nav {
    display: none;
  }
  .settings-nav h2 {
    font-size: 25px;
  }
  .settings-link {
    min-height: 48px;
    font-size: 16px;
  }
  .settings-arrow {
    display: flex;
  }
  /* The list alone opens nothing yet, so no item looks open. */
  .settings.listing .settings-link[aria-current="page"] {
    background: none;
    color: var(--text-strong);
  }
  .settings-back {
    display: inline-flex;
    align-self: flex-start;
    margin: 12px 0 0 12px;
  }
  .settings-back + .settings-page .page-head {
    padding-top: 6px;
  }
}

/* What cannot be undone: a red outline and a red button. Outset by its padding, so its columns
   line up with the rows above it, and no wider than those rows' content, so its outline does not
   run on far past it. */
.danger-zone {
  max-width: calc(960px + 49px);
  margin: 16px -24px 0;
  padding: 22px 23px;
  border: 1.5px solid var(--bad-line);
  border-radius: 18px;
}
.danger-zone h3 {
  color: var(--bad);
}
/* Analytics: four key numbers in one outlined box, then the charts in cards, two to a row. Bars,
   lines and rings use the brand blue; the hours use the --heat ramp. */
.analytics {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat {
  position: relative;
  min-width: 0;
  padding: 18px 20px 16px;
}
.stat + .stat {
  box-shadow: -1px 0 0 var(--line);
}
.stat h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font: 600 13px / 1.3 var(--body);
}
.info-tip {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--mute);
  font: 700 10px / 1 var(--body);
  cursor: help;
}
.info-tip:hover,
.info-tip:focus-visible {
  background: var(--soft-edge);
  color: var(--navy);
}
/* On a touch screen, a press anywhere in the 40px around a small control reaches it. */
@media (pointer: coarse) {
  .info-tip {
    position: relative;
  }
  .info-tip::after,
  .live-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
  }
}
.stat-value {
  margin: 8px 0 2px;
  color: var(--navy);
  font: 700 34px / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.stat-value.none {
  font-size: 22px;
}
.stat-note {
  margin-top: 4px;
  color: var(--mute);
  font-size: 13px;
}
.stat-change {
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}
.stat-change.better {
  color: var(--green);
}
.stat-change.worse {
  color: var(--bad);
}
.stat-change span {
  color: var(--mute);
  font-weight: 400;
}
.spark {
  position: absolute;
  top: 44px;
  right: 18px;
  width: 42%;
  height: 36px;
  overflow: visible;
}
.spark-area {
  fill: color-mix(in srgb, var(--blue) 14%, transparent);
}
.spark-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* Nothing counted yet: the same shape in grey. */
.spark-empty .spark-area {
  fill: color-mix(in srgb, var(--mute) 10%, transparent);
}
.spark-empty .spark-line {
  stroke: color-mix(in srgb, var(--mute) 45%, transparent);
}
/* A point's column takes the pointer, and its guide drops from the line to the floor. */
.spark-point rect {
  fill: transparent;
}
.spark-point line {
  pointer-events: none;
  stroke: var(--blue-deep);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.spark-point:hover line {
  opacity: 1;
}
.stat-ring {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
}
.stat-ring .stat-value {
  margin: 0;
}
.ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 6;
}
.ring-back {
  stroke: var(--soft);
}
.ring-front {
  stroke: var(--blue);
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s;
}
.stat-meter,
.share-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}
.stat-meter {
  margin-top: 10px;
}
.stat-meter span,
.share-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.5s;
}
.charts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}
/* A card alone on the last row takes the whole width. */
.charts > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.chart-card {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 14px;
  color: var(--mute);
  font-size: 13px;
}
.chart-head h3 {
  color: var(--navy);
  font: 700 16px / 1.2 var(--display);
}
.per-day,
.hours {
  margin: 0;
  min-width: 0;
}
.per-day {
  --scale-gutter: 28px;
}
/* The scale's labels sit in the left gutter, and the lines at the top, middle and floor. */
.day-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 180px;
  padding-left: var(--scale-gutter);
  background:
    linear-gradient(var(--line), var(--line)) var(--scale-gutter) 0 / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) var(--scale-gutter) 50% / 100% 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) var(--scale-gutter) 100% / 100% 1px no-repeat;
}
.day-scale {
  position: absolute;
  left: 0;
  color: var(--mute);
  font-size: 11.5px;
  transform: translateY(-50%);
}
.day-bar {
  display: flex;
  flex: 1;
  align-items: flex-end;
  height: 100%;
}
.day-bar i {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  transition: height 0.4s;
}
.day-bar:hover i {
  background: var(--blue-deep);
}
.day-axis {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0 var(--scale-gutter);
  color: var(--mute);
  font-size: 12px;
}
.outcomes,
.repliers {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.outcomes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  font-size: 14px;
}
.outcome-label,
.replier-name {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-count {
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.share-count span {
  margin-left: 6px;
  color: var(--mute);
  font-weight: 400;
}
.outcomes .share-track {
  grid-column: 1 / -1;
  height: 10px;
}
.outcome-note {
  grid-column: 1 / -1;
  color: var(--mute);
  font-size: 12.5px;
}
.repliers li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
}
.repliers .avatar {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.repliers .share-track {
  grid-column: 2 / -1;
}
.heat {
  display: grid;
  grid-template-columns: 34px repeat(24, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  color: var(--mute);
  font-size: 11.5px;
}
.heat-hour {
  white-space: nowrap;
}
.heat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--soft);
}
.heat-cell:hover {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.heat-cell.peak {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--map-dot);
}
/* A cell's level, in the grid and in its legend. Level 0, an hour with none, keeps the cell's own
   background. */
.hours .level-1 {
  background: var(--heat-1);
}
.hours .level-2 {
  background: var(--heat-2);
}
.hours .level-3 {
  background: var(--heat-3);
}
.hours .level-4 {
  background: var(--heat-4);
}
.heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  color: var(--mute);
  font-size: 12px;
}
.heat-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.heat-swatch:first-of-type {
  margin-left: 4px;
}
.heat-swatch:last-of-type {
  margin-right: 4px;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    box-shadow: 0 -1px 0 var(--line);
  }
  .stat:nth-child(4) {
    box-shadow:
      -1px 0 0 var(--line),
      0 -1px 0 var(--line);
  }
  .charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat + .stat {
    box-shadow: 0 -1px 0 var(--line);
  }
  .heat {
    grid-template-columns: 28px repeat(24, minmax(0, 1fr));
    gap: 2px;
  }
  .heat-cell {
    border-radius: 2px;
  }
  .spark {
    width: 38%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring-front,
  .stat-meter span,
  .share-track span,
  .day-bar i {
    transition: none;
  }
}
/* An area with a card over the part under the pointer or the focus. analytics.tsx places it. */
.tipped {
  position: relative;
}
.chart-tip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 1px;
  margin-top: -8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--navy);
  box-shadow: 0 8px 24px rgb(11 34 57 / 0.2);
  color: var(--on-navy);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
.chart-tip b {
  font-weight: 650;
}
.chart-tip span {
  opacity: 0.75;
}
/* The words behind an "i" button wrap. */
.chart-tip.words {
  max-width: 260px;
  width: max-content;
  white-space: normal;
}
.stack {
  display: grid;
  gap: 12px;
}
.quiet {
  color: var(--mute);
}
.code-block {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code);
  /* In the dark the block is darker than the card, and the line keeps its edge. */
  box-shadow: 0 0 0 1px var(--line);
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 5px 0 16px;
  background: var(--code-bar);
  color: var(--code-mute);
  font: 500 13.5px / 1 var(--body);
}
.code-bar .copy {
  background: none;
  color: var(--code-mute);
}
.code-bar .copy:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.1);
  color: var(--code-ink);
}
.code-bar .copy:focus-visible {
  outline-color: var(--code-ink);
  outline-offset: -2px;
}
.code-block pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  color: var(--code-ink);
  font: 13.5px / 1.7 var(--mono);
  /* A long line scrolls sideways instead of breaking inside a tag. */
  white-space: pre;
}
.code-tag,
.code-keyword {
  color: var(--code-tag);
}
.code-attr,
.code-key {
  color: var(--code-attr);
}
.code-string {
  color: var(--code-string);
}
.code-number {
  color: var(--code-number);
}
.code-comment {
  color: var(--code-comment);
}
.mono {
  font-family: var(--mono);
  font-size: 13.5px;
}
.copy-field,
.inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-field input,
.inline-field input {
  flex: 1;
  min-width: 0;
}
/* A long label and a short one for the same thing: the short one takes over on a phone. */
.short-text {
  display: none;
}
.field .hint {
  display: block;
  margin-top: 8px;
}
/* The Role header starts where the text inside the role pills starts. */
.members th:nth-child(3) {
  padding-left: 26px;
}
.copy-field .pill,
.inline-field .pill {
  min-height: 44px;
}
.copy-field .icon-button {
  width: 44px;
  height: 44px;
  background: var(--soft);
}
.copy-field .icon-button:hover {
  background: var(--soft-hover);
}
/* Each allowed site as a card, and the field that adds one. */
.sites {
  display: grid;
  gap: 8px;
}
.site-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px 4px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 550;
}
.site-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-add input {
  flex: 1 1 240px;
  min-width: 0;
}
.site-add .pill {
  min-height: 44px;
}
.actions.spread {
  justify-content: space-between;
}

/* Radio buttons drawn as pills, such as the theme on the Profile page. */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.choices label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px 0 12px;
  border-radius: 999px;
  color: var(--text-strong);
  font-weight: 600;
  cursor: pointer;
}
/* The radio stays in the page for the keys and screen readers, under its pill. */
.choices input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choices label:hover {
  color: var(--navy);
  background: var(--row-hover);
}
.choices label:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.choices label:has(:checked) {
  background: var(--soft);
  box-shadow: inset 0 0 0 1.5px var(--soft-edge);
  color: var(--navy);
}
/* One segmented control in an outline, such as Open or Closed. */
.choices.outlined {
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--field-line);
}
.choices.outlined label {
  min-height: 32px;
  padding: 0 14px;
  font-size: 14px;
}
/* Open and Closed, or All, Mine and Unassigned, in equal parts across the filter card. */
.choices.full label {
  flex: 1;
  justify-content: center;
  padding: 0 8px;
}
/* Tabs: a row of words over a line, the chosen one underlined. */
.choices.tabs {
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.choices.tabs label {
  min-height: 0;
  padding: 8px 12px 10px;
  border-radius: 8px 8px 0 0;
  color: var(--mute);
}
.choices.tabs label:has(:checked) {
  background: none;
  box-shadow: inset 0 -2px 0 var(--navy);
  color: var(--navy);
}
/* Reply or Note, over the box: a small segmented pill, the note one in the note's yellow. The
   8px under it clears the box's focus ring. */
.compose > .choices {
  flex-wrap: nowrap;
  gap: 2px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
}
.compose > .choices label {
  gap: 6px;
  min-height: 28px;
  padding: 0 12px 0 10px;
  color: var(--mute);
  font-size: 13px;
}
.compose > .choices label:hover {
  background: none;
  color: var(--text-strong);
}
.compose > .choices label:has(:checked) {
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgb(11 34 57 / 0.08);
  color: var(--navy);
}
.compose > .choices label:last-child:has(:checked) {
  background: var(--note);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn-ink) 25%, transparent);
  color: var(--warn-ink);
}
.choice-count {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
/* Tabs as filled pills: the chosen one in the strong fill, as on the Campaigns list. */
.choices.pills label:has(:checked) {
  background: var(--fill);
  box-shadow: none;
  color: var(--on-fill);
}
.choices.pills label:has(:checked) .choice-count {
  color: inherit;
  opacity: 0.7;
}
/* Appearance: the form, and the preview beside it, which stays in view. In the markup the
   preview comes first, so on a narrow screen it sits above the form. */
.appearance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 32px;
  align-items: start;
  padding-top: 16px;
}
.widget-preview {
  position: sticky;
  top: 16px;
  grid-row: 1;
  grid-column: 2;
  display: grid;
  gap: 12px;
}
.widget-form {
  grid-row: 1;
  grid-column: 1;
  display: grid;
  gap: 20px;
  min-width: 0;
  max-width: 620px;
}
.widget-sections {
  display: grid;
  gap: 28px;
}
.widget-section {
  display: grid;
  gap: 16px;
}
.widget-section + .widget-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
/* Appearance: the preview goes above the form once both no longer fit side by side. */
@container (max-width: 860px) {
  .appearance {
    grid-template-columns: minmax(0, 1fr);
  }
  .widget-preview,
  .widget-form {
    position: static;
    grid-row: auto;
    grid-column: 1;
  }
}
/* The "Colors and layout" and "Files, email and sound" sections on Appearance: one compact line per
   setting, the label on the left and the control on the right, with a hairline between lines. */
.setting-rows {
  display: grid;
}
.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  min-height: 56px;
  padding: 8px 0;
}
.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}
.setting-label {
  display: grid;
  gap: 1px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
}
.setting-label .hint {
  font-weight: 400;
}
.setting-row.setting-switch,
.setting-row.setting-stacked {
  grid-template-columns: minmax(0, 1fr);
}
.setting-row.setting-stacked {
  gap: 10px;
  padding: 12px 0;
}
.setting-row > .choices {
  justify-self: end;
}
.setting-stacked > .choices {
  justify-self: start;
}
/* Business hours: each day's ranges on the right of its name, one under another. */
.day-hours {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.day-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-range input {
  width: auto;
}
.color-field,
.range-field {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
/* The swatch and the hex code share one field. */
.color-box {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 0 4px 0 5px;
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  background: var(--surface);
}
.color-box:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--focus-halo);
}
.color-box input[type="color"] {
  width: 26px;
  min-height: 0;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}
.color-box input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-box input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}
.color-box input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 7px;
}
.color-box .mono {
  width: 84px;
  min-height: 0;
  height: 32px;
  padding: 0 6px;
  border: 0;
  background: none;
}
.color-box .mono:focus-visible {
  outline: none;
}
.range-field input {
  width: 180px;
  min-height: 0;
  padding: 0;
  border: 0;
  accent-color: var(--fill);
}
.range-field output {
  min-width: 44px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
/* On a narrow screen the control goes under its label. */
@media (max-width: 520px) {
  .setting-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .setting-row > .choices,
  .color-field,
  .range-field {
    justify-self: start;
    justify-content: flex-start;
  }
  .range-field input {
    width: auto;
    flex: 1;
  }
  .range-field {
    justify-self: stretch;
  }
  /* Five choices, such as the chat button's, share the row and wrap only when they must. */
  .setting-row > .choices.outlined {
    flex-wrap: wrap;
    justify-self: stretch;
    border-radius: 20px;
  }
  .setting-row > .choices.outlined label {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
  }
}
.widget-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-body {
  display: grid;
  gap: 12px;
}
/* A page behind the widget, in the widget's own scheme and not the app's: the light sky behind a
   light widget and the night behind a dark one, so the tokens inside follow it too. It clips the
   widget on a narrow phone rather than widen the page. */
.preview-stage {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: var(--sky);
  /* Light in every theme, as most sites are, so a dark chat stands out from it. */
  color-scheme: light;
}
.preview-fold {
  display: none;
}
@media (max-width: 760px) {
  .preview-fold {
    display: inline-flex;
  }
  .widget-preview[data-folded="true"] .preview-body {
    display: none;
  }
  .preview-stage {
    padding: 8px;
  }
}
.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
/* Contacts: search and sort above the table, and a row's person opens their page. */
.contacts-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 6px 0 4px;
}
.contacts-tools .search {
  flex: 1 1 260px;
  max-width: 420px;
  margin: 0;
}
.contact-open {
  width: 100%;
  min-height: 40px;
  margin: -6px;
  padding: 6px;
  border-radius: 12px;
  text-align: left;
}
.contact-open:hover {
  background: var(--row-hover);
}
.contacts .number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.contacts td {
  color: var(--text-strong);
}
.contacts time {
  white-space: nowrap;
}
.identity-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 0;
  vertical-align: baseline;
}
/* One contact: who they are on a blue band, the facts as tiles, then the conversations and pages
   beside the note and the details. */
.contact-page {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 32px 32px;
}
.contact-page > .back-link {
  justify-self: start;
  color: var(--blue-deep);
  font-size: 14px;
}
.contact-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: var(--tile-blue);
}
.contact-hero .avatar {
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 3px var(--surface);
  font-size: 28px;
}
.contact-hero .flag-badge {
  right: -6px;
  bottom: 0;
  width: 28px;
  height: 21px;
  border-radius: 5px;
  box-shadow: 0 0 0 3px var(--tile-blue);
  font-size: 19px;
}
.contact-who {
  flex: 1;
  min-width: 240px;
}
.contact-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.contact-name h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font: 700 32px / 1.1 var(--display);
}
.contact-name .chip {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
}
.contact-name .chip.signed {
  color: var(--green);
}
.contact-name .chip.bad {
  color: var(--bad);
}
.contact-email {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  min-width: 0;
}
.contact-email-link {
  overflow: hidden;
  color: var(--text-strong);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-email-link:hover {
  text-decoration: underline;
}
.contact-seen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  color: var(--mute);
  font-size: 13.5px;
}
.contact-seen-link {
  color: var(--blue-deep);
  text-decoration: none;
}
.contact-seen-link:hover {
  text-decoration: underline;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-actions .round {
  background: var(--surface);
}
.contact-actions .round:hover,
.contact-actions .round[aria-expanded="true"] {
  background: var(--soft);
}
/* As many tiles to a row as fit. */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.contact-tiles .tile {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-tiles dt {
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}
.contact-tiles dd {
  overflow: hidden;
  margin-top: 4px;
  color: var(--navy);
  font: 700 19px / 1.2 var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-tiles .tile-sub {
  margin-top: 0;
  color: var(--mute);
  font: 400 12.5px / 1.45 var(--body);
}
.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.contact-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.contact-conversations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.conversation-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: background-color 0.12s;
}
.conversation-card:hover {
  background: var(--row-hover);
}
/* An outbound message on a contact: the same card, with no link, and Cancel under it. */
.outbound-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.outbound-card .text-button {
  justify-self: start;
}
.conversation-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.conversation-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-top time {
  flex: none;
  color: var(--mute);
  font-size: 13px;
}
.contact-subhead {
  margin-top: 8px;
  color: var(--navy);
  font: 700 16px / 1.2 var(--display);
}
.conversation-facts {
  overflow: hidden;
  color: var(--mute);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-main .journey {
  font-size: 14px;
}
.contact-side {
  display: grid;
  gap: 16px;
  align-items: start;
}
.contact-side h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font: 700 16px / 1.2 var(--display);
}
.contact-details {
  padding: 16px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-details .page-context {
  margin-top: 12px;
  font-size: 12.5px;
}
/* The note as a sticky note: the field takes the card's yellow. */
.contact-note {
  padding: 16px;
  border-radius: 18px;
  background: var(--note);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-fill) 30%, transparent);
}
.contact-note .note-field {
  width: 100%;
  min-height: 96px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.contact-note small {
  color: var(--mute);
  font-size: 12px;
}
.members th {
  padding: 14px 12px 10px;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.members td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.members .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.who-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.who-lines {
  display: grid;
  min-width: 0;
}
.who-lines strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}
.who-lines > .chip {
  justify-self: start;
  margin-top: 4px;
}
.who-lines > span {
  overflow: hidden;
  color: var(--mute);
  font-size: 13.5px;
  text-overflow: ellipsis;
}
.you {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--tile-blue);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
}
.email-cell {
  overflow-wrap: anywhere;
  color: var(--mute);
}
.two-factor-cell {
  color: var(--mute);
  white-space: nowrap;
}
/* Light on dark too, because a scanner reads only dark squares on a light ground. */
.qr {
  width: 176px;
  height: 176px;
  border-radius: 8px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.end-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.phone-only {
  display: none;
}
.members td > .chip:not(.warn) {
  min-height: 36px;
  padding: 0 14px;
  color: var(--navy);
  font-size: 14.5px;
}
.members .role .select-button {
  width: max-content;
}
.members .role .select-value {
  overflow: visible;
}
.lock-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 12px 0;
  color: var(--mute);
  font-size: 13.5px;
}
.lock-note svg {
  flex: none;
}
.page-body > .bad {
  margin-top: 12px;
}
.created {
  display: grid;
  gap: 8px;
}
/* The new key's access: a label, the choice, and one line on what the chosen one can do. */
.key-level {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.key-level .hint {
  margin: 0;
}
.created .hint {
  margin: 0;
}
/* A finished step in a dialog: a round check, a short title and one line, centered. */
.success {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}
.success p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.success b {
  color: var(--navy);
  font-weight: 600;
}
.dialog-actions.centered {
  justify-content: center;
}
/* Plan and usage: one line and a thin bar for each limit. */
.meters {
  display: grid;
  gap: 18px;
}
.meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.meter-label {
  color: var(--navy);
  font-weight: 650;
}
.meter-value {
  color: var(--mute);
}
.meter-bar {
  height: 6px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
}
.meter.near .meter-fill {
  background: var(--warn-fill);
}
.meter.full .meter-fill {
  background: var(--red);
}
.meter-note {
  color: var(--mute);
  font-size: 13.5px;
}
.meter.full .meter-note {
  color: var(--bad);
}
/* Appearance: the members the header shows, in order, each with its buttons. */
.chosen-members {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chosen-members > li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chosen-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chosen-members .down svg {
  transform: rotate(180deg);
}
/* Blocked visitors, API keys and webhooks: one item a row, with a line between rows. */
.item-list {
  display: grid;
}
.item-list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.item-list > li + li {
  border-top: 1px solid var(--line);
}
.item-list .who-lines {
  flex: 1;
}
.item-list .who-lines strong {
  overflow-wrap: anywhere;
}
.check.hook-switch {
  width: auto;
}
.hook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.events {
  display: grid;
  gap: 2px;
}
.events legend {
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 600;
}
.event-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
}
.event-option:hover {
  background: var(--row-hover);
}
.event-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--fill);
  cursor: pointer;
}
.event-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.events code,
.deliveries code {
  color: var(--mute);
  font: 12.5px / 1.4 var(--mono);
}
/* The address on one line, cut with an ellipsis. Pointing at it, or moving into its row with the
   keyboard, shows it in full. */
.hook-events {
  font-family: var(--mono);
  font-size: 12.5px;
}
.deliveries {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  overflow-wrap: anywhere;
}
/* A delivery's Replay sits at the end of its line, and its failed answer opens below it. */
.delivery-replay {
  margin-left: auto;
}
.excerpt {
  flex-basis: 100%;
}
.excerpt summary {
  width: max-content;
  color: var(--blue-deep);
  font-weight: 600;
  cursor: pointer;
}
.excerpt pre {
  max-height: 220px;
  margin: 6px 0 0;
  padding: 10px 12px;
  overflow: auto;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text-strong);
  font: 12.5px / 1.5 var(--mono);
  white-space: pre-wrap;
}
/* Set up with an agent: the client's tabs, the whole prompt in the code style, and a big Copy. */
.agent-prompt {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}
.prompt-text {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--code);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--code-ink);
  font: 13px / 1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-prompt .copy {
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 15.5px;
}
.agent-prompt .copy:hover:not(:disabled) {
  background: var(--fill-hover);
}
.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
}
.check input {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 14px;
  background: var(--switch-off);
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.check input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(11 34 57 / 0.2);
  transition: left 0.15s;
}
.check input:checked {
  background: var(--fill);
}
/* On the light track that --fill makes in the dark, the knob turns dark. */
.check input:checked::after {
  left: 21px;
  background: var(--on-fill);
}

/* Labels: a soft fill and a strong ink for each color, and the dot that stands for it. */
[data-color="gray"] {
  --label-soft: light-dark(#eceae4, #26323f);
  --label-ink: light-dark(#4a5565, #c3ccd6);
}
[data-color="red"] {
  --label-soft: light-dark(#fde3e1, #4a2226);
  --label-ink: light-dark(#a8261d, #ff9d95);
}
[data-color="orange"] {
  --label-soft: light-dark(#fde8d6, #4a2f1b);
  --label-ink: light-dark(#9a4a0b, #ffb77a);
}
[data-color="yellow"] {
  --label-soft: light-dark(#faf0c8, #43391a);
  --label-ink: light-dark(#7a5b00, #ffd96b);
}
[data-color="green"] {
  --label-soft: light-dark(#dcf1e4, #1c3a2b);
  --label-ink: light-dark(#17703f, #7fdca5);
}
[data-color="teal"] {
  --label-soft: light-dark(#d8f0ef, #183a3a);
  --label-ink: light-dark(#0f6a68, #7fd8d4);
}
[data-color="blue"] {
  --label-soft: light-dark(#e0eaff, #1b2f50);
  --label-ink: light-dark(#1d55c4, #9cc3ff);
}
[data-color="purple"] {
  --label-soft: light-dark(#ece4fb, #33264d);
  --label-ink: light-dark(#6237b3, #c9adff);
}
.label-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.who-text .label-pills {
  margin-top: 4px;
}
.label-pill {
  max-width: 14em;
  overflow: hidden;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--label-soft);
  color: var(--label-ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--label-ink);
}
.label-find {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}
.label-choices {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
}
.label-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--text-strong);
  cursor: pointer;
}
.label-choice:hover {
  background: var(--soft);
}
.label-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.label-create {
  justify-self: start;
  margin-top: 4px;
}
/* The bar that takes the search's place while rows are chosen: one row as tall as the search, so
   the list does not move, and narrow enough for the list's narrowest width. */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  margin: 0 16px 12px;
}
/* The box that chooses every row: a small circle, like the rows' own. */
.bulk-all input {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--field-line);
  border-radius: 50%;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
}
.bulk-all input:is(:checked, :indeterminate) {
  border-color: var(--fill);
  background: var(--fill);
}
.bulk-all input:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid var(--on-fill);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bulk-all input:indeterminate::after {
  content: "";
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--on-fill);
}
.bulk-all {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 8px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bulk-bar .round,
.bulk-bar .bulk-clear {
  flex: none;
  width: 36px;
  height: 36px;
}

/* Rules that must come after the general ones they refine. */
.card .note strong {
  color: var(--navy);
  font-weight: 650;
  overflow-wrap: anywhere;
}
/* A chip keeps its edge on the selected row's cream. */
.row[aria-current="true"] .chip:not(.warn) {
  background: var(--surface);
}

/* Tablet: the sidebar becomes a top bar on the grey. */
@media (max-width: 1000px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    padding: 0 10px 10px;
  }
  .stage {
    gap: 8px;
  }
  .side {
    flex-flow: row wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 2px 6px;
  }
  .brand {
    padding: 0 8px 0 4px;
  }
  .workspace-menu,
  .side > .workspace {
    max-width: 220px;
    margin: 0;
  }
  .side .workspace {
    min-height: 40px;
    padding: 6px 10px 6px 6px;
  }
  /* The sections never fit beside the rest, so they take the second row, under the workspace on
     the left and the icons on the right. */
  .nav {
    flex-direction: row;
    order: 1;
    width: 100%;
  }
  .nav button {
    gap: 7px;
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14.5px;
    white-space: nowrap;
  }
  .nav .count {
    margin-left: 2px;
  }
  /* The operator shrinks to their avatar, and the menu opens down. */
  .me-menu {
    margin: 0 0 0 auto;
  }
  /* Get started shrinks to its ring and count, beside the operator. */
  .get-started {
    margin: 0 0 0 auto;
  }
  .get-started + .me-menu {
    margin: 0;
  }
  .get-started-button {
    display: flex;
    min-height: 40px;
    width: auto;
  }
  .get-started-button > span:not(.steps-count) {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .get-started-panel {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: auto;
  }
  .me {
    min-height: 0;
    padding: 3px;
    border-radius: 50%;
  }
  /* A ring that takes no space, so the header does not move on Profile. */
  .me.current {
    box-shadow: 0 0 0 3px var(--surface);
  }
  /* The title and the button share a row, and the line of context takes the full width below on
     every page, so a button on one page cannot make it wrap differently from the next. */
  .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    /* As tall as the button, with or without one. */
    grid-template-rows: 44px auto;
    align-items: center;
    row-gap: 0;
  }
  .page-title {
    display: contents;
  }
  .page-head p {
    grid-column: 1 / -1;
  }
  .page-actions {
    grid-row: 1;
    grid-column: 2;
  }
  .invite {
    padding: 0 16px;
  }
  .short-text {
    display: inline;
  }
  .long-text {
    display: none;
  }
  .me-text,
  .me > svg:last-child {
    display: none;
  }
  .me-menu .popup.up {
    top: 100%;
    bottom: auto;
    margin: 6px 0 0;
    animation-name: pop;
  }
  .me-menu .side-start {
    right: 0;
    left: auto;
  }
  .split {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
}

/* The contact page: the note and details above the conversations, side by side, then stacked on a
   phone. */
@media (max-width: 1100px) {
  .contact-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-side {
    order: -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .contact-page {
    padding: 16px;
  }
  .contact-hero {
    padding: 16px;
  }
  .contact-name h2 {
    font-size: 26px;
  }
  .contact-actions {
    width: 100%;
  }
  .contact-actions .pill.dark {
    flex: 1;
  }
  .contact-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone: one pane at a time, a compact top bar, and the sections in a tab bar at the bottom. The
   insets keep everything clear of the notch, the home bar and the browser's own bars. */
@media (max-width: 760px) {
  :root {
    --tab-bar-height: 58px;
    --phone-edge: max(8px, env(safe-area-inset-left));
  }
  .shell {
    height: 100dvh;
  }
  .app {
    padding: 0 var(--phone-edge) calc(var(--tab-bar-height) + env(safe-area-inset-bottom) + 8px);
  }
  .contacts .wide-cell,
  .table-skeleton .wide-cell {
    display: none;
  }
  .visitor-panel.overlay {
    width: 100%;
    max-width: none;
  }
  /* The top bar: the workspace on the left, Get started and the operator on the right. The tab
     bar names the app, so the wordmark goes. */
  .side {
    flex-wrap: nowrap;
    gap: 6px;
    padding: max(8px, env(safe-area-inset-top)) 4px 6px;
  }
  .brand {
    display: none;
  }
  .workspace-menu,
  .side > .workspace {
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
  }
  .get-started,
  .get-started + .me-menu {
    margin: 0;
  }
  .get-started {
    margin-left: auto;
  }
  /* The steps drop under the top bar as a card, inside the screen's edges. */
  .get-started-panel {
    position: fixed;
    top: calc(max(8px, env(safe-area-inset-top)) + 52px);
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)) - 64px);
    overflow-y: auto;
  }
  .get-started-panel .icon-button {
    width: 40px;
    height: 40px;
    margin: -8px -8px 0 0;
  }
  .nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 2px;
    margin: 0;
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .nav button {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: auto;
    min-width: 0;
    height: calc(var(--tab-bar-height) - 9px);
    min-height: 0;
    padding: 0;
    /* Six labels share the row, so they shrink on a screen narrower than 390px. */
    font-size: min(11.5px, 3vw);
    line-height: 1.2;
  }
  .nav button[aria-current="page"] {
    background: var(--soft);
    box-shadow: none;
  }
  /* The count sits on the icon's corner, so every label keeps its place. */
  .nav .count {
    position: absolute;
    top: 3px;
    left: calc(50% + 4px);
    min-width: 18px;
    margin: 0;
    padding: 0 5px;
    font-size: 11px;
    line-height: 16px;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .toasts {
    bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom) + 12px);
  }
  .panel {
    border-radius: 18px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .list {
    border-right: 0;
  }
  .app.showing .side,
  .app.showing .list {
    display: none;
  }
  .app.showing {
    grid-template-rows: minmax(0, 1fr);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .app:not(.showing) .thread {
    display: none;
  }
  .back {
    display: grid;
    margin-left: -8px;
  }
  .thread-head {
    gap: 8px;
    padding: 8px 12px 10px;
  }
  .who-is {
    flex-basis: 100%;
    gap: 8px;
  }
  .who-is .avatar-wrap {
    display: none;
  }
  .thread-head .actions {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }
  .assignee {
    flex: 1;
    min-width: 0;
  }
  /* The assignee is the row's first control, so its list opens from its left edge. */
  .thread-head .assignee .popup {
    right: auto;
    left: 0;
  }
  .assignee .select-button {
    width: 100%;
    max-width: none;
  }
  .assignee .select-value {
    flex: 1;
  }
  .replying {
    padding-inline: 14px;
  }
  .log {
    padding: 16px 14px;
  }
  .msg,
  .shot {
    max-width: 84%;
  }
  .bubble-row {
    max-width: calc(84% + 34px);
  }
  .compose {
    padding: 6px 8px 8px;
  }
  .compose .box {
    position: relative;
    padding: 4px;
  }
  /* The emoji grid opens over the whole box, as the button sits too far right for its width. */
  .compose .emoji-picker {
    position: static;
  }
  .compose .compose-field {
    min-height: 40px;
    max-height: 160px;
  }
  .format-toggle {
    display: grid;
  }
  .compose:not(.formatting) .format-tools,
  .compose .tools-divider {
    display: none;
  }
  /* The text takes the full width. Attach, emoji and Aa sit under it, and send stays alone at the
     right, away from them. Aa opens the formats between the text and the tools. */
  .compose-tools {
    flex-wrap: wrap;
  }
  .compose.formatting .format-tools {
    flex-basis: 100%;
    order: -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
  }
  .compose.linking .format-tools {
    display: none;
  }
  .closed,
  .thread > .bad {
    margin: 0 10px 10px;
  }
  .page-head {
    padding: 22px 18px 0;
  }
  .list .page-head {
    padding: 22px 18px 12px;
  }
  .list-tools,
  .bulk-bar {
    margin-inline: 12px;
  }
  .page-head h2 {
    font-size: 25px;
  }
  .page-body {
    padding: 4px 18px 32px;
  }
  .page-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }
  .danger-zone {
    margin-inline: 0;
    padding: 18px;
  }
  .app .pill,
  .dialog .pill,
  .app .select-button {
    min-height: 44px;
  }
  /* Add note matches the 40px send button, so the composer keeps its height between modes. */
  .compose .send-note {
    min-height: 40px;
  }
  /* The thread's controls share one row on a 360px phone, so they keep the 40px minimum. */
  .thread-head .pill,
  .thread-head .assignee .select-button {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
  }
  .thread-head .assignee .select-button {
    padding-left: 6px;
  }
  .thread-head .round {
    width: 40px;
    height: 40px;
  }
  .thread-head .icon-button,
  .back,
  .compose .icon-button,
  .compose button[type="submit"],
  .panel-who .icon-button,
  .live-tool {
    min-width: 40px;
    min-height: 40px;
  }
  /* A finger needs 40px: the text buttons, the docs links and the small pills grow to it. */
  .text-button,
  .doc-link,
  .app .live-actions .pill {
    min-height: 40px;
  }
  .choices.outlined label {
    min-height: 36px;
  }
  /* A field under 16px makes iOS zoom the page when it takes the focus. */
  :root
    :is(
      input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]),
      textarea,
      select,
      .compose-field
    ) {
    font-size: 16px;
  }
  .members thead,
  .members .email-cell,
  .members .two-factor-cell {
    display: none;
  }
  .members td {
    padding: 12px 4px;
  }
  .members .who-cell .avatar {
    display: none;
  }
  .who-lines > span {
    overflow-wrap: anywhere;
  }
  .members tr:first-child td {
    border-top: 0;
  }
  .phone-only {
    display: block;
  }
  .who-lines > .phone-only {
    justify-self: start;
  }
  .who-lines > .chip {
    margin-top: 4px;
    white-space: normal;
  }
  .who-lines strong {
    flex-wrap: wrap;
  }
  .lock-note {
    align-items: flex-start;
    margin-inline: 6px;
  }
  .lock-note svg {
    margin-top: 3px;
  }
  .card {
    padding: 24px 20px;
  }
  /* Above the card, which starts near a quarter of the screen. */
  .cloud-b {
    top: 11%;
  }
  .signin {
    padding-bottom: 150px;
  }
  .shore {
    height: 170px;
  }
  .shore .ship svg {
    width: 104px;
    height: auto;
  }
  .sun {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search .spinner {
    animation-duration: 2.4s;
  }
  .ship,
  .signin .card,
  .popup,
  .dialog {
    animation: none;
  }
  .scene,
  .sun,
  .btn,
  .pill,
  .round,
  .row,
  .nav button,
  .workspace,
  .me,
  .select-button,
  .check input,
  .check input::after,
  .get-started-button,
  .fold-chevron,
  .sugg-caret {
    transition: none;
  }
}

/* Toasts: one short message at the bottom center, over everything, which goes by itself. */
/* The name of an icon, or a title, under the pointer or the focus. Its script places it. It is a
   popover, so it shows over an open dialog too, and these lines undo the popover's default box. */
.tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  border: 0;
  overflow: visible;
  max-width: min(280px, calc(100vw - 16px));
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgb(11 34 57 / 0.18);
  pointer-events: none;
  animation: tooltip-in 0.12s ease-out;
}
@keyframes tooltip-in {
  from {
    opacity: 0;
  }
}
.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1000;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 14.5px;
  font-weight: 550;
  box-shadow: 0 10px 28px rgb(11 34 57 / 0.22);
  animation: toast-in 0.18s ease-out;
}
.bad-toast {
  background: var(--bad);
  color: #fff;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .typing-dots i {
    animation: none;
  }
}

/* What an account's delete does to each workspace its operator alone owns. */
.delete-outcomes {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy);
  font-size: 14.5px;
  line-height: 1.45;
}
.outcome {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Visitors: the map and the tiles on the left, the people on the right in a column that stays in
   view. On a narrow screen the people come between the map and the tiles. */
.live-count {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.live-pulse {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.live-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: live-ping 1.8s ease-out infinite;
}
@keyframes live-ping {
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  padding-top: 10px;
}
.live-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* The world on a navy sea, which pans and zooms inside its box. */
.live-map {
  position: relative;
  margin: 0;
  aspect-ratio: 360 / 150;
  overflow: hidden;
  border-radius: 20px;
  background: var(--map-sea);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
/* Zoomed, a drag pans the map, so it no longer scrolls the page. */
.live-map.zoomed {
  touch-action: none;
}
.live-map.dragging {
  cursor: grabbing;
}
.live-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.live-map.dragging .live-zoom {
  transition: none;
}
/* The land starts a little below the top, as WORLD_TOP in visitors.tsx says. */
.live-world {
  position: absolute;
  inset: 4% 0 0;
}
.live-land {
  position: absolute;
  inset: 0;
  background: var(--map-land);
  mask: url("world.svg") center / 100% 100% no-repeat;
}
.live-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  background: var(--map-dot);
  color: var(--map-ink);
  font: 700 10.5px / 1 var(--body);
  box-shadow: 0 0 0 3px rgb(255 201 23 / 0.22);
  transition:
    box-shadow 0.15s,
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.live-dot.group {
  width: 18px;
  height: 18px;
}
.live-dot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--map-dot);
  border-radius: 50%;
  opacity: 0;
  animation: live-ring 2.4s ease-out infinite;
}
@keyframes live-ring {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}
.live-dot:hover,
.live-dot.lit {
  box-shadow:
    0 0 0 3px rgb(255 201 23 / 0.35),
    0 0 0 7px rgb(255 201 23 / 0.16);
}
.live-dot.dim {
  opacity: 0.35;
}
.live-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.live-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
}
.live-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.live-tool:hover {
  background: rgb(255 255 255 / 0.2);
}
.live-reset {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--map-ink);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}
.live-hint {
  position: absolute;
  bottom: 12px;
  left: 14px;
  max-width: calc(100% - 80px);
  color: rgb(255 255 255 / 0.55);
  font-size: 12px;
}
/* The card over a dot, white on the sea in both themes, as the reset chip is. */
.live-card {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--map-ink);
  font-size: 13px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none;
}
.live-card.below {
  transform: translate(-50%, 16px);
}
.live-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.live-card ul {
  padding: 0;
  list-style: none;
}
.live-card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  color: var(--map-ink-mute);
}
.live-card em {
  overflow: hidden;
  font-style: normal;
  font-weight: 600;
  color: var(--map-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The last hour beside the count in the page's head, as the Analytics spark draws it. */
.live-spark {
  flex: none;
  width: 120px;
  height: 24px;
  margin-left: 4px;
  overflow: visible;
}
.live-summary {
  margin: -4px 0 12px;
  color: var(--mute);
  font-size: 13px;
}

/* Pages, Came from, Countries and Devices now, and the top pages and sources of a period, as bars
   behind the counts, two to a row. */
.live-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.live-tile {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.live-tile h3,
.live-people > h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font: 700 16px / 1.2 var(--display);
}
/* One column as wide as the tile: an auto column would grow to fit a label that does not wrap. */
.live-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  list-style: none;
}
.live-bars-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  color: var(--navy);
  font-size: 13.5px;
}
.live-bars span {
  position: relative;
}
/* The label shrinks to its ellipsis, as a flex item is otherwise as wide as its words. */
.live-bars span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-bars span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.live-bars .live-bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 9px;
  background: var(--tile-blue);
}

/* The people, in a column as tall as the map and its tiles, which scrolls on its own. Its size
   containment keeps a long list from making the row taller. */
.live-people {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
  contain: size;
}
.live-list {
  display: grid;
  gap: 6px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.live-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
.live-row:hover,
.live-row.lit {
  background: var(--row-hover);
  box-shadow: inset 0 0 0 1px var(--line);
}
.live-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--mute);
  font-size: 21px;
}
.live-face.known {
  background: var(--tile-yellow);
  color: var(--navy);
  font: 700 14px var(--body);
}
.live-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.live-who b {
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.live-chatting,
.chip.live-waiting,
.chip.campaign-live {
  padding: 2px 8px;
  font-size: 12px;
}
.chip.live-chatting,
.chip.campaign-live {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}
.chip.live-chatting::before,
.chip.campaign-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* A live campaign's dot sits in a soft ring, with room for it. */
.chip.campaign-live {
  gap: 8px;
}
.chip.campaign-live::before {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}
.live-page {
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-page a {
  font-weight: 500;
}
.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: var(--mute);
  font-size: 12.5px;
}
.live-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.live-actions .pill {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}
.live-credit {
  margin-top: 10px;
  font-size: 12px;
}
.live-credit a {
  color: var(--mute);
}

@media (max-width: 1100px) {
  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-side {
    display: contents;
  }
  .live-side > .live-tiles {
    order: 3;
  }
  .live-people {
    min-height: 0;
    contain: none;
  }
}
@media (max-width: 640px) {
  .live-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-map {
    aspect-ratio: 360 / 190;
  }
  .live-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-pulse::after,
  .live-dot::before {
    animation: none;
  }
  .live-zoom,
  .live-dot {
    transition: none;
  }
}
/* A draft's Markdown shows as the message it becomes: the .msg rules cover it too. */
.draft-body {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* The consent page: one card in two parts over the sky and the sea. The app and who approves it on
   the left, the choices on the right. A phone stacks the two parts. */
.consent-main {
  place-items: start center;
  padding-top: 44px;
}
.consent {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  width: 100%;
  max-width: 940px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    0 2px 4px rgb(11 34 57 / 0.06),
    0 24px 60px light-dark(rgb(11 34 57 / 0.16), rgb(0 0 0 / 0.35));
}
.consent-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 30px 30px 26px;
  background: var(--cream-soft);
}
.consent-choices {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px 32px 28px;
}
.link-visual {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}
.app-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
}
.app-tile.client {
  background: #262624;
  box-shadow: 0 0 0 1px light-dark(transparent, rgb(255 255 255 / 0.12));
  color: #f4efe6;
}
.app-tile.dinghy {
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(11 34 57 / 0.08),
    0 2px 6px rgb(11 34 57 / 0.06);
}
.link-line {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  max-width: 84px;
  height: 60px;
}
.link-line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  left: 6px;
  border-top: 2px dotted var(--field-line);
}
.link-line span {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--navy);
}
.consent-about h1 {
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.consent-origin {
  margin-top: 6px;
  color: var(--mute);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.consent-about .lede {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 15px;
}
.signed-in {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--text-strong);
  font-size: 14px;
}
.signed-in b {
  color: var(--navy);
  font-weight: 650;
}
.consent-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}
/* The workspace dropdown spans the card, like a field, with the workspace's tile and its role. */
.consent-workspace {
  display: grid;
}
.select.consent-workspace .select-button {
  min-height: 48px;
  padding: 0 14px 0 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--field-line);
  font-weight: 650;
}
.select.consent-workspace .select-button:hover:not(:disabled),
.select.consent-workspace .select-button[aria-expanded="true"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.select.consent-workspace .select-value {
  flex: 1;
  text-align: left;
}
.select.consent-workspace .select-button .ws-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10.5px;
}
/* Access and Replies: two cards side by side, each a radio button. */
.opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opt {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px 16px 15px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
}
.opt:hover {
  box-shadow: inset 0 0 0 1.5px var(--field-line);
}
.opt:has(:checked) {
  background: light-dark(#fbfaf7, #172331);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.opt:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.opt-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.opt input {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--field-line);
  appearance: none;
  cursor: pointer;
}
.opt input:focus-visible {
  outline: 0;
}
.opt input:checked {
  background: var(--fill);
  box-shadow: none;
}
.opt input:checked::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-fill);
}
.opt-top b {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.opt .tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bot-soft);
  color: var(--bot-ink);
  font: 700 11.5px / 1 var(--body);
  white-space: nowrap;
}
.opt-text {
  padding-left: 27px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.can {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 10px 0 0 27px;
  border-top: 1px solid var(--line);
}
.can-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.35;
}
.can .can-item svg {
  flex: none;
  margin-top: 1px;
  color: var(--green);
}
.can-item.cannot {
  color: var(--mute);
}
.can-item.cannot svg {
  color: var(--bad);
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.consent-actions .primary {
  flex: 1;
}
.btn.quiet {
  min-width: 120px;
  background: none;
  color: var(--text-strong);
}
.btn.quiet:hover:not(:disabled) {
  background: var(--soft);
}
@media (max-width: 760px) {
  .consent-main {
    padding-top: 20px;
  }
  .consent {
    grid-template-columns: minmax(0, 1fr);
  }
  .consent-about {
    gap: 16px;
    padding: 24px 22px 20px;
  }
  .consent-choices {
    padding: 24px 22px;
  }
  .signed-in {
    margin-top: 0;
  }
  .opts {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* API & webhooks: the bots' status with the pause switch, then connected apps, API keys and
   webhooks as plain rows between thin lines. */
.status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--bot-soft);
}
.status-card.paused {
  background: var(--warn-soft);
}
.status-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--navy);
}
.status-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--warn-fill);
  color: #fff;
  box-shadow: 0 0 0 3px var(--warn-soft);
}
.status-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 20px;
  line-height: 1.2;
}
.state-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--warn-ink);
  font: 700 13px / 1 var(--body);
  letter-spacing: 0;
}
.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn-fill);
}
.status-card p {
  margin-top: 5px;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.45;
}
.status-card b {
  color: var(--navy);
  font-weight: 650;
}
/* The big switch, with its label under it. */
.check.big-switch {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: auto;
}
.check.big-switch input {
  width: 64px;
  height: 36px;
  border-radius: 18px;
}
.check.big-switch input::after {
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
}
.check.big-switch input:checked::after {
  left: 32px;
}
.check.big-switch input:disabled {
  cursor: default;
  opacity: 0.6;
}
.check.big-switch small {
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 650;
}
.sec {
  margin-top: 22px;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}
.sec-head h3 {
  font-size: 18px;
  line-height: 1.2;
}
.sec-head p {
  margin-top: 3px;
  color: var(--text);
  font-size: 13.5px;
}
.sec-head .pill {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.sec-empty {
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}
.items {
  display: grid;
  border-top: 1px solid var(--line);
}
.item-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
/* A new key's token, the row's error and a webhook's settings take the row's full width. */
.item-row > :nth-child(n + 4) {
  grid-column: 1 / -1;
}
.item-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--navy);
}
.item-ic.client {
  background: #262624;
  color: #f4efe6;
}
.item-ic.bot {
  background: var(--bot-soft);
  color: var(--bot-ink);
}
.item-text {
  display: grid;
  min-width: 0;
}
.item-name {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  color: var(--mute);
  font-size: 13px;
}
.item-line .sep {
  opacity: 0.6;
}
.item-line .active {
  color: var(--green);
  font-weight: 600;
}
.lvl {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 650;
}
.item-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.item-tools .select .select-button,
.item-tools .pill.small {
  min-height: 34px;
  font-size: 13.5px;
}
/* A saved reply's text in its row: two lines at most. */
.saved-reply-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* A label has no icon, so its row is the name and its tools. */
.item-row.label-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
/* Settings has room for the whole name, which the inbox cuts at 14em. */
.label-row > .label-pill {
  justify-self: start;
  max-width: 100%;
}
/* A row's edit form takes the row's full width. */
.item-row > form {
  grid-column: 1 / -1;
}
.hook-edit {
  display: grid;
  gap: 12px;
  padding: 4px 0 2px 54px;
}
@media (max-width: 760px) {
  .status-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .check.big-switch {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
  }
  .item-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .item-tools {
    grid-column: 2;
    justify-content: flex-start;
  }
  .hook-edit {
    padding-left: 0;
  }
}
/* A bot's suggested reply, on the operator's side: a pale blue bubble shaped like the reply it
   becomes, as nothing has reached the visitor yet. Who wrote it is above, the buttons below. */
.drafts {
  display: grid;
  align-self: flex-end;
  justify-items: end;
  gap: 10px;
  max-width: 84%;
  margin: 6px 0 4px;
}
/* The folded stack may take the log's width, as its one line names the visitor. */
.drafts.older {
  max-width: 100%;
}
.sugg {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.sugg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: var(--bot-ink);
  font-size: 12.5px;
  font-weight: 650;
}
.sugg-time {
  color: var(--mute);
  font-weight: 500;
}
.sugg-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bot);
  color: #fff;
}
.sugg-bubble {
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--suggest);
  box-shadow: inset 0 0 0 1.5px var(--bot-line);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
}
.sugg-bubble.compact .draft-body {
  max-height: 4.3em;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
/* A cut draft shows all of it once asked, or while a key moved focus to one of its buttons. A
   click does not, so the button under the pointer stays where it is. */
.sugg-bubble.compact .draft-body.open,
.sugg:has(:focus-visible) .sugg-bubble.compact .draft-body {
  max-height: none;
  mask-image: none;
}
.sugg-private {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--bot-ink);
  font-size: 12px;
  font-weight: 600;
}
.sugg.stale .sugg-bubble {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--mute);
}
.sugg.stale .sugg-private {
  color: var(--mute);
}
.sugg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.sugg-actions .pill.small {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13.5px;
}
.sugg-discard {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 600;
}
.sugg-discard:hover:not(:disabled) {
  background: var(--soft);
}
/* Ask to change: one line under the buttons, or what it waits for. */
.sugg-ask {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  width: min(100%, 420px);
}
.sugg-ask input:not([type="checkbox"]) {
  flex: 1 1 200px;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
}
.sugg-ask .pill.small {
  min-height: 32px;
  padding: 0 13px;
  font-size: 13.5px;
}
.sugg-ask-wait {
  color: var(--bot-ink);
  font-size: 13px;
  font-weight: 600;
}
.draft-more {
  margin-top: 4px;
  padding: 0;
  background: none;
  color: var(--bot-ink);
  font: 600 13px / 1.4 var(--body);
  cursor: pointer;
}
.draft-more:hover {
  text-decoration: underline;
}
.draft-ask {
  flex-basis: 100%;
  color: var(--warn-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
/* Older suggestions fold into one quiet card, drawn as a small stack. */
.sugg-stack {
  display: inline-flex;
  max-width: 100%;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  padding: 7px 12px 7px 7px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 4px 0 -1px var(--surface),
    0 4px 0 0 var(--line),
    0 8px 0 -1px var(--surface),
    0 8px 0 0 var(--line);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}
.sugg-stack .sugg-mark {
  width: 22px;
  height: 22px;
  background: var(--bot-soft);
  color: var(--bot-ink);
}
.sugg-why {
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
}
.sugg-caret {
  display: inline-flex;
  color: var(--mute);
  transition: transform 0.15s;
}
.sugg-stack[aria-expanded="true"] .sugg-caret {
  transform: rotate(180deg);
}
/* A bot's handoff: one centered line, and the note that only the team sees under it. */
.handoff {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 14px 0 6px;
}
.handoff-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--text-strong);
  font-size: 12.5px;
}
.handoff-line::before,
.handoff-line::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.handoff-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: 100%;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.handoff-pill b {
  color: var(--navy);
  font-weight: 650;
}
.handoff-time {
  color: var(--mute);
}
.handoff-pass {
  display: inline-flex;
  align-items: center;
}
.handoff-pass > .handler-mark,
.handoff-pass > .avatar {
  width: 22px;
  height: 22px;
  font-size: 8.5px;
}
.handoff-pass > :last-child {
  margin-left: -6px;
  box-shadow: 0 0 0 2px var(--surface);
}
.handoff-card {
  width: min(460px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--note);
  color: var(--navy);
}
.handoff-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.handoff-card h4 {
  margin: 0;
  color: var(--warn-ink);
  font: 700 12px / 1.3 var(--body);
}
.handoff-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--warn-ink);
  font-size: 12px;
}
.handoff-text {
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Keyboard shortcuts. A key shows as a small cap where its action is: on a view's row while the
   pointer is on it, in the empty search field and composer, and in a menu. A touch screen has no
   keys to show, and the operator can turn the keys off. */
.keys {
  display: inline-flex;
  flex: none;
  gap: 3px;
}
.keys kbd,
.keys-groups kbd,
.gull-key kbd {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 0 var(--line);
  color: var(--mute);
  font: 600 11.5px / 20px var(--body);
  text-align: center;
}
.keys kbd::after {
  content: attr(data-key);
}
:root[data-shortcuts="off"] .keys {
  display: none;
}
@media (hover: none) {
  .keys,
  .gull-key {
    display: none;
  }
}
/* A view's keys take the count's place at the row's end while the pointer rests on it. They share
   the last column with the count, so neither ever covers the label. A narrower screen moves the
   views into a row, which has no room for them. */
.nav .keys {
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
@media (min-width: 1001px) {
  .nav button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 6px;
    padding-right: 10px;
  }
  .nav button > svg {
    margin-right: 5px;
  }
  .nav .keys {
    gap: 2px;
  }
  .nav .keys kbd {
    min-width: 17px;
    padding: 0 3px;
  }
  .nav .count,
  .nav .keys {
    grid-area: 1 / 3;
    justify-self: end;
  }
  .nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 1000px) {
  .nav .keys {
    display: none;
  }
}
.nav button:is(:hover, :focus-visible) .keys {
  opacity: 1;
  transition-delay: 0.4s;
}
@media (hover: hover) and (min-width: 1001px) {
  :root:not([data-shortcuts="off"]) .nav button:is(:hover, :focus-visible) .count {
    opacity: 0;
    transition-delay: 0.4s;
  }
}
.search .keys {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}
.search input:is(:focus, :not(:placeholder-shown)) ~ .keys {
  display: none;
}
.box {
  position: relative;
}
/* The saved replies or teammates that "/" or "@" offer, above the composer's text. */
.picker {
  width: min(360px, 100%);
  max-width: none;
}
.picker .item-label small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-none {
  margin: 6px 10px;
  color: var(--mute);
  font-size: 13.5px;
}
.box > .keys {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
}
.box:focus-within > .keys {
  display: none;
}

/* Help, above the operator: the docs and the shortcuts. */
.help-menu {
  margin-top: auto;
}
.help-menu + .get-started,
.help-menu + .me-menu {
  margin-top: 4px;
}
.help {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  transition: background-color 0.15s;
}
.help:is(:hover, [aria-expanded="true"]) {
  background: var(--side-tint);
}
/* What's new sits above Help, with a red dot until the operator opens the newest updates. */
.whats-new {
  position: relative;
  margin-top: auto;
}
.whats-new + .help-menu {
  margin-top: 4px;
}
.whats-new-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--red);
}
/* What's new is a sheet on the right, full height. Its head and foot stay while the updates scroll
   under them. The body itself scrolls, so Page Down works while Close has focus. */
.dialog.updates {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  margin: 16px 16px 16px auto;
  overflow: hidden;
  animation: sheet-in 0.22s ease-out both;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
.updates .dialog-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 0;
  overflow-y: auto;
  /* A focused link scrolls clear of the sticky head and foot. */
  scroll-padding-block: 76px 60px;
}
.updates-head,
.updates-foot {
  position: sticky;
  z-index: 1;
  background: var(--raised);
}
.updates-head {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 4px;
}
.updates-head .icon-button {
  width: 36px;
  height: 36px;
  margin-right: -8px;
}
.updates-days {
  flex: 1;
  padding: 0 28px 16px;
}
.updates-day {
  padding-top: 20px;
}
.updates-day h3 {
  color: var(--mute);
  font: 600 13px / 18px var(--body);
  font-variant-numeric: tabular-nums;
}
.updates-day ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A line between the updates of one day. */
.update {
  display: grid;
  justify-items: start;
  padding: 14px 0;
}
.update + .update {
  border-top: 1px solid var(--line);
}
.update h4 {
  margin: 0;
  color: var(--navy);
  font: 700 15px / 1.35 var(--display);
}
.update p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.update p.update-docs {
  margin-top: 6px;
}
.update p.update-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 600 12px / 18px var(--body);
}
/* The kind is a soft pill, a color for each kind. */
.update-kind {
  padding: 3px 10px;
  border-radius: 999px;
}
.update-kind.feature {
  background: var(--tile-mint);
  color: var(--green);
}
.update-kind.improvement {
  background: var(--bot-soft);
  color: var(--bot-ink);
}
.update-kind.fix {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.update-new {
  color: var(--red);
  font-weight: 700;
}
.updates-foot {
  bottom: 0;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
}
/* On a phone, the sheet fills the screen. */
@media (max-width: 480px) {
  .dialog.updates {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .updates-head {
    padding: max(18px, env(safe-area-inset-top)) 20px 4px;
  }
  .updates-days {
    padding: 0 20px 12px;
  }
  .updates-foot {
    padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  }
  .updates .dialog-body {
    scroll-padding-block: calc(max(18px, env(safe-area-inset-top)) + 58px)
      calc(max(16px, env(safe-area-inset-bottom)) + 46px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dialog.updates {
    animation: none;
  }
}
/* The sheet of every shortcut: two columns where there is room, each group kept whole. */
.dialog.shortcuts {
  width: min(720px, calc(100vw - 32px));
}
.shortcuts .dialog-body {
  gap: 18px;
  max-height: calc(100dvh - 48px);
  padding: 22px 26px 26px;
  overflow-y: auto;
}
.shortcuts-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shortcuts-head h2 {
  margin-right: auto;
}
.shortcuts-head .icon-button {
  width: 36px;
  height: 36px;
  margin-right: -8px;
}
.keys-groups {
  columns: 2 260px;
  column-gap: 36px;
  /* The last group's space below, which the gap above the switch already gives. */
  margin-bottom: -18px;
}
.keys-groups.off {
  opacity: 0.5;
}
.keys-groups section {
  break-inside: avoid;
  padding-bottom: 18px;
}
.keys-groups h3 {
  margin-bottom: 2px;
  color: var(--mute);
  font: 700 11px / 1.3 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.keys-groups dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  font-size: 14px;
}
.keys-groups dl > div + div {
  border-top: 1px solid var(--line);
}
.keys-groups dd {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.keys-groups kbd,
.gull-key kbd {
  min-width: 24px;
  height: 24px;
  color: var(--navy);
  font-size: 12px;
  line-height: 24px;
}
.keys-groups .then {
  color: var(--mute);
  font-size: 12px;
}
.keys-switch {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
}
/* Documentation opens in a new tab, which its arrow says, at the end where the ? key sits. */
.item-external {
  display: flex;
  justify-content: center;
  width: 20px;
  color: var(--mute);
}

/* The top bar, on a tablet and a phone: Help shrinks to its icon, and its menu opens down. */
@media (max-width: 1000px) {
  .nav .keys {
    display: none;
  }
  .help-menu,
  .help-menu + .get-started,
  .help-menu + .me-menu {
    margin: 0;
  }
  .help-menu {
    margin-left: auto;
  }
  .whats-new {
    margin: 0 0 0 auto;
  }
  .whats-new + .help-menu {
    margin: 0;
  }
  /* The dot sits on the icon's corner. */
  .whats-new-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    box-shadow: 0 0 0 2px var(--sky);
  }
  .help {
    justify-content: center;
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .help-text {
    display: none;
  }
  .help-menu .popup.up {
    top: 100%;
    bottom: auto;
    margin: 6px 0 0;
    animation-name: pop;
  }
  .help-menu .side-start {
    right: 0;
    left: auto;
  }
}
/* Campaigns: the list's rows and templates, and the editor's numbered steps beside its preview. */
.campaign-list {
  display: grid;
  gap: 16px;
}
.campaign-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
/* The row opens the campaign, and its menu sits on its right, outside the button. */
.campaign-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.campaign-item:hover {
  background: var(--row-hover);
}
.campaign-item .row-menu {
  flex: none;
  margin-right: 8px;
}
.campaign-row {
  display: grid;
  flex: 1;
  grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 360px) 16px;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 16px 8px;
  color: var(--mute);
  text-align: left;
}
.campaign-item:has(.row-menu) .campaign-row {
  grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 360px);
}
/* A grid item stretches to its column, and a status chip fits its text. */
.campaign-row > .chip {
  justify-self: start;
}
.campaign-row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.campaign-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--navy);
}
.row-lines {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.row-lines b {
  color: var(--navy);
  font: 600 16px / 1.3 var(--display);
}
.row-sentence {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.row-stat {
  display: grid;
  min-width: 0;
}
.row-stat b {
  color: var(--navy);
  font: 600 18px / 1.2 var(--display);
  font-variant-numeric: tabular-nums;
}
.row-label {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
}
.row-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
.row-bar.goal > span {
  background: var(--green);
}
.row-quiet {
  font-size: 13.5px;
}
.campaign-empty {
  color: var(--text-strong);
}
.campaign-empty b {
  color: var(--navy);
}
.campaign-templates {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}
.campaign-templates h3 {
  color: var(--navy);
  font: 600 18px / 1.3 var(--display);
}
.template-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.template-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
}
.template-card:hover:not(:disabled) {
  background: var(--row-hover);
  box-shadow: inset 0 0 0 1px var(--soft-edge);
}
.template-card .campaign-tile {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
}
.template-card b {
  color: var(--navy);
  font: 600 15px / 1.3 var(--display);
}
@media (max-width: 1000px) {
  /* The results go under the name, beside the tile. */
  .campaign-row {
    grid-template-columns: 44px minmax(0, 1fr) auto 16px;
  }
  .campaign-item:has(.row-menu) .campaign-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
  .row-stats,
  .row-quiet {
    grid-column: 2 / 4;
  }
  .row-sentence {
    white-space: normal;
  }
  .template-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The editor: its header, then the steps beside the preview, which stays in view. */
.campaign-page {
  container-type: inline-size;
}
.campaign-form {
  display: flex;
  flex-direction: column;
}
.campaign-form > .back-link {
  align-self: flex-start;
  margin: 20px 34px 0;
  color: var(--blue-deep);
  font-size: 14px;
}
.campaign-head {
  padding-top: 8px;
}
.campaign-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* The name is the title, and changes in place. */
.campaign-title .title-input {
  field-sizing: content;
  width: auto;
  min-width: 8ch;
  max-width: 100%;
  min-height: 0;
  margin-left: -6px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: 700 28px / 1.15 var(--display);
}
.campaign-title .title-input:hover {
  background-color: var(--row-hover);
}
/* A pencil after the name says it changes in place, and a click on it focuses the name. */
.title-edit {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--mute);
  cursor: text;
}
.title-edit:focus-within svg {
  visibility: hidden;
}
.campaign-head p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font-size: 14px;
}
.campaign-head code {
  font: 13px var(--mono);
}
.campaign-head .key-input {
  width: 22ch;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
}
.campaign-editor {
  gap: 28px;
}
/* Wider than Appearance's preview, beside the form while both fit. */
@container (min-width: 861px) {
  .campaign-editor {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }
}
.campaign-editor .widget-form {
  gap: 14px;
  max-width: none;
}
.campaign-steps {
  display: grid;
  gap: 14px;
}
.step {
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-height: 30px;
}
.step-head h3 {
  color: var(--navy);
  font: 600 16px / 1.3 var(--display);
}
.step-index {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--on-fill);
  font: 600 13px / 1 var(--display);
}
.step-index.done {
  background: var(--tile-mint);
  color: var(--green);
}
.step-summary {
  flex: 1 1 200px;
  min-width: 0;
  color: var(--mute);
  font-size: 14px;
}
.step-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-left: auto;
}
.step-aside .text-button {
  color: var(--blue-deep);
  font-weight: 600;
}
.step-body {
  display: grid;
  gap: 14px;
  margin: 16px 0 0 38px;
}
/* A campaign read, not edited: each part as plain text. */
.overview-line,
.overview-body {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.5;
}
.overview-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.overview-message,
.overview-variant {
  display: grid;
  gap: 6px;
}
.overview-variant + .overview-variant {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.overview-variant h4 {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.overview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.overview-url {
  max-width: 40ch;
  overflow: hidden;
  color: var(--mute);
  font-weight: 400;
  text-overflow: ellipsis;
}
.count-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--tile-blue);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
  gap: 14px;
}
.trigger-delay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}
/* Cards to choose from, such as the triggers: the chosen one outlined on cream. */
.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}
.option-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}
.option-card:hover {
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.option-card:has(:checked) {
  background: var(--cream-soft);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.option-card:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* The radio stays for the keys and screen readers, over the whole card. */
.option-radio {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option-art {
  display: flex;
  margin-bottom: 6px;
  color: var(--navy);
}
.option-card b {
  color: var(--navy);
  font-size: 13.5px;
}
/* How it shows: the launcher in red, with a dot, a card above it, or the chat open. */
.show-art {
  position: relative;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  background: var(--soft);
}
.show-art::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
}
.show-art::before {
  content: "";
  position: absolute;
  right: 8px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 3px var(--raised-shadow);
}
.show-badge::before {
  right: 6px;
  bottom: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: none;
}
.show-preview::before {
  bottom: 30px;
  width: min(60%, 72px);
  height: 20px;
}
.show-chat::after {
  display: none;
}
.show-chat::before {
  bottom: 8px;
  width: 56px;
  height: 48px;
}
/* The condition builder: each rule one sentence of pills, a nested group in a box. */
.condition-group {
  display: grid;
  gap: 10px;
}
.condition-group.nested {
  padding: 12px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.condition-match,
.condition-adds,
.button-row,
.variant-head,
.preview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.condition-adds {
  gap: 4px 16px;
}
.condition-adds .text-button {
  color: var(--blue-deep);
  font-weight: 600;
}
.condition-items,
.variants {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.condition-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-dim);
  box-shadow: inset 0 0 0 1px var(--line);
}
.value-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--soft-edge);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.token-remove,
.condition-remove {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--mute);
}
.token-remove {
  width: 18px;
  height: 18px;
  background: var(--soft);
}
.token-remove:hover,
.condition-remove:hover {
  background: var(--soft-hover);
  color: var(--navy);
}
.condition-rule .value-add {
  flex: 1 1 60px;
  width: auto;
  min-width: 60px;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: none;
}
.condition-remove {
  width: 28px;
  height: 28px;
  margin-left: auto;
}
/* The composer: who it is from, the text with its variables marked, its buttons, and the
   variables to add. The marks sit under the transparent box, at the same place as its text. */
.composer {
  display: grid;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--field-line);
}
.composer:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--focus);
}
.composer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.composer-hint {
  padding: 8px 12px 0;
}
.composer-from {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--mute);
}
.composer-text {
  display: grid;
}
.template-text {
  grid-area: 1 / 1;
  min-height: calc(3lh + 28px);
  padding: 14px;
  border-radius: 14px;
  color: var(--navy);
  font: 400 15px / 1.55 var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.template-text:focus-visible {
  outline: 0;
}
.template-text:empty::before {
  content: attr(data-placeholder);
  color: var(--mute);
}
/* A variable, in words, as one piece of the text. */
.variable-token {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tile-blue);
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
/* The copy of the text that the form's checks read: under the box, where their message points. */
.composer-check {
  grid-area: 1 / 1;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  resize: none;
}
.composer-buttons,
.composer-tools,
.composer-foot {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.composer-row,
.composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.answer-pill {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--navy);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
}
.answer-pill[aria-expanded="true"] {
  background: var(--soft);
}
.add-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px dashed var(--soft-edge);
  border-radius: 999px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}
.add-chip:hover {
  background: var(--row-hover);
}
.button-row input {
  flex: 1 1 140px;
  min-width: 0;
}
/* Why the text's variables do not read, under the composer's tools. */
.field-problems {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--bad);
  font-size: 14px;
  list-style: none;
}
.variants-test {
  display: grid;
  gap: 12px;
}
.variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.variants-head h4 {
  color: var(--navy);
  font-weight: 600;
}
.variants {
  gap: 12px;
}
.variant {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.variant-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.variant-field input {
  width: 84px;
}
/* The % sits inside the box, after the number. */
.percent-input {
  display: flex;
  position: relative;
  align-items: center;
}
.percent-input .percent-box {
  padding-right: 28px;
}
.percent-sign {
  position: absolute;
  right: 12px;
  color: var(--mute);
  font-weight: 400;
  pointer-events: none;
}
.variant-key {
  flex: 1 1 200px;
  min-width: 0;
}
.variant-key input {
  flex: 1;
  width: auto;
  min-width: 0;
}
/* The preview: a simple browser over a sample page, light as most sites are. */
.preview-controls {
  justify-content: space-between;
}
.campaign-editor .preview-stage {
  padding: 0;
  border-radius: 14px;
  background: none;
}
.browser-frame {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
/* Three dots, drawn by one with two shadows. */
.browser-dots {
  width: 9px;
  height: 9px;
  margin-right: 30px;
  border-radius: 50%;
  background: var(--soft-edge);
  box-shadow:
    15px 0 var(--soft-edge),
    30px 0 var(--soft-edge);
}
.browser-address {
  flex: 1;
  margin-left: 10px;
  padding: 3px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
  color: var(--mute);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-page {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.sample-lines {
  display: grid;
  gap: 10px;
}
.sample-line {
  height: 12px;
  border-radius: 6px;
  background: var(--soft);
}
.sample-line:first-child {
  height: 16px;
}
/* The top of a phone, where the chat fills the screen and a message shows as a card: a bezel, the
   island and the address under it, cut off under the chat. The screen keeps the 360px the chat is
   drawn for, and the whole phone shows smaller. */
.preview-phone {
  display: flex;
  flex-direction: column;
  width: 380px;
  margin: 0 auto;
  zoom: 0.8;
  border: 10px solid var(--phone-bezel);
  border-bottom: 0;
  border-radius: 46px 46px 0 0;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}
.preview-phone .browser-bar {
  flex-direction: column;
  gap: 10px;
  padding: 8px 14px;
}
.phone-island {
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--phone-bezel);
}
.preview-phone .browser-address {
  width: 100%;
  margin: 0;
  text-align: center;
}
.preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 13px;
}
/* After the inputs of the buttons and variants, as it is the more specific. */
.condition-rule input:not(.value-add) {
  flex: 1 1 100px;
  min-width: 0;
  min-height: 36px;
}
@media (max-width: 1000px) {
  /* The editor has several actions, so they take their own row under the title. */
  .campaign-head .campaign-title {
    grid-column: 1 / -1;
  }
  .campaign-head .page-actions {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .campaign-form > .back-link {
    margin: 16px 16px 0;
  }
  .step {
    padding: 16px;
  }
  .step-body {
    margin-left: 0;
  }
}
.results-charts {
  grid-template-columns: minmax(0, 1fr);
}
.table-scroll {
  overflow-x: auto;
}
.results-table th[scope="row"] {
  color: var(--navy);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.repliers.no-lead li {
  grid-template-columns: minmax(0, 1fr) auto;
}
.dialog.code-dialog {
  width: min(720px, calc(100vw - 32px));
}
/* A long campaign scrolls inside its block, so the dialog's buttons stay on screen. */
.code-dialog pre {
  max-height: min(420px, calc(100dvh - 320px));
  overflow-y: auto;
}
.who-lines > .mono {
  font-size: 12.5px;
}
/* Contacts > Attributes and events: a table for each, under its heading. */
.contact-data {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

/* Settings > Billing: the plan on a tinted card, then the usage, the card and the invoices. */
.plan-card {
  display: grid;
  gap: 10px;
  margin: 14px 0 8px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--tile-blue);
}
.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.plan-eyebrow {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}
.plan-card h3 {
  font: 700 24px / 1.2 var(--display);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-strong);
}
.plan-amount {
  color: var(--navy);
  font: 700 38px / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.plan-state {
  max-width: 560px;
  color: var(--text-strong);
}
.plan-card .actions {
  margin-top: 6px;
}
.card-number {
  color: var(--navy);
  font-weight: 650;
}
.invoices {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.invoices th {
  padding: 0 10px 8px 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.invoices td {
  padding: 10px 10px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  white-space: nowrap;
}
.invoices .end-cell {
  padding-right: 0;
  text-align: right;
}
.invoices .invoice-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.invoices .text-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* In the narrow Visitors column, the sonar keeps the column's own edges and a smaller title. */
.live-people .gull-pane {
  padding: 8px 0 24px;
}
.live-people .gull-pane h3 {
  font-size: 21px;
}
