:root {
  --b40-lead-white: #ffffff;
  --b40-lead-page: #fbfdff;
  --b40-lead-porcelain: #f7fbff;
  --b40-lead-porcelain-strong: #eef7ff;
  --b40-lead-blue-wash: #eaf4ff;
  --b40-lead-amber-wash: #fff7ec;
  --b40-lead-ink: #122035;
  --b40-lead-ink-soft: #26364d;
  --b40-lead-muted: #536276;
  --b40-lead-faint: #8692a0;
  --b40-lead-line: #dbe6f2;
  --b40-lead-line-soft: #ecf2f8;
  --b40-lead-accent: #0c5f9e;
  --b40-lead-accent-strong: #093f73;
  --b40-lead-ember: #c67752;
  --b40-lead-user-line: #b9d4f7;
  --b40-lead-user-bg: #eaf3ff;
  --b40-lead-user-ink: #005bd3;
  --b40-lead-placeholder: #a8b2bf;
  --b40-lead-permission: #8a6e13;
  --b40-lead-active: #1f7a4d;
  --b40-lead-active-bg: #edf9f3;
  --b40-lead-clear: rgba(255, 255, 255, 0);
  --b40-lead-composer-fade-0: rgba(251, 253, 255, 0);
  --b40-lead-composer-fade-1: rgba(251, 253, 255, 0.92);
  --b40-lead-shadow: 0 24px 80px rgba(18, 32, 53, 0.1);
  --b40-lead-shadow-soft: 0 16px 52px rgba(18, 32, 53, 0.07);
  --b40-lead-chip-shadow: 0 5px 14px rgba(18, 32, 53, 0.05);
  --b40-lead-top-shadow: 0 -18px 52px rgba(18, 32, 53, 0.06);
  --b40-lead-active-shadow: 0 8px 24px rgba(31, 122, 77, 0.14);
  --b40-lead-button-line: rgba(255, 255, 255, 0.36);
}

.b40-lead-page {
  box-sizing: border-box;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--b40-lead-page);
  color: var(--b40-lead-ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.b40-lead-page *,
.b40-lead-page *::before,
.b40-lead-page *::after {
  box-sizing: inherit;
}

.b40-lead-shell {
  min-height: 100vh;
  background: var(--b40-lead-page);
}

.b40-lead-split {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  overflow: hidden;
  background: var(--b40-lead-page);
}

.b40-lead-room,
.b40-lead-offer {
  min-width: 0;
  min-height: 0;
}

.b40-lead-room {
  border-right: 1px solid var(--b40-lead-line-soft);
  background:
    radial-gradient(circle at 15% 12%, var(--b40-lead-blue-wash), var(--b40-lead-clear) 34%),
    radial-gradient(circle at 88% 84%, var(--b40-lead-amber-wash), var(--b40-lead-clear) 35%),
    linear-gradient(180deg, var(--b40-lead-white), var(--b40-lead-porcelain));
}

.b40-lead-console {
  position: relative;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.b40-lead-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--b40-lead-line-soft) 0 1px, var(--b40-lead-clear) 1px 100%),
    linear-gradient(180deg, var(--b40-lead-line-soft) 0 1px, var(--b40-lead-clear) 1px 100%);
  background-size: 58px 58px;
  opacity: 0.5;
}

.b40-lead-console__topbar {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 22px clamp(20px, 3.25vw, 52px) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.b40-lead-console__path,
.b40-lead-console__tools {
  display: inline-flex;
  align-items: center;
}

.b40-lead-console__path {
  gap: 10px;
  color: var(--b40-lead-ink);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
}

.b40-lead-console__path span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b40-lead-console__folder {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 14px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--b40-lead-ink);
}

.b40-lead-console__folder::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 6px;
  top: -6px;
  left: 0;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.b40-lead-console__tools {
  gap: 7px;
}

.b40-lead-console__tools span {
  width: 14px;
  height: 14px;
  border: 1px solid var(--b40-lead-faint);
  border-radius: 4px;
  background: var(--b40-lead-white);
}

.b40-lead-console__tools span:first-child {
  border-color: var(--b40-lead-active);
  background: var(--b40-lead-active);
  box-shadow: 0 0 0 4px var(--b40-lead-active-bg);
}

.b40-lead-console__tools span:last-child {
  opacity: 0.72;
}

