/* The messenger's screens: one page, a list beside the open conversation (one at a time on a phone). */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #16181d;
  --muted: #646a76;
  --line: #e2e4e9;
  --accent: #1f7a5a;
  --accent-text: #ffffff;
  --mine: #d9f2e6;
  --theirs: #ffffff;
  --danger: #b42318;
  --live: #d92d20;
  --badge: #1f7a5a;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1115;
    --panel: #171a21;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --line: #2a2f39;
    --accent: #3cb487;
    --accent-text: #08130e;
    --mine: #1d3b2f;
    --theirs: #1f232c;
    --danger: #f97066;
    --live: #f04438;
    --badge: #3cb487;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme='dark'] {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e8eaee;
  --muted: #9aa1ad;
  --line: #2a2f39;
  --accent: #3cb487;
  --accent-text: #08130e;
  --mine: #1d3b2f;
  --theirs: #1f232c;
  --danger: #f97066;
  --live: #f04438;
  --badge: #3cb487;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
/* A person's pick (light or dark) wins over the device's. */
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
/* Hidden means hidden, whatever display a class gives it. */
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 6px 12px;
}
button.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
button.danger {
  color: var(--danger);
}
button.link {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--accent);
}
button.link.danger {
  color: var(--danger);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
/* Waiting on the service: a second click does nothing meanwhile. */
button[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}
input[type='text'],
input[type='password'],
input[type='url'],
input[type='email'],
input[type='number'],
input[type='search'],
input[type='date'],
input[type='time'],
input[type='datetime-local'],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
/* A few digits: as narrow as they need (the trim's seconds). */
input[type='number'] {
  width: 6em;
}
h1,
h2,
h3 {
  margin: 0;
}
h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 16px 0 6px;
}

.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  /* One row, the screen's height: a long list scrolls inside the sidebar, never the page. */
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  overflow-y: auto;
  padding: 0 12px 16px;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
