:root{--bg: #faf8f5;--sidebar-bg: #1a0d05;--sidebar-text: #f5ede4;--primary: #8b5e3c;--primary-dark: #6f4526;--border: #e8ddd5;--card-bg: #ffffff;--tag-bg: #f3ede7;--tag-text: #8b5e3c;--msg-user-bg: #8b5e3c;--text: #2c1a0e;--text-muted: #888}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);height:100dvh;overflow:hidden;-webkit-font-smoothing:antialiased}#root{height:100dvh}.authPage{height:100dvh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a0d05,#3d1f0b)}.authCard{background:#fff;border-radius:16px;padding:36px 32px;width:100%;max-width:380px;box-shadow:0 20px 60px #0000004d}.authBrand{font-size:24px;font-weight:800;color:var(--primary);margin-bottom:20px;display:flex;align-items:center;gap:8px}.authBrand span{color:var(--text)}.authCard h2{font-size:20px;font-weight:700;margin-bottom:4px}.authSubtitle{font-size:13px;color:var(--text-muted);margin-bottom:24px}.authForm{display:flex;flex-direction:column;gap:10px}.authForm input{padding:11px 14px;border:1.5px solid var(--border);border-radius:8px;font-size:14px;outline:none;transition:border-color .15s}.authForm input:focus{border-color:var(--primary)}.authError{font-size:13px;color:#d94f4f}.authToggle{margin-top:16px;font-size:13px;color:var(--text-muted);text-align:center}.authToggle span{color:var(--primary);cursor:pointer;font-weight:600}.authToggle span:hover{text-decoration:underline}.btn{padding:10px 16px;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s,background .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-ghost{background:#ffffff1a;color:var(--sidebar-text)}.btn-ghost:hover:not(:disabled){background:#ffffff2e}.appShell{display:flex;height:100dvh}.sidebar{width:250px;min-width:220px;background:var(--sidebar-bg);color:var(--sidebar-text);display:flex;flex-direction:column;padding:20px 14px;gap:18px;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08)}.brandIcon{font-size:22px}.brand b{font-size:15px;display:block;color:#f5ede4}.brand span{font-size:11px;color:#f5ede480;display:block;margin-top:1px}.userInfo{display:flex;align-items:center;gap:10px}.userAvatar{width:34px;height:34px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex-shrink:0}.userName{font-size:13px;font-weight:600;color:#f5ede4}.userEmail{font-size:11px;color:#f5ede480;margin-top:1px}.factsSection{flex:1;overflow-y:auto;min-height:0}.factsSectionHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.factsSectionHeader h2{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#f5ede480}.clearBtn{background:none;border:none;color:#f5ede466;cursor:pointer;font-size:16px;line-height:1;padding:0 4px}.clearBtn:hover{color:#f5ede4cc}.emptyFacts{font-size:12px;color:#f5ede459;font-style:italic;line-height:1.5}.factsList{display:flex;flex-direction:column;gap:6px}.factItem{background:#ffffff0f;border-radius:8px;padding:8px 10px;display:flex;align-items:flex-start;gap:8px;font-size:12px}.factIcon{font-size:13px;flex-shrink:0;margin-top:1px}.factLabel{font-size:10px;color:#f5ede473;margin-bottom:2px;text-transform:uppercase;letter-spacing:.3px}.factText{color:#f5ede4e6;line-height:1.4}.factDelete{background:none;border:none;color:#f5ede440;cursor:pointer;font-size:14px;line-height:1;flex-shrink:0;padding:0 2px;margin-left:auto}.factDelete:hover{color:#f5ede4b3}.logoutBtn{margin-top:auto;font-size:13px}.chatMain{flex:1;display:flex;flex-direction:column;overflow:hidden}.chatHeader{padding:14px 20px;border-bottom:1px solid var(--border);background:#fff;flex-shrink:0}.chatHeader h1{font-size:16px;font-weight:700}.chatHeader p{font-size:12px;color:var(--text-muted);margin-top:2px}.messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.emptyState{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:40px 20px;color:var(--text-muted)}.emptyIcon{font-size:52px}.emptyState h2{font-size:20px;font-weight:700;color:var(--text)}.emptyState p{font-size:14px;text-align:center;max-width:280px;line-height:1.6}.messageRow{display:flex;gap:10px;align-items:flex-start}.messageRow.user{flex-direction:row-reverse}.avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}.avatar.bot{background:var(--primary);color:#fff;font-size:16px}.avatar.user{background:#e8ddd5;color:var(--primary)}.bubble{max-width:68%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.65;white-space:pre-wrap}.user .bubble{background:var(--msg-user-bg);color:#fff;border-top-right-radius:4px}.bot .bubble{background:#fff;color:var(--text);border-top-left-radius:4px;box-shadow:0 1px 4px #00000012}.recommendations{margin-top:10px;display:flex;flex-direction:column;gap:8px;max-width:560px}.productCard{background:var(--card-bg);border:1px solid var(--border);border-radius:10px;padding:11px 12px;display:flex;gap:12px;font-size:13px;transition:box-shadow .15s}.productCard:hover{box-shadow:0 2px 8px #00000017}.productImg{width:60px;height:60px;object-fit:cover;border-radius:7px;flex-shrink:0}.productImgPlaceholder{width:60px;height:60px;border-radius:7px;background:#f0e8e0;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}.productInfo{flex:1;min-width:0}.productName{font-weight:700;color:var(--text);margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.productBrand{font-size:11px;color:var(--text-muted);margin-bottom:4px}.productMeta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:5px}.productMeta span{font-size:11px;color:var(--text-muted)}.productMeta .price{font-weight:700;color:var(--primary)}.flavorNotes{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:5px}.tag{font-size:10px;padding:2px 7px;border-radius:20px;background:var(--tag-bg);color:var(--tag-text);font-weight:500}.productWhy{font-size:11px;color:var(--text-muted);font-style:italic;line-height:1.4;margin-bottom:5px}.productLink{font-size:12px;color:var(--primary);text-decoration:none;font-weight:600}.productLink:hover{text-decoration:underline}.starters{padding:8px 16px 0;display:flex;flex-wrap:wrap;gap:8px}.starterChip{padding:7px 13px;border-radius:20px;border:1.5px solid var(--border);background:#fff;font-size:12px;cursor:pointer;color:var(--primary);font-weight:500;transition:all .15s}.starterChip:hover{background:var(--tag-bg);border-color:#c9a480}.composer{border-top:1px solid var(--border);padding:12px 16px;background:#fff;flex-shrink:0}.composerRow{display:flex;gap:8px;align-items:flex-end}.composerTextarea{flex:1;padding:10px 14px;border:1.5px solid var(--border);border-radius:10px;font-size:14px;font-family:inherit;resize:none;outline:none;max-height:120px;line-height:1.55;transition:border-color .15s}.composerTextarea:focus{border-color:var(--primary)}.sendBtn{padding:10px 18px;background:var(--primary);color:#fff;border:none;border-radius:10px;font-size:18px;font-weight:700;cursor:pointer;flex-shrink:0;transition:background .15s}.sendBtn:disabled{opacity:.45;cursor:not-allowed}.sendBtn:hover:not(:disabled){background:var(--primary-dark)}.typingIndicator{display:flex;align-items:center;gap:5px;height:20px}.dot{width:7px;height:7px;border-radius:50%;background:#c9a480;animation:bounce 1.1s infinite}.dot:nth-child(2){animation-delay:.18s}.dot:nth-child(3){animation-delay:.36s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-5px)}}@media (max-width: 600px){.sidebar{display:none}.bubble{max-width:88%}}
