:root {
  --canvas: #f2eee5;
  --surface: #fffdf8;
  --ink: #17211f;
  --muted: #666b65;
  --line: rgba(23, 33, 31, 0.17);
  --line-strong: rgba(23, 33, 31, 0.32);
  --accent: #c24118;
  --accent-deep: #8f2b0e;
  --success: #1d6b43;
  --danger: #a92d1e;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

.embed-preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 16px;
  border-bottom: 1px solid #e8c288;
  background: #fff4df;
  color: #6b4312;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.embed-mode {
  height: var(--app-visual-height, 100dvh);
  overflow: hidden;
}

.embed-mode .site-header {
  flex: 0 0 auto;
  padding-right: 140px;
}

.embed-mode .positioning-slogan {
  display: none;
}

.embed-mode .language-switch {
  display: none;
}

.embed-mode .customer-shell {
  height: calc(var(--app-visual-height, 100dvh) - 82px);
  min-height: 0;
}

@media (max-width: 767px) {
  .embed-mode .site-header {
    padding-right: 116px;
  }

  .embed-mode .language-switch {
    display: none;
  }

  .embed-mode .customer-shell {
    height: calc(var(--app-visual-height, 100dvh) - 64px);
  }
}

@media (max-width: 880px) {
  /* The host overlay keeps its assistant close button at the top-right. */
  .embed-mode .commerce-drawer-header {
    padding-right: 76px;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px,
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #155eef;
  outline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  overflow: hidden;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-weight: 800;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 12px;
}

.demo-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 750;
}

.language-switch {
  border: 1px solid var(--line);
}

.language-switch button {
  min-width: 40px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button.is-active {
  background: var(--ink);
  color: var(--surface);
}

main {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 82px) clamp(18px, 4vw, 56px) 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-intro {
  max-width: 57ch;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.product-card {
  padding: 24px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.08);
}

.product-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.mono,
.product-facts dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.mono {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.product-summary {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.product-facts div {
  padding: 14px 10px 0 0;
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.product-facts dd {
  margin: 5px 0 0;
  font-size: 1rem;
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 610px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(23, 33, 31, 0.08);
}

.conversation {
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr) auto auto;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.conversation > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.conversation h2,
.quote-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.thread {
  max-height: 410px;
  overflow: auto;
  padding: 24px;
  scrollbar-gutter: stable;
}

.message {
  display: grid;
  gap: 7px;
  max-width: 72ch;
  margin-bottom: 18px;
}

.message > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.message p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--canvas);
  line-height: 1.65;
  white-space: pre-wrap;
}

.message.user {
  justify-items: end;
  margin-left: auto;
  text-align: right;
}

.message.user p {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.sources a {
  color: var(--accent-deep);
}

.citation-link {
  min-width: 28px;
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 14px;
}

.prompts button,
.text-button,
.primary,
.secondary,
.signal {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 720;
}

.text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.signal {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.secondary {
  width: 100%;
}

.composer {
  display: grid;
  gap: 8px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}

.composer > label,
.quote-panel label,
.form-grid label {
  font-size: 0.8rem;
  font-weight: 700;
}

.composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

.quote-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: color-mix(in srgb, var(--canvas) 68%, var(--surface));
}

.quote-panel > p:not(.eyebrow) {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.quote-panel form {
  display: grid;
  gap: 8px;
}

.quote-result {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--success) 40%, var(--line));
  background: color-mix(in srgb, var(--success) 5%, var(--surface));
  font-size: 0.82rem;
  line-height: 1.55;
}

.quote-result strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
}

.status {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
}

dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(23, 33, 31, 0.26);
}

dialog::backdrop {
  background: rgba(23, 33, 31, 0.58);
}

dialog form,
.success {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
}

dialog header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

dialog h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
}

dialog header p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.consent input {
  width: 20px;
  min-height: 20px;
}

.consent a {
  display: inline;
  min-height: 44px;
  margin-left: 4px;
  color: var(--accent-deep);
  font-weight: 700;
  text-underline-offset: 2px;
}

.privacy-version {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.success {
  justify-items: start;
}

.success > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--success);
  color: #fff;
  font-weight: 800;
}

.success.is-pending > span {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent-deep);
}

.success p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
}

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

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

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

@media (max-width: 600px) {
  body {
    background-size: 100% 56px;
  }

  .site-header {
    padding: 16px 14px;
  }

  .demo-badge {
    display: none;
  }

  main {
    padding: 32px 14px 40px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .product-card {
    padding: 18px;
  }

  .assistant-grid {
    min-height: auto;
  }

  .thread {
    max-height: 330px;
    padding: 18px 14px;
  }

  .conversation > header,
  .composer,
  .quote-panel {
    padding: 18px 14px;
  }

  .composer-row {
    grid-template-columns: 1fr;
  }

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

  .form-grid .wide {
    grid-column: auto;
  }

  dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary,
  .secondary,
  .signal,
  .prompts button {
    transition:
      background-color 140ms ease-out,
      border-color 140ms ease-out,
      color 140ms ease-out;
  }

  .primary:hover,
  .signal:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
  }
}

/* Chat-first sales surface */

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  max-width: 1600px;
  padding-block: 16px;
}

.customer-shell {
  display: grid;
  grid-template-areas: "commerce chat quote";
  grid-template-columns: minmax(260px, 320px) minmax(480px, 1fr) minmax(260px, 300px);
  gap: 16px;
  width: min(1600px, 100%);
  min-height: calc(100dvh - 78px);
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 44px) 24px;
}

