.public-chat-document,
.public-chat-body { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.public-chat-body { color: var(--ink); background: #fff; }
.public-chat-app [hidden] { display: none !important; }
.public-chat-app { display: grid; width: 100%; height: 100dvh; min-height: 0; grid-template-rows: 62px minmax(0, 1fr); overflow: hidden; }
.public-chat-topbar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.public-chat-brand { display: inline-flex; align-items: center; text-decoration: none; }
.public-chat-brand img { display: block; width: 126px; max-height: 34px; object-fit: contain; object-position: left center; }
.public-chat-topbar-actions { display: flex; align-items: center; gap: 16px; }
.public-chat-online { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.public-chat-manual-link { flex: 0 0 auto; color: var(--action-dark); font-size: 10px; font-weight: 600; text-decoration: none; }
.public-chat-manual-link:hover { text-decoration: underline; }
.public-chat-online > span, .public-chat-aside-label > span { width: 7px; height: 7px; border-radius: 50%; background: var(--wallet); box-shadow: 0 0 0 3px var(--wallet-soft); }
.public-chat-online.is-offline > span { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.public-chat-simulation { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--violet) 18%, white); border-radius: 999px; color: var(--violet-dark); background: var(--violet-soft); font-size: 8px; font-weight: 600; white-space: nowrap; }
.public-chat-simulation-short { display: none; }
.public-chat-welcome-actions { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 4px; margin: -5px 0 0 auto; }
.public-chat-welcome-actions[hidden] { display: none; }
.public-chat-clear { display: inline-flex; width: 32px; min-height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; transition: color .15s ease, background .15s ease; }.public-chat-clear:hover{ outline-color: var(--action); }
.public-chat-clear:focus-visible{ color: var(--action-dark); background: var(--action-soft); outline-color: var(--action); }
.public-chat-clear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-workspace { display: grid; min-width: 0; min-height: 0; grid-template-columns: minmax(390px, 40%) minmax(0, 60%); }
.public-chat-panel { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; border-right: 1px solid var(--line-soft); background: #fff; }
.public-chat-heading { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 12px; padding: 23px 24px 17px; }
.public-chat-assistant-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid color-mix(in srgb, var(--action) 17%, white); border-radius: 11px; color: var(--action-dark); background: var(--action-soft); }
.public-chat-assistant-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-heading-copy { min-width: 0; }
.public-chat-eyebrow { margin: 1px 0 5px; color: var(--action-dark); font-size: 9px; font-weight: 650; letter-spacing: .11em; }
.public-chat-heading h1 { margin: 0 0 5px; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; }
.public-chat-heading-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.public-chat-type-control { display: grid; min-width: 145px; gap: 4px; margin-left: auto; }
.public-chat-type-control[hidden] { display: none; }
.public-chat-type-control span { color: var(--subtle); font-size: 8px; font-weight: 600; }
.public-chat-type-control select { min-height: 34px; padding: 0 27px 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font: 550 10px var(--font-family); }
.public-chat-type-control select:focus { border-color: var(--action); outline: 3px solid color-mix(in srgb, var(--action) 18%, transparent); }
.public-chat-history { display: flex; min-height: 0; flex: 1 1 0; flex-direction: column; justify-content: flex-start; gap: 15px; overflow: auto; overscroll-behavior: contain; padding: 12px 24px 22px; scroll-behavior: auto; scrollbar-width: none; -ms-overflow-style: none; }
.public-chat-history::-webkit-scrollbar { display: none; width: 0; height: 0; }
.public-chat-message { display: flex; width: 100%; flex: 0 0 auto; justify-content: flex-start; }
.public-chat-message.is-welcome { align-items: flex-start; gap: 8px; }
.public-chat-message.is-welcome > .public-chat-message-content { flex: 1 1 auto; min-width: 0; }
.public-chat-message.is-user { justify-content: flex-end; }
.public-chat-message-content { display: grid; max-width: min(88%, 520px); gap: 6px; }
.public-chat-message.is-user .public-chat-message-content { justify-items: end; }
.public-chat-message-sender { color: var(--muted); font-size: 10px; font-weight: 550; }
.public-chat-message-bubble { padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 450; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.public-chat-message-bubble strong { color: var(--ink); font-weight: 650; }
.public-chat-text-highlight { padding: 0 .16em; border-radius: .25em; color: var(--action-dark); background: var(--action-soft); font-weight: 550; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.public-chat-text-error, .public-chat-text-warning, .public-chat-text-success { padding: 0 .16em; border-radius: .25em; font-weight: 550; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.public-chat-text-error { color: var(--danger-dark); background: var(--danger-soft); }
.public-chat-text-warning { color: var(--amber-dark); background: var(--amber-soft); }
.public-chat-text-success { color: var(--wallet-dark); background: var(--wallet-soft); }
.public-chat-message-icon { display: grid; box-sizing: border-box; width: 20px; min-width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; place-items: center; margin-top: 1px; color: var(--action-dark); contain: layout size; }
.public-chat-message-icon svg { display: block; width: 20px; height: 20px; transform-origin: center; }
.public-chat-message-icon.is-thinking svg, .public-chat-welcome-icon.is-thinking svg { animation: public-chat-sparkle 6s linear infinite; }
.public-chat-message-text.is-typing::after { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--action); animation: public-chat-caret .85s steps(1, end) infinite; content: ""; }
@keyframes public-chat-sparkle { from { transform: rotate(0deg) scale(1); } to { transform: rotate(360deg) scale(1); } }
@keyframes public-chat-caret { 50% { opacity: 0; } }
.public-chat-message-time { color: var(--muted); font-size: 9px; font-weight: 450; line-height: 1.4; font-variant-numeric: tabular-nums; }
.public-chat-message-attachment { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 10px; }
.public-chat-message-attachment svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.public-chat-message-attachments { display: flex; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 3px; }
.public-chat-message.is-user .public-chat-message-attachments { justify-content: flex-end; }
.public-chat-attachment-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.public-chat-attachment-preview.is-image { width: min(100%, 280px); padding: 4px; }
.public-chat-message-attachments.has-multiple .public-chat-attachment-preview.is-image { width: 180px; }
.public-chat-attachment-preview.is-image img { display: block; width: 100%; height: 190px; border-radius: 9px; background: #f4f6f8; object-fit: contain; }
.public-chat-attachment-preview.is-file { display: flex; min-width: 160px; max-width: min(100%, 280px); min-height: 56px; align-items: center; gap: 9px; padding: 9px 12px; }
.public-chat-attachment-file-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; color: var(--action-dark); background: var(--action-soft); }
.public-chat-attachment-file-icon svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-attachment-file-name { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.public-chat-message-bubble.is-progress { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); }
.public-chat-quick-replies { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 7px; margin: 3px auto 0 0; }
.public-chat-quick-replies.is-carousel { width: 100%; max-width: 100%; min-width: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 7px; overscroll-behavior-inline: contain; touch-action: pan-x; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.public-chat-quick-replies.is-carousel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.public-chat-quick-replies.is-carousel :is(button, a) { width: auto; flex: 0 0 auto; }
.public-chat-quick-replies.is-carousel.is-prompt-choices, .public-chat-quick-replies.is-carousel.is-status-choices { width: calc(100% - 27px); }
.public-chat-choice-carousel { position: relative; width: 100%; min-width: 0; }
.public-chat-carousel-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; color: var(--action-dark); background: #fff; box-shadow: 0 2px 9px rgb(31 54 79 / 14%); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease; }
.public-chat-carousel-arrow.is-left { left: -39px; }
.public-chat-carousel-arrow.is-right { right: -39px; }
.public-chat-carousel-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-carousel-arrow:hover, .public-chat-carousel-arrow:focus-visible { border-color: var(--action); background: var(--action-soft); outline: 2px solid color-mix(in srgb, var(--action) 20%, white); }
.public-chat-carousel-arrow:disabled { opacity: .28; cursor: default; }
.public-chat-carousel-arrow[hidden] { display: none; }
.public-chat-quick-replies :is(button, a) { min-height: 32px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--action) 22%, white); border-radius: 999px; color: var(--action-dark); background: #fff; font-size: 10px; font-weight: 550; cursor: pointer; }.public-chat-quick-replies :is(button, a):focus-visible{ border-color: var(--action); background: var(--action-soft); outline: 2px solid color-mix(in srgb, var(--action) 25%, white); }
.public-chat-draft-inline { display: grid; gap: 7px; width: min(100%, 520px); padding: 12px 13px; border: 1px solid color-mix(in srgb, var(--action) 20%, white); border-radius: 11px; background: #fff; }
.public-chat-draft-inline > span { color: var(--action-dark); font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.public-chat-draft-inline strong { color: var(--ink); font-size: 13px; line-height: 1.45; }
.public-chat-draft-inline p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.public-chat-draft-inline small { color: var(--subtle); font-size: 10px; }
.public-chat-compose-area { position: relative; flex: 0 0 auto; padding: 0 19px 12px; background: #fff; }
.public-chat-composer { display: grid; gap: 7px; }
.public-chat-input-row { display: flex; min-height: 52px; align-items: center; gap: 5px; padding: 6px; border: 1px solid #d9dfe7; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgb(31 54 79 / 5%); transition: border-color .15s ease, box-shadow .15s ease; }
.public-chat-input-row:focus-within { border-color: color-mix(in srgb, var(--action) 48%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 18%, transparent); }
.public-chat-icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }.public-chat-icon-button:focus-visible{ color: var(--action-dark); background: var(--action-soft); outline: 0; }
.public-chat-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-add { color: var(--ink); }.public-chat-icon-button.public-chat-add:focus-visible{ color: var(--ink); }
.public-chat-add svg { stroke-width: 2.25; }
.public-chat-input-label { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; }
.public-chat-input-label textarea { display: block; width: 100%; min-height: 34px; max-height: 112px; resize: none; padding: 7px 4px 5px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 450 14px/1.35 var(--font-family); }
.public-chat-input-label textarea::placeholder { color: #6c7885; }
.public-chat-send { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 0; border-radius: 11px; color: #fff; background: var(--action); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.public-chat-send:active { transform: scale(.96); }
.public-chat-send:disabled { opacity: .45; cursor: default; }
.public-chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-composer-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--subtle); font-size: 9px; line-height: 1.4; }
.public-chat-privacy { margin: 8px 2px 0; color: #6a7889; font-size: 9px; line-height: 1.4; }
.public-chat-publish { min-height: 36px; flex: 0 0 auto; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: var(--action); font-size: 11px; font-weight: 600; cursor: pointer; }
.public-chat-plus-menu { position: absolute; z-index: 8; bottom: calc(100% + 10px); left: 42px; display: grid; width: min(410px, calc(100vw - 34px)); max-height: min(430px, calc(100dvh - 112px)); gap: 5px; overflow-x: hidden; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 14px 34px rgb(34 48 67 / 15%); scrollbar-width: thin; }
.public-chat-plus-menu[hidden], .public-chat-plus-menu [hidden], .public-chat-offline[hidden] { display: none; }
.public-chat-plus-menu-header { display: flex; min-width: 0; align-items: center; gap: 5px; }
.public-chat-plus-menu .public-chat-plus-menu-header .public-chat-attachment-option { width: auto; min-width: 0; flex: 1 1 auto; }
.public-chat-plus-close { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }.public-chat-plus-close:focus-visible{ color: var(--ink); background: var(--surface-soft); outline: 0; }
.public-chat-plus-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.public-chat-attachment-option { position: relative; display: flex; min-height: 43px; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 9px; cursor: pointer; }
.public-chat-attachment-option > span:nth-child(2) { display: grid; gap: 3px; }
.public-chat-attachment-option strong { color: var(--ink); font-size: 11px; }
.public-chat-attachment-option small { color: var(--muted); font-size: 9px; }
.public-chat-attachment-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.public-chat-attachment-icon { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 9px; color: var(--action-dark); background: var(--action-soft); }
.public-chat-attachment-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-offline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.public-chat-queue-status { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.public-chat-queue-status[hidden] { display: none; }
.public-chat-offline-icon { color: var(--muted); }
.public-chat-offline-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-offline p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.public-chat-offline a { flex: 0 0 auto; color: var(--action-dark); font-size: 11px; font-weight: 600; text-decoration: none; }
.public-chat-offline a:hover { text-decoration: underline; }
.public-chat-aside { display: grid; min-width: 0; min-height: 0; place-items: center; padding: 44px 56px; background: #f7f9fc; }
.public-chat-aside-content { width: min(100%, 490px); }
.public-chat-aside-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; }
.public-chat-aside-content h2 { max-width: 450px; margin: 22px 0 10px; color: var(--ink); font-size: clamp(27px, 3vw, 42px); font-weight: 650; letter-spacing: -.045em; line-height: 1.15; }
.public-chat-aside-content > p:not(.public-chat-aside-note) { max-width: 405px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.public-chat-steps { display: grid; gap: 20px; margin: 32px 0 25px; padding: 0; list-style: none; }
.public-chat-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 13px; }
.public-chat-steps li > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid color-mix(in srgb, var(--action) 20%, white); border-radius: 50%; color: var(--action-dark); background: #fff; font-size: 10px; font-weight: 650; }
.public-chat-steps li > div { display: grid; gap: 4px; padding-top: 2px; }
.public-chat-steps strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.public-chat-steps small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.public-chat-aside-note { margin: 0; padding-top: 16px; border-top: 1px solid #e5eaf0; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.public-chat-demo-note { margin: 10px 0 0; color: var(--subtle); font-size: 9px; line-height: 1.55; }
.public-chat-preview { width: min(100%, 480px); padding: 22px; border: 1px solid #e1e6ee; border-radius: 18px; background: #fff; box-shadow: 0 15px 45px rgb(38 55 76 / 7%); }
.public-chat-preview[hidden] { display: none; }
.public-chat-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.public-chat-preview-kicker { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .13em; }
.public-chat-preview-state { padding: 5px 8px; border-radius: 999px; color: var(--action-dark); background: var(--action-soft); font-size: 9px; font-weight: 600; }
.public-chat-preview-kind { display: inline-flex; margin-top: 19px; padding: 5px 9px; border-radius: 999px; color: var(--action-dark); background: var(--action-soft); font-size: 10px; font-weight: 550; }
.public-chat-preview h2 { display: -webkit-box; overflow: hidden; margin: 11px 0 7px; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.025em; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-chat-preview > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.public-chat-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 20px 0 17px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.public-chat-preview dl > div { display: grid; min-width: 0; gap: 4px; }
.public-chat-preview dt { color: var(--subtle); font-size: 9px; }
.public-chat-preview dd { overflow: hidden; margin: 0; color: var(--ink); font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.public-chat-edit-link { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--action-dark); background: #fff; font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer; }
.public-chat-edit-link:hover, .public-chat-edit-link:focus-visible { border-color: var(--action); background: var(--action-soft); outline: 2px solid color-mix(in srgb, var(--action) 18%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 900px) {
  .public-chat-app { grid-template-rows: 56px minmax(0, 1fr); }
  .public-chat-topbar { padding: 0 18px; }
  .public-chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .public-chat-panel { border-right: 0; }
  .public-chat-aside { display: none; }
  .public-chat-heading { padding: 16px 19px 13px; }
  .public-chat-type-control { min-width: 124px; }
  .public-chat-history { padding: 10px 19px 17px; }
  .public-chat-compose-area { padding-right: 15px; padding-left: 15px; }
}
@media (max-width: 600px) {
  .public-chat-app { grid-template-rows: 50px minmax(0, 1fr); }
  .public-chat-topbar { min-height: 50px; padding: 0 12px; }
  .public-chat-brand img { width: 108px; max-height: 29px; }
  .public-chat-topbar-actions { gap: 5px; }
  .public-chat-online { gap: 6px; font-size: 9px; }
  .public-chat-manual-link { font-size: 9px; }
  .public-chat-online > span { width: 6px; height: 6px; }
  .public-chat-simulation { min-height: 22px; padding: 0 7px; font-size: 8px; }
  .public-chat-simulation-wide { display: none; }
  .public-chat-simulation-short { display: inline; }
  .public-chat-heading { gap: 9px; padding: 13px 12px 10px; }
  .public-chat-type-control { min-width: 105px; margin-left: 0; }
  .public-chat-type-control select { min-height: 31px; font-size: 9px; }
  .public-chat-assistant-mark { width: 33px; height: 33px; flex-basis: 33px; border-radius: 9px; }
  .public-chat-assistant-mark svg { width: 18px; height: 18px; }
  .public-chat-eyebrow { font-size: 8px; }
  .public-chat-heading h1 { margin-bottom: 3px; font-size: 17px; }
  .public-chat-heading-copy > p:last-child { font-size: 10px; }
  .public-chat-history { gap: 12px; padding: 8px 12px 12px; }
  .public-chat-message-content { max-width: 91%; }
  .public-chat-message-bubble { padding: 0; font-size: 12px; }
  .public-chat-compose-area { padding: 0 8px max(8px, env(safe-area-inset-bottom)); }
  .public-chat-input-row { min-height: 49px; gap: 2px; padding: 5px; border-radius: 15px; }
  .public-chat-icon-button, .public-chat-send { width: 34px; height: 34px; flex-basis: 34px; }
  .public-chat-icon-button svg, .public-chat-send svg { width: 17px; height: 17px; }
  .public-chat-input-label textarea { min-height: 32px; max-height: 92px; padding: 6px 2px 4px; font-size: 16px; }
  .public-chat-input-label textarea::placeholder { font-size: 13px; }
  .public-chat-composer-footer { padding: 0 3px; font-size: 8px; }
  .public-chat-composer-footer span:last-child { display: none; }
  .public-chat-privacy { margin: 6px 3px 0; font-size: 8px; }
  .public-chat-publish { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .public-chat-attachment-menu { right: 8px; left: 8px; }
  .public-chat-draft-inline { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .public-chat-message-icon.is-thinking svg, .public-chat-welcome-icon.is-thinking svg { animation-duration: 6s !important; }
}

/* Focus the public experience on the conversation. */
.public-chat-workspace { grid-template-columns: minmax(0, 1fr); }
.public-chat-panel { width: min(100%, 920px); margin-inline: auto; border-right: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.is-device-preview .public-chat-preview-trigger { display: none; }
.public-chat-history { gap: 14px; padding: 30px 42px 24px; }
.public-chat-history { scrollbar-width: none; -ms-overflow-style: none; }
.public-chat-history::-webkit-scrollbar { display: none; width: 0; height: 0; }
.public-chat-message-content { max-width: min(88%, 680px); gap: 5px; }
.public-chat-message-sender, .public-chat-message-time { display: none; }
.public-chat-message-bubble.is-welcome, .public-chat-message-bubble.is-typed-response { display: flex; align-items: flex-start; gap: 7px; padding: 0; }
.public-chat-welcome-icon, .public-chat-choice-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--action) 16%, white); border-radius: 10px; color: var(--action-dark); background: var(--action-soft); }
.public-chat-welcome-icon { box-sizing: border-box; width: 20px; min-width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 1px; border: 0; background: transparent; contain: layout size; }
.public-chat-welcome-icon svg, .public-chat-choice-icon svg { display: block; width: 18px; height: 18px; }
.public-chat-quick-replies { justify-content: flex-start; gap: 9px; margin-top: 5px; }
.public-chat-quick-replies :is(button, a) { display: inline-flex; min-height: 62px; align-items: center; gap: 12px; padding: 7px 18px 7px 9px; border-radius: 15px; font-size: 12px; text-decoration: none; }
.public-chat-quick-replies.is-status-choices { gap: 8px; margin-left: 27px; }
.public-chat-quick-replies.is-status-choices :is(button, a) { min-height: 36px; padding: 0 15px; border-radius: 999px; font-size: 11px; }
.public-chat-quick-replies.is-status-choices .is-status-primary { border-color: var(--action); color: #fff; background: var(--action); }.public-chat-quick-replies.is-status-choices .is-status-primary:focus-visible{ border-color: var(--action-dark); color: #fff; background: var(--action-dark); }
.public-chat-quick-replies.is-status-choices .is-status-secondary { border-color: var(--line); color: var(--muted); background: #fff; }.public-chat-quick-replies.is-status-choices .is-status-secondary:focus-visible{ border-color: var(--action); color: var(--action-dark); background: var(--action-soft); }
.public-chat-quick-replies.is-prompt-choices { gap: 8px; margin-left: 27px; }
.public-chat-quick-replies.is-prompt-choices :is(button, a) { min-height: 36px; gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: 11px; }
.public-chat-quick-replies.is-prompt-choices .public-chat-choice-icon { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; }
.public-chat-quick-replies.is-prompt-choices .public-chat-choice-icon svg { width: 16px; height: 16px; }
.public-chat-quick-replies.is-prompt-choices .is-prompt-primary { border-color: var(--action); color: #fff; background: var(--action); }.public-chat-quick-replies.is-prompt-choices .is-prompt-primary:focus-visible{ border-color: var(--action-dark); color: #fff; background: var(--action-dark); }
.public-chat-quick-replies.is-draft-choices { flex-wrap: wrap; }
.public-chat-quick-replies.is-draft-choices.is-carousel { flex-wrap: nowrap; }
.public-chat-quick-replies.is-prompt-choices.is-draft-choices .is-prompt-cancel { border-color: #efcaca; color: #a63d3d; background: #fffafa; }.public-chat-quick-replies.is-prompt-choices.is-draft-choices .is-prompt-cancel:focus-visible{ border-color: #c85f5f; color: #8f2c2c; background: #fff4f4; outline: 2px solid rgb(200 95 95 / 12%); }
.public-chat-choice-icon { width: 48px; height: 48px; flex-basis: 48px; border: 0; border-radius: 13px; }
.public-chat-choice-icon svg { width: 25px; height: 25px; }
.public-chat-upload-status { margin: 0 0 7px 45px; color: var(--muted); font-size: 10px; }
.public-chat-compose-area { padding: 0 42px 20px; }
.public-chat-preview { align-self: center; width: min(calc(100% - 84px), 680px); margin: 12px auto 16px; }

@media (max-width: 900px) {
  .public-chat-history { padding: 26px 24px 18px; }
  .public-chat-compose-area { padding: 0 24px 14px; }
  .public-chat-plus-menu { left: 24px; }
  .public-chat-preview { width: min(calc(100% - 48px), 680px); }
  .public-chat-choice-carousel.has-overflow { display: block; }
  .public-chat-carousel-arrow { display: none !important; }
}
@media (max-width: 600px) {
  .public-chat-history { padding: 20px 15px 12px; }
  .public-chat-message-content { max-width: 94%; }
  .public-chat-message-bubble.is-welcome, .public-chat-message-bubble.is-typed-response { gap: 5px; padding: 0; }
  .public-chat-quick-replies { gap: 7px; }
  .public-chat-quick-replies.is-format-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-chat-quick-replies.is-format-choices button { width: 100%; min-width: 0; justify-content: flex-start; gap: 8px; padding-right: 8px; padding-left: 7px; }
  .public-chat-quick-replies.is-format-choices button > span:last-child { min-width: 0; text-align: left; }
  .public-chat-quick-replies.is-format-choices.is-carousel { display: flex; grid-template-columns: none; }
  .public-chat-quick-replies.is-format-choices.is-carousel button { width: auto; min-width: max-content; }
  .public-chat-quick-replies.is-prompt-choices { margin-left: 25px; }
  .public-chat-quick-replies.is-carousel.is-prompt-choices { width: calc(100% - 25px); }
  .public-chat-quick-replies.is-prompt-choices :is(button, a) { min-height: 36px; padding: 5px 11px; font-size: 10px; }
  .public-chat-quick-replies button { min-height: 55px; gap: 10px; padding: 6px 14px 6px 7px; font-size: 11px; }
  .public-chat-choice-icon { width: 41px; height: 41px; flex-basis: 41px; }
  .public-chat-choice-icon svg { width: 23px; height: 23px; }
  .public-chat-upload-status { margin-left: 39px; font-size: 9px; }
  .public-chat-compose-area { padding: 0 9px max(8px, env(safe-area-inset-bottom)); }
  .public-chat-preview { width: calc(100% - 30px); padding: 16px; }
}

.public-chat-view-preview { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--action); border-radius: 9px; color: #fff; background: var(--action); font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer; }.public-chat-view-preview:focus-visible{ border-color: var(--action-dark); background: var(--action-dark); outline: 2px solid color-mix(in srgb, var(--action) 18%, white); }
.public-chat-cancel { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #efcaca; border-radius: 9px; color: #a63d3d; background: #fffafa; font-size: 11px; font-weight: 550; cursor: pointer; }.public-chat-cancel:focus-visible{ border-color: #c85f5f; color: #8f2c2c; background: #fff4f4; outline: 2px solid rgb(200 95 95 / 12%); }
.public-chat-preview-page { min-height: 100vh; background: #f6f8fb; }
.public-chat-preview-page [hidden] { display: none !important; }
.public-chat-preview-topbar { display: flex; height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.public-chat-preview-back { color: var(--action-dark); font-size: 12px; font-weight: 550; text-decoration: none; }
.public-chat-preview-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.public-chat-preview-main { width: min(100% - 48px, 720px); margin: 48px auto; }
.public-chat-preview-page-heading { margin-bottom: 23px; }
.public-chat-preview-page-heading h1 { margin: 8px 0; color: var(--ink); font-size: clamp(25px, 4vw, 34px); line-height: 1.2; }
.public-chat-preview-page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.public-chat-preview-page .public-chat-preview { width: 100%; margin: 0; }
.public-chat-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.public-chat-preview-actions .public-chat-edit-link, .public-chat-preview-actions .public-chat-cancel { min-height: 40px; font-size: 12px; }
.public-chat-preview-actions .public-chat-publish { min-height: 40px; padding: 0 16px; font-size: 12px; }
.public-chat-preview-status { margin: 14px 0 0 !important; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--action) 20%, white); border-radius: 9px; color: var(--action-dark) !important; background: var(--action-soft); font-size: 12px !important; line-height: 1.5 !important; }
.public-chat-preview-empty { display: grid; justify-items: start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.public-chat-preview-empty p { margin: 0; color: var(--muted); font-size: 13px; }

.public-chat-history { gap: 20px; scroll-behavior: auto; }
.public-chat-message-content { gap: 4px; }
.public-chat-message-reference { display: grid; max-width: 100%; gap: 0; margin: 0; padding: 6px 9px; border-left: 2px solid color-mix(in srgb, var(--action) 48%, white); border-radius: 0 8px 8px 0; color: var(--muted); background: color-mix(in srgb, var(--action-soft) 48%, white); text-align: left; }
.public-chat-message-reference-text { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.public-chat-message-footer { display: flex; width: 100%; min-height: 16px; align-items: center; justify-content: flex-start; gap: 4px; }
.public-chat-message.is-user .public-chat-message-footer { justify-content: flex-end; }
.public-chat-message-footer .public-chat-message-time { display: inline; order: 1; color: var(--muted); font-size: 9px; font-weight: 450; line-height: 1.4; font-variant-numeric: tabular-nums; }
.public-chat-reply-button { display: inline-grid; width: 26px; height: 26px; place-items: center; margin-left: 5px; padding: 0; vertical-align: middle; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; opacity: .68; cursor: pointer; transition: opacity .18s ease, color .18s ease, background .18s ease; }
.public-chat-reply-button.is-reserved-hidden { visibility: hidden; pointer-events: none; }
.public-chat-reply-button svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }.public-chat-reply-button:hover{ opacity: 1; }
.public-chat-reply-button:focus-visible{ border-color: color-mix(in srgb, var(--action) 18%, white); color: var(--action-dark); background: var(--action-soft); opacity: 1; outline: none; }

@media (max-width: 600px) {
  .public-chat-history { gap: 17px; }
  .public-chat-message-footer .public-chat-message-time { font-size: 8px; }
  .public-chat-reply-button { width: 26px; height: 26px; }
  .public-chat-preview-topbar { height: 54px; padding: 0 15px; }
  .public-chat-preview-main { width: calc(100% - 30px); margin: 28px auto; }
  .public-chat-preview-page .public-chat-preview { width: 100%; padding: 16px; }
  .public-chat-preview-page-heading p { font-size: 12px; }
  .public-chat-preview-actions { justify-content: space-between; gap: 8px; }
  .public-chat-preview-actions > * { padding-right: 9px; padding-left: 9px; }
}

.public-chat-plus-menu .public-chat-attachment-option { width: 100%; border: 0; color: var(--ink); background: transparent; font: inherit; text-align: left; }
.public-chat-plus-menu .public-chat-attachment-option:focus-visible { outline: 2px solid color-mix(in srgb, var(--action) 30%, white); outline-offset: -2px; }
.public-chat-plus-menu .public-chat-attachment-option:disabled { opacity: .5; cursor: default; }
.public-chat-plus-suggestions { display: grid; gap: 6px; margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.public-chat-plus-suggestions[hidden] { display: none; }
.public-chat-plus-suggestions h2 { margin: 0 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.public-chat-icebreaker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 6px; }
.public-chat-icebreaker-option { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--action) 19%, white); border-radius: 10px; color: var(--action-dark); background: #fff; font: 600 11px/1.3 var(--font-family); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }.public-chat-icebreaker-option:focus-visible{ border-color: var(--action); background: var(--action-soft); outline: 2px solid color-mix(in srgb, var(--action) 18%, transparent); }
.public-chat-icebreaker-option:active { transform: scale(.985); }
.public-chat-icebreaker-option:disabled { opacity: .5; cursor: wait; }
.public-chat-icebreaker-option-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; color: var(--action-dark); background: var(--action-soft); }
.public-chat-icebreaker-option-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.public-chat-icebreaker-option > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .public-chat-input-row { gap: 3px; }
  .public-chat-plus-menu { left: 9px; width: min(410px, calc(100vw - 26px)); max-height: min(430px, calc(100dvh - 96px)); }
  .public-chat-icebreaker-list { grid-template-columns: 1fr; gap: 5px; }
}

.public-chat-generated-draft { width: min(680px, 100%); margin-top: 11px; padding: 15px 16px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink); background: #fbfcfe; }
.public-chat-generated-draft h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.35; }
.public-chat-generated-draft-summary { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.public-chat-generated-draft-description { color: var(--ink); font-size: 12px; line-height: 1.6; }
.public-chat-generated-draft-description :first-child { margin-top: 0; }
.public-chat-generated-draft-description :last-child { margin-bottom: 0; }
.public-chat-generated-draft-publish { display: inline-flex; min-height: 37px; align-items: center; margin-top: 13px; padding: 0 13px; border-radius: 9px; color: #fff; background: #155ec0; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.public-chat-generated-draft-publish:active { transform: scale(.985); }
