:root {
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #dfe5ee;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --canvas: #eef2f7;
  --blue: #075ee8;
  --blue-dark: #0649b5;
  --blue-soft: #eaf2ff;
  --green: #067647;
  --green-soft: #ecfdf3;
  --green-line: #abefc6;
  --red: #b42318;
  --red-soft: #fff1f0;
  --amber: #8a4b00;
  --amber-soft: #fff7e6;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.1);
  --shadow-small: 0 5px 18px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  --radius-small: 6px;
  --focus: rgba(7, 94, 232, 0.25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.demo-app {
  min-height: 100vh;
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
}

.demo-brand:hover {
  color: var(--ink);
}

.demo-brand img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e4fb;
  border-radius: 50%;
  padding: 3px;
  object-fit: contain;
}

.demo-brand span,
.crm-operator span,
.contact-identity > span:last-child,
.visitor-chat-header > div > span:last-child {
  display: grid;
}

.demo-brand strong {
  line-height: 1.2;
}

.demo-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.demo-badge,
.connection-state,
.live-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.demo-badge {
  border: 1px solid #fedf89;
  background: var(--amber-soft);
  color: var(--amber);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: #9fb5d4;
  background: var(--surface-soft);
  color: var(--ink);
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.button-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #ffffff;
}

.mobile-view-tabs {
  display: none;
}

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(700px, 1.48fr);
  gap: 16px;
  width: min(1640px, calc(100% - 32px));
  margin: 16px auto;
  scroll-margin-top: 58px;
}

.demo-view {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.view-titlebar,
.crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.view-kicker,
.sample-eyebrow,
.context-label {
  display: block;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.view-titlebar h1,
.crm-header h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.connection-state {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.connection-state span,
.operator-status,
.online-indicator {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #12b76a;
}

.sample-site {
  position: relative;
  min-height: 704px;
  background: #f5f2ec;
  overflow: hidden;
}

.sample-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #ded9cf;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
}

.sample-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #253126;
  font-weight: 800;
}

.sample-site-brand:hover {
  color: #253126;
}

.sample-site-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #315a48;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.sample-site-header nav {
  display: flex;
  gap: 13px;
}

.sample-site-header nav a {
  color: #536156;
  font-size: 0.78rem;
  font-weight: 700;
}

.sample-site-content {
  padding: 42px 24px 100px;
}

.sample-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(160px, 0.75fr);
  align-items: center;
  gap: 24px;
}

.sample-eyebrow {
  color: #315a48;
}

.sample-intro h2 {
  max-width: 420px;
  margin: 10px 0 13px;
  color: #1f2c22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.08;
}

.sample-intro p {
  max-width: 440px;
  margin-bottom: 18px;
  color: #5f6b61;
  font-size: 0.9rem;
}

.sample-link {
  display: inline-flex;
  border-bottom: 1px solid #315a48;
  padding-bottom: 3px;
  color: #315a48;
  font-size: 0.84rem;
  font-weight: 800;
}

.material-board {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: 130px 92px auto;
  gap: 7px;
  border: 1px solid #d9d4ca;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(63, 71, 64, 0.12);
}

.material-swatch {
  display: block;
  background: #c7b6a2;
}

.material-swatch-large {
  grid-row: 1 / 3;
  background: #796b60;
}

.material-swatch-blue {
  background: #657f8c;
}

.material-swatch-green {
  background: #82907f;
}

.material-caption {
  grid-column: 1 / -1;
  color: #6f786f;
  font-size: 0.7rem;
  font-weight: 700;
}

.sample-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid #d9d4ca;
  border-bottom: 1px solid #d9d4ca;
}

.sample-services article {
  display: grid;
  gap: 3px;
  padding: 14px 10px;
}

.sample-services article + article {
  border-left: 1px solid #d9d4ca;
}

.sample-services strong {
  color: #253126;
  font-size: 0.84rem;
}

.sample-services span {
  color: #69746b;
  font-size: 0.72rem;
}

.chat-launcher {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 0;
  border-radius: 24px;
  padding: 10px 16px;
  background: #122749;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.chat-launcher:hover {
  background: #1a3765;
}

.chat-launcher-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.chat-launcher-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  transform: skewY(-35deg);
}

.visitor-chat {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto;
  width: min(372px, calc(100% - 32px));
  height: min(560px, calc(100% - 32px));
  border: 1px solid #cad4e4;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.22);
  overflow: hidden;
}