.b40-lead-thread {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: clamp(34px, 6vh, 72px) clamp(20px, 3.25vw, 52px) 20px;
  display: grid;
  align-content: start;
  gap: clamp(26px, 4vh, 48px);
  overflow: auto;
}

.b40-lead-message {
  margin: 0;
  animation: b40-lead-message-in 180ms ease-out both;
}

.b40-lead-message p,
.b40-lead-message__body {
  margin: 0;
  overflow-wrap: break-word;
}

.b40-lead-message--model .b40-lead-message__body,
.b40-lead-message--model > p {
  grid-column: 2;
}

.b40-lead-message__body {
  display: grid;
  gap: 10px;
  white-space: normal;
}

.b40-lead-message__body > * {
  margin: 0;
}

.b40-lead-message__body ul,
.b40-lead-message__body ol {
  display: grid;
  gap: 6px;
  padding-left: 1.1rem;
}

.b40-lead-message__body li {
  padding-left: 2px;
}

.b40-lead-message__body strong {
  font-weight: 760;
}

.b40-lead-message__body em {
  font-style: italic;
}

.b40-lead-message__body code {
  padding: 1px 4px;
  border: 1px solid var(--b40-lead-line-soft);
  border-radius: 5px;
  background: var(--b40-lead-porcelain);
  color: var(--b40-lead-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.b40-lead-message__heading {
  color: var(--b40-lead-ink);
  font-weight: 760;
}

.b40-lead-message--user {
  width: min(100%, 470px);
  padding: 15px 16px;
  border: 1px solid var(--b40-lead-user-line);
  border-radius: 10px;
  background: var(--b40-lead-user-bg);
  color: var(--b40-lead-user-ink);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
  box-shadow: var(--b40-lead-shadow-soft);
}

.b40-lead-message--model {
  max-width: 580px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 15px;
  color: var(--b40-lead-ink);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
}

.b40-lead-message__mark {
  grid-column: 1;
  grid-row: 1;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: block;
  background: var(--b40-lead-ember);
  clip-path: polygon(43% 0, 57% 0, 57% 32%, 82% 9%, 91% 18%, 68% 43%, 100% 43%, 100% 57%, 68% 57%, 91% 82%, 82% 91%, 57% 68%, 57% 100%, 43% 100%, 43% 68%, 18% 91%, 9% 82%, 32% 57%, 0 57%, 0 43%, 32% 43%, 9% 18%, 18% 9%, 43% 32%);
}

.b40-lead-handoff {
  width: min(100%, 520px);
  margin: -10px 0 0 43px;
  padding: 14px;
  border: 1px solid var(--b40-lead-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--b40-lead-ink);
  box-shadow: var(--b40-lead-shadow-soft);
}

.b40-lead-handoff__intro {
  margin: 0;
  color: var(--b40-lead-muted);
  font-size: 13px;
  line-height: 1.36;
}

.b40-lead-handoff__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.b40-lead-handoff__button,
.b40-lead-handoff__link {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font: 760 13px / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.b40-lead-handoff__button {
  border: 1px solid var(--b40-lead-accent);
  background: var(--b40-lead-accent);
  color: var(--b40-lead-white);
}

.b40-lead-handoff__link {
  border: 1px solid var(--b40-lead-line);
  background: var(--b40-lead-white);
  color: var(--b40-lead-ink-soft);
}

.b40-lead-handoff__form {
  margin-top: 14px;
  display: none;
  gap: 10px;
}

.b40-lead-handoff.is-open .b40-lead-handoff__form {
  display: grid;
}

.b40-lead-handoff__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.b40-lead-handoff__field {
  display: grid;
  gap: 5px;
}

.b40-lead-handoff__field--wide {
  grid-column: 1 / -1;
}

.b40-lead-handoff__field span,
.b40-lead-handoff__consent {
  color: var(--b40-lead-muted);
  font-size: 11px;
  line-height: 1.3;
}

.b40-lead-handoff__field input,
.b40-lead-handoff__field textarea {
  width: 100%;
  border: 1px solid var(--b40-lead-line);
  border-radius: 8px;
  background: var(--b40-lead-white);
  color: var(--b40-lead-ink);
  font: 400 13px / 1.36 var(--font-body);
}

.b40-lead-handoff__field input {
  min-height: 38px;
  padding: 0 10px;
}

.b40-lead-handoff__field textarea {
  min-height: 118px;
  padding: 10px;
  resize: vertical;
}

.b40-lead-handoff__field input:focus,
.b40-lead-handoff__field textarea:focus {
  outline: 2px solid var(--b40-lead-blue-wash);
  border-color: var(--b40-lead-accent);
}

.b40-lead-handoff__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.b40-lead-handoff__consent input {
  margin: 2px 0 0;
}

.b40-lead-handoff__submit {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: var(--b40-lead-ink);
  color: var(--b40-lead-white);
  font: 760 13px / 1 var(--font-body);
  cursor: pointer;
}

.b40-lead-handoff__submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.b40-lead-handoff__status {
  min-height: 16px;
  margin: 0;
  color: var(--b40-lead-muted);
  font-size: 12px;
  line-height: 1.35;
}

.b40-lead-composer {
  position: relative;
  z-index: 2;
  padding: 11px clamp(20px, 3.25vw, 52px) calc(16px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, var(--b40-lead-composer-fade-0), var(--b40-lead-composer-fade-1) 18%, var(--b40-lead-white));
  box-shadow: var(--b40-lead-top-shadow);
}

.b40-lead-composer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 9px;
}

.b40-lead-composer__chip {
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--b40-lead-line);
  border-radius: 7px;
  background: var(--b40-lead-white);
  color: var(--b40-lead-muted);
  font-size: 12px;
  line-height: 1;
  box-shadow: var(--b40-lead-chip-shadow);
}

.b40-lead-composer__chip--local::before,
.b40-lead-composer__chip--folder::before {
  content: "";
  width: 10px;
  height: 6px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.6;
}

.b40-lead-composer__chip--new {
  width: 28px;
  padding: 0;
  color: var(--b40-lead-ink-soft);
}

.b40-lead-composer__form {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: end;
  border: 1px solid var(--b40-lead-line);
  border-radius: 12px;
  background: var(--b40-lead-white);
  box-shadow: var(--b40-lead-shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.b40-lead-composer__form:focus-within {
  border-color: var(--b40-lead-accent);
  box-shadow: 0 0 0 3px var(--b40-lead-blue-wash), var(--b40-lead-shadow);
}

.b40-lead-composer__input {
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: min(28svh, 160px);
  box-sizing: border-box;
  padding: 16px 15px 14px;
  border: 0;
  outline: 0;
  resize: none;
  overflow-y: auto;
  background: transparent;
  color: var(--b40-lead-ink);
  font: 400 15px / 1.35 var(--font-body);
  letter-spacing: 0;
}

.b40-lead-composer__input::placeholder {
  color: var(--b40-lead-placeholder);
}

.b40-lead-composer__send {
  width: 52px;
  height: 54px;
  border: 0;
  border-left: 1px solid var(--b40-lead-line-soft);
  background: transparent;
  color: var(--b40-lead-faint);
  font-size: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.b40-lead-composer__send::before {
  content: "\21B5";
  font-size: 20px;
  line-height: 1;
}

.b40-lead-composer__send:hover,
.b40-lead-composer__send:focus-visible {
  background: var(--b40-lead-porcelain-strong);
  color: var(--b40-lead-accent);
}

.b40-lead-composer__send:focus-visible {
  outline: 2px solid var(--b40-lead-accent);
  outline-offset: -4px;
}

.b40-lead-composer__foot {
  min-height: 22px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--b40-lead-permission);
  font-size: 12px;
  line-height: 1.2;
}

.b40-lead-composer__meta {
  color: var(--b40-lead-faint);
}

.b40-lead-composer__status {
  margin-left: auto;
  min-height: 24px;
  padding: 0 9px 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--b40-lead-line);
  border-radius: 999px;
  background: var(--b40-lead-active-bg);
  color: var(--b40-lead-active);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--b40-lead-active-shadow);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.b40-lead-composer__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--b40-lead-active);
  box-shadow: 0 0 0 4px var(--b40-lead-active-bg);
  animation: b40-lead-pulse 1.5s ease-in-out infinite;
}

