* {box-sizing:border-box}
:root {color-scheme:light; --ink:#212424;--muted:#40454e;--line:#d2dce5;--accent:#a50f2d;--surface:#fff;--wash:#f0f2f6;--rose:#f0f2f6}
body {margin:0;background:var(--wash);color:var(--ink);font:15px/1.5 "Segoe UI",sans-serif;overflow-wrap:anywhere}
header,main,footer {max-width:1250px;margin:auto;padding:22px 4%}
header,.row,nav {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
header {column-gap:clamp(16px,4vw,60px);border-bottom:1px solid var(--line)}
header nav {margin-left:auto}
a {color:var(--accent);text-underline-offset:3px}
.brand {color:inherit;text-decoration:none;font-size:25px;font-weight:700;letter-spacing:-.03em}
.brand {max-width:100%;display:inline-flex}
.brand img {width:218px;max-width:100%;height:auto}
button,input,textarea,select {font:inherit;color:inherit}
button,input,textarea,select {border:1px solid #a9a3a6;border-radius:8px;background:white;padding:8px 12px;min-height:42px;max-width:100%}
button {cursor:pointer}
button:hover {border-color:var(--accent)}
button[aria-pressed=true],.primary {background:var(--accent);color:white;border-color:var(--accent)}
button:disabled {opacity:.55;cursor:wait}
:focus-visible {outline:3px solid #5452a2;outline-offset:2px}
h1 {font-size:clamp(32px,5vw,54px);line-height:1.1;letter-spacing:-.04em;margin:9px 0 25px}
h2 {font-size:21px;margin:0 0 12px}
h3 {margin:0 0 6px}
small,.muted {color:var(--muted)}
.grid {display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,2.2fr);gap:20px;align-items:start}
.panel {background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px;min-width:0}
.panel h2 {padding-bottom:12px;border-bottom:1px solid var(--line)}
.order {width:100%;text-align:left;display:block;margin-top:10px}
.order small {display:block}
.order[aria-pressed=true] {border-color:var(--accent);background:var(--rose);color:var(--accent)}
.bubble {max-width:86%;width:fit-content;padding:10px 14px;border-radius:12px;background:#f2f2f1;margin:10px 0;white-space:pre-wrap}
.mine {margin-left:auto;background:#f7e5eb}
.note,.status:not(:empty) {padding:12px;background:var(--rose);border-radius:8px;margin:0 0 12px}
textarea {width:100%;margin:4px 0;resize:vertical}
label {display:block}
label.inline {display:inline-flex;align-items:center;gap:5px}
input[type=checkbox] {min-height:0;accent-color:var(--accent)}
.stack {display:grid;gap:10px}
.card,.item {padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.card p,.item p {margin:4px 0 10px}
.card:last-child,.item:last-child {border-bottom:0}
.narrow {max-width:490px}
.form {margin:16px 0}
.summary {display:flex;gap:20px;flex-wrap:wrap;margin:0 0 18px}
.summary dt {color:var(--muted)}
.summary dd {margin:0;font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}
footer {font-size:13px;color:var(--muted)}
summary {cursor:pointer}
pre {white-space:pre-wrap;font:inherit}
[hidden] {display:none!important}
@media(max-width:700px) {
 .grid {grid-template-columns:1fr}
 .panel {padding:16px}
 header,main,footer {padding:15px}
 .bubble {max-width:97%}
 nav button {font-size:13px;padding:8px}
}
@media(max-width:700px) {
 .buyer-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .buyer-tabs .order {margin:0}
}
.review-answers {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:14px}
.review-answers p {white-space:pre-wrap}
.reduced-price {color:#8d1237;font-weight:700}
.reduced-price span {font-size:.875em}
del {color:#594b52}
.shop,.session,.thread,.chat-foot {min-width:0}
.shop>.row {margin-bottom:16px}
.session label {margin:0 0 14px}
.session select {display:block;width:100%}
.stack {gap:12px}
.stack label:not(.inline) {display:grid;gap:4px;min-width:0}
.stack label br {display:none}
.stack textarea {margin:0}
.stack .row {align-items:end}
.panel {padding:clamp(16px,2vw,24px)}
.launcher,.widget {position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:5;box-shadow:0 8px 32px #2124242b}
.launcher {display:grid;place-items:center;background:var(--accent);border:none;border-radius:50%;width:56px;height:56px}
.launcher:hover,.primary:hover {background:#d20b33;color:white}
.launcher svg {width:26px;fill:none;stroke:white;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.invite {animation:nudge .4s ease-in-out 1.8s 1}
@keyframes nudge {25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
.widget {width:min(408px,calc(100vw - 32px));height:min(620px,calc(100dvh - 32px));display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.widget-head,.chat-foot,.history,.thread {padding:12px 16px}
.widget-head {display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.widget h2,.widget .form {margin:0}
.history {max-height:25%;overflow:auto;border-bottom:1px solid var(--line)}
.thread {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.chat-foot {border-top:1px solid var(--line)}
.chat-foot textarea {height:48px;resize:none}
.login-actions {display:flex;gap:8px}
.login-actions button {min-width:0}
.login-actions .primary {flex:1}
.login-actions button:last-child {flex:2}
.stand-heading {display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin:9px 0 20px}
.stand-heading h1 {margin:0}
.stand-stamp {margin:0;padding:5px 9px;border:1px solid currentColor;border-radius:3px;color:var(--accent);font-size:12px;font-weight:650;transform:rotate(-2deg)}
.buyer-main {max-width:1580px}
.buyer-layout {display:grid;grid-template-columns:224px minmax(0,1fr);gap:18px;align-items:start}
.buyer-layout .session {padding:14px}
.buyer-layout .session h2 {font-size:16px}
.catalog-search {display:flex;gap:8px}
.catalog-search input {flex:1;min-width:0}
.catalog-pages {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:16px}
.catalog-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.product {position:relative;display:flex;flex-direction:column;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.product:hover {border-color:#ad6575}
.product[data-viewed=true] {border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.product-select {position:absolute;inset:0;z-index:1;background:transparent!important;border:0;border-radius:inherit}
.product h3,.product p {margin:0}
.product-copy {display:grid;gap:5px;margin-top:10px}
.product-category {color:var(--muted);font-size:13px}
.product-art {--cover:#065b54;--cover-wash:#dceee8;display:grid;place-items:center;min-height:116px;background:var(--cover-wash);border-radius:8px}
.product-art-1 {--cover:#963e10;--cover-wash:#f7e6d8}
.product-art-2 {--cover:#3b467b;--cover-wash:#e6e9f5}
.product-art-3 {--cover:#84253e;--cover-wash:#f3e1e6}
.product-cover {width:min(62%,142px);min-height:76px;display:grid;align-content:end;padding:9px;background:var(--cover);color:white;font-weight:700;line-height:1.15;border-radius:5px;box-shadow:6px 4px white}
.product-question {position:absolute;top:19px;right:19px;background:white!important}
.product-question,.product-actions,.product form {z-index:2;position:relative}
.product .product-question {position:absolute}
.product-bottom {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}
.product-bottom strong {font-size:20px}
.product-actions,.quantity,.context-tab {display:inline-flex;align-items:center;gap:6px}
.product-actions {flex-wrap:wrap}
.quantity {border:1px solid var(--line);border-radius:8px}
.quantity>span {min-width:2ch;text-align:center;font-variant-numeric:tabular-nums}
.quantity>span:last-child {width:40px;display:grid;place-items:center;color:var(--muted)}
.context-tab svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.context-tabs {margin-bottom:14px}
.shop>h2 {margin:16px 0 8px}
.chat-icon.primary {color:white;background:var(--accent)}
@media(min-width:1180px) {
  .buyer-main.chat-visible {padding-right:392px}
  .buyer-main .widget {width:356px}
}
@media(max-width:700px) {
  .buyer-layout {grid-template-columns:1fr}
  .buyer-layout .session {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .buyer-layout .session h2 {grid-column:1/-1;margin:0}
  .buyer-layout .session label {margin:0}
}
@media(max-width:540px) {
  .buyer-layout .session {grid-template-columns:1fr;justify-items:start}
  .buyer-layout .session h2,.buyer-layout .session label {width:100%}
  .catalog-grid {grid-template-columns:1fr}
  .stand-stamp {transform:none}
}
.widget-head {display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;gap:4px;background:var(--accent);color:white;padding:10px 12px}
.widget-head img {width:32px;height:32px;padding:2px}
.widget-head h2 {font-size:17px;line-height:1.25}
.widget-head .chat-icon {color:white}
.widget-head .chat-icon:hover {background:#7e0b22}
.chat-icon {display:inline-grid;place-items:center;width:40px;min-height:40px;padding:6px;border:1px solid transparent;background:transparent;color:var(--accent);flex-shrink:0}
.chat-icon:hover {background:var(--wash);border-color:var(--line)}
.chat-icon svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.chat-options {position:absolute;inset:62px 10px auto auto;z-index:1;display:grid;border:1px solid var(--line);background:white;padding:5px;border-radius:9px;box-shadow:0 6px 18px #21242425}
.chat-options button,.history-heading button {text-align:left;border:0}
.chat-options button:hover,.history-heading button:hover {background:var(--wash)}
.chat-history {flex:1;min-height:0;overflow:auto;padding:12px 16px}
.history-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
.chat-history details {margin-top:12px}
.message-meta {display:flex;align-items:center;gap:4px;color:var(--muted);font-size:12px;min-height:24px;white-space:normal}
.message-meta .chat-icon {width:32px;min-height:32px}
.message-meta svg {width:16px;height:16px}
.bubble.mine .message-meta {justify-content:flex-end}
.bubble blockquote,.composer-note blockquote {margin:4px 0;padding:4px 8px;border-inline-start:2px solid var(--accent);background:#fff9;font-size:.9em}
.composer-note {display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}
.composer-note blockquote {max-height:5.5em;overflow:auto}
.message-reference {display:flex;align-items:baseline;gap:6px;overflow-wrap:anywhere;font-size:.9em;color:var(--muted)}
.message-reference svg {flex:none;width:1em;height:1em;align-self:center}
.composer-note > .chat-icon {flex:none}
.chat-file {margin-top:6px;text-align:left}
.quick-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
.quick-actions button {min-width:0;padding-inline:6px;font-size:14px;line-height:1.25}
.composer-line {display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;padding:3px}
.composer-line:focus-within {border-color:var(--accent)}
.composer-line textarea {min-width:0;min-height:44px;height:44px;resize:none;padding:8px 4px;border:0;background:transparent}
.composer-line textarea:focus-visible {outline:none}
.composer-line button[type=submit] {background:var(--accent);color:white}
.composer-line button[type=submit]:hover {background:#7e0b22}
.form:has(.composer-line) {display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.emoji-picker {display:flex;flex-wrap:wrap;gap:4px}
.emoji-picker button {min-width:38px;padding:4px}
.offer-inline {margin-bottom:10px}
.offer-inline dl {margin:4px 0 8px}
.offer-inline dl > div {display:flex;flex-wrap:wrap;gap:4px 8px}
.offer-inline dt {color:var(--muted)}
.offer-inline dd {margin:0}
.offer-preview {margin-bottom:6px;white-space:normal}
.offer-preview > div {padding:6px 8px;border-inline-start:2px solid var(--line)}
.offer-preview dl {display:grid;gap:6px;margin:0 0 8px}
.offer-preview dl > div {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:8px;overflow-wrap:anywhere}
.offer-preview dt {color:var(--muted)}
.offer-preview dd {margin:0}
@media(max-height:450px){.widget .quick-actions button{min-height:32px;padding:4px 8px}}
.chat-error:empty {display:none}
.chat-error {color:var(--accent);margin:0 0 8px}
@media(max-width:540px){body:has(.widget){overflow:hidden}}
.handoff {margin:0 0 8px;color:var(--muted);animation:appear .15s ease-out}
.staff-thread {max-height:45dvh;overflow:auto;overscroll-behavior:contain}
.field-hint {position:fixed;z-index:10;max-width:min(280px,calc(100vw - 16px));padding:6px 10px;border-radius:6px;background:var(--ink);color:white;font-size:13px;pointer-events:none}
.row + .row {margin-top:12px}
@keyframes appear {from{opacity:.2}to{opacity:1}}
body:has(.launcher) .buyer-main {padding-bottom:88px}
@media(max-width:540px){.widget{inset:0;width:100%;height:100dvh;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}}
@media(prefers-reduced-motion:reduce){.invite,.handoff{animation:none}}

.mock-data-note{display:block;margin-top:4px;color:#596087;font-size:.81rem}