.visitor-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
  background: #122749;
  color: #ffffff;
}

.visitor-chat-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.visitor-chat-header strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.visitor-chat-header small {
  color: #cfd9e8;
  font-size: 0.7rem;
}

.agent-avatar,
.contact-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 850;
}

.agent-avatar {
  background: #ffffff;
  color: #122749;
}

.icon-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-small);
  padding: 5px 8px;
  background: transparent;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 750;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.visitor-messages,
.conversation-messages {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.visitor-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f6f8fb;
}

.message {
  display: grid;
  gap: 3px;
  max-width: 84%;
}

.message p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message small {
  color: var(--muted);
  font-size: 0.66rem;
}

.message.is-visitor {
  align-self: flex-end;
}

.message.is-visitor p {
  border-color: #c8dcff;
  background: var(--blue-soft);
}

.message.is-visitor small {
  text-align: right;
}

.quick-prompts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  background: #ffffff;
}

.quick-prompts button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid #c8dcff;
  border-radius: 16px;
  padding: 5px 10px;
  background: #f4f8ff;
  color: #174ea6;
  font-size: 0.7rem;
  font-weight: 750;
}

.visitor-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #ffffff;
}

.visitor-composer textarea,
.staff-composer textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.4;
  resize: vertical;
}

.visitor-composer textarea {
  min-height: 44px;
  max-height: 96px;
  resize: none;
}

.send-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-small);
  padding: 9px 13px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.send-button:hover {
  background: var(--blue-dark);
}

.privacy-note {
  margin: 0;
  padding: 0 10px 9px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.66rem;
  text-align: center;
}

.crm-header h2 {
  font-size: 1.2rem;
}

.crm-operator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-status {
  margin: 0;
}

.crm-operator strong {
  font-size: 0.8rem;
  line-height: 1.25;
}

.crm-operator small {
  color: var(--muted);
  font-size: 0.68rem;
}

.crm-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 704px;
}

.conversation-sidebar {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 59px;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
}

.sidebar-heading > div {
  display: grid;
}

.sidebar-heading strong {
  font-size: 0.84rem;
}

.sidebar-heading span:not(.live-label) {
  color: var(--muted);
  font-size: 0.68rem;
}

.live-label {
  min-height: 24px;
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green);
}

.conversation-list {
  display: grid;
}

.conversation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-height: 88px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.conversation-item:hover {
  background: #f0f5fb;
}

.conversation-item.is-selected {
  box-shadow: inset 3px 0 0 var(--blue);
  background: var(--surface);
}

.conversation-item-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbe8fb;
  color: #174ea6;
  font-size: 0.68rem;
  font-weight: 850;
}

.conversation-item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.conversation-item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.conversation-item-heading strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item-heading time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.62rem;
}