.b40-lead-composer__model {
  color: var(--b40-lead-ink);
  font-size: 14px;
  white-space: nowrap;
}

.b40-lead-composer__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--b40-lead-line);
  border-top-color: var(--b40-lead-accent);
  border-radius: 999px;
  opacity: 0.42;
  animation: b40-lead-spin 1.8s linear infinite;
  transition: opacity 160ms ease;
}

.b40-lead-console.is-thinking .b40-lead-composer__status {
  background: var(--b40-lead-blue-wash);
  color: var(--b40-lead-accent);
}

.b40-lead-console.is-thinking .b40-lead-composer__dot {
  background: var(--b40-lead-accent);
  box-shadow: 0 0 0 4px var(--b40-lead-blue-wash);
  animation-duration: 0.75s;
}

.b40-lead-console.is-thinking .b40-lead-composer__spinner {
  opacity: 1;
  animation-duration: 0.75s;
}

@keyframes b40-lead-message-in {
  from {
    transform: translateY(4px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes b40-lead-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes b40-lead-spin {
  to {
    transform: rotate(360deg);
  }
}

.b40-lead-offer {
  display: grid;
  align-items: center;
  align-items: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(30px, 4vw, 58px);
  background: var(--b40-lead-white);
}

.b40-lead-copy {
  width: min(100%, 720px);
  display: grid;
  gap: clamp(15px, 1.35vw, 20px);
}

.b40-lead-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--b40-lead-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
}

.b40-lead-brand__mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  background: var(--b40-lead-ink);
  clip-path: polygon(0 0, 36% 0, 36% 42%, 55% 42%, 55% 0, 100% 0, 100% 100%, 65% 100%, 65% 58%, 45% 58%, 45% 100%, 0 100%);
}

.b40-lead-hero {
  display: grid;
  gap: 9px;
}

.b40-lead-eyebrow,
.b40-lead-service span {
  margin: 0;
  color: var(--b40-lead-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.b40-lead-title {
  max-width: 700px;
  margin: 0;
  color: var(--b40-lead-ink);
  font-size: clamp(36px, 2.9vw, 48px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.b40-lead-body {
  max-width: 620px;
  margin: 0;
  color: var(--b40-lead-muted);
  font-size: clamp(15px, 0.9vw, 16.5px);
  line-height: 1.47;
  text-wrap: pretty;
}

.b40-lead-services {
  order: 4;
  display: grid;
  border-top: 1px solid var(--b40-lead-line);
}

.b40-lead-service {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--b40-lead-line-soft);
}

.b40-lead-service span {
  color: var(--b40-lead-muted);
  letter-spacing: 0;
}

.b40-lead-service h2 {
  margin: 0;
  color: var(--b40-lead-ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.22;
}

.b40-lead-service p {
  margin: 4px 0 0;
  color: var(--b40-lead-muted);
  font-size: 13.25px;
  line-height: 1.34;
  text-wrap: pretty;
}

.b40-lead-action {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(284px, 308px);
  align-items: center;
  gap: 18px;
}

.b40-lead-action p {
  max-width: 440px;
  margin: 0;
  color: var(--b40-lead-muted);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.b40-lead-action__button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--b40-lead-accent);
  color: var(--b40-lead-white);
  border: 0;
  text-decoration: none;
  text-align: left;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  border-radius: 7px;
  box-shadow: var(--b40-lead-shadow-soft);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.b40-lead-action__button span:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.b40-lead-action__button span:last-child {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--b40-lead-button-line);
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
}

.b40-lead-action__button:hover,
.b40-lead-action__button:focus {
  background: var(--b40-lead-accent-strong);
}

.b40-lead-action__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(9, 63, 115, 0.18);
}

.b40-lead-action__button:focus {
  outline: 2px solid var(--b40-lead-accent);
  outline-offset: 2px;
}

@media (max-height: 800px) and (min-width: 941px) {
  .b40-lead-offer {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .b40-lead-copy {
    gap: 13px;
  }

  .b40-lead-title {
    font-size: clamp(34px, 2.75vw, 44px);
  }

  .b40-lead-body {
    font-size: 14.5px;
    line-height: 1.4;
  }

  .b40-lead-service {
    padding: 8px 0;
  }

  .b40-lead-service h2 {
    font-size: 14.5px;
  }

  .b40-lead-service p {
    font-size: 13px;
    line-height: 1.3;
  }

  .b40-lead-action__button {
    min-height: 48px;
  }
}

@media (max-width: 1060px) {
  .b40-lead-offer {
    padding: 24px;
  }

  .b40-lead-copy {
    gap: 12px;
  }

  .b40-lead-title {
    font-size: clamp(31px, 3.2vw, 40px);
  }

  .b40-lead-body {
    font-size: 14.5px;
    line-height: 1.42;
  }

  .b40-lead-service {
    padding: 7px 0;
  }

  .b40-lead-service h2 {
    font-size: 14.5px;
  }

  .b40-lead-service p {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .b40-lead-action {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .b40-lead-action p {
    display: none;
  }

  .b40-lead-action__button {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 940px) {
  .b40-lead-split {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    overflow: visible;
    overflow-x: hidden;
  }

  .b40-lead-room {
    height: 100dvh;
    min-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
  }

  .b40-lead-console {
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
  }

  .b40-lead-offer {
    align-items: start;
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .b40-lead-copy {
    gap: 18px;
  }

  .b40-lead-services {
    order: 4;
  }

  .b40-lead-action {
    order: 5;
  }
}

@media (max-width: 620px) {
  .b40-lead-console__topbar,
  .b40-lead-thread,
  .b40-lead-composer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .b40-lead-console__topbar {
    min-height: 50px;
    padding-top: 16px;
  }

  .b40-lead-thread {
    padding-top: clamp(18px, 3svh, 26px);
    padding-bottom: 14px;
    gap: clamp(14px, 2.3svh, 20px);
    align-content: end;
    overflow-x: hidden;
  }

  .b40-lead-console {
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
  }

  .b40-lead-console__path {
    font-size: 13px;
  }

  .b40-lead-message--user {
    width: auto;
    padding: 13px 15px;
    font-size: 14px;
  }

  .b40-lead-message--model {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    font-size: 14px;
  }

  .b40-lead-handoff {
    width: 100%;
    margin-left: 0;
    padding: 13px;
  }

  .b40-lead-handoff__actions,
  .b40-lead-handoff__grid {
    grid-template-columns: 1fr;
  }

  .b40-lead-offer {
    padding: 26px 20px 32px;
  }

  .b40-lead-copy {
    gap: 14px;
  }

  .b40-lead-brand {
    font-size: 13px;
  }

  .b40-lead-brand__mark {
    width: 20px;
    height: 20px;
  }

  .b40-lead-composer__foot {
    margin-top: 7px;
    gap: 8px 10px;
    font-size: 11.5px;
  }

  .b40-lead-composer {
    padding-top: 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .b40-lead-composer__chips {
    margin-bottom: 7px;
  }

  .b40-lead-composer__chip {
    height: 26px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11.5px;
  }

  .b40-lead-composer__chip--new {
    width: 26px;
    padding: 0;
  }

  .b40-lead-composer__form {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .b40-lead-composer__input {
    height: 50px;
    min-height: 50px;
    padding-top: 14px;
    padding-bottom: 13px;
  }

  .b40-lead-composer__send {
    width: 50px;
    height: 50px;
  }

  .b40-lead-composer__meta {
    display: none;
  }

  .b40-lead-title {
    font-size: clamp(27px, 7.2vw, 32px);
    line-height: 1.04;
  }

  .b40-lead-body {
    font-size: 14.25px;
    line-height: 1.42;
  }

  .b40-lead-service {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
  }

  .b40-lead-service h2 {
    font-size: 14.5px;
    line-height: 1.18;
  }

  .b40-lead-service p {
    margin-top: 2px;
    font-size: 12.75px;
    line-height: 1.32;
  }

  .b40-lead-action {
    order: 3;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }

  .b40-lead-action p {
    display: block;
    max-width: none;
    font-size: 12.75px;
    line-height: 1.34;
  }

  .b40-lead-action__button {
    width: 100%;
    min-height: 52px;
    padding: 10px 16px 10px 18px;
    gap: 10px;
    font-size: 14px;
    line-height: 1.15;
  }

  .b40-lead-action__button span:first-child {
    white-space: normal;
  }

  .b40-lead-action__button span:last-child {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {
  .b40-lead-console__topbar,
  .b40-lead-thread,
  .b40-lead-composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .b40-lead-console {
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
  }

  .b40-lead-thread {
    padding-top: 20px;
    padding-bottom: 18px;
    gap: 16px;
  }

  .b40-lead-offer {
    padding-right: 18px;
    padding-left: 18px;
    padding-top: 24px;
  }

  .b40-lead-composer__model,
  .b40-lead-composer__spinner {
    display: none;
  }

  .b40-lead-composer__input {
    font-size: 14px;
  }

  .b40-lead-title {
    font-size: 25px;
  }

  .b40-lead-body {
    font-size: 14px;
    line-height: 1.42;
  }

  .b40-lead-service {
    padding: 9px 0;
  }

  .b40-lead-service p {
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b40-lead-page *,
  .b40-lead-page *::before,
  .b40-lead-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
