*,:after,:before{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5;color:#18181b;background:#f4f4f5}a{color:inherit;text-decoration:none}button{font-family:inherit}.chatShell{display:flex;flex-direction:column;height:100dvh;max-width:800px;margin:0 auto;background:#f4f4f5}.chatHeader{padding:14px 20px;background:#fff;border-bottom:1px solid #e4e4e7;font-weight:700;font-size:17px;flex-shrink:0}.chatFeed{flex:1 1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:10px}.chatBottom{flex-shrink:0;background:#fff;border-top:1px solid #e4e4e7;padding:12px 20px}.chatInputRow{display:flex;gap:8px;align-items:flex-end}.chatInput{flex:1 1;padding:10px 16px;border:1px solid #e4e4e7;border-radius:24px;font-size:15px;font-family:inherit;outline:none;resize:none;max-height:120px;overflow-y:auto}.chatInput:focus{border-color:#2563eb}.sendBtn{padding:10px 20px;background:#2563eb;color:#fff;border:none;border-radius:24px;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap}.sendBtn:hover{background:#1d4ed8}.sendBtn:disabled{opacity:.45;cursor:not-allowed}.msg{max-width:72%;padding:10px 16px;border-radius:18px;font-size:15px;line-height:1.45}.msg.user{background:#2563eb;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}.msg.assistant{background:#fff;border:1px solid #e4e4e7;align-self:flex-start;border-bottom-left-radius:4px}.msg.debug{align-self:stretch;max-width:100%;background:#18181b;color:#a1a1aa;border:1px solid #3f3f46;border-radius:8px;font-family:ui-monospace,Cascadia Code,Source Code Pro,Menlo,monospace;font-size:12px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.modePicker{display:flex;flex-direction:column;align-items:center;gap:12px;margin:auto;padding:32px 16px}.modePicker p{font-size:14px;color:#71717a;margin:0 0 4px}.modeOptions{display:flex;gap:12px}.modeBtn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 20px;border-radius:12px;border:1.5px solid #e4e4e7;background:#fff;cursor:pointer;min-width:148px;transition:border-color .15s,box-shadow .15s}.modeBtn:hover{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.modeBtnLabel{font-size:14px;font-weight:600;color:#18181b}.modeBtnSub{font-size:12px;color:#71717a;line-height:1.4}.modeBtn.test .modeBtnLabel{color:#a16207}.modeBtn.test{border-color:#fef08a;background:#fefce8}.modeBtn.test:hover{border-color:#ca8a04;box-shadow:0 0 0 3px rgba(202,138,4,.1)}.msgLoading{align-self:flex-start;display:flex;align-items:center;gap:5px;padding:10px 16px;background:#fff;border:1px solid #e4e4e7;border-radius:18px;border-bottom-left-radius:4px}.dot{width:7px;height:7px;background:#a1a1aa;border-radius:50%;animation:blink 1.2s ease-in-out infinite}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes blink{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.chipRow{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 8px}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:100px;font-size:13px}.chip,.chipX{color:#1d4ed8}.chipX{background:none;border:none;cursor:pointer;font-size:17px;line-height:1;padding:0}.chipX:hover{color:#dc2626}.cardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));grid-gap:14px;gap:14px;padding:4px 0 8px}.productCard{background:#fff;border:1.5px solid #e4e4e7;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;cursor:pointer;transition:box-shadow .15s,border-color .15s}.productCard:hover{box-shadow:0 4px 14px rgba(0,0,0,.1)}.productCard.selected{border-color:#2563eb;box-shadow:0 0 0 3px #bfdbfe}.productCard.lowConf{border-color:#fbbf24}.productImg{object-fit:contain;display:block}.productImg,.productImgFallback{width:100%;aspect-ratio:1;background:#f4f4f5}.productImgFallback{display:flex;align-items:center;justify-content:center;color:#a1a1aa;font-size:13px}.productBody{padding:10px 12px;flex:1 1;display:flex;flex-direction:column;gap:5px}.lowConfBadge{display:inline-block;font-size:11px;font-weight:600;color:#92400e;background:#fef3c7;border-radius:4px;padding:2px 6px;align-self:flex-start}.productTitle{font-size:13px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.productPrice{font-size:17px;font-weight:700}.productReason{font-size:12px;color:#52525b;line-height:1.4}.productRating{font-size:12px;color:#71717a}.productFooter{padding:0 12px 12px}.buyBtn{display:block;width:100%;text-align:center;padding:8px;background:#18181b;color:#fff;border-radius:8px;font-size:13px;font-weight:500}.buyBtn:hover{background:#27272a}.decisionRow{display:flex;gap:10px;padding:8px 0 4px;flex-wrap:wrap}.btnAccept{flex:1 1;min-width:130px;padding:12px 16px;background:#16a34a;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}.btnAccept:hover{background:#15803d}.btnAccept:disabled{opacity:.45;cursor:not-allowed}.btnSimilar{flex:1 1;min-width:130px;padding:12px 16px;background:#fff;color:#18181b;border:1px solid #e4e4e7;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer}.btnSimilar:hover{background:#f4f4f5}.btnReject{flex:1 1;min-width:130px;padding:12px 16px;background:#fff;color:#dc2626;border:1px solid #fca5a5;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer}.btnReject:hover{background:#fef2f2}.selectHint{font-size:12px;color:#71717a;margin-top:4px;text-align:center}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:flex-end;justify-content:center;z-index:200}@media (min-width:600px){.overlay{align-items:center}}.modalBox{background:#fff;border-radius:16px 16px 0 0;width:100%;max-width:540px;padding:24px 24px 32px}@media (min-width:600px){.modalBox{border-radius:16px}}.modalTitle{font-size:17px;font-weight:700;margin-bottom:16px}.tagRow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.tagBtn{padding:7px 16px;border:1.5px solid #e4e4e7;border-radius:100px;background:#fff;font-size:13px;cursor:pointer}.tagBtn.on{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.feedbackText{width:100%;padding:10px 12px;border:1px solid #e4e4e7;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;outline:none;margin-bottom:16px}.feedbackText:focus{border-color:#2563eb}.modalActions{display:flex;gap:10px}.btnSubmit{flex:1 1;padding:12px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}.btnSubmit:hover{background:#1d4ed8}.btnModalSkip{padding:12px 20px;background:#fff;color:#71717a;border:1px solid #e4e4e7;border-radius:8px;font-size:15px;cursor:pointer}.btnModalSkip:hover{background:#f4f4f5}.nullBox{background:#fff;border:1.5px solid #e4e4e7;border-radius:14px;padding:32px 24px;text-align:center}.nullTitle{font-size:17px;font-weight:700;margin-bottom:8px}.nullDesc{color:#71717a;font-size:14px;margin-bottom:24px;line-height:1.5}.nullActions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.btnNullPrimary{padding:12px 24px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}.btnNullPrimary:hover{background:#1d4ed8}.btnNullSecondary{padding:12px 24px;background:#fff;color:#18181b;border:1px solid #e4e4e7;border-radius:8px;font-size:15px;cursor:pointer}.btnNullSecondary:hover,.obWrap{background:#f4f4f5}.obWrap{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px}.obCard{background:#fff;border-radius:16px;padding:28px 24px;width:100%;max-width:460px;box-shadow:0 4px 24px rgba(0,0,0,.08)}.obProgress{height:4px;background:#e4e4e7;border-radius:2px;margin-bottom:24px;overflow:hidden}.obProgressFill{height:100%;background:#2563eb;border-radius:2px;transition:width .3s}.obStep{font-size:12px;color:#71717a;font-weight:600;letter-spacing:.04em;margin-bottom:4px}.obTitle{font-size:22px;font-weight:800;margin-bottom:6px}.obSub{font-size:14px;color:#71717a;margin-bottom:22px}.obOptionGrid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;gap:10px;margin-bottom:24px}.obOption{padding:12px 8px;border:2px solid #e4e4e7;border-radius:10px;background:#fff;cursor:pointer;font-size:14px;text-align:center;transition:all .1s}.obOption.on{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;font-weight:600}.obChipGrid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.obChip{padding:8px 16px;border:2px solid #e4e4e7;border-radius:100px;background:#fff;cursor:pointer;font-size:14px;transition:all .1s}.obChip.on{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.obLabel{font-size:12px;color:#71717a;font-weight:600;margin-bottom:8px;margin-top:14px}.obFooter{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.btnObNext{padding:12px 28px;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer}.btnObNext:hover{background:#1d4ed8}.btnObNext:disabled{opacity:.5;cursor:not-allowed}.btnObSkip{background:none;border:none;color:#71717a;font-size:14px;cursor:pointer;padding:12px 4px}.btnObSkip:hover{color:#18181b}