.commerce-rail {
  grid-area: commerce;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  padding: 18px;
  border-top-width: 2px;
  box-shadow:
    0 1px 2px rgba(23, 33, 31, 0.05),
    0 16px 34px rgba(23, 33, 31, 0.06);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-head .eyebrow {
  margin: 0;
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 7%, var(--surface)),
      var(--surface)
    );
}

.product-media img,
.product-image-fallback {
  width: 100%;
  height: 100%;
}

.product-media img {
  display: block;
  object-fit: cover;
}

.product-image-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
}

.product-image-fallback > span {
  color: color-mix(in srgb, var(--accent-deep) 65%, var(--ink));
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-image-fallback p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.product-card h2 {
  margin-top: 16px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.product-summary {
  margin: 12px 0 18px;
  font-size: 0.88rem;
}

.product-facts {
  grid-template-columns: repeat(3, 1fr);
}

.product-facts div {
  padding: 12px 8px 0;
  border-right: 1px solid var(--line);
}

.product-facts div:first-child {
  padding-left: 0;
}

.product-facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.product-facts dd {
  font-size: 0.92rem;
  white-space: nowrap;
}

.product-discovery {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--canvas));
}

.product-discovery-head h2 {
  margin: 4px 0 0;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.discovery-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-discovery select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
}

.compare-drawer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.compare-drawer summary {
  min-height: 36px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
  cursor: pointer;
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 6px;
}

.compare-controls button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 720;
}

.product-comparison {
  overflow-x: auto;
  margin-top: 10px;
}

.product-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.product-comparison caption {
  padding: 0 0 7px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 720;
  text-align: left;
}

