:root { color-scheme:light; --bg:#f8fafc; --panel:#fff; --text:#0f172a; --muted:#64748b; --border:#e2e8f0; --hover:#f1f5f9; --dark:#18181b; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--text); background:var(--bg); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; font-size:14px; }
button,input { font:inherit; }
button { cursor:pointer; }
.app-shell { display:grid; grid-template-columns:240px minmax(0,1fr); width:min(1040px,calc(100% - 32px)); height:min(760px,calc(100vh - 32px)); min-height:560px; margin:16px auto; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--panel); box-shadow:0 8px 30px rgba(15,23,42,.06); }
.sidebar { display:flex; flex-direction:column; padding:18px 12px 12px; border-right:1px solid var(--border); background:#fafafa; }
.logo { width:170px; height:auto; margin:0 8px 20px; }
.new-chat { display:flex; align-items:center; gap:9px; width:100%; padding:9px 11px; color:var(--text); border:1px solid var(--border); border-radius:8px; background:#fff; text-align:left; font-size:12px; font-weight:600; }
.new-chat:hover { background:var(--hover); }
.new-chat span { font-size:18px; line-height:12px; }
#chat-list { flex:1; margin-top:12px; overflow-y:auto; }
.chat-row { display:grid; grid-template-columns:minmax(0,1fr) 30px; margin:3px 0; border-radius:7px; }
.chat-row:hover,.chat-row.active { background:var(--hover); }
.chat-row button { min-width:0; padding:8px 9px; overflow:hidden; color:var(--muted); border:0; background:transparent; text-align:left; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.chat-row.active button:first-child { color:var(--text); font-weight:600; }
.chat-row .delete-chat { padding:0; color:#94a3b8; text-align:center; font-size:18px; opacity:0; }
.chat-row:hover .delete-chat,.chat-row.active .delete-chat { opacity:1; }
.chat-row .delete-chat:hover { color:#b91c1c; }
.sidebar>p { margin:12px 8px 0; color:#94a3b8; font-size:10px; line-height:1.45; }
.chat { display:grid; grid-template-rows:62px minmax(0,1fr) 66px; min-width:0; }
.chat>header { display:flex; align-items:center; gap:10px; padding:12px 18px; border-bottom:1px solid var(--border); }
.avatar { display:grid; place-items:center; width:34px; height:34px; color:#fff; border-radius:8px; background:var(--dark); }
.chat>header div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.chat>header strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.chat>header span:not(.avatar) { color:var(--muted); font-size:11px; }
.messages { padding:24px; overflow-y:auto; background:#fcfcfd; }
.message { width:fit-content; max-width:min(78%,620px); margin:0 0 14px; padding:10px 12px; white-space:pre-wrap; border:1px solid var(--border); border-radius:4px 11px 11px 11px; background:#fff; font-size:13px; line-height:1.55; }
.message.user { margin-left:auto; color:#fff; border-color:var(--dark); border-radius:11px 4px 11px 11px; background:var(--dark); }
.message.user.sending { transform-origin:bottom right; animation:bubble-send .5s cubic-bezier(.22,1,.36,1); }
.message.error { color:#991b1b; border-color:#fecaca; background:#fef2f2; }
.typing-indicator { display:flex; align-items:center; gap:9px; width:62px; height:36px; margin:0 0 14px; padding:8px 10px; border:1px solid var(--border); border-radius:4px 11px 11px 11px; background:#fff; animation:typing-enter .24s ease-out; }
.typing-orbit { width:12px; height:12px; border:2px solid #cbd5e1; border-top-color:var(--dark); border-radius:50%; animation:orbit .8s linear infinite; }
.typing-dots { display:flex; align-items:center; gap:3px; }
.typing-dots i { width:4px; height:4px; border-radius:50%; background:#64748b; animation:dot-bounce 1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay:.14s; }.typing-dots i:nth-child(3) { animation-delay:.28s; }
.suggestions { display:flex; flex-wrap:wrap; gap:7px; }
.suggestions button { padding:7px 10px; color:#334155; border:1px solid var(--border); border-radius:8px; background:#fff; font-size:11px; }
.suggestions button:hover { background:var(--hover); }
.composer { display:flex; gap:9px; padding:12px 16px; border-top:1px solid var(--border); }
.composer input { flex:1; min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:9px; outline:none; }
.composer input:focus { border-color:#94a3b8; box-shadow:0 0 0 3px rgba(148,163,184,.15); }
.composer button { width:40px; color:#fff; border:0; border-radius:9px; background:var(--dark); font-size:18px; }
.composer button:disabled { cursor:wait; opacity:.45; }
@keyframes bubble-send { 0% { opacity:0; transform:translateY(14px) scale(.82); } 55% { transform:translateY(-2px) scale(1.035); } 100% { opacity:1; transform:none; } }
@keyframes typing-enter { from { opacity:0; transform:translateY(6px) scale(.92); } to { opacity:1; transform:none; } }
@keyframes orbit { to { transform:rotate(360deg); } }
@keyframes dot-bounce { 0%,60%,100% { transform:translateY(1px); opacity:.35; } 30% { transform:translateY(-3px); opacity:1; } }
@media (prefers-reduced-motion:reduce) { .message.user.sending,.typing-indicator,.typing-orbit,.typing-dots i { animation:none; } }
@media (max-width:700px) { .app-shell { grid-template-columns:92px minmax(0,1fr); width:100%; height:100vh; min-height:0; margin:0; border:0; border-radius:0; }.sidebar { padding:12px 7px; }.logo { width:76px; margin:4px 1px 14px; }.new-chat { justify-content:center; padding:8px 4px; font-size:0; }.new-chat span { font-size:20px; }.chat-row { grid-template-columns:minmax(0,1fr); }.chat-row button:first-child { padding:8px 5px; text-align:center; font-size:10px; }.chat-row .delete-chat,.sidebar>p { display:none; }.messages { padding:16px 12px; }.message { max-width:90%; } }
:root{--bg:#f5f2eb;--text:#243e3b;--muted:#71817b;--border:#e2e6df;--hover:#eaf0e8;--dark:#28534b}body{background:var(--bg)}.app-shell{width:min(1200px,calc(100% - 64px));height:calc(100dvh - 64px);max-height:940px;min-height:500px;margin:32px auto;grid-template-columns:250px minmax(0,1fr);border-radius:20px;box-shadow:0 16px 65px #2a443a0b}.sidebar{background:#f1f4ed;padding:27px 18px 18px}.brand{display:flex;align-items:center;gap:10px;margin:0 6px 34px;color:var(--dark);text-decoration:none}.brand-icon{font-size:48px;font-weight:900;line-height:1;color:#e8a43e}.brand small{display:block;font-size:9px;letter-spacing:3px}.brand b{font-size:29px;letter-spacing:-1px}.new-chat{padding:12px;border-radius:10px;background:transparent}.sidebar-label{font-size:9px;letter-spacing:1.4px;color:var(--muted);margin:26px 8px 0}.side-note{margin:20px 8px}.side-note strong{display:block;font-size:12px;margin:14px 0 8px}.side-note p{font-size:12px;line-height:1.6;color:var(--muted);max-width:165px}.confetti{font-size:35px;color:#d59c43}.chat{grid-template-rows:78px minmax(0,1fr) 98px}.chat>header{padding:18px 28px}.avatar{border-radius:50%;background:#e9efdf;color:var(--dark);font-size:27px;font-weight:800;width:40px;height:40px}.online-dot{width:7px;height:7px;background:#66a681;border-radius:50%;margin-left:auto}.messages{background:#fff;padding:30px}.welcome{margin:clamp(25px,8vh,100px) auto 20px;max-width:520px}.eyebrow{font-size:10px;letter-spacing:2px;color:#a08655;font-weight:600}.welcome h1{font-family:Georgia,serif;font-size:clamp(34px,4vw,54px);font-weight:400;letter-spacing:-1.8px;line-height:1.08;white-space:pre-line;margin:20px 0}.welcome p{font-size:14px;line-height:1.8;color:var(--muted);white-space:pre-line}.suggestions{margin-top:30px;gap:10px}.suggestions button{padding:12px 14px;font-size:12px;border-radius:24px}.message{font-size:14px;line-height:1.65;padding:13px 16px;max-width:85%;border-color:#e9ece7;background:#f7f8f4}.message.user{background:var(--dark)}.composer-wrap{border-top:1px solid var(--border)}.composer{border:0;padding:14px 24px 6px}.composer input{background:#f8f9f5;border-radius:13px;padding:12px 14px}.composer button{border-radius:12px;width:44px}.composer-wrap>p{font-size:10px;text-align:center;color:var(--muted);margin:4px}.product-cards{display:flex;gap:10px;overflow-x:auto;margin:0 0 24px;padding-bottom:4px}.product-card{flex:0 0 190px;border:1px solid var(--border);border-radius:13px;overflow:hidden;color:var(--text);text-decoration:none;background:#fff}.product-card:hover{border-color:#729c84}.product-card img{width:100%;height:165px;object-fit:contain;background:#fafbf8}.product-card>div{padding:13px}.product-card strong{display:block;font-size:12px;line-height:1.4}.price{display:block;font-size:14px;font-weight:600;margin:10px 0 6px}.product-card small{font-size:9px;color:var(--muted)}button:focus-visible,a:focus-visible{outline:3px solid #daa344;outline-offset:3px}@media(max-width:700px){.app-shell{width:100%;height:100dvh;min-height:0;margin:0;border-radius:0;grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:20px 7px}.brand{margin:0 auto 26px;justify-content:center}.brand>span:last-child,.sidebar-label,.side-note{display:none}.brand-icon{font-size:39px}.chat>header{padding:14px 16px}.messages{padding:20px 14px}.welcome{margin-top:35px}.welcome h1{font-size:36px}.eyebrow{font-size:8px;letter-spacing:1px}.welcome p{font-size:13px}.suggestions{margin-top:20px;gap:8px}.suggestions button{padding:10px;font-size:11px}.composer{padding:12px 10px 5px}.composer-wrap>p{font-size:8px;padding:0 8px}.product-card{flex-basis:174px}.message{max-width:95%}.chat-row .delete-chat{display:block;font-size:16px;opacity:1}.chat-row button:first-child{font-size:9px}.sidebar>p{display:none}}