.topbar h1 {
  font-size: 20px;
  flex: 1;
}
.topbar button {
  flex: none;
  white-space: nowrap;
  min-width: 40px;
}
.empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  max-width: 420px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: none;
}
.item:hover,
.item.current {
  background: var(--bg);
}
.item .avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  font-size: 18px;
}
.item .text {
  flex: 1;
  min-width: 0;
}
.item .name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .sub {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  background: var(--badge);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: 12px;
  min-width: 20px;
  padding: 1px 7px;
  text-align: center;
}
.request {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.request .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header .titles {
  flex: 1;
  min-width: 0;
}
.header .title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header .sub {
  color: var(--muted);
  font-size: 13px;
}
.back {
  display: none;
}
.live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--live);
  color: #fff;
}
.live-banner a {
  color: #fff;
  font-weight: 700;
}
.catch-up-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--mine);
  border-bottom: 1px solid var(--line);
}
.catch-up-banner span {
  flex: 1;
}
.attachments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}
.photo {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
}
.attachments audio {
  width: min(280px, 100%);
}
.file {
  color: var(--accent);
}
.attach {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--panel);
}
button.recording {
  background: var(--live);
  color: #fff;
}
.mention {
  color: var(--accent);
  font-weight: 600;
}
.forwarded {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}
.face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.face.big {
  width: 96px;
  height: 96px;
  display: block;
  margin: 4px auto 8px;
}
.note-bar {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}
.pinned-bar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  padding: 8px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
input[type='search'] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 4px;
}
.ticks {
  letter-spacing: -2px;
}
.ticks.read {
  color: #2f80ed;
  font-weight: 700;
}
.highlight {
  outline: 3px solid var(--accent);
}
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.message {
  max-width: min(560px, 85%);
  align-self: flex-start;
  background: var(--theirs);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.message.mine {
  align-self: flex-end;
  background: var(--mine);
}
.message .sender,
.poll-card .sender,
.event-card .sender {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.message .body {
  white-space: pre-wrap;
}
.message .meta,
.poll-card .meta,
.event-card .meta,
.live-card .meta {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.message .deleted {
  color: var(--muted);
}
/* A reported message, whole: who reads it decides about it. */
.quote.report-quote {
  white-space: normal;
  overflow-wrap: anywhere;
}
.quote {
  border-left: 3px solid var(--accent);
  padding: 2px 8px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.reaction {
  border-radius: 999px;
  padding: 0 8px;
  font-size: 13px;
}
.reaction.mine {
  border-color: var(--accent);
}
.live-card {
  align-self: center;
  border: 2px solid var(--live);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--panel);
  text-align: center;
}
.live-card.ended {
  border-color: var(--line);
  color: var(--muted);
}
.plan-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  margin: 6px 0;
}
.plan-meter progress {
  grid-column: 1 / -1;
  width: 100%;
}
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.plan-card.current {
  border-color: var(--accent);
}
.plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}
.plan-price {
  font-size: 18px;
  font-weight: 600;
}
.plan-limits {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plan-limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 12px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  width: min(340px, calc(100vw - 24px));
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.emoji-picker-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.emoji-picker-body {
  overflow-y: auto;
  padding: 4px 8px 8px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.emoji-choice {
  padding: 4px 0;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.emoji-choice:hover {
  background: var(--bg);
}
.composer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.composer .row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.composer textarea {
  resize: none;
  /* About six lines; past that it scrolls, the newest line in sight. */
  max-height: 160px;
  overflow-y: auto;
}
.composer .note {
  color: var(--muted);
  font-size: 13px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.status-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.status-presets button {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
.emoji-input {
  width: 56px;
  flex: 0 0 56px;
  text-align: center;
}
.chip span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}
.modal[hidden] {
  display: none;
}
.dialog {
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(520px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 16px;
}
.dialog .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -16px -16px 4px;
  padding: 16px 16px 8px;
  /* A long window keeps its title and ✕ in sight while it scrolls. */
  position: sticky;
  top: -16px;
  background: var(--panel);
  z-index: 1;
}
.dialog .head h3 {
  flex: 1;
  font-size: 18px;
}
.dialog form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.dialog .inline {
  flex-direction: row;
  /* A phone: the boxes take the line, the buttons go under them, nothing past the edge. */
  flex-wrap: wrap;
  align-items: center;
}
.dialog .inline > input:not([type='number'], [type='checkbox'], [type='radio'], [type='file']),
.dialog .inline > textarea,
.dialog .inline > select {
  flex: 1 1 160px;
  min-width: 0;
}
.dialog .inline > button {
  white-space: nowrap;
}
.row-list > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.row-list > div > .grow {
  /* Its words keep a readable width: the buttons beside go under them on a phone. */
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.role {
  font-size: 12px;
  color: var(--muted);
}
.emoji-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.emoji-row button {
  font-size: 22px;
  padding: 4px 10px;
}
.qr {
  display: block;
  margin: 8px auto;
  image-rendering: pixelated;
  width: 180px;
  height: 180px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.event-card {
  align-self: center;
  width: min(420px, 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-card.cancelled {
  border-color: var(--line);
  color: var(--muted);
}
.event-card .question {
  font-weight: 700;
}
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 8px 10px;
}
.poll-card {
  align-self: center;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poll-card .question {
  font-weight: 700;
}
.poll-option {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background: linear-gradient(to right, var(--mine) var(--share), var(--panel) var(--share));
}
/* A long answer wraps inside the card; its count stays in sight. */
.poll-option > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.poll-option > :last-child {
  flex: none;
}
.poll-option.chosen {
  border-color: var(--accent);
  font-weight: 600;
}
.poll-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-link {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
}
.actions-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  padding: 8px 14px;
  z-index: 20;
  max-width: calc(100% - 32px);
}
label.stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
input[type='file'] {
  max-width: 100%;
  min-width: 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  text-align: center;
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }
  .main {
    display: none;
  }
  .app.show-main .sidebar {
    display: none;
  }
  .app.show-main .main {
    display: flex;
  }
  .back {
    display: inline-block;
  }
  .sidebar {
    border-right: 0;
  }
}

.status-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 8px;
}
.status-circle {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  flex: none;
}
.status-circle .ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid var(--line);
  font-weight: 600;
}
.status-circle.unseen .ring {
  border-color: var(--accent);
}
.status-circle .label {
  font-size: 12px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-body {
  font-size: 18px;
  white-space: pre-wrap;
}

.view-once {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: none;
  font-weight: 600;
  color: var(--muted);
}
button.view-once {
  color: var(--accent);
}
.link.on {
  font-weight: 700;
}

#call {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
}
#call .sub {
  color: #ddd;
}
.call-card,
.call-screen {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 24px;
}
.call-screen {
  position: relative;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}
.call-screen .call-remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  z-index: -1;
}
.call-screen:not(.video) .call-remote {
  display: none;
}
.call-local {
  position: absolute;
  right: 16px;
  bottom: 96px;
  width: 28%;
  max-width: 200px;
  border-radius: 12px;
  border: 2px solid #fff;
}
.call-top {
  margin-top: 24px;
}
.call-name {
  font-size: 24px;
  font-weight: 600;
}
.call-buttons {
  display: flex;
  gap: 16px;
}
.call-buttons button {
  border-radius: 999px;
  padding: 12px 20px;
}
.call-answer {
  background: #1f9d55;
  color: #fff;
  border: 0;
}
.call-decline {
  background: #d64545;
  color: #fff;
  border: 0;
}
.call-line {
  align-self: center;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.call-line.missed {
  color: #d64545;
}
#call button {
  color: #111;
  background: #fff;
  border: 0;
}
#call button.call-answer,
#call button.call-decline {
  color: #fff;
}
#call button.call-answer {
  background: #1f9d55;
}
#call button.call-decline {
  background: #d64545;
}
.poll-option.right {
  border-color: #1f9d55;
  box-shadow: inset 0 0 0 1px #1f9d55;
}
.poll-option.wrong {
  border-color: #d64545;
  box-shadow: inset 0 0 0 1px #d64545;
}
.request.suspicious {
  border-color: #d64545;
}
.warning {
  color: #d64545;
  font-size: 13px;
  margin: 4px 0;
}
.translation {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 4px;
}
.suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.suggestion {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
.video-note {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
}
/* A note's ▶ until it plays (an iPhone draws no picture before), and why not when this device cannot play it. */
.video-note-wrap {
  position: relative;
  display: inline-block;
}
.video-note-play,
.video-note-cannot {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
}
.video-note-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  font-size: 24px;
}
.video-note-wrap.playing .video-note-play,
.video-note-wrap.unplayable .video-note-play,
.video-note-cannot {
  display: none;
}
.video-note-wrap.unplayable .video-note-cannot {
  display: grid;
  padding: 0 32px;
  text-align: center;
  font-size: 14px;
}
.recording-preview {
  margin: 0 auto 8px;
  border: 3px solid #d64545;
}
.clips {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  color: #fff;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.clip {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
}
.clip video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.clip-text {
  position: absolute;
  left: 16px;
  right: 80px;
  bottom: 24px;
  text-shadow: 0 1px 3px #000;
}
.clip-like {
  position: absolute;
  right: 16px;
  bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  padding: 10px 14px;
}
.clip-like.on {
  background: rgba(214, 69, 69, 0.8);
}
.clips-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 41;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
}
.empty-clips {
  color: #ccc;
}
.folder-tabs {
  display: flex;
  gap: 6px;
  /* Every tab and its ✎ and ＋ in reach: they go on more lines rather than past the edge. */
  flex-wrap: wrap;
  padding: 2px 0 6px;
}
.folder-tab {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  flex: none;
}
.folder-tab.on {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.wallpapers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wallpaper-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--line);
}
.wallpaper-swatch.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.wallpaper-none {
  background: var(--bg);
}
.wallpaper-mint {
  background: linear-gradient(160deg, #e3f6ec, #c8ecd9);
}
.wallpaper-sky {
  background: linear-gradient(160deg, #e4f0fb, #c6def5);
}
.wallpaper-sand {
  background: linear-gradient(160deg, #f8f1e3, #ecdcbc);
}
.wallpaper-blush {
  background: linear-gradient(160deg, #fbe9ee, #f3cdd8);
}
.wallpaper-night {
  background: linear-gradient(160deg, #1f2533, #2c3446);
}
.wallpaper-dots {
  background-color: #f4f5f7;
  background-image: radial-gradient(#d3d7de 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}
.share-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin: 4px 0;
}

.install-bar {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 7px 12px;
}
.live-banner.failed {
  background: #fdecec;
  color: #a12b2b;
}
.topics-bar {
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 8px 0;
}
.sticker-choice {
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.sticker-choice img {
  max-width: 100%;
  max-height: 100%;
}
.sticker-choice.add {
  font-size: 24px;
}
.sticker-message img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
}
.composer .row.tools {
  gap: 4px;
  align-items: center;
  /* A narrow phone or window: the buttons go on a second line, not off the screen. */
  flex-wrap: wrap;
}
.composer .row.tools button,
.composer .row.tools .attach {
  padding: 4px 8px;
  border: 0;
  background: none;
  font-size: 18px;
  cursor: pointer;
}
/* Recording (a voice message, a video note, talking to type): the stop button shows, red. */
.composer .row.tools button.recording {
  white-space: nowrap;
  background: var(--live);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}
.composer .row textarea {
  flex: 1;
  min-width: 0;
}
.link.edited {
  font-size: inherit;
  color: inherit;
  padding: 0;
}

/* Dark screens: the wallpapers and the warning banner in deep tones, so nothing glares. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .wallpaper-mint {
    background: linear-gradient(160deg, #10241b, #163126);
  }
  :root:not([data-theme='light']) .wallpaper-sky {
    background: linear-gradient(160deg, #111e2c, #17293d);
  }
  :root:not([data-theme='light']) .wallpaper-sand {
    background: linear-gradient(160deg, #26211a, #322a1f);
  }
  :root:not([data-theme='light']) .wallpaper-blush {
    background: linear-gradient(160deg, #2a1820, #36202a);
  }
  :root:not([data-theme='light']) .wallpaper-dots {
    background-color: #14171d;
    background-image: radial-gradient(#2a2f39 1.2px, transparent 1.2px);
  }
  :root:not([data-theme='light']) .live-banner.failed {
    background: #3a1717;
    color: #f9b4ae;
  }
}
:root[data-theme='dark'] .wallpaper-mint {
  background: linear-gradient(160deg, #10241b, #163126);
}
:root[data-theme='dark'] .wallpaper-sky {
  background: linear-gradient(160deg, #111e2c, #17293d);
}
:root[data-theme='dark'] .wallpaper-sand {
  background: linear-gradient(160deg, #26211a, #322a1f);
}
:root[data-theme='dark'] .wallpaper-blush {
  background: linear-gradient(160deg, #2a1820, #36202a);
}
:root[data-theme='dark'] .wallpaper-dots {
  background-color: #14171d;
  background-image: radial-gradient(#2a2f39 1.2px, transparent 1.2px);
}
:root[data-theme='dark'] .live-banner.failed {
  background: #3a1717;
  color: #f9b4ae;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 4px;
}
.media-tile {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
}
.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.voice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 70vw);
}
.voice-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 16px;
  cursor: pointer;
}
.voice-bar {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
}
.voice-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.voice-speed {
  min-width: 40px;
  font-weight: 600;
}
.rules-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
}
.rules-card button {
  align-self: flex-start;
}

.code-block {
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--code-bg, rgba(127, 127, 127, 0.12));
  font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
}

.link-preview {
  display: block;
  margin: 6px 0 2px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent, #1f7a5a);
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.08);
  color: inherit;
  text-decoration: none;
  max-width: 420px;
}
.link-preview strong {
  display: block;
  margin: 2px 0;
}

.app-badge {
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(127, 127, 127, 0.18);
  color: var(--muted);
}
.webhook-url {
  display: block;
  padding: 6px 8px;
  word-break: break-all;
  user-select: all;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 4px;
}

.app-title,
.workspace-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
}
.brand-logo.big {
  display: block;
  height: 64px;
  max-width: 200px;
  margin: 6px 0;
}
.workspace-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
}
/* A business's name and logo head its section: bigger than its channels, not a small grey heading. */
h2.workspace-heading,
.phone-app h2.workspace-heading {
  font-size: 22px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 10px 0 4px;
}
h2.workspace-heading .section-open {
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.tab {
  border-radius: 999px;
  padding: 4px 12px;
}
.tab.on {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.people-heading {
  margin: 8px 12px 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.item.coworker {
  padding-top: 4px;
  padding-bottom: 4px;
}
.item.coworker .avatar {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.custom-emoji {
  height: 1.3em;
  width: auto;
  vertical-align: -0.3em;
}
.emoji-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 8px 2px 0;
  font-size: 13px;
}

.bookmarks-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
}
.bookmark {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.bookmark:hover {
  text-decoration: underline;
}

.quote {
  margin: 4px 0;
  padding: 2px 10px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.message-list {
  margin: 4px 0;
  padding-left: 22px;
  white-space: normal;
}
.format-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.format-bar button {
  min-width: 34px;
  padding: 4px 8px;
}

.unreads-link {
  display: block;
  margin: 6px 12px 0;
  font-weight: 600;
}

/* A heading of the list that folds its conversations away. */
.section-heading {
  cursor: pointer;
  user-select: none;
}

.section-heading .caret {
  font-size: 0.8em;
  opacity: 0.6;
}

.section-heading .section-edit {
  margin-left: 6px;
  font-size: 0.85em;
}

/* A workspace's analytics: headline numbers, then messages a day as thin bars from the baseline. */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.stat-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.stat-value {
  font-size: 1.6em;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85em;
}

.day-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  border-bottom: 1px solid var(--line);
}

.day-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.day-bar:hover .day-bar-fill {
  opacity: 0.8;
}

.day-bar-fill {
  width: 100%;
  min-height: 1px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}

.day-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8em;
}

.plain-table td {
  padding: 2px 12px 2px 0;
}

/* Canvases: a page of text with headings, and its contents beside it; lists: tasks ticked off. */
.canvas-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 2px solid var(--line);
  padding-left: 10px;
  margin: 8px 0;
}

.canvas-page {
  line-height: 1.5;
}

.canvas-heading {
  margin: 14px 0 4px;
}

.canvas-editor {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.done-item .grow {
  text-decoration: line-through;
  color: var(--muted);
}

/* Videos: the recording bar and countdown, the player, a shared video in a message, the watch page. */
.countdown {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 120px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.recording-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.recording-bar .live-dot {
  color: var(--live);
}

/* A voice message, video note or clip being recorded: the time, the voice's bars, Start over and Don't send beside them. */
.recording-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}
.recording-strip .live-dot {
  color: var(--live);
  animation: recording-blink 1s infinite;
}
@keyframes recording-blink {
  50% {
    opacity: 0.2;
  }
}
.recording-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.recording-strip .levels {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  /* Room for every bar on a phone too. */
  min-width: 96px;
}
.recording-choice {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  white-space: nowrap;
}
.recording-strip .levels span {
  flex: 1;
  min-width: 1px;
  max-width: 6px;
  height: 10%;
  border-radius: 3px;
  background: var(--live);
  transition: height 0.1s;
}

.video-player {
  /* As big as fits, in the video's own shape: no black bars around it. */
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 8px;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.video-card-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
}

.dialog.dialog-wide {
  width: min(1200px, 100%);
}

.watch-frame {
  display: block;
  width: 100%;
  height: min(82vh, 900px);
  border: 0;
}

.watch-page {
  overflow-y: auto;
  height: 100%;
}

.watch {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.watch h1 {
  font-size: 22px;
  margin: 6px 0;
}

.watch-brand {
  font-weight: 600;
  color: var(--accent);
}

.watch-tools {
  justify-content: flex-start;
  margin: 8px 0;
}

.watch-cta {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

a.button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

a.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.watch-tools select {
  width: auto;
}

/* Drawing on the screen while recording: the frozen picture, and the tools over it. */
.draw-board {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #111;
  display: flex;
  flex-direction: column;
}

.draw-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.draw-tools .on {
  outline: 2px solid var(--accent);
}

.draw-group {
  display: flex;
  gap: 4px;
}

.draw-colour {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
}

.draw-canvas {
  flex: 1;
  cursor: crosshair;
  touch-action: none;
}

/* The recording's floating window: the camera's bubble over the recording's buttons. */
.floating-recorder {
  margin: 0;
  padding: 8px;
  background: var(--panel);
  overflow: auto;
}

.floating-camera video {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
}

.floating-recorder .recording-bar {
  position: static;
  transform: none;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 12px;
  box-shadow: none;
}

.draw-tools button {
  padding: 4px 8px;
}

.draw-note {
  font-size: 12px;
  color: var(--muted);
}

.floating-hint {
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: var(--mine);
  font-size: 13px;
}

.draw-typing {
  position: fixed;
  width: 240px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed currentColor;
  z-index: 46;
}

.size-dot {
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.video-cover {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  flex: none;
}

.folders button.on {
  outline: 2px solid var(--accent);
}

/* The business sign-up page (/business): what a business gets, and Start free. */
.business-landing {
  max-width: 560px;
  margin: 48px auto;
  padding: 0 16px;
}
.business-landing h1 {
  font-size: 26px;
  margin-bottom: 16px;
}
.business-landing ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 16px;
}
.business-landing .button.primary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 17px;
  border-radius: 10px;
  text-decoration: none;
}

/* The setup guide after a workspace is made: its steps, the link to send the team, what next. */
.setup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.setup-step.on {
  color: var(--accent);
  font-weight: 600;
}
.setup-step.done {
  color: var(--text);
}
.setup-link {
  padding: 10px 12px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  margin: 8px 0;
}
.setup-next {
  justify-content: flex-end;
  margin-top: 12px;
}
.setup-tips {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons side by side in a window: apart, and on a second line when narrow. */
.dialog .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The booking link: my hours a row a weekday; the page people book from. */
.booking-day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.booking-day .toggle {
  width: 130px;
}
.booking-day input[type='time'] {
  width: auto;
}
.book-page {
  display: block;
  overflow-y: auto;
  height: 100%;
}
.book {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 16px;
}
.book-head .face {
  width: 56px;
  height: 56px;
}
.book-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.book-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.book-times button {
  padding: 10px;
  font-weight: 600;
  color: var(--accent);
  border-color: var(--accent);
}
.book-chosen {
  font-size: 18px;
  font-weight: 600;
}
.book-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-error {
  color: var(--danger);
}
.book-done h2 {
  text-transform: none;
  font-size: 22px;
  color: var(--text);
}

.book .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-days .link {
  font-size: 22px;
  padding: 0 8px;
}

/* A business's home: its name, what is left to set up, a card for each part. */
.business-home {
  padding: 24px;
  overflow-y: auto;
  max-width: 980px;
}
.home-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.home-head h1 {
  margin: 0;
  font-size: 26px;
}
.home-icon {
  font-size: 40px;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.home-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.home-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-step {
  text-align: left;
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 15px;
  cursor: pointer;
}
.home-step.done {
  color: var(--muted);
  text-decoration: line-through;
}
.section-heading .section-open {
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0 2px;
  text-decoration: underline dotted;
}

/* GVO admin: headline tiles, a day a bar, tables. */
.admin-stats {
  padding: 24px;
  overflow-y: auto;
  max-width: 1100px;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-weight: 600;
  color: var(--text);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  border-bottom: 1px solid var(--line);
}
.bar-slot {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.bar {
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.bar-slot:hover .bar {
  opacity: 0.75;
}
.bars-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.stat-table th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 4px 6px;
}
.stat-table td {
  padding: 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* Cards on the business home and GVO admin: left-aligned, filling their column. */
.home-card,
.stat-chart,
.admin-stats .card {
  text-align: left;
  margin: 0;
  max-width: none;
  width: auto;
}
.home-cards {
  align-items: start;
}
.empty-conversation {
  margin: auto;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.book-who {
  font-weight: 600;
  color: var(--muted);
}

.app.landing .sidebar {
  display: none;
}

.admin-stats .card {
  overflow-x: auto;
}

/* A list item with its ⋯ quick actions: shown on hover or keyboard focus, always on touch screens. */
.item-row {
  position: relative;
}
.item-row .item {
  padding-right: 34px;
}
.item-more {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  padding: 2px 8px;
  background: none;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
}
.item-row:hover .item-more,
.item-more:focus-visible {
  opacity: 1;
}
.item-more:hover {
  background: var(--panel, rgba(127, 127, 127, 0.15));
}
@media (hover: none) {
  .item-more {
    opacity: 0.6;
  }
}
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-actions button {
  text-align: left;
}

/* A screenshot from the desktop app, before picking where it goes. */
.screenshot-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin: 0 auto 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e4e9);
}

/* The list on the left, compact: more conversations in view, the same text size. */
#sidebar .item {
  padding: 5px 8px;
}
/* Room on the right for its ⋯. */
#sidebar .item-row .item {
  padding-right: 34px;
}
#sidebar .item .avatar {
  width: 30px;
  height: 30px;
  font-size: 15px;
}
/* On a touch screen, rows stay tall enough for a finger. */
@media (hover: none) {
  #sidebar .item {
    padding: 8px;
  }
}

/* A shared screenshot's page (/s/<code>): the picture first, who shared it above, the messenger below. */
.shot-page {
  --shot-accent: var(--accent);
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}
.shot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--shot-accent);
  margin-bottom: 16px;
}
.shot-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}
.shot-business {
  font-weight: 700;
  font-size: 18px;
}
.shot-download {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--shot-accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.shot-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.shot-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.shot-missing {
  padding: 48px 16px;
  text-align: center;
}

/* The phone app (mobile/), not the desktop app or a browser: made for fingers on a phone. */
/* Clear of the status bar at the top and the home bar at the bottom: the page fills the whole screen (viewport-fit). */
.phone-app .app {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--panel);
}
.phone-app .main {
  background: var(--bg);
}
/* The conversation's header, with its bigger buttons: the name and its line below on one line each. */
.phone-app .header {
  gap: 6px;
  padding: 8px 12px;
}
.phone-app .header .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
 * Text the size the iPhone's Settings › Display › Text Size asks for, as Facebook's Messenger does: 17pt as it comes,
 * larger for someone who set it larger (-apple-system-body; 17px elsewhere). 1rem is that size; the chat and the list
 * of conversations follow Messenger's own proportions of it.
 */
html.phone-app {
  font-size: 17px;
  font: -apple-system-body;
}
.phone-app body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.45;
}
.phone-app .message .body,
.phone-app .composer textarea {
  font-size: 1rem;
}
.phone-app .message .sender {
  font-size: 0.82rem;
}
.phone-app .message .quote {
  font-size: 0.88rem;
}
.phone-app .message .meta {
  font-size: 0.76rem;
}
.phone-app .header .title {
  font-size: 1rem;
}
/* The list: Messenger's rows, a 60-point photo, the name in semibold at the text size and its line a size down. */
.phone-app .topbar h1 {
  font-size: 1.3rem;
}
.phone-app #sidebar input {
  font-size: 1rem;
  padding: 0.55em 1em;
  border-radius: 999px;
}
.phone-app #sidebar .item {
  gap: 12px;
  padding: 8px 12px;
}
.phone-app #sidebar .item .avatar {
  width: 60px;
  height: 60px;
  font-size: 28px;
}
.phone-app #sidebar .item .name {
  font-size: 1rem;
}
.phone-app #sidebar .item .sub {
  font-size: 0.88rem;
}
.phone-app .section-heading {
  font-size: 0.82rem;
}
.phone-app .status-circle {
  width: 88px;
}
.phone-app .status-circle .ring {
  width: 64px;
  height: 64px;
}
.phone-app .status-circle .label {
  font-size: 0.76rem;
  max-width: 88px;
}
/* Typing boxes at 16px or more: below that, iOS zooms the page in on a tap, pushing Send off the screen. */
.phone-app input,
.phone-app select,
.phone-app textarea {
  font-size: max(16px, 1em);
}
/* Buttons a fingertip can hit: Apple's 44 points. */
.phone-app .topbar button,
.phone-app .header button,
.phone-app .composer .row button,
.phone-app .composer .row.tools .attach {
  min-width: 44px;
  min-height: 44px;
}
.phone-app .composer .row.tools .attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-app .item-more {
  min-width: 44px;
  min-height: 44px;
}
.phone-app #sidebar .item-row .item {
  padding-right: 52px;
}
/* Windows clear of the status bar and home bar, so their ✕ can be tapped; their ‹ and ✕ the size of a fingertip. */
.phone-app .modal {
  padding: calc(env(safe-area-inset-top) + 8px) 8px calc(env(safe-area-inset-bottom) + 8px);
}
.phone-app .dialog .head button {
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
}
.phone-app .dialog .head .dialog-back {
  font-size: 30px;
  line-height: 1;
  margin-left: -12px;
}
/* Every back arrow the size of a fingertip; on a card (an invite, a join link) at its top left. */
.phone-app .back {
  min-width: 44px;
  min-height: 44px;
}
.phone-app .card > .back {
  display: block;
}