.product-comparison th,
.product-comparison td {
  padding: 7px 5px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.product-comparison th {
  color: var(--muted);
  font-weight: 650;
}

.product-comparison td {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.buyer-path {
  display: flex;
  flex: 0 0 auto;
  min-height: 230px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, var(--canvas));
}

.buyer-path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.buyer-path-head .eyebrow {
  margin: 0;
}

.buyer-path-head > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.buyer-path-steps {
  display: grid;
  flex: 1;
  align-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-path-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.buyer-path-steps li:last-child {
  border-bottom: 0;
}

.buyer-path-steps li > span {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.buyer-path-steps strong {
  display: block;
  font-size: 0.82rem;
}

.buyer-path-steps .faq-item {
  min-width: 0;
}

.buyer-path-steps .faq-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.buyer-path-steps .faq-toggle:focus-visible,
.buyer-path-steps .faq-ask:focus-visible {
  outline: 3px solid #155eef;
  outline-offset: 3px;
}

.buyer-path-steps li:has(.faq-toggle:hover) {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.faq-indicator {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
}

.faq-answer {
  padding: 8px 0 2px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.buyer-path-steps .faq-ask {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.trust-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.trust-list p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.trust-list p:last-child {
  border-bottom: 0;
}

.trust-list span {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.trust-list b {
  font-size: 0.78rem;
  font-weight: 650;
}

.conversation {
  grid-area: chat;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 660px;
  max-height: calc(100dvh - 118px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 2px 4px rgba(23, 33, 31, 0.04),
    0 24px 56px rgba(23, 33, 31, 0.09);
}

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

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

.assistant-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 1rem;
  font-weight: 760;
  box-shadow: inset 0 -4px 0 var(--accent);
}

.assistant-identity div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.assistant-identity strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-identity small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-header-actions,
.online-status {
  display: flex;
  align-items: center;
}

.chat-header-actions {
  gap: 14px;
  white-space: nowrap;
}

.online-status {
  gap: 7px;
  color: var(--success);
  font-size: 0.74rem;
  font-weight: 700;
}

.online-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent);
}

.thread {
  min-height: 0;
  max-height: none;
  padding: 12px 20px 18px;
  overscroll-behavior: contain;
}

.message {
  max-width: min(68ch, 92%);
  margin-bottom: 16px;
}

.message > span {
  padding-left: 2px;
  font-size: 0.68rem;
}

.message p {
  padding: 12px 14px;
  border-color: color-mix(in srgb, var(--ink) 9%, transparent);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 33, 31, 0.035);
  font-size: 0.9rem;
  line-height: 1.65;
}

.message.user {
  margin-left: auto;
}

.message.assistant p {
  padding: 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message.user p {
  border-color: var(--ink);
  box-shadow: none;
}

.message.is-pending p::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 6px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret 900ms steps(1, end) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.prompts {
  gap: 7px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompts::-webkit-scrollbar {
  display: none;
}

.prompts button {
  flex: 0 0 auto;
  min-height: 36px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
}

.composer {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--canvas) 32%, var(--surface));
}

.composer > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.composer-row {
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: stretch;
  gap: 8px;
}

.composer textarea {
  min-height: 52px;
  max-height: 120px;
  resize: none;
  font-size: 1rem;
}

.composer .primary {
  min-height: 52px;
  padding: 0 12px;
}

.composer-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.composer-status-row .text-button {
  flex: 0 0 auto;
  color: var(--accent-deep);
}

.quote-panel {
  grid-area: quote;
  align-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(23, 33, 31, 0.05),
    0 18px 42px rgba(23, 33, 31, 0.07);
}

.quote-panel-intro {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.quote-panel-intro h2 {
  font-size: 1.35rem;
}

.quote-panel-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.quote-panel form {
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.quantity-control {
  position: relative;
}

.quantity-control input {
  padding-right: 44px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.quantity-control span {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  transform: translateY(-50%);
}

.quote-panel .signal {
  min-height: 46px;
}

.quote-panel .quote-result {
  margin: 16px 20px 0;
}

.quote-result strong {
  margin-bottom: 4px;
  font-size: 1.6rem;
}

.handoff-block {
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 178px;
  margin-top: auto;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px,
    var(--canvas);
}

.handoff-number {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.handoff-block strong {
  font-size: 0.94rem;
}

.handoff-block p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.handoff-block .secondary {
  min-height: 44px;
  background: var(--surface);
}

dialog {
  border-radius: 0;
}

dialog form,
.success {
  gap: 16px;
}

@media (max-width: 1180px) {
  .customer-shell {
    grid-template-areas:
      "commerce chat"
      "quote quote";
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    min-height: 0;
  }

  .conversation {
    max-height: none;
  }

  .quote-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr) minmax(220px, 0.8fr);
    align-items: stretch;
  }

  .quote-panel form,
  .handoff-block {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .handoff-block {
    min-height: 0;
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .customer-shell {
    grid-template-areas:
      "chat"
      "commerce"
      "quote";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-inline: 12px;
  }

  .conversation {
    min-height: 72dvh;
  }

  .commerce-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .trust-list {
    grid-column: 1 / -1;
  }

  .buyer-path {
    grid-column: 1 / -1;
  }

  .quote-panel {
    grid-template-columns: 1fr 1fr;
  }

  .quote-panel-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--canvas) 92%, transparent);
  }

  .brand small {
    display: none;
  }

  .customer-shell {
    min-height: calc(100dvh - 64px);
    padding: 10px 10px 20px;
  }

  .conversation {
    min-height: calc(100dvh - 84px);
    border-inline: 0;
  }

  .chat-header {
    min-height: 66px;
    padding: 10px 12px;
  }

  .chat-header-actions .online-status {
    display: none;
  }

  .chat-header-actions {
    gap: 8px;
  }

  .chat-header .text-button,
  .chat-header .primary-button,
  .chat-header button {
    white-space: nowrap;
  }

  .thread {
    padding: 10px 12px 14px;
  }

  .prompts {
    flex-wrap: nowrap;
    padding-inline: 12px;
  }

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

  .composer-row {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  .commerce-rail {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    grid-template-columns: 1fr;
  }

  .quote-panel form,
  .handoff-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .handoff-block {
    min-height: 160px;
  }

  dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message.is-pending p::after {
    animation: none;
  }
}

/* Buyer conversation owns quote and sales follow-up actions. */

.customer-shell {
  grid-template-areas: "commerce chat";
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  width: min(1500px, 100%);
}

.message-commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.message-commerce-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 720;
}

.message-commerce-actions button:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.inline-quote,
.inline-quote-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 50%, var(--surface));
}

.inline-quote > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.inline-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-quote input {
  min-height: 42px;
}

.inline-quote button,
.inline-quote-result button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 720;
}

.inline-quote-status {
  min-height: 1em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.inline-quote-status.is-error {
  color: var(--danger);
}

.inline-quote-result {
  display: grid;
  gap: 10px;
}

.inline-quote-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.inline-quote-heading > div {
  display: grid;
  gap: 2px;
}

.inline-quote-heading strong {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.inline-quote-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.inline-quote-lines {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.inline-quote-lines li {
  display: grid;
  gap: 4px;
}

.inline-quote-lines li > strong {
  font-size: 0.88rem;
}

.inline-quote-lines li > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.inline-quote-calculation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.inline-quote-total {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.inline-quote-result span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.inline-quote-result p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.inline-quote-validity {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.inline-quote-number {
  font-family: var(--mono);
  font-size: 0.68rem !important;
  overflow-wrap: anywhere;
}

.inline-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-quote-result button {
  background: var(--surface);
  color: var(--ink);
}

.inline-quote-actions button:first-child {
  background: var(--ink);
  color: var(--surface);
}

.status:not(.is-error) {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .customer-shell {
    grid-template-areas: "commerce chat";
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .customer-shell {
    grid-template-areas:
      "chat"
      "commerce";
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .inline-quote-row {
    grid-template-columns: 1fr;
  }

  .handoff-guidance p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .inline-quote button,
  .inline-quote-result button {
    width: 100%;
  }
}

/* Fill the available viewport on desktop while keeping mobile pages scrollable. */

body {
  min-height: 100dvh;
}

.site-header {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 1.8vw, 36px);
}

.positioning-slogan {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.customer-shell {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding:
    clamp(14px, 1.35vw, 24px)
    clamp(16px, 1.75vw, 34px)
    clamp(16px, 1.5vw, 28px);
  grid-template-columns: clamp(320px, 25vw, 520px) minmax(0, 1fr);
  gap: clamp(14px, 1.2vw, 22px);
}

.commerce-rail {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.conversation {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

@media (min-width: 821px) {
  body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .customer-shell {
    grid-template-columns: clamp(260px, 30vw, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    display: block;
  }

  .customer-shell {
    height: auto;
    min-height: 0;
    padding: 10px 12px 20px;
    grid-template-columns: minmax(0, 1fr);
  }

  .commerce-rail {
    overflow: visible;
  }

  .conversation {
    height: auto;
  }
}

/* Compact chat chrome so the conversation itself owns the viewport. */

.chat-header {
  min-height: 64px;
  padding: 8px 16px;
}

.assistant-avatar {
  width: 40px;
  height: 40px;
}

.thread {
  padding: 8px 18px 12px;
}

.prompt-strip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  padding: 0 18px 5px;
}

.prompt-strip > #prompt-prev {
  grid-column: 1;
}

.prompt-strip > .prompts {
  grid-column: 2;
  min-width: 0;
}

.prompt-strip > #prompt-next {
  grid-column: 3;
}

.prompts {
  padding: 0;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.prompts button {
  min-height: 30px;
  scroll-snap-align: start;
}

.prompt-nav {
  display: grid;
  width: 28px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.composer {
  padding: 4px 16px 5px;
}

.composer-row {
  grid-template-columns: minmax(0, 1fr) 64px;
  width: 100%;
  gap: 6px;
}

.composer textarea {
  min-height: 44px;
  height: 44px;
  padding: 10px 12px;
}

.composer .primary {
  min-width: 64px;
  min-height: 44px;
  padding: 0 10px;
}

.composer .status:empty {
  display: none;
}

.composer-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .chat-header {
    min-height: 60px;
    padding: 7px 10px;
  }

  .assistant-avatar {
    width: 38px;
    height: 38px;
  }

  .thread {
    padding: 8px 10px 10px;
  }

  .prompt-strip {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px 4px;
  }

  .prompt-strip > .prompts {
    grid-column: 1;
  }

  .prompts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .prompts::-webkit-scrollbar {
    display: none;
  }

  .prompt-nav {
    display: none !important;
  }

  .composer {
    padding: 4px 10px calc(7px + env(safe-area-inset-bottom));
  }

  .composer-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 6px;
  }

  .composer textarea {
    height: 64px;
    min-height: 64px;
    padding-block: 7px;
  }

  .composer .primary {
    min-width: 58px;
    min-height: 64px;
  }

  .compare-controls {
    grid-template-columns: 1fr;
  }

  .compare-controls button {
    width: 100%;
  }
}

/* Full-screen buyer workspace with a floating product shelf. */

:root {
  --accent: #18a9dc;
  --accent-deep: #087a9f;
  --canvas: #eef5f8;
  --surface: #ffffff;
  --surface-soft: #f7fafb;
  --ink: #102638;
  --muted: #607181;
  --line: rgba(16, 38, 56, 0.12);
  --line-strong: rgba(16, 38, 56, 0.24);
  --success: #157347;
  --danger: #b42318;
  --workspace-chrome: #0b2033;
  --workspace-chrome-raised: #13324b;
  --workspace-canvas: #eef5f8;
  --workspace-paper: #ffffff;
  --workspace-line: color-mix(in srgb, var(--ink) 12%, transparent);
  --workspace-line-bright: color-mix(in srgb, var(--ink) 24%, transparent);
  --workspace-shadow:
    0 1px 2px rgba(13, 20, 17, 0.05),
    0 18px 50px rgba(13, 20, 17, 0.11);
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-medium: 280ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-xstore-skin="night"] {
  --workspace-shadow:
    0 1px 2px rgba(0, 0, 0, 0.26),
    0 18px 50px rgba(0, 0, 0, 0.38);
  background: var(--canvas);
}

body[data-xstore-skin="night"] .site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-xstore-skin="night"] .product-chip:hover,
body[data-xstore-skin="night"] .icon-button:hover,
body[data-xstore-skin="night"] .commerce-drawer-header .icon-button:hover {
  background: var(--workspace-paper);
}

body[data-xstore-skin="night"] #handoff-dialog input,
body[data-xstore-skin="night"] #handoff-dialog textarea {
  background: var(--workspace-paper);
}

:focus-visible {
  outline-color: var(--accent-deep);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

body {
  display: grid;
  height: 100dvh;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow: hidden;
  background: var(--workspace-canvas);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 8px clamp(14px, 2.2vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--workspace-line);
  background: var(--workspace-paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 38, 56, 0.03);
}

.header-leading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.commerce-toggle {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--workspace-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--workspace-paper) 68%, var(--workspace-canvas));
  color: var(--ink);
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.commerce-toggle:hover {
  border-color: var(--workspace-line-bright);
  background: var(--workspace-paper);
}

.commerce-toggle:active {
  transform: scale(0.985);
}

.commerce-toggle-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-deep);
  color: #fff;
}

.commerce-toggle-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.commerce-toggle-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.commerce-toggle-copy strong {
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.commerce-toggle-copy small {
  overflow: hidden;
  max-width: 150px;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commerce-toggle-sku {
  align-self: center;
  padding-left: 10px;
  border-left: 1px solid var(--workspace-line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--workspace-paper));
  color: var(--accent-deep);
}

.brand-mark img {
  background: transparent;
}

.brand strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

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

.header-actions {
  flex: 0 0 auto;
  gap: 0;
}

.language-switch {
  border-color: var(--workspace-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--workspace-paper) 65%, var(--workspace-canvas));
}

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  border-color: var(--workspace-line);
  color: var(--muted);
}

.language-switch button.is-active {
  background: var(--accent-deep);
  color: #fff;
}

.customer-shell {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--workspace-canvas);
}

.conversation {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  grid-area: auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--workspace-canvas);
  box-shadow: none;
}

.chat-header {
  width: min(980px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--workspace-line);
}

.assistant-identity {
  gap: 11px;
}

.assistant-avatar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  box-shadow:
    inset 0 -3px 0 var(--accent),
    0 7px 18px rgba(20, 28, 24, 0.13);
  font-size: 0.78rem;
}

.assistant-identity strong {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.assistant-identity small {
  max-width: min(420px, 54vw);
  color: var(--muted);
  font-size: 0.74rem;
}

.online-status {
  gap: 8px;
  color: var(--success);
  font-size: 0.72rem;
}

.online-status i {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.chat-header .text-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--workspace-paper) 66%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 680;
  text-decoration: none;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out);
}

