/* ---------------------------------------------------------------------------
   Messaging settings, in Booking settings' look (2026-11-07).

   The owner: "improve overall UI UX of the message settings tab. it's ugly
   and not consistent. see booking settings tab and rework the entire UIUX of
   the message settings tab so things are concise, clean, interactive, and
   have cool effects."

   This layer decides how the Messaging settings window and Settings ›
   Messaging look; the older .communication-settings rules in
   business-operations.css and pro-workspace-specialized.css are overridden
   here. It loads after every other Pro sheet except the shared switch layer
   (business/switches.css), which still draws every switch.

   Window       the shared centered window, Booking settings' header and tabs;
                each tab fills two columns (one when narrow) and ends in a
                white save bar at its foot.
   Card         white, 16px corners, a small grey label over a 15px title.
   Row          name and a short line on the left, the control on the right;
                lifts a little under the pointer, rings when focused.
   Motion       cards rise in one after another as a tab opens (JS), the
                translation options slide open with their switch, Quo's steps
                fill and its status breathes. Nothing moves when reduced
                motion is asked for.
--------------------------------------------------------------------------- */

body.pro-mode .communication-settings {
  --ms-ink: var(--color-ink, #16201c);
  --ms-ink-soft: var(--color-ink-soft, #3a4741);
  --ms-muted: var(--color-muted, #5f6e68);
  --ms-faint: var(--color-faint, #8b978f);
  --ms-line: var(--color-line, #e3e7e4);
  --ms-line-strong: var(--color-line-strong, #d9e0dc);
  --ms-paper: var(--color-paper, #f7f6f3);
  --ms-tint: #f7f9f8;
  --ms-accent: var(--color-accent, #1f6b52);
  --ms-accent-deep: var(--color-accent-deep, #164f3d);
  --ms-accent-soft: var(--color-accent-soft, #e8f2ee);
  --ms-accent-line: var(--color-accent-line, #cfe3d9);
  --ms-dirty: #7254b4;
  --ms-amber: #a8701f;
  --ms-amber-soft: #fbf3e2;
  --ms-blue: #3e6b8a;
  --ms-blue-soft: #eaf2f8;
  --ms-ease: var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
  --ms-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  color: var(--ms-ink);
}

/* ---- The window ---------------------------------------------------------- */
body.pro-mode .business-team-drawer-layer[data-team-drawer="message-settings"] :is(.business-team-drawer, .business-team-drawer-body) {
  background: var(--color-paper, #f7f6f3);
}
body.pro-mode .business-team-drawer-layer[data-team-drawer="message-settings"] .business-team-drawer-header {
  padding: 20px 28px 12px;
  border-bottom: 0;
  background: #fff;
}
/* A member's window has no tabs under its title: a line closes the header. */
body.pro-mode .business-team-drawer-layer[data-team-drawer="message-settings"]:not(.is-tabbed) .business-team-drawer-header { padding-bottom: 18px; border-bottom: 1px solid #e3e8e6; }
body.pro-mode .business-team-drawer-layer[data-team-drawer="message-settings"] .business-team-drawer-header > .icon-button:not(#rl) {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex-basis: 36px !important;
  padding: 0 !important;
  border: 1px solid var(--color-line, #e3e7e4) !important;
  border-radius: 999px !important;
  background: #fff !important;
}
body.pro-mode .business-team-drawer-layer[data-team-drawer="message-settings"] .business-team-drawer-header h2 {
  margin: 0;
  color: var(--color-ink, #16201c);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Quo's tab carries where the connection stands: a dot that breathes while
   history imports and while something needs the owner. */
body.pro-mode .communication-settings i.communication-tab-status {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #bfc7c3;
}
body.pro-mode .communication-settings i.communication-tab-status.is-ready { background: var(--ms-accent); }
body.pro-mode .communication-settings i.communication-tab-status.is-attention { background: #d4952f; animation: ms-breathe 2.4s ease-in-out infinite; }
body.pro-mode .communication-settings i.communication-tab-status.is-syncing { background: #4f86ad; animation: ms-breathe 1.6s ease-in-out infinite; }

/* Each tab is the part that scrolls; its cards in two columns, its save bar
   at the foot (held there while the cards scroll under it). */
body.pro-mode .communication-settings.is-window .communication-settings-panel.rl-settings-panel:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
  gap: 18px;
  padding: 22px 28px 0;
}
/* Nothing in a tab shrinks to fit: the tab scrolls instead. */
body.pro-mode .communication-settings.is-window .communication-settings-panel > * { flex: 0 0 auto; }
body.pro-mode .communication-settings.is-window .communication-settings-panel > :last-child:not(.communication-settings-savebar) { margin-bottom: 28px; }
body.pro-mode .communication-settings.is-window .communication-settings-panel > .rl-settings-columns { grid-column: auto; margin: 0; }
body.pro-mode .communication-settings.is-window .rl-settings-column { gap: 16px; }
body.pro-mode .communication-settings.is-personal .communication-settings-content.rl-settings-panel { padding: 22px 28px 28px; }
body.pro-mode .communication-settings.is-window .communication-settings-alert { padding: 14px 28px 0; }

/* ---- Cards ---------------------------------------------------------------- */
body.pro-mode .communication-settings .communication-setting-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 15px 16px 16px;
  border: 1px solid var(--ms-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 32, 28, 0.05));
  transition: border-color 200ms ease, box-shadow 260ms var(--ms-ease), transform 260ms var(--ms-ease);
}
body.pro-mode .communication-settings.is-window .communication-setting-card:hover {
  border-color: var(--ms-line-strong);
  box-shadow: 0 6px 20px rgba(22, 32, 28, 0.06);
  transform: translateY(-1px);
}
body.pro-mode .communication-settings .communication-setting-card:focus-within { border-color: var(--ms-accent-line); }
body.pro-mode .communication-settings .communication-setting-card > .communication-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0 12px;
  margin: 0;
}
body.pro-mode .communication-settings .communication-setting-card > .communication-section-heading > p { flex: 1 0 100%; }
body.pro-mode .communication-settings .communication-section-heading > div { display: grid; min-width: 0; gap: 0; }
body.pro-mode .communication-settings .communication-section-heading > div > span {
  color: var(--ms-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
body.pro-mode .communication-settings .communication-section-heading h3 {
  margin: 0.15rem 0 0;
  color: var(--ms-ink) !important;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
body.pro-mode .communication-settings .communication-section-heading p {
  margin: 0.3rem 0 0;
  color: var(--ms-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}
body.pro-mode .communication-settings .communication-section-heading > :not(div) { flex: none; }

/* Who a setting is for. */
body.pro-mode .communication-settings .communication-scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f4f2;
  color: var(--ms-muted);
  font-size: 0.71875rem;
  font-weight: 600;
  white-space: nowrap;
}
body.pro-mode .communication-settings .communication-scope-chip::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; opacity: 0.6; }
body.pro-mode .communication-settings .communication-scope-chip.is-you { background: #f2f0f8; color: #5e4e8e; }

body.pro-mode .communication-settings p.communication-provider-note {
  margin: 0;
  padding: 0 2px;
  color: var(--ms-faint);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---- Rows ------------------------------------------------------------------ */
body.pro-mode .communication-settings .communication-settings-form { display: grid; gap: 8px; margin: 0; }
body.pro-mode .communication-settings .communication-setting-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ms-tint);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 240ms var(--ms-ease), transform 240ms var(--ms-ease);
}
body.pro-mode .communication-settings label.communication-setting-row { cursor: pointer; }
body.pro-mode .communication-settings .communication-setting-row:hover {
  border-color: var(--ms-line);
  background: #f2f6f4;
  transform: translateY(-1px);
}
body.pro-mode .communication-settings .communication-setting-row:focus-within {
  border-color: var(--ms-accent-line);
  background: #fff;
  box-shadow: 0 0 0 3px var(--ms-accent-soft);
}
body.pro-mode .communication-settings .communication-setting-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
body.pro-mode .communication-settings .communication-setting-copy > strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ms-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
body.pro-mode .communication-settings .communication-setting-copy > small {
  color: var(--ms-muted);
  font-size: 0.78125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.pro-mode .communication-settings .communication-setting-meta {
  display: block;
  margin-top: 2px;
  color: var(--ms-faint);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
}
body.pro-mode .communication-settings .communication-setting-control { display: flex; flex: none; align-items: center; justify-content: flex-end; }

/* A row changed but not saved yet: a violet dot by its name. */
body.pro-mode .communication-settings .communication-setting-row.is-changed > .communication-setting-copy > strong::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-dirty);
  content: "";
  animation: ms-pop 320ms var(--ms-spring) both;
}

/* The switch's input lies over its track (the track itself is drawn by
   business/switches.css). */
body.pro-mode .communication-settings .communication-switch { position: relative; display: block; }
body.pro-mode .communication-settings .communication-switch > input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
body.pro-mode .communication-settings .communication-switch > input:disabled { cursor: default; }

/* Channels: an icon that fills with colour as its channel turns on. */
body.pro-mode .communication-settings .communication-setting-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ms-line);
  color: var(--ms-muted);
  transition: background-color 260ms var(--ms-ease), color 260ms var(--ms-ease), box-shadow 260ms var(--ms-ease), transform 320ms var(--ms-spring);
}
body.pro-mode .communication-settings .communication-setting-icon svg { width: 18px; height: 18px; }
body.pro-mode .communication-settings .communication-setting-row.is-channel.is-on { border-color: var(--ms-accent-line); background: #f3f9f6; }
body.pro-mode .communication-settings .communication-setting-row.is-channel.is-on .communication-setting-icon {
  background: var(--ms-accent);
  box-shadow: 0 4px 12px rgba(31, 107, 82, 0.22);
  color: #fff;
  transform: scale(1.04);
}

/* Retention: the choice sits at the right of its row. */
body.pro-mode .communication-settings .communication-setting-row.is-select .communication-setting-control { width: min(200px, 46%); }
body.pro-mode .communication-settings .communication-setting-row.is-select .communication-setting-control > :is(select, .prelook-select-shell) { width: 100%; min-width: 0; }
body.pro-mode .communication-settings .communication-setting-row.is-select select { min-height: 38px; }

/* ---- Save bar ----------------------------------------------------------------- */
body.pro-mode .communication-settings .communication-settings-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
body.pro-mode .communication-settings.is-window .communication-settings-panel > .communication-settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  min-height: 65px;
  margin: auto -28px 0;
  padding: 12px 22px 12px 28px;
  border-top: 1px solid #e3e8e6;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(25, 57, 46, 0.04);
}
body.pro-mode .communication-settings.is-inline .communication-settings-savebar { padding-top: 14px; border-top: 1px solid var(--ms-line); }
body.pro-mode .communication-settings .communication-settings-savestate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ms-faint);
  font-size: 0.78125rem;
  font-weight: 500;
  line-height: 1.4;
}
body.pro-mode .communication-settings .communication-settings-savestate > i {
  display: none;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}
body.pro-mode .communication-settings .communication-settings-savebar[data-state="dirty"] .communication-settings-savestate { color: var(--ms-dirty); }
body.pro-mode .communication-settings .communication-settings-savebar[data-state="dirty"] .communication-settings-savestate > i {
  display: block;
  background: var(--ms-dirty);
  animation: ms-breathe 1.8s ease-in-out infinite;
}
body.pro-mode .communication-settings .communication-settings-savebar[data-state="saving"] .communication-settings-savestate { color: var(--ms-ink-soft); }
body.pro-mode .communication-settings .communication-settings-savebar.is-auto .communication-settings-savestate > i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}
body.pro-mode .communication-settings .communication-settings-savebar.is-auto[data-state="saving"] .communication-settings-savestate > i {
  border: 2px solid var(--ms-accent-line);
  border-top-color: var(--ms-accent);
  background: none;
  animation: ms-spin 700ms linear infinite;
}
body.pro-mode .communication-settings .communication-settings-savestate > i svg { width: 11px; height: 11px; stroke-width: 3; }
body.pro-mode .communication-settings .communication-settings-saveactions { display: flex; flex: none; align-items: center; gap: 8px; }
body.pro-mode .communication-settings .communication-settings-saveactions > button:not(#rl) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 84px !important;
  min-height: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 0.84375rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, opacity 200ms ease, transform 160ms var(--ms-ease) !important;
}
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="submit"]:not(#rl) {
  border: 1px solid var(--ms-ink) !important;
  background: var(--ms-ink) !important;
  color: #fff !important;
}
/* Resting (nothing to save): Booking settings' disabled Save. */
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="submit"]:disabled:not(#rl) { opacity: 0.55 !important; cursor: default !important; }
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="submit"].solid-button:not(:disabled):not(#rl) { animation: ms-wake 360ms var(--ms-spring); }
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="submit"]:not(:disabled):hover:not(#rl) { background: #26332d !important; }
body.pro-mode .communication-settings .communication-settings-saveactions > button:active:not(:disabled):not(#rl) { transform: scale(0.97) !important; }
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="reset"]:not(#rl) {
  border: 1px solid var(--ms-line) !important;
  background: #fff !important;
  color: var(--ms-ink-soft) !important;
}
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="reset"]:not(#rl) { max-width: 220px !important; overflow: hidden !important; white-space: nowrap !important; transition: max-width 320ms var(--ms-ease), padding 320ms var(--ms-ease), margin 320ms var(--ms-ease), opacity 220ms ease, border-color 200ms ease !important; }
/* Nothing to discard: the button folds away beside Save. */
body.pro-mode .communication-settings .communication-settings-saveactions > button[type="reset"]:disabled:not(#rl) {
  min-width: 0 !important;
  max-width: 0 !important;
  margin-right: -8px !important;
  padding: 0 !important;
  border-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.pro-mode .communication-settings .communication-settings-saveactions > button:focus-visible:not(#rl) { outline: 2px solid var(--ms-accent) !important; outline-offset: 2px !important; }

/* ---- Errors (the existing alert, drawn as a notice) --------------------- */
body.pro-mode .communication-settings .communication-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-danger-line, #e5c2c4);
  border-radius: 12px;
  background: var(--color-danger-soft, #fdf5f5);
  color: var(--color-danger, #a33a43);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* ---- Channels: where Quo stands ----------------------------------------- */
body.pro-mode .communication-settings .communication-readiness {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--ms-muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
body.pro-mode .communication-settings .communication-readiness > i {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
body.pro-mode .communication-settings .communication-readiness.ready { background: var(--ms-accent-soft); color: var(--ms-accent); }
body.pro-mode .communication-settings .communication-readiness.attention { background: var(--ms-amber-soft); color: var(--ms-amber); }
body.pro-mode .communication-settings .communication-readiness.syncing { background: var(--ms-blue-soft); color: var(--ms-blue); }
body.pro-mode .communication-settings .communication-readiness:is(.ready, .attention, .syncing) > i::after {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0;
  animation: ms-ripple 2.4s var(--ms-ease) infinite;
}
body.pro-mode .communication-settings .communication-readiness.syncing > i::after { animation-duration: 1.4s; }
body.pro-mode .communication-settings .communication-quo-summary { background: linear-gradient(160deg, #fff 55%, #f4f8f6); }
body.pro-mode .communication-settings .communication-quo-summary.is-attention { background: linear-gradient(160deg, #fff 55%, #fdf8ee); }
body.pro-mode .communication-settings .communication-quo-summary.is-syncing { background: linear-gradient(160deg, #fff 55%, #f1f6fa); }
body.pro-mode .communication-settings .communication-connection-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ms-ink);
  font: inherit;
  font-size: 0.84375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 240ms var(--ms-ease);
}
body.pro-mode .communication-settings .communication-connection-link svg { width: 16px; height: 16px; color: var(--ms-muted); transition: transform 260ms var(--ms-spring); }
body.pro-mode .communication-settings .communication-connection-link:hover { border-color: var(--ms-accent-line); background: #f7fbf9; transform: translateY(-1px); }
body.pro-mode .communication-settings .communication-connection-link:hover svg { color: var(--ms-accent); transform: translateX(3px); }
body.pro-mode .communication-settings .communication-connection-link:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 2px; }

/* ---- Quo: its status, alive ---------------------------------------------- */
body.pro-mode .communication-settings .communication-connection-hero {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 16px;
  background: linear-gradient(125deg, #fff 35%, #f4f7f5 100%);
  box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 32, 28, 0.05));
}
body.pro-mode .communication-settings .communication-connection-hero.is-ready { border-color: var(--ms-accent-line); background: linear-gradient(125deg, #fff 30%, #eef7f2 100%); }
body.pro-mode .communication-settings .communication-connection-hero.is-attention { border-color: #ecdcb9; background: linear-gradient(125deg, #fff 30%, #fcf5e7 100%); }
body.pro-mode .communication-settings .communication-connection-hero.is-syncing { border-color: #cfe0ec; background: linear-gradient(125deg, #fff 30%, #edf4fa 100%); }
body.pro-mode .communication-settings .communication-connection-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
body.pro-mode .communication-settings .communication-connection-brand > div { display: grid; flex: 1; gap: 1px; min-width: 0; }
body.pro-mode .communication-settings .communication-connection-brand strong { color: var(--ms-ink); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
body.pro-mode .communication-settings .communication-connection-brand div > span { color: var(--ms-faint); font-size: 0.75rem; }
body.pro-mode .communication-settings .communication-channel-icon.is-quo {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}
body.pro-mode .communication-settings .communication-channel-icon.is-quo svg { width: 19px; height: 19px; }
body.pro-mode .communication-settings .communication-connection-hero > h3 { margin: 0; color: var(--ms-ink); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
body.pro-mode .communication-settings .communication-connection-hero > p { max-width: 640px; margin: 0; color: var(--ms-muted); font-size: 0.8125rem; line-height: 1.55; }

/* Three steps on a line that fills to where the salon has got to (half way
   into the step being done). The fill replays as the tab opens. */
body.pro-mode .communication-settings .communication-setup-steps {
  --ms-done: var(--communication-steps-done, 0);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}
body.pro-mode .communication-settings .communication-setup-steps::before,
body.pro-mode .communication-settings .communication-setup-steps::after {
  position: absolute;
  top: 13px;
  left: calc(100% / 6);
  height: 2px;
  border-radius: 2px;
  content: "";
}
body.pro-mode .communication-settings .communication-setup-steps::before { right: calc(100% / 6); background: var(--ms-line-strong); }
body.pro-mode .communication-settings .communication-setup-steps::after {
  width: calc((100% * 2 / 3) * max(0, min(1, (var(--ms-done) - 0.5) / 2)));
  background: var(--ms-accent);
  transition: width 700ms var(--ms-ease);
  animation: ms-fill 1s var(--ms-ease) 120ms both;
}
body.pro-mode .communication-settings .communication-setup-steps > li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 4px;
  color: var(--ms-faint);
  text-align: center;
}
body.pro-mode .communication-settings .communication-setup-steps > li > b { font-size: 0.75rem; font-weight: 500; line-height: 1.35; }
body.pro-mode .communication-settings .communication-setup-steps > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid var(--ms-line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ms-muted);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background-color 260ms var(--ms-ease), border-color 260ms var(--ms-ease), color 260ms var(--ms-ease);
}
body.pro-mode .communication-settings .communication-setup-steps > li > span svg { width: 14px; height: 14px; stroke-width: 2.8; }
body.pro-mode .communication-settings .communication-setup-steps > li.is-complete { color: var(--ms-ink-soft); }
body.pro-mode .communication-settings .communication-setup-steps > li.is-complete > span {
  border-color: var(--ms-accent);
  background: var(--ms-accent);
  color: #fff;
  animation: ms-pop 460ms var(--ms-spring) both;
}
body.pro-mode .communication-settings .communication-setup-steps > li:nth-child(2).is-complete > span { animation-delay: 120ms; }
body.pro-mode .communication-settings .communication-setup-steps > li:nth-child(3).is-complete > span { animation-delay: 240ms; }
body.pro-mode .communication-settings .communication-setup-steps > li.is-current { color: var(--ms-ink); }
body.pro-mode .communication-settings .communication-setup-steps > li.is-current > b { font-weight: 650; }
body.pro-mode .communication-settings .communication-setup-steps > li.is-current > span {
  border-color: var(--ms-accent);
  color: var(--ms-accent);
  animation: ms-ring 2.2s var(--ms-ease) infinite;
}
body.pro-mode .communication-settings .communication-quo-summary .communication-setup-steps { margin: 2px 0 4px; }

/* Numbers: a card per number, lit and ticked when chosen. */
body.pro-mode .communication-settings .communication-count {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ms-accent-soft);
  color: var(--ms-accent-deep);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
body.pro-mode .communication-settings .communication-number-list { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
body.pro-mode .communication-settings .communication-number-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 240ms var(--ms-ease), transform 240ms var(--ms-ease);
}
body.pro-mode .communication-settings .communication-number-card:hover { border-color: var(--ms-line-strong); transform: translateY(-1px); }
body.pro-mode .communication-settings .communication-number-card.is-on { border-color: var(--ms-accent-line); background: #f3f9f6; }
body.pro-mode .communication-settings .communication-number-card:focus-within { outline: 0; box-shadow: 0 0 0 3px var(--ms-accent-soft); }
body.pro-mode .communication-settings .communication-number-card > input[type="checkbox"] { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; }
body.pro-mode .communication-settings .communication-number-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; background: var(--ms-tint); color: var(--ms-muted); }
body.pro-mode .communication-settings .communication-number-card.is-on .communication-number-icon { background: var(--ms-accent-soft); color: var(--ms-accent); }
body.pro-mode .communication-settings .communication-number-icon svg { width: 16px; height: 16px; }
body.pro-mode .communication-settings .communication-number-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
body.pro-mode .communication-settings .communication-number-copy strong { color: var(--ms-ink); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
body.pro-mode .communication-settings .communication-number-copy small { color: var(--ms-faint); font-size: 0.75rem; }
body.pro-mode .communication-settings .communication-number-check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1.5px solid var(--ms-line-strong);
  border-radius: 7px;
  background: #fff;
  color: transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
body.pro-mode .communication-settings .communication-number-check svg { width: 13px; height: 13px; stroke-width: 3; transform: scale(0.4); transition: transform 300ms var(--ms-spring); }
body.pro-mode .communication-settings .communication-number-card.is-on .communication-number-check { border-color: var(--ms-accent); background: var(--ms-accent); color: #fff; }
body.pro-mode .communication-settings .communication-number-card.is-on .communication-number-check svg { transform: none; }
body.pro-mode .communication-settings .communication-empty-note { margin: 0; color: var(--ms-muted); font-size: 0.8125rem; }

/* Connecting: the key field with a lock, and what Quo brings. */
body.pro-mode .communication-settings .communication-key-field { display: grid; gap: 6px; margin: 0; }
body.pro-mode .communication-settings .communication-key-field > span:first-child { color: var(--ms-muted); font-size: 0.75rem; font-weight: 500; }
body.pro-mode .communication-settings .communication-key-input { position: relative; display: block; }
body.pro-mode .communication-settings .communication-key-input > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--ms-faint);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 200ms ease;
}
body.pro-mode .communication-settings .communication-key-input > input:not(#rl) {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px 10px 36px;
  border: 1px solid #d6e5de;
  border-radius: 10px;
  background: #fff;
  color: var(--ms-ink);
  font-size: 0.875rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
body.pro-mode .communication-settings .communication-key-input > input:focus:not(#rl) { border-color: var(--ms-accent); outline: 0; box-shadow: 0 0 0 3px var(--ms-accent-soft); }
body.pro-mode .communication-settings .communication-key-input:focus-within > svg { color: var(--ms-accent); }
body.pro-mode .communication-settings .communication-perks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.pro-mode .communication-settings .communication-perks > li { display: flex; align-items: center; gap: 12px; color: var(--ms-ink-soft); font-size: 0.8125rem; line-height: 1.45; }
body.pro-mode .communication-settings .communication-perks > li > span { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--ms-accent-soft); color: var(--ms-accent); }
body.pro-mode .communication-settings .communication-perks svg { width: 15px; height: 15px; }

/* History: a status line, and while it imports a line that runs. */
body.pro-mode .communication-settings .communication-history-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.pro-mode .communication-settings .communication-history-status > span:last-child { display: grid; gap: 2px; min-width: 0; }
body.pro-mode .communication-settings .communication-history-status strong { color: var(--ms-ink); font-size: 0.84375rem; font-weight: 600; }
body.pro-mode .communication-settings .communication-history-status small { color: var(--ms-faint); font-size: 0.75rem; }
body.pro-mode .communication-settings .communication-history-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 50%; background: var(--ms-tint); color: var(--ms-muted); }
body.pro-mode .communication-settings .communication-history-icon svg { width: 17px; height: 17px; }
body.pro-mode .communication-settings .communication-history-icon.is-syncing { background: var(--ms-blue-soft); color: var(--ms-blue); }
body.pro-mode .communication-settings .communication-history-icon.is-syncing svg { animation: ms-spin 1.6s linear infinite reverse; }
body.pro-mode .communication-settings .communication-history-progress {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ms-blue-soft);
}
body.pro-mode .communication-settings .communication-history-progress::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 3px;
  background: #4f86ad;
  content: "";
  animation: ms-run 1.4s var(--ms-ease) infinite;
}
body.pro-mode .communication-settings .communication-history-card .communication-section-heading .outline-button:not(#rl) { min-height: 32px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.78125rem; }

/* Connection options: folds open; its arrow turns. */
body.pro-mode .communication-settings .communication-connection-options {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 200ms ease;
}
body.pro-mode .communication-settings .communication-connection-options:hover { border-color: var(--ms-line-strong); }
body.pro-mode .communication-settings .communication-connection-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
}
body.pro-mode .communication-settings .communication-connection-options > summary::-webkit-details-marker { display: none; }
body.pro-mode .communication-settings .communication-connection-options > summary > span { display: grid; gap: 2px; }
body.pro-mode .communication-settings .communication-connection-options > summary strong { color: var(--ms-ink); font-size: 0.875rem; font-weight: 600; }
body.pro-mode .communication-settings .communication-connection-options > summary small { color: var(--ms-faint); font-size: 0.75rem; font-weight: 400; }
body.pro-mode .communication-settings .communication-connection-options > summary > svg { width: 16px; height: 16px; color: var(--ms-muted); transform: rotate(90deg); transition: transform 280ms var(--ms-ease); }
body.pro-mode .communication-settings .communication-connection-options[open] > summary > svg { transform: rotate(-90deg); }
body.pro-mode .communication-settings .communication-connection-options > summary:focus-visible { outline: 2px solid var(--ms-accent); outline-offset: -2px; border-radius: 16px; }
body.pro-mode .communication-settings .communication-connection-options > div { display: grid; gap: 12px; padding: 0 16px 16px; }
body.pro-mode .communication-settings .communication-connection-options[open] > div { animation: ms-rise 280ms var(--ms-ease) both; }
body.pro-mode .communication-settings .communication-connection-options p { margin: 0; color: var(--ms-muted); font-size: 0.8125rem; line-height: 1.5; }
body.pro-mode .communication-settings .communication-disconnect-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid #eef1ef; }
body.pro-mode .communication-settings .communication-disconnect-row > button:not(#rl) { flex: none; color: var(--color-danger, #a33a43); }

/* ---- AI ---------------------------------------------------------------------- */
/* The card stacks without a grid gap, so the options fold to nothing: their
   own space is inside what folds. */
body.pro-mode .communication-settings .communication-setting-card.communication-translation-preference { display: flex; flex-direction: column; gap: 0; }
body.pro-mode .communication-settings .communication-translation-preference > * + * { margin-top: 12px; }
body.pro-mode .communication-settings .communication-translation-preference > .communication-translation-options { margin-top: 0; }
body.pro-mode .communication-settings .communication-translation-preference > p.communication-provider-note { margin-top: 12px; }
body.pro-mode .communication-settings .communication-translation-options { transition: grid-template-rows 420ms var(--ms-ease), opacity 300ms ease; }
body.pro-mode .communication-settings .communication-translation-options > div { display: grid; gap: 14px; }
body.pro-mode .communication-settings .communication-translation-options > div > :first-child { margin-top: 12px; }
body.pro-mode .communication-settings .communication-translation-preview {
  gap: 8px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #e9eeeb;
  border-radius: 14px;
  background: var(--ms-tint);
}
body.pro-mode .communication-settings .communication-translation-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 2px; }
body.pro-mode .communication-settings .communication-translation-preview-label,
body.pro-mode .communication-settings .communication-translation-options-label,
body.pro-mode .communication-settings .communication-tone-label {
  color: var(--ms-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.pro-mode .communication-settings .communication-translation-hint { margin: 0; color: var(--ms-faint); font-size: 0.75rem; }
body.pro-mode .communication-settings .communication-translation-tone { margin: 0; }
body.pro-mode .communication-settings .communication-translation-options-label { margin: 0 0 8px; }
/* Tones: one control whose white thumb springs to the choice. */
body.pro-mode .communication-settings .communication-translation-segment {
  padding: 3px;
  border-radius: 999px;
  background: #edf1ef;
  box-shadow: inset 0 1px 2px rgba(16, 28, 22, 0.08);
}
body.pro-mode .communication-settings .communication-translation-segment > button:not(#rl) {
  height: 32px;
  border-radius: 999px;
  color: #4f5b57;
  font-size: 0.78125rem;
  font-weight: 650;
  cursor: pointer;
}
body.pro-mode .communication-settings .communication-translation-segment > button:hover:not(:disabled):not(#rl) { color: var(--ms-ink); }
body.pro-mode .communication-settings .communication-translation-segment > button.is-on:not(#rl) { color: var(--ms-ink); }
body.pro-mode .communication-settings .communication-translation-segment > button:focus-visible:not(#rl) { outline: 2px solid var(--ms-accent); outline-offset: 1px; }
body.pro-mode .communication-settings .communication-translation-segment > i {
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(22, 32, 28, 0.12), 0 0 0 1px rgba(22, 32, 28, 0.04);
  transition: transform 360ms var(--ms-spring);
}
body.pro-mode .communication-settings .communication-tone-example {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e9eeeb;
  border-radius: 14px;
  background: var(--ms-tint);
}
body.pro-mode .communication-settings .communication-tone-typed { color: var(--ms-ink-soft); }
body.pro-mode .communication-settings .communication-tone-english > p { color: var(--ms-accent-deep); }

/* ---- Templates ---------------------------------------------------------------- */
body.pro-mode .communication-settings .communication-template-list { display: grid; gap: 8px; }
body.pro-mode .communication-settings .communication-template-list > article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ms-tint);
  transition: border-color 200ms ease, transform 240ms var(--ms-ease);
}
body.pro-mode .communication-settings .communication-template-list > article:hover { border-color: var(--ms-line); transform: translateY(-1px); }
body.pro-mode .communication-settings .communication-template-list strong { color: var(--ms-ink); font-size: 0.875rem; font-weight: 600; }
body.pro-mode .communication-settings .communication-template-list p { margin: 3px 0 0; color: var(--ms-muted); font-size: 0.78125rem; line-height: 1.5; }
body.pro-mode .communication-settings .communication-template-icon { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--ms-line); color: var(--ms-muted); }
body.pro-mode .communication-settings .communication-template-icon svg { width: 15px; height: 15px; }
body.pro-mode .communication-settings .communication-template-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  border: 1px dashed var(--ms-line-strong);
  border-radius: 14px;
  background: var(--ms-tint);
  text-align: center;
}
body.pro-mode .communication-settings .communication-template-empty > span { display: grid; width: 40px; height: 40px; margin-bottom: 6px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(22, 32, 28, 0.06); color: var(--ms-accent); }
body.pro-mode .communication-settings .communication-template-empty > span svg { width: 18px; height: 18px; }
body.pro-mode .communication-settings .communication-template-empty strong { color: var(--ms-ink); font-size: 0.875rem; font-weight: 600; }
body.pro-mode .communication-settings .communication-template-empty p { max-width: 300px; margin: 0; color: var(--ms-muted); font-size: 0.78125rem; line-height: 1.5; }
body.pro-mode .communication-settings .communication-section-heading .outline-button.small:not(#rl) { gap: 6px; min-height: 32px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.78125rem; }
body.pro-mode .communication-settings .communication-section-heading .outline-button.small svg { width: 14px; height: 14px; }

/* ---- Loading: the tab's outline, shimmering --------------------------------- */
body.pro-mode .communication-settings .communication-settings-loading { padding: 0; }
body.pro-mode .communication-settings .communication-settings-loading.is-unavailable { padding: 44px 0; color: var(--ms-muted); font-size: 0.875rem; text-align: center; }
body.pro-mode .communication-settings .communication-settings-skeleton { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; }
body.pro-mode .communication-settings .communication-settings-skeleton > i {
  display: block;
  height: 168px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eef1ef 0%, #f6f8f7 40%, #eef1ef 80%) 0 0 / 220% 100%;
  animation: ms-shimmer 1.4s linear infinite;
}
body.pro-mode .communication-settings .communication-settings-skeleton > i:nth-child(2n) { height: 120px; }
body.pro-mode .communication-settings.is-inline .communication-settings-skeleton { grid-template-columns: minmax(0, 1fr); }

/* ---- Settings › Messaging: the same parts, flat inside Settings' card ------ */
body.pro-mode .communication-settings.is-inline .communication-setting-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.pro-mode .communication-settings.is-inline .communication-setting-card + .communication-setting-card { padding-top: 18px; border-top: 1px solid var(--ms-line); }
body.pro-mode .communication-settings.is-inline .communication-quo-summary { display: none; }

/* ---- Narrow -------------------------------------------------------------------- */
@media (max-width: 1080px) {
  body.pro-mode .communication-settings .communication-settings-skeleton { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.pro-mode .communication-settings.is-window .communication-settings-panel.rl-settings-panel:not([hidden]) { padding: 16px 16px 0; }
  body.pro-mode .communication-settings.is-window .communication-settings-panel > :last-child:not(.communication-settings-savebar) { margin-bottom: 16px; }
  body.pro-mode .communication-settings.is-window .communication-settings-panel > .communication-settings-savebar { margin: auto -16px 0; padding: 10px 16px; }
  body.pro-mode .communication-settings.is-window .communication-settings-alert { padding: 12px 16px 0; }
  body.pro-mode .communication-settings .communication-setting-row.is-select { flex-wrap: wrap; }
  body.pro-mode .communication-settings .communication-setting-row.is-select .communication-setting-control { width: 100%; }
  body.pro-mode .communication-settings .communication-settings-savestate { font-size: 0.75rem; }
  body.pro-mode .communication-settings .communication-settings-saveactions > button:not(#rl) { padding: 0 14px !important; }
  body.pro-mode .communication-settings .communication-connection-hero { padding: 16px; }
}

@keyframes ms-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes ms-wake { 0% { transform: scale(0.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes ms-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ms-ripple { 0% { opacity: 0.45; transform: scale(0.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ms-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 107, 82, 0.32); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 107, 82, 0); } }
@keyframes ms-fill { from { width: 0; } }
@keyframes ms-spin { to { transform: rotate(360deg); } }
@keyframes ms-run { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes ms-rise { from { opacity: 0; transform: translateY(-4px); } }
@keyframes ms-shimmer { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  body.pro-mode .communication-settings *,
  body.pro-mode .communication-settings *::before,
  body.pro-mode .communication-settings *::after {
    animation: none !important;
    transition: none !important;
  }
  body.pro-mode .communication-settings :is(.communication-setting-card, .communication-setting-row, .communication-number-card, .communication-connection-link, .communication-template-list > article):hover { transform: none; }
  body.pro-mode .communication-settings .communication-settings-saveactions > button:is([type="reset"], [type="submit"]):not(#rl) { animation: none !important; transition: none !important; }
}


/* Translation › coming soon: one calm card in the middle of the tab. */
.communication-settings .communication-soon {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 48px auto 24px;
  padding: 36px 32px;
  border: 1px solid #e3e8e6;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  animation: communication-soon-in .42s cubic-bezier(.22, 1, .36, 1) both;
}
.communication-settings .communication-soon-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--color-accent, #1f6b52);
  background: color-mix(in srgb, var(--color-accent, #1f6b52) 10%, #fff);
}
.communication-settings .communication-soon-icon .icon { width: 24px; height: 24px; }
.communication-settings .communication-soon-chip {
  padding: 4px 10px;
  border-radius: 999px;
  color: #6d5a2a;
  background: #f6efdc;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.communication-settings .communication-soon h3 { margin: 4px 0 0; font-size: 1.05rem; }
.communication-settings .communication-soon p { margin: 0; color: #66726d; font-size: .86rem; line-height: 1.55; }
@keyframes communication-soon-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .communication-settings .communication-soon { animation: none; }
}
.communication-settings.is-window #communication-settings-panel-translation > .communication-soon { grid-column: 1 / -1; align-self: center; justify-self: center; width: min(520px, 100%); margin: 48px auto 24px; }

/* A Messages part that failed: the reason was a pop-up (owner rule), so only
   its Try again is left here, plain, with no tinted error box. */
body.pro-mode .communication-error.is-retry:not(#rl) {
  display: flex;
  justify-content: flex-start;
  margin: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* Messages › Bookings, New message and Call details: booking-details size,
   like every Pro window (owner rule, 11-05/11-09), laid out to fill it. */
body.pro-mode .business-team-drawer-layer.is-centered.rl-msg-window .business-team-drawer-header:not(#rl) {
  padding: 20px 28px 16px !important;
  border-bottom: 1px solid #e3e8e6 !important;
}
/* Bookings: the count on top, then the months side by side. */
body.pro-mode .rl-msg-window .communication-bookings:not(#rl) {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-items: start;
  padding: 22px 28px 32px;
}
body.pro-mode .rl-msg-window .communication-bookings > :not(.communication-booking-group):not(#rl) {
  grid-column: 1 / -1;
}
/* New message: what it is on the left, the form on the right. */
body.pro-mode .rl-msg-window .communication-new-message:not(#rl) {
  padding: 26px 28px 32px;
}
/* Call details: who and when across the top; the summary, next steps and a
   booking it suggests on the left, the transcript on the right. */
body.pro-mode .rl-msg-window .communication-transcript:not(#rl) {
  padding: 22px 28px 32px;
}
body.pro-mode .communication-call-columns,
body.pro-mode .communication-call-side,
body.pro-mode .communication-call-main {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}
@media (min-width: 900px) {
  body.pro-mode .rl-msg-window .communication-new-message:not(#rl) {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    column-gap: 40px;
  }
  body.pro-mode .rl-msg-window .communication-new-message > .communication-new-intro:not(#rl) {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }
  body.pro-mode .rl-msg-window .communication-new-message > :not(.communication-new-intro):not(form):not(#rl) {
    grid-column: 1 / -1;
  }
  body.pro-mode .rl-msg-window .communication-call-columns:not(#rl) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    column-gap: 28px;
  }
}
