:root{--bg:#f4f4f5;--surface:#fff;--text:#18181b;--muted:#71717a;--primary:#2563eb;--primary-text:#fff;--bot-bubble:#e4e4e7;--bot-text:#18181b;--border:#e4e4e7;--price:#16a34a}@media (prefers-color-scheme:dark){:root{--bg:#09090b;--surface:#18181b;--text:#fafafa;--muted:#a1a1aa;--primary:#3b82f6;--bot-bubble:#27272a;--bot-text:#fafafa;--border:#3f3f46;--price:#4ade80}}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{background:var(--bg);flex-direction:column;max-width:720px;height:100%;margin:0 auto;display:flex}.app-header{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.app-header h1{margin:0;font-size:18px;font-weight:600}.lang-switcher{gap:4px;display:flex}.lang-switcher button{border:1px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;border-radius:8px;padding:4px 10px;font-size:13px}.lang-switcher button.active{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.chat{flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.bubble{white-space:pre-wrap;word-break:break-word;border-radius:14px;max-width:82%;padding:10px 14px;line-height:1.45}.bubble.assistant{background:var(--bot-bubble);color:var(--bot-text);border-bottom-left-radius:4px;align-self:flex-start}.bubble.user{background:var(--primary);color:var(--primary-text);border-bottom-right-radius:4px;align-self:flex-end}.bubble.searching{color:var(--muted);align-items:center;gap:8px;display:flex}.assistant-group{flex-direction:column;align-self:flex-start;gap:8px;max-width:100%;display:flex}.dots{gap:4px;display:inline-flex}.dots span{background:var(--muted);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite pulse}.dots span:nth-child(2){animation-delay:.15s}.dots span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,to{opacity:.3}40%{opacity:1}}.quick{flex-wrap:wrap;gap:6px;display:flex}.quick button{border:1px solid var(--primary);color:var(--primary);cursor:pointer;background:0 0;border-radius:999px;padding:6px 12px;font-size:14px}.quick button:hover{background:var(--primary);color:var(--primary-text)}.cards{flex-direction:column;gap:8px;display:flex}.card{background:var(--surface);border:1px solid var(--border);color:inherit;border-radius:12px;align-items:center;gap:12px;padding:10px;text-decoration:none;display:flex}.card:hover{border-color:var(--primary)}.card img{object-fit:cover;background:var(--border);border-radius:8px;flex-shrink:0;width:56px;height:56px}.card-img-fallback{background:var(--border);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:56px;height:56px;font-size:24px;display:flex}.card-meta{flex-direction:column;gap:2px;min-width:0;display:flex}.card-title{font-size:14px;font-weight:600}.card-price{color:var(--price);font-weight:600}.card-site{color:var(--muted);font-size:12px}.composer{border-top:1px solid var(--border);background:var(--surface);gap:8px;padding:12px 16px;display:flex}.composer input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;flex:1;padding:12px 14px;font-size:15px}.composer input:disabled{opacity:.6}.composer button{background:var(--primary);color:var(--primary-text);cursor:pointer;border:none;border-radius:10px;padding:12px 18px;font-size:15px}.composer button:disabled{opacity:.5;cursor:not-allowed}