.chat-header .text-button:hover {
  border-color: var(--workspace-line-bright);
  background: var(--workspace-paper);
  color: var(--ink);
}

.thread {
  width: min(980px, 100%);
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  padding: 34px 28px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.message {
  max-width: min(760px, 88%);
  margin-bottom: 22px;
}

.message > span {
  margin-bottom: 1px;
  padding-left: 2px;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.message p {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.72;
}

.message.assistant p {
  padding: 12px 14px;
  border: 1px solid var(--workspace-line);
  border-radius: 4px 16px 16px;
  background: color-mix(in srgb, var(--canvas) 54%, var(--workspace-paper));
  box-shadow: none;
}

.message.assistant:first-child {
  max-width: min(760px, 94%);
  margin-bottom: 24px;
}

.message.assistant:first-child > * {
  min-width: 0;
}

.message.assistant:first-child > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.message.assistant:first-child p {
  font-size: 0.94rem;
  letter-spacing: 0;
  line-height: 1.72;
}

.welcome-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
}

.welcome-starters > span {
  margin-right: 2px;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: 0.75rem;
  font-weight: 650;
}

.welcome-starter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.welcome-starter-list button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--workspace-line-bright);
  border-radius: 8px;
  background: var(--workspace-paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 680;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 38, 56, 0.035);
}