/* ---------- The list as WhatsApp's: every row with its newest message and when, newest first. */
.item .name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.item .name-row .name {
  flex: 1;
  min-width: 0;
}
.item .when {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
/* Unread: the time in the unread count's green, as WhatsApp's. */
.item .when.fresh {
  color: var(--badge);
  font-weight: 600;
}
.archived-row .archived-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.archived-row .name {
  font-weight: 600;
}
.archived-back {
  display: block;
  padding: 8px 4px;
}
.archived-note {
  padding: 0 4px 8px;
}
.empty-filter {
  padding: 24px 8px;
  text-align: center;
}

/* ---------- Wide screens: a rail of places beside the list, as WhatsApp's on a computer. */
.app.wa {
  grid-template-columns: 460px 1fr;
}
.app.wa .sidebar {
  padding: 0;
  overflow: hidden;
}
.wa-sidebar {
  display: flex;
  height: 100%;
}
.rail {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 6px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.rail-item:hover {
  background: var(--line);
}
.rail-item.on {
  background: var(--line);
  font-weight: 600;
}
.rail-icon {
  font-size: 22px;
  line-height: 1;
}
.rail-label {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
.rail-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.rail-heading {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.rail-spacer {
  flex: 1;
}
.wa-list {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
  background: var(--panel);
}
.wa-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 10px;
  background: var(--panel);
}
.wa-head h1 {
  flex: 1;
  margin: 0;
  font-size: 22px;
}
.wa-new {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
}
/* The search box round, the filters pills, as WhatsApp's. */
.wa-list input[type='search'] {
  width: 100%;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--bg);
  border-color: transparent;
}
.wa-list .folder-tab {
  padding: 5px 14px;
  font-size: 14px;
}
/* Two-line rows with a bigger picture. */
.wa-list .item {
  padding: 8px;
}
.wa-list .item .avatar {
  width: 46px;
  height: 46px;
  font-size: 20px;
}
/* A very wide screen: the rail's labels beside its icons, as WhatsApp's Mac app. */
@media (min-width: 1500px) {
  .app.wa {
    grid-template-columns: 580px 1fr;
  }
  .rail {
    width: 190px;
    padding: 12px 10px;
  }
  .rail-item {
    flex-direction: row;
    gap: 12px;
    padding: 9px 12px;
  }
  .rail-label {
    font-size: 15px;
    text-align: left;
  }
  .rail-badge {
    position: static;
    margin-left: auto;
  }
  .rail-heading {
    text-align: left;
    padding-left: 12px;
  }
}
/* On a phone the places stay a row of icons above the list. */
.topbar .rail-label,
.topbar .rail-badge {
  display: none;
}
.topbar .rail-item {
  flex-direction: row;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--panel);
}
.topbar .rail-icon {
  font-size: 16px;
}

/* A message's ⌄, opening its menu, as WhatsApp's: in the corner, shown on hover (always on a touch screen). */
.message {
  position: relative;
}
.message-more {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 1;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.message:hover .message-more,
.message-more:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .message-more {
    opacity: 0.7;
  }
}

/* Inviting from the phone's contacts: a list to tick, then one invite to send each. */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 8px 0 12px;
}
.contact-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.contact-pick[hidden] {
  display: none;
}
.contact-pick > span {
  display: flex;
  flex-direction: column;
}
.contact-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.contact-how {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.contact-send.sent .contact-how::before {
  content: '✓ Sent · ';
  color: var(--muted);
}

/* The round video note's button: its camera-in-a-circle icon in the recording red. */
.note-icon-button .note-icon {
  display: inline-flex;
  color: #e5484d;
}
/* The keyboard is over the home bar: no room kept for it meanwhile. */
.phone-app.keyboard-up .app {
  padding-bottom: 0;
}

/* Signing in by email: the email, then the code; one column, as wide as a phone. */
.email-sign-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 12px auto;
  text-align: left;
}

