:root{--bg:#fdf6ee;--surface:#fff;--surface-2:#fff4e8;--text:#2b2118;--muted:#7d6b5c;--border:#f0e1d1;--brand:#f97316;--brand-strong:#ea580c;--brand-soft:#ffedd5;--user-bubble:#f97316;--user-text:#fff;--ok:#16a34a;--danger:#b91c1c;--danger-soft:#fee2e2;--shadow:0 10px 40px #7c400e1f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#17120e;--surface:#221b16;--surface-2:#2b221b;--text:#f6ece2;--muted:#b3a090;--border:#3a2f26;--brand:#fb923c;--brand-strong:#f97316;--brand-soft:#3d2614;--user-bubble:#ea580c;--danger:#fca5a5;--danger-soft:#3f1d1d;--shadow:0 10px 40px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#17120e;--surface:#221b16;--surface-2:#2b221b;--text:#f6ece2;--muted:#b3a090;--border:#3a2f26;--brand:#fb923c;--brand-strong:#f97316;--brand-soft:#3d2614;--user-bubble:#ea580c;--danger:#fca5a5;--danger-soft:#3f1d1d;--shadow:0 10px 40px #0006;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:Hind Siliguri,system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.5}button{font:inherit;cursor:pointer}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.page{place-items:center;height:100%;padding:24px 16px;display:grid}.chat{background:var(--surface);border:1px solid var(--border);width:100%;max-width:460px;height:min(760px,100%);box-shadow:var(--shadow);border-radius:24px;flex-direction:column;display:flex;overflow:hidden}.chat-header{background:var(--brand);color:#fff;align-items:center;gap:12px;padding:14px 16px;display:flex}.chat-header .avatar{background:#fff3;width:40px;height:40px}.title{flex:1;min-width:0}.title h1{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:17px;font-weight:700;line-height:1.2;overflow:hidden}.online{opacity:.92;align-items:center;gap:6px;font-size:12.5px;display:inline-flex}.online i{background:#86efac;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 2px #ffffff59}.ghost{color:#fff;background:0 0;border:1px solid #ffffff80;border-radius:999px;padding:5px 12px;font-size:13px}.ghost:hover:not(:disabled){background:#ffffff26}.ghost:disabled{opacity:.6}.messages{background:linear-gradient(var(--surface-2), var(--surface) 240px);flex-direction:column;flex:1;gap:12px;padding:18px 14px 8px;display:flex;overflow-y:auto}.row{align-items:flex-end;gap:8px;max-width:100%;display:flex}.row.user{justify-content:flex-end}.avatar{border-radius:50%;flex:none;place-items:center;width:30px;height:30px;display:grid;overflow:hidden}.avatar img{width:100%;height:100%}.stack{flex-direction:column;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.bubble{background:var(--surface);border:1px solid var(--border);overflow-wrap:anywhere;border-radius:18px;max-width:85%;padding:10px 14px}.stack .bubble{max-width:100%}.row.assistant .bubble{border-bottom-left-radius:6px}.row.user .bubble{background:var(--user-bubble);color:var(--user-text);white-space:pre-wrap;border-color:#0000;border-bottom-right-radius:6px}.bubble p{margin:0}.bubble p+p,.bubble p+ul,.bubble p+ol,.bubble ul+p,.bubble ol+p{margin-top:8px}.bubble ul,.bubble ol{margin:0;padding-left:20px}.bubble li+li{margin-top:3px}.muted{color:var(--muted);font-size:13px}.bubble.error{background:var(--danger-soft);color:var(--danger);border-color:#0000}.typing{align-items:center;gap:10px;display:inline-flex}.dots{gap:4px;display:inline-flex}.dots i{background:var(--brand);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite bounce}.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}.activity{color:var(--muted);font-size:13px}@keyframes bounce{0%,60%,to{opacity:.5;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.dots i{animation:none}}.chips{flex-wrap:wrap;gap:8px;padding-left:38px;display:flex}.chip{border:1px solid var(--brand);color:var(--brand-strong);background:var(--surface);border-radius:999px;padding:6px 14px;font-size:14px}.chip:hover{background:var(--brand-soft)}.product-row{scroll-snap-type:x mandatory;gap:10px;max-width:100%;padding:2px 2px 8px;display:flex;overflow-x:auto}.product-card{scroll-snap-align:start;background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;flex:none;width:170px;display:flex;overflow:hidden}.product-img{aspect-ratio:1;background:#fff;place-items:center;font-size:40px;display:grid;position:relative}.product-img img{object-fit:contain;width:100%;height:100%}.badge{background:var(--brand);color:#fff;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:600;position:absolute;top:8px;left:8px}.product-body{flex-direction:column;flex:1;gap:4px;padding:10px;display:flex}.product-body h4{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:13.5px;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.variant{background:var(--brand-soft);color:var(--brand-strong);border-radius:6px;align-self:flex-start;padding:0 8px;font-size:12px}.price{align-items:baseline;gap:6px;margin-top:auto;display:flex}.price strong{font-size:16px}.price s{color:var(--muted);font-size:12.5px}.add-btn{background:var(--brand);color:#fff;border:none;border-radius:10px;margin-top:6px;padding:7px 0;font-size:13.5px;font-weight:600}.add-btn:hover:not(:disabled){background:var(--brand-strong)}.add-btn:disabled{background:var(--border);color:var(--muted)}.summary-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;padding:12px 14px}.summary-card header{align-items:center;gap:8px;margin-bottom:8px;font-weight:700;display:flex}.lines{border-bottom:1px dashed var(--border);margin:0;padding:0 0 8px;list-style:none}.lines li{gap:6px;padding:3px 0;font-size:14px;display:flex}.qty{color:var(--muted);flex:none}.line-name{flex:1;min-width:0}.amount{font-variant-numeric:tabular-nums;flex:none}.totals{margin:8px 0;font-size:14px}.totals div{justify-content:space-between;padding:2px 0;display:flex}.totals dt{color:var(--muted)}.totals dd{font-variant-numeric:tabular-nums;margin:0}.totals .discount dd{color:var(--ok)}.totals .grand{border-top:1px solid var(--border);margin-top:4px;padding-top:6px;font-size:16px;font-weight:700}.totals .grand dt{color:var(--text)}.summary-card>.muted{margin:0}.order-card{border-color:var(--ok)}.check{background:var(--ok);color:#fff;border-radius:50%;place-items:center;width:22px;height:22px;font-size:13px;display:grid}.order-number{margin:0 0 8px;font-size:14px}.order-number strong{letter-spacing:.02em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.ship-to{margin-bottom:6px;font-size:14px}.ship-to p{margin:2px 0 0}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);align-items:flex-end;gap:8px;display:flex}.composer textarea{resize:none;field-sizing:content;border:1px solid var(--border);background:var(--surface-2);max-height:120px;color:var(--text);font:inherit;border-radius:20px;outline:none;flex:1;padding:9px 16px}.composer textarea:focus{border-color:var(--brand)}.send{background:var(--brand);color:#fff;border:none;border-radius:50%;flex:none;place-items:center;width:42px;height:42px;display:grid}.send:disabled{background:var(--border);color:var(--muted)}@media (width<=520px){.page{padding:0}.chat{border:none;border-radius:0;max-width:none;height:100%}}