.welcome-starter-list button i {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
}

.welcome-starter-list button:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--workspace-line));
  background: color-mix(in srgb, var(--accent) 4%, var(--workspace-paper));
}

.welcome-starter-list button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.message.user {
  justify-items: end;
  margin-left: auto;
  text-align: left;
}

.message.user p {
  padding: 12px 15px;
  border: 0;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent-deep);
  color: #fffdf9;
  box-shadow: 0 6px 16px rgba(17, 24, 20, 0.1);
  font-size: 0.88rem;
  line-height: 1.62;
}

.message.is-pending p::after {
  background: var(--accent);
}

.sources {
  margin-top: 8px;
}

.message-products {
  width: min(100%, 420px);
  margin-top: 10px;
}

.message-product-card {
  overflow: hidden;
  border: 1px solid var(--workspace-line);
  border-radius: 14px;
  background: var(--workspace-paper);
  box-shadow:
    0 1px 2px rgba(16, 38, 56, 0.045),
    0 10px 24px rgba(16, 38, 56, 0.055);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.message-product-card-head {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.message-product-card-head strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.message-product-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.message-product-card-head span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.message-product-card-head span.is-partial::before {
  background: var(--accent);
}

.message.assistant .message-product-card p {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.message.assistant .message-product-card .message-product-sku {
  margin: 3px 0 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.message.assistant .message-product-card .message-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.message-product-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 14px 12px;
}

.message-product-image {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--workspace-paper) 70%, var(--workspace-canvas));
}

.message-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.message-product-image::before,
.message-product-image::after {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-color: rgba(255, 255, 255, 0.94);
  content: "";
  pointer-events: none;
}

.message-product-image::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.message-product-image::after {
  right: 6px;
  bottom: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.message-product-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.message-product-copy {
  min-width: 0;
}

.message-product-copy h2 {
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-product-sku {
  margin: 3px 0 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.message-product-numbers {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.message-product-price {
  font-size: 1.22rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}

.message-product-moq {
  padding-left: 11px;
  border-left: 1px solid var(--workspace-line);
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.message-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.message-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.message-product-meta span::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.message-product-meta .is-warning {
  color: var(--accent-deep);
}

.message-product-action {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
  text-align: left;
  touch-action: manipulation;
}

.message-product-action span:last-child {
  color: var(--accent-deep);
  transition: transform var(--motion-fast) var(--ease-out);
}

.message-product-action:hover {
  background: color-mix(in srgb, var(--workspace-canvas) 72%, var(--workspace-paper));
}

.message-product-action:hover span:last-child {
  transform: translateX(2px);
}

.message-product-action:active {
  transform: translateY(1px);
}

.message-product-rows {
  display: grid;
}

.message-product-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  background: transparent;
  color: inherit;
  text-align: left;
}

.message-product-row:first-child {
  border-top: 0;
}

.message-product-row:hover {
  background: color-mix(in srgb, var(--workspace-canvas) 72%, var(--workspace-paper));
}

.message-product-image.is-compact {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}

.message-product-image.is-compact::before,
.message-product-image.is-compact::after {
  width: 6px;
  height: 6px;
}

.message-product-image.is-compact::before {
  top: 4px;
  left: 4px;
}

.message-product-image.is-compact::after {
  right: 4px;
  bottom: 4px;
}

.message-product-row-copy {
  min-width: 0;
}

.message-product-row-copy strong,
.message-product-row-copy small,
.message-product-row-facts strong,
.message-product-row-facts small {
  display: block;
}

.message-product-row-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-product-row-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.message-product-row-facts {
  text-align: right;
  white-space: nowrap;
}

.message-product-row-facts strong {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.message-product-row-facts small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
  .message-product-card:hover {
    border-color: var(--workspace-line-bright);
    box-shadow:
      0 2px 4px rgba(16, 38, 56, 0.055),
      0 16px 34px rgba(16, 38, 56, 0.085);
    transform: translateY(-1px);
  }
}

.message-commerce-actions {
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
}

.message-error {
  display: grid;
  max-width: min(760px, 92%);
  gap: 10px;
  margin: -6px 0 22px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--workspace-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 5%, var(--workspace-paper));
  color: var(--danger);
}

.message-error.is-rate-limited {
  border-color: color-mix(in srgb, var(--ink) 16%, var(--workspace-line));
  background: color-mix(in srgb, var(--canvas) 58%, var(--workspace-paper));
  color: var(--ink);
}

.message-error-copy {
  display: grid;
  gap: 4px;
}

.message-error.is-rate-limited .message-error-copy {
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 8px;
}

.message-error.is-rate-limited .message-error-copy::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.message-error.is-rate-limited .message-error-copy > * {
  grid-column: 2;
}

.message-error-copy strong {
  font-size: 0.86rem;
  line-height: 1.4;
}

.message-error p {
  margin: 0;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.45;
}

.message-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 18px;
}

.message-error button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 36%, var(--workspace-line));
  border-radius: 8px;
  background: var(--workspace-paper);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
}

.message-error.is-rate-limited button {
  min-width: 116px;
  border-color: var(--workspace-line-bright);
  color: var(--ink);
}

.message-error.is-rate-limited .message-error-handoff {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.message-error button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.message-error button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.message-commerce-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 0 14px;
  border-color: var(--workspace-line-bright);
  border-radius: 8px;
  background: var(--workspace-paper);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(16, 38, 56, 0.045),
    0 5px 14px rgba(16, 38, 56, 0.045);
  letter-spacing: 0.01em;
  font-size: 0.74rem;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.message-commerce-actions button::after {
  color: currentColor;
  content: "→";
  font-family: var(--mono);
  font-size: 0.9em;
  opacity: 0.64;
  transition: transform var(--motion-fast) var(--ease-out);
}

.message-commerce-actions button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.message-commerce-actions button:hover::after {
  transform: translateX(2px);
}

.message-commerce-actions button:active {
  transform: translateY(0);
}

.message-commerce-actions button:first-child {
  border-color: var(--workspace-chrome);
  background: var(--workspace-chrome);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(11, 32, 51, 0.14),
    0 8px 20px rgba(11, 32, 51, 0.12);
}

.message-commerce-actions button:first-child:hover {
  border-color: var(--workspace-chrome-raised);
  background: var(--workspace-chrome-raised);
}

.inline-quote,
.inline-quote-result {
  border-color: var(--workspace-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--workspace-paper) 78%, var(--workspace-canvas));
}

.composer-dock {
  width: min(980px, 100%);
  margin: 0 auto;
  margin-bottom: 16px;
  overflow: visible;
}

.quick-questions {
  position: relative;
}

.quick-questions > summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out);
}

