*{box-sizing:border-box} :root{color-scheme:dark;--yellow:#fff01a}body{margin:0;background:#151515;color:#f6f5ed;font:16px/1.5 Arial,sans-serif}.app{max-width:720px;margin:auto}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}[hidden]{display:none!important}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:16px 24px}.brand{font-size:24px;font-weight:900;letter-spacing:-1px;text-decoration:none;color:white;line-height:1}.brand span{color:var(--yellow)}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:7px;font-weight:400}#reset{border:1px solid #444;background:transparent;color:#ccc;border-radius:20px;padding:7px 13px;font-size:12px}.hero{height:clamp(210px,35dvh,350px);position:relative;transition:height .45s ease;background:radial-gradient(ellipse at 50% 85%,#39392255,transparent 65%)}.avatar{height:100%;text-align:center;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom;animation:breathe 6s ease-in-out infinite}.compact{display:none}#welcome{text-align:center;padding:10px 24px 24px}.eyebrow{color:var(--yellow);font-size:10px;letter-spacing:2px}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin:15px 0}h1 span{color:#c6c6bc;font-weight:400}#welcome>p:not(.eyebrow){color:#aaa99e;font-size:14px}.choose{margin-top:24px}.languages{display:flex;gap:12px;max-width:460px;margin:16px auto}.languages button{flex:1;text-align:left;background:var(--yellow);border:0;color:#151515;font-weight:bold;border-radius:16px;padding:18px}.languages span{float:right}#welcomeNote{text-align:center;color:#858579;font-size:11px}.chat-active{height:100dvh;overflow:hidden}.chat-active .app{height:100%;display:flex;flex-direction:column}.chat-active header{height:64px;flex-shrink:0}.chat-active .hero{height:132px;flex-shrink:0;border-bottom:1px solid #333;display:flex;align-items:center;justify-content:center;gap:14px;background:linear-gradient(#151515,#202019)}.chat-active .avatar{width:100px}.chat-active .avatar img{object-fit:contain}.chat-active .compact{display:block;font-size:13px;color:#d1d1c4}.online{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--yellow);margin-right:5px}#conversation{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 8px}#chat{display:flex;flex-direction:column;gap:16px}.message{padding:16px 18px;border-radius:20px;font-size:15px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}.bot{background:#242424;margin-right:15px}.user{background:var(--yellow);color:#151515;align-self:flex-end;margin-left:30px}footer{padding:8px 20px max(12px,env(safe-area-inset-bottom));flex-shrink:0;background:#151515}.tools{display:flex;align-items:center;gap:12px;min-height:30px}.tools button{border:0;background:none;color:#aaa;font-size:20px}#status{font-size:12px;color:#bcbcae}#form{display:flex;border:1px solid #49493f;border-radius:32px;padding:6px;background:#242424;gap:3px}input{min-width:0;flex:1;padding:9px 4px;border:0;background:none;color:white;font-size:16px}#form button{border:0;border-radius:50%;background:none;color:var(--yellow);width:44px;height:44px;flex-shrink:0;font-size:25px}#form .send{background:var(--yellow);color:#151515}button:disabled{opacity:.4;cursor:default}#notice{font-size:10px;line-height:1.4;color:#96968b;text-align:center;margin:8px 0 0}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{border:1px solid #393930;background:#22231f;border-radius:16px;overflow:hidden;min-width:0}.photo{height:160px;background:#f7f7f2;display:flex;align-items:center;justify-content:center;color:#747467;font-size:12px;text-align:center;padding:12px}.photo img{width:100%;height:100%;object-fit:contain}.details{padding:13px}.details h3{font-size:13px;line-height:1.4;margin:0 0 10px;font-weight:500;overflow-wrap:anywhere}.price{font-size:19px;color:var(--yellow);font-weight:700}.stock,.source,.catalog-time{font-size:10px;color:#a5a69a}.source{display:block;margin-top:8px}.catalog-time{margin-top:-8px}.suggestions{display:flex;gap:8px;flex-wrap:wrap}.suggestions button{background:none;border:1px solid #555544;color:#dfdfcf;border-radius:20px;padding:9px 12px;font-size:12px}@keyframes breathe{50%{transform:translateY(-2px)}}@media(max-height:650px){.chat-active .hero{height:90px}.chat-active header{height:52px}}@media(min-width:640px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.photo{height:200px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* v4: stable reading position, compact expandable product cards. */
#chat{position:relative;overflow-anchor:none}.turn{display:flex;flex-direction:column;gap:16px;flex-shrink:0}.turn .message{flex-shrink:0}.typing:empty:after{content:'•••';color:var(--yellow);letter-spacing:4px}.typing:not(:empty):after{content:'▍';color:var(--yellow)}.photo{height:106px;padding:9px}.photo img{object-fit:contain;object-position:center}.product-toggle{display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:left}.product .details{padding:10px}.details h3{font-size:12px;margin-bottom:8px}.price{font-size:17px}.expand-hint{display:block;font-size:10px;color:var(--yellow);margin-top:9px}.product-expanded{padding:0 10px 12px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;border-top:1px solid #3b3c32}.product-expanded h4{margin:12px 0 4px;font-size:12px}.product-expanded p{margin:0;white-space:pre-line}.more{border:1px solid #555544;border-radius:22px;background:#25251f;color:var(--yellow);padding:11px 18px;align-self:center}.products{align-items:start}.recording{background:#a42323!important;color:white!important;box-shadow:0 0 0 3px #a4232333}#mic svg{display:block;margin:auto;pointer-events:none}#status{line-height:1.4}.tools{padding-bottom:5px}#sound{flex-shrink:0}#conversation{overflow-anchor:none;scroll-behavior:auto}@media(min-width:640px){.photo{height:130px}}
/* v5 voice controls, adjacent to send; grow the text field for live dictation. */
textarea#question{font:16px/1.4 Arial,sans-serif;min-width:0;flex:1;resize:none;padding:10px 6px;border:0;color:#fff;background:transparent;min-height:44px;max-height:120px;overflow-y:auto;align-self:center}textarea#question:focus{outline:none}#form{align-items:flex-end}#mic,#send,#voiceCancel{flex-shrink:0}#voiceCancel{font-size:27px;width:32px;color:#ccc}#mic{width:38px}#form:focus-within{outline:1px solid var(--yellow)}.field-source{font-size:10px;display:block;color:#b6b69b;margin:4px 0 10px}.formula-note{color:#c9c9b3;font-size:11px;border-bottom:1px solid #444;padding-bottom:8px}
/* v6: the small consultant sits in the header, outside the scrolling messages. */
.chat-active .hero{position:absolute;top:5px;left:50%;transform:translateX(-50%);width:60px;height:67px;background:transparent;border:0;pointer-events:none;z-index:2}.chat-active .avatar{width:60px}.chat-active header{position:relative;height:78px;flex-shrink:0;background:transparent}.chat-active .app{position:relative}.chat-active .brand{font-size:22px}.chat-active #reset{font-size:11px;padding:7px 9px}.release-tag{position:absolute;right:24px;top:61px;font-size:9px;color:#888}.compact{display:none!important}#sound{display:flex;align-items:center;justify-content:center;width:36px;height:32px}#sound[aria-pressed=true]{color:var(--yellow)}.photo-note{font-size:10px;line-height:1.4;color:#c3bf9e;padding:0 10px 8px}.photo-note:empty{display:none}.flavors{padding-left:16px;font-size:11px}.variant-label{display:block;font-size:11px;margin:10px 0}.variant-select{width:100%;max-width:100%;font:inherit;color:#eee;background:#303128;border:1px solid #666;border-radius:6px;padding:8px;margin-top:5px}.flavor-count{font-size:11px;color:#e2dfad;margin-top:5px}@media(max-width:350px){.chat-active .brand{font-size:18px}.chat-active .hero{left:48%;width:45px}.chat-active .avatar{width:45px}.chat-active #reset{font-size:10px}}