.conversation-item-company,
.conversation-item-preview {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.mini-status {
  display: inline-flex;
  min-height: 21px;
  border: 1px solid #c8dcff;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--blue-soft);
  color: #174ea6;
  font-size: 0.6rem;
  font-weight: 800;
}

.mini-status.is-resolved {
  border-color: var(--line-strong);
  background: #f2f4f7;
  color: var(--muted);
}

.conversation-detail {
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto auto;
  min-width: 0;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.contact-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.contact-avatar {
  background: #122749;
  color: #ffffff;
}

.contact-identity strong,
.contact-identity small {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-identity strong {
  font-size: 0.88rem;
}

.contact-identity small {
  color: var(--muted);
  font-size: 0.7rem;
}

.conversation-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}

.conversation-controls label,
.stage-control {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.conversation-controls select,
.stage-control select {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 5px 26px 5px 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 300px;
  max-height: 356px;
  padding: 15px;
  background: #fbfcfe;
}

.conversation-messages .message {
  max-width: 72%;
}

.conversation-messages .message p {
  font-size: 0.8rem;
}

.staff-composer {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
}

.staff-composer > label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.staff-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.staff-composer textarea {
  min-height: 58px;
  max-height: 120px;
}

.staff-composer small {
  color: var(--muted);
  font-size: 0.66rem;
}

.business-context {
  padding: 13px 14px 14px;
}

.business-context-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.business-context-heading h3 {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.context-grid article {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  background: var(--surface-soft);
}

.context-grid article + article {
  border-left: 1px solid var(--line);
}

.context-grid strong,
.context-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-grid strong {
  font-size: 0.76rem;
}

.context-grid small {
  color: var(--muted);
  font-size: 0.65rem;
}

.capabilities-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 24px;
  width: min(1640px, calc(100% - 32px));
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}

.capabilities-band h2 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.capabilities-band ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities-band li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  padding: 22px max(24px, calc((100% - 1608px) / 2));
  background: #122749;
  color: #d7e0ed;
}

.demo-footer > div {
  display: grid;
}

.demo-footer strong {
  color: #ffffff;
}

.demo-footer span {
  font-size: 0.82rem;
}

.demo-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: #afbdd1;
  font-size: 0.7rem;
}

@media (max-width: 1240px) {
  .demo-workspace {
    grid-template-columns: minmax(350px, 0.72fr) minmax(620px, 1.28fr);
  }

  .demo-header {
    padding-inline: 16px;
  }

  .demo-badge {
    display: none;
  }

  .crm-body {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .conversation-controls {
    max-width: 230px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .demo-header {
    position: static;
    flex-wrap: wrap;
  }

  .demo-header-actions {
    flex: 1 1 auto;
  }

  .demo-badge {
    display: inline-flex;
    margin-right: auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-view-tabs {
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-view-tab {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
  }

  .mobile-view-tab.is-active {
    border-color: #c8dcff;
    background: var(--blue-soft);
    color: var(--blue);
  }

  .demo-workspace {
    display: block;
    width: min(100% - 24px, 850px);
    margin-block: 12px;
  }

  .demo-app[data-mobile-view="visitor"] .crm-view,
  .demo-app[data-mobile-view="crm"] .visitor-view {
    display: none;
  }

  .sample-site,
  .crm-body {
    min-height: 700px;
  }

  .capabilities-band {
    width: min(100% - 24px, 850px);
  }

  .demo-footer {
    padding-inline: 20px;
  }
}

@media (max-width: 680px) {
  .demo-header {
    gap: 10px;
    padding: 9px 12px;
  }

  .demo-brand {
    flex: 1 1 190px;
  }

  .demo-header-actions {
    width: 100%;
  }

  .demo-badge {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .demo-header-actions .button {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.8rem;
  }

  .view-titlebar,
  .crm-header {
    min-height: 60px;
    padding: 10px 12px;
  }

  .sample-site-header nav {
    display: none;
  }

  .sample-site-content {
    padding: 32px 17px 94px;
  }

  .sample-intro {
    grid-template-columns: 1fr;
  }

  .sample-intro h2 {
    font-size: 1.9rem;
  }

  .material-board {
    max-width: 340px;
  }

  .sample-services {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .sample-services article + article {
    border-top: 1px solid #d9d4ca;
    border-left: 0;
  }

  .crm-body {
    grid-template-columns: 1fr;
  }

  .conversation-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversation-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .conversation-item {
    flex: 0 0 226px;
    border-right: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .conversation-item.is-selected {
    box-shadow: inset 0 -3px 0 var(--blue);
  }

  .conversation-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversation-controls {
    width: 100%;
    max-width: none;
    justify-content: stretch;
  }

  .conversation-controls label {
    flex: 1 1 130px;
  }

  .conversation-controls select {
    width: 100%;
  }

  .conversation-messages {
    max-height: 330px;
  }

  .conversation-messages .message {
    max-width: 86%;
  }

  .staff-composer > div {
    grid-template-columns: 1fr;
  }

  .staff-composer .button {
    justify-self: start;
  }

  .business-context-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-control select {
    width: 100%;
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .context-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capabilities-band {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-footer {
    grid-template-columns: 1fr;
  }

  .demo-footer .button {
    justify-self: start;
  }

  .demo-footer p {
    grid-column: 1;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .demo-brand img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .demo-brand strong {
    font-size: 0.9rem;
  }

  .demo-brand small {
    font-size: 0.7rem;
  }

  .demo-badge {
    display: none;
  }

  .demo-header-actions {
    justify-content: flex-end;
  }

  .demo-workspace,
  .capabilities-band {
    width: calc(100% - 16px);
  }

  .view-titlebar {
    align-items: flex-start;
  }

  .connection-state {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 0.66rem;
  }

  .sample-site {
    min-height: 690px;
  }

  .sample-intro h2 {
    font-size: 1.72rem;
  }

  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }

  .visitor-chat {
    position: fixed;
    top: 58px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: auto;
    max-height: none;
  }

  .crm-header {
    align-items: flex-start;
  }

  .crm-operator small {
    display: none;
  }

  .quick-prompts {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