.quick-questions > summary::-webkit-details-marker {
  display: none;
}

.quick-questions > summary:hover,
.quick-questions[open] > summary {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent-deep);
}

.quick-questions > summary svg {
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-questions-chevron {
  transition: transform var(--motion-fast) var(--ease-out);
}

.quick-questions[open] .quick-questions-chevron {
  transform: rotate(180deg);
}

.prompt-strip {
  position: absolute;
  z-index: 15;
  bottom: calc(100% + 10px);
  left: 0;
  display: block;
  width: min(560px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--workspace-line-bright);
  border-radius: 16px;
  background: var(--workspace-paper);
  box-shadow:
    0 2px 4px rgba(16, 38, 56, 0.08),
    0 18px 48px rgba(16, 38, 56, 0.14);
}

.quick-questions-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quick-questions-heading strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.quick-questions-heading span {
  color: var(--muted);
  font-size: 0.64rem;
}

.prompt-strip > .prompts {
  display: grid;
  max-height: 320px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  overflow-y: auto;
  padding: 1px;
  overscroll-behavior: contain;
}

.prompts button {
  display: grid;
  min-width: 0;
  min-height: 64px;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-color: var(--workspace-line);
  border-radius: 11px;
  background: var(--workspace-paper);
  color: color-mix(in srgb, var(--ink) 70%, var(--muted));
  text-align: left;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.prompts button:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--workspace-line));
  background: color-mix(in srgb, var(--accent) 4%, var(--workspace-paper));
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(16, 38, 56, 0.07);
  transform: translateY(-1px);
}

.prompts button:active {
  transform: scale(0.98);
}

.prompts button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.prompt-card-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 10%, var(--workspace-paper));
  color: var(--accent-deep);
}

.prompt-card-icon svg,
.prompt-card-arrow svg {
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.prompt-card-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-card-copy small {
  color: var(--muted);
  font-size: 0.62rem;
}

.prompt-card-arrow {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--muted) 60%, transparent);
  transition:
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.prompts button:hover .prompt-card-arrow {
  color: var(--accent-deep);
  transform: translateX(2px);
}

.quick-questions .prompt-nav {
  display: none !important;
}

.composer {
  width: 100%;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--workspace-line-bright);
  border-radius: 18px;
  background: var(--workspace-paper);
  box-shadow: var(--workspace-shadow);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out);
}

.composer:focus-within {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--ink));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent),
    var(--workspace-shadow);
}

.composer-row {
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
}

.composer textarea {
  min-height: 54px;
  height: 54px;
  padding: 14px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.45;
}

.composer textarea:focus {
  outline: 0;
}

.composer .primary {
  position: relative;
  display: grid;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.composer .primary span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.composer .primary svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer .primary:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent-deep);
}

.composer .primary.is-ready {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.composer .primary:active {
  transform: scale(0.98);
}

.composer-footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 0 4px;
}

.composer-hint {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 74%, transparent);
  font-size: 0.65rem;
  line-height: 1.45;
}

.composer-status-row {
  padding: 4px 10px 2px;
}