.email-sign-in input {
  font-size: 16px;
}

.email-sign-in .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.paste-link {
  margin-top: 8px;
}

/* A business's conversations, for its owner: the list beside the one being read. */
.business-columns {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 16px;
  margin-top: 12px;
}

.business-conversation {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
}

.business-conversation:hover {
  background: rgba(127, 127, 127, 0.12);
}

.business-message {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .business-columns {
    grid-template-columns: 1fr;
  }
}

/* A business's chat page, alone or inside the bubble on its website. */
.chat-page {
  display: block;
  height: 100%;
  overflow: hidden;
}
.chat-box {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  height: 100%;
  margin: 0 auto;
  background: var(--panel);
}
.chat-page:not(.embedded) .chat-box {
  height: calc(100% - 32px);
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.chat-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-head h1 {
  margin: 0;
  font-size: 18px;
}
.chat-head .role {
  color: inherit;
  opacity: 0.85;
}
.chat-logo {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.chat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px;
}
.chat-start {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.member-accounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg);
}
.member-account.picked {
  font-weight: 600;
}
.chat-emoji {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 8px;
}
.chat-emoji[hidden] {
  display: none;
}
.chat-emoji-button {
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.chat-topic {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.chat-topic:hover {
  border-color: var(--accent);
}
.chat-topic-picked {
  font-weight: 600;
}
.chat-start input,
.chat-start textarea,
.chat-compose textarea {
  font-size: 16px;
}
.chat-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.chat-line {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-line.theirs {
  align-self: flex-start;
  background: var(--bg);
}
.chat-line.mine {
  align-self: flex-end;
  background: var(--mine);
}
.chat-compose {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}
.chat-compose textarea {
  flex: 1;
  resize: none;
}
.chat-error {
  color: var(--danger);
}
.chat-powered {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.bubble-live {
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 8px;
  background: var(--bg);
}
.bubble-builders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bubble-builders button.active {
  background: var(--accent);
  color: #fff;
}
.bubble-steps ol {
  padding-left: 20px;
}
.bubble-snippet {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 8px;
  background: var(--bg);
  border-radius: 6px;
}

/* A person's status, as a dot on their picture: green available, yellow away, red busy, grey ring offline. */
.avatar {
  position: relative;
}
.presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--panel);
}
.presence-dot.available {
  background: #22a55b;
}
.presence-dot.away {
  background: #e5a50a;
}
.presence-dot.busy {
  background: #d92d20;
}
.presence-dot.offline {
  background: var(--panel);
  box-shadow: inset 0 0 0 2px #8a909c;
}
/* In a member list, the dot sits before the name. */
.row-list .presence-dot {
  position: static;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* Me, at the top right on a computer: my picture with my status's dot, and my name. */
.me-chip {
  position: fixed;
  top: 8px;
  right: 12px;
  /* Under dialogs (10): never clicked through one. */
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.app.wa .main {
  padding-top: 52px;
}
.me-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  font-weight: 700;
}
.me-face img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.me-name {
  font-weight: 600;
}
.presence-picker {
  display: block;
  margin: 8px auto 12px;
  font-size: 16px;
}

/* The phone's tabs at the bottom, as on WhatsApp: on the list, not over an open conversation. */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.app.show-main .tab-bar {
  display: none;
}
.app:not(.wa) .sidebar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.tab-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.tab-item.on {
  color: var(--accent);
  font-weight: 600;
}
.tab-icon {
  font-size: 22px;
  line-height: 1;
}
.tab-item .me-face {
  width: 26px;
  height: 26px;
  font-size: 13px;
}
.tab-item .rail-badge {
  position: absolute;
  top: 0;
  right: 8px;
}
.name.missed {
  color: var(--danger);
}

/* An internal note in a lead's chat: soft yellow, labelled, never seen by the visitor. */
.message.internal {
  background: var(--whisper, #fef3c7);
  border: 1px solid var(--whisper-line, #f59e0b);
  color: #1f2937;
}
.internal-label {
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 2px;
}
.whisper-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.whisper-choice {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}
.whisper-choice.on {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
.whisper-choice.whisper.on {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
textarea.whispering {
  background: #fffbeb;
  border-color: #f59e0b;
}

/* ---------- The workstation (Work mode): a thin dark bar, then the list, the chat, and its details. */
/* Its colours, in one place: each mode keeps its own, on the bar, the list and the chat's band. */
:root {
  --mode-staff: #059669;
  --mode-staff-line: #10b981;
  --mode-staff-tint: #ecfdf5;
  --mode-customers: #2563eb;
  --mode-customers-line: #3b82f6;
  --mode-customers-tint: #eff6ff;
  --mode-leads: #d97706;
  --mode-leads-line: #f59e0b;
  --mode-leads-tint: #fffbeb;
  --whisper: #fef3c7;
  --whisper-line: #f59e0b;
  --workbar: #111827;
  --workbar-tab: #1f2937;
}
.app.workstation {
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  grid-template-rows: 48px minmax(0, 1fr);
}
.workbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--workbar);
  color: #f9fafb;
}
.workbar button {
  color: inherit;
  background: none;
  border: 0;
}
.work-business {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
}
.work-business .workspace-logo {
  height: 26px;
}
.work-tabs {
  display: flex;
  gap: 6px;
}
.workbar .work-tab {
  padding: 5px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid;
  background: var(--workbar-tab);
}
.workbar .work-tab-staff {
  border-color: var(--mode-staff-line);
}
.workbar .work-tab-customers {
  border-color: var(--mode-customers-line);
}
.workbar .work-tab-leads {
  border-color: var(--mode-leads-line);
}
.workbar .work-tab-staff.on {
  background: var(--mode-staff);
}
.workbar .work-tab-customers.on {
  background: var(--mode-customers);
}
.workbar .work-tab-leads.on {
  background: var(--mode-leads);
}
.work-count {
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
}
.workbar-spacer {
  flex: 1;
}
.work-link {
  padding: 4px 8px;
}
.work-me {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app.workstation .sidebar,
.app.workstation .main {
  grid-row: 2;
  padding-top: 0;
}
.work-column {
  padding: 8px 0 16px;
}
.context {
  grid-row: 2;
  overflow-y: auto;
  padding: 14px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* The conversation's top band wears its tab's colour. */
.app.workstation[data-work-tab='staff'] .main .header {
  background: var(--mode-staff);
  color: #fff;
}
.app.workstation[data-work-tab='customers'] .main .header {
  background: var(--mode-customers);
  color: #fff;
}
.app.workstation[data-work-tab='leads'] .main .header {
  background: var(--mode-leads);
  color: #fff;
}
.app.workstation .main .header .sub {
  color: rgba(255, 255, 255, 0.85);
}
.customer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-kind {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.customer-card.lead .card-kind {
  background: var(--mode-leads);
}
.customer-card.customer .card-kind {
  background: var(--mode-customers);
}
@media (max-width: 899px) {
  .app.workstation {
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .workbar {
    flex-wrap: wrap;
    padding: 6px 10px;
  }
  .work-tabs {
    order: 10;
    width: 100%;
  }
  .workbar .work-tab {
    flex: 1;
    min-height: 40px;
  }
}
@media (max-width: 760px) {
  .app.workstation {
    grid-template-columns: 1fr;
  }
  .app.workstation.show-main .workbar {
    display: none;
  }
}

/* The open conversation in the list wears its mode's colour too. */
.app.workstation[data-work-tab='staff'] .sidebar .item.current {
  background: var(--mode-staff);
  color: #fff;
}
.app.workstation[data-work-tab='customers'] .sidebar .item.current {
  background: var(--mode-customers);
  color: #fff;
}
.app.workstation[data-work-tab='leads'] .sidebar .item.current {
  background: var(--mode-leads);
  color: #fff;
}
.app.workstation .sidebar .item.current .sub {
  color: rgba(255, 255, 255, 0.85);
}
/* Buttons on the coloured band keep their own dark text; my initial stays readable in the dark bar. */
.app.workstation .main .header button {
  color: var(--text);
}
.work-me .me-face {
  color: var(--text);
}
/* Send wears the mode's colour. */
.app.workstation[data-work-tab='staff'] .composer button.primary {
  background: var(--mode-staff);
  border-color: var(--mode-staff);
}
.app.workstation[data-work-tab='customers'] .composer button.primary {
  background: var(--mode-customers);
  border-color: var(--mode-customers);
}
.app.workstation[data-work-tab='leads'] .composer button.primary {
  background: var(--mode-leads);
  border-color: var(--mode-leads);
}