.commerce-drawer {
  inset: 12px auto 12px 12px;
  width: min(438px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: var(--workspace-canvas);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(8, 12, 10, 0.18),
    0 34px 100px rgba(8, 12, 10, 0.42);
}

.commerce-drawer[open] {
  animation: drawer-in var(--motion-medium) var(--ease-out);
}

.commerce-drawer::backdrop {
  background: rgba(8, 12, 10, 0.48);
  animation: backdrop-in 180ms ease-out;
}

.commerce-drawer-frame {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.commerce-drawer-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--workspace-line);
  background: var(--workspace-paper);
  color: var(--ink);
}

.drawer-eyebrow {
  margin: 0 0 3px;
  color: var(--accent-deep);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commerce-drawer-header h2 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.commerce-drawer-header .icon-button {
  border-color: var(--workspace-line);
  color: var(--muted);
}

.commerce-drawer-header .icon-button:hover {
  border-color: var(--workspace-line-bright);
  background: var(--workspace-canvas);
  color: var(--ink);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--workspace-line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.icon-button:hover {
  border-color: var(--workspace-line-bright);
  background: var(--workspace-canvas);
  color: var(--ink);
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button svg {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.commerce-drawer-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  scrollbar-gutter: stable;
}

.commerce-rail {
  display: grid;
  min-height: 0;
  gap: 14px;
  overflow: visible;
}

.product-discovery {
  display: grid;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-discovery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-discovery-head .eyebrow {
  margin-bottom: 2px;
}

.product-discovery-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.product-count {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.product-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent;
  scrollbar-width: thin;
}

.product-carousel::-webkit-scrollbar {
  height: 5px;
}

.product-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}

.product-chip {
  position: relative;
  display: grid;
  flex: 0 0 210px;
  min-height: 72px;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--workspace-line);
  border-radius: 14px;
  background: var(--workspace-paper);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.product-chip:hover {
  border-color: var(--workspace-line-bright);
  background: #fff;
}

.product-chip:active {
  transform: scale(0.985);
}

.product-chip.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--workspace-paper));
}

.product-chip.is-selected::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.product-chip-media {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--workspace-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--workspace-canvas));
}

.product-chip-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-chip-initials {
  color: color-mix(in srgb, var(--accent-deep) 72%, var(--ink));
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 760;
}

.product-chip-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.product-chip-copy strong {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 8px;
  font-size: 0.79rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-chip-copy small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-discovery .discovery-field {
  gap: 4px;
}

.product-discovery select {
  min-height: 44px;
  border-color: var(--workspace-line);
  border-radius: 10px;
  background: var(--workspace-paper);
}

.compare-drawer {
  padding-top: 9px;
  border-color: var(--workspace-line);
}

.compare-drawer summary {
  color: var(--muted);
  font-size: 0.75rem;
}

.compare-controls button {
  border: 0;
  border-radius: 10px;
  background: var(--ink);
}

.product-card {
  padding: 16px;
  border: 1px solid var(--workspace-line);
  border-top: 1px solid var(--workspace-line);
  border-radius: 18px;
  background: var(--workspace-paper);
  box-shadow: 0 10px 28px rgba(19, 26, 22, 0.055);
}

.product-card-head .eyebrow {
  font-size: 0.64rem;
}

.product-card-head .mono {
  margin: 0;
  font-size: 0.64rem;
}

.product-media {
  margin-top: 11px;
  border-color: var(--workspace-line);
  border-radius: 12px;
  background: var(--workspace-canvas);
}

.product-card h2 {
  margin-top: 15px;
  font-size: 1.55rem;
  font-weight: 620;
  letter-spacing: -0.045em;
}

.product-summary {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-facts {
  margin-top: 13px;
  border-color: var(--workspace-line);
}

.product-facts div {
  padding-right: 9px;
  border-color: var(--workspace-line);
}

.product-facts dd {
  font-size: 0.82rem;
}

.buyer-path {
  min-height: 0;
  border-color: var(--workspace-line);
  border-radius: 16px;
  background: var(--workspace-paper);
}

.buyer-path-head {
  padding: 12px 14px;
  border-color: var(--workspace-line);
}

.buyer-path-steps {
  display: grid;
  align-content: start;
}

.buyer-path-steps li {
  border-color: var(--workspace-line);
}

.buyer-path-steps .faq-toggle {
  border-radius: 6px;
}

.buyer-path-steps .faq-ask {
  border-color: var(--workspace-line-bright);
  border-radius: 999px;
  background: var(--workspace-paper);
}

.trust-list {
  border-color: var(--workspace-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--workspace-paper) 70%, transparent);
}

.trust-list p {
  border-color: var(--workspace-line);
}

#handoff-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: var(--workspace-paper);
  box-shadow:
    0 1px 2px rgba(8, 12, 10, 0.18),
    0 34px 100px rgba(8, 12, 10, 0.42);
}

#handoff-dialog::backdrop {
  background: rgba(8, 12, 10, 0.54);
}

#handoff-dialog form,
#handoff-dialog .success {
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
}

#handoff-dialog header {
  align-items: start;
}

.handoff-guidance {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--workspace-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--workspace-paper) 86%, var(--workspace-canvas));
}

.handoff-guidance p {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.handoff-guidance strong {
  color: var(--ink);
}

#handoff-dialog h2 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

#handoff-dialog input,
#handoff-dialog textarea {
  border-color: var(--workspace-line);
  border-radius: 10px;
  background: #fff;
}

#handoff-dialog .primary,
#handoff-dialog .success .primary {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
}

#handoff-dialog .text-button {
  display: inline-flex;
  min-width: 60px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  background: var(--workspace-paper);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

#handoff-dialog .consent {
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

#handoff-dialog .consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

#handoff-dialog .consent a {
  white-space: nowrap;
}

#handoff-dialog .form-grid label {
  font-size: 0.875rem;
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .thread {
    scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent;
    scrollbar-width: thin;
  }
}

@media (max-width: 820px) {
  body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100dvh;
    overflow: hidden;
  }

  .site-header {
    position: relative;
    top: auto;
    display: grid;
    min-height: 0;
    grid-template-areas:
      "leading actions"
      "slogan slogan";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 6px 10px 8px;
  }

  .header-leading {
    grid-area: leading;
  }

  .header-actions {
    grid-area: actions;
  }

  .positioning-slogan {
    grid-area: slogan;
    max-width: none;
    margin: 0;
    padding-inline: 4px;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
  }

  .skip-link {
    min-height: 44px;
  }

  .header-leading {
    gap: 9px;
  }

  .commerce-toggle {
    min-height: 44px;
    padding-right: 7px;
  }

  .language-switch button {
    min-width: 44px;
    min-height: 44px;
  }

  .commerce-toggle-copy small,
  .commerce-toggle-sku {
    display: none;
  }

  .brand {
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .brand strong {
    display: block;
    overflow: hidden;
    max-width: 30vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .customer-shell {
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .conversation {
    height: 100%;
    min-height: 0;
  }

  .chat-header {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 9px 0;
  }

  .assistant-avatar {
    width: 38px;
    height: 38px;
  }

  .assistant-identity small {
    max-width: 48vw;
  }

  .online-status {
    display: none;
  }

  .chat-header .text-button {
    min-height: 44px;
  }

  .thread {
    width: 100%;
    padding: 22px 14px 16px;
  }

  .message {
    max-width: 94%;
  }

  .message-products {
    width: 100%;
  }

  .message-product-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .message-product-image {
    width: 72px;
    height: 72px;
  }

  .message-product-card-head {
    padding-inline: 12px;
  }

  .message-product-copy h2 {
    font-size: 0.95rem;
  }

  .message-product-price {
    font-size: 1.1rem;
  }

  .message-product-meta {
    display: grid;
    gap: 4px;
  }

  .message-product-action {
    padding-inline: 12px;
  }

  .message-product-row {
    padding-inline: 12px;
  }

  .prompt-strip {
    width: min(560px, calc(100vw - 40px));
    min-height: 0;
    padding: 10px;
  }

  .prompt-strip > .prompts {
    max-height: min(320px, 45dvh);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompts button {
    min-height: 64px;
    padding: 9px 10px;
  }

  .composer {
    width: 100%;
    margin: 0;
    border-radius: 16px;
    padding: 7px;
  }

  .composer textarea {
    min-height: 52px;
    height: 52px;
    padding: 12px 10px;
  }

  .composer .primary {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .composer-hint {
    display: none;
  }

  .composer-dock {
    width: calc(100% - 20px);
    margin-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .composer-footer {
    min-height: 36px;
    padding-inline: 2px 4px;
  }

  .quick-questions > summary {
    min-height: 44px;
    padding-inline: 7px;
  }

  .commerce-drawer {
    inset: 8px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .commerce-drawer-header {
    min-height: 70px;
    padding: 11px 12px 11px 16px;
  }

  .commerce-drawer-scroll {
    padding: 12px;
  }

  .compare-drawer summary,
  .buyer-path-steps .faq-ask,
  .compare-controls button {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  #handoff-dialog {
    width: calc(100vw - 28px);
    height: auto;
    max-height: calc(100dvh - 28px);
    margin: auto;
  }

  .prompt-strip {
    width: min(340px, calc(100vw - 40px));
  }

  .quick-questions-heading span {
    display: none;
  }

  .prompt-strip > .prompts {
    grid-template-columns: minmax(0, 1fr);
  }

  .prompts button:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .welcome-starters {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .welcome-starters > span {
    display: none;
  }

  .welcome-starter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .welcome-starter-list::-webkit-scrollbar {
    display: none;
  }

  .welcome-starter-list button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .message-error-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-error-actions button:only-child {
    grid-column: 1 / -1;
  }
}

/* Customer-readable type floor. */

.eyebrow,
.brand small,
.commerce-toggle-copy small,
.commerce-toggle-sku,
.assistant-identity small,
.online-status,
.chat-header .text-button,
.message > span,
.quick-questions > summary,
.quick-questions-heading span,
.prompt-card-copy small,
.composer-hint,
.message-commerce-actions button,
.drawer-eyebrow,
.product-count,
.product-image-fallback p,
.discovery-field,
.product-chip-copy small,
.product-comparison,
.product-comparison th,
.product-comparison td,
.product-card-head .eyebrow,
.product-card-head .mono,
.product-facts dt,
.buyer-path-head > span,
.buyer-path-steps li > span,
.buyer-path-steps .faq-ask,
.trust-list span,
.handoff-number,
.privacy-version,
.inline-quote > label,
.inline-quote-heading span,
.inline-quote-lines li > span,
.inline-quote-result span {
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .commerce-drawer[open],
  .commerce-drawer::backdrop {
    animation: none;
  }

  .thread,
  .product-carousel {
    scroll-behavior: auto;
  }
}

.message.is-streaming p::after {
  display: inline-block;
  width: 0.48em;
  height: 0.9em;
  margin-left: 0.28em;
  background: currentColor;
  content: "";
  vertical-align: -0.08em;
  animation: xai-stream-caret 900ms steps(1, end) infinite;
}

@keyframes xai-stream-caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message.is-streaming p::after {
    animation: none;
    opacity: 0.55;
  }
}
