:root{color-scheme:dark;--bg:#080e1b;--panel:#0c1424;--line:#202c40;--muted:#91a0b5;--text:#edf3f9;--mint:#9de3cc;--accent:#5ad4b5}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 10% 0%,#152c3438,transparent 50%),var(--bg);color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}button,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--mint);outline-offset:4px}[hidden]{display:none!important}.shell{max-width:1220px;margin:auto;padding:30px 40px 20px}.topbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 26px;gap:18px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}.brand-icon{width:46px;height:46px;border-radius:14px;background:#163c35;color:var(--mint);display:grid;place-items:center;border:1px solid #2c6755}.brand-icon svg{width:31px;height:31px}.brand strong{display:block;font-size:19px;font-weight:650;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:1px}.new-chat{display:flex;gap:8px;align-items:center;background:#121d2e;border:1px solid var(--line);border-radius:10px;color:#ccd7e7;padding:10px 14px;font-size:12px}.new-chat:hover{border-color:#617e87}.new-chat span{font-size:17px;line-height:1}.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.has-draft .workspace{grid-template-columns:minmax(0,1fr) 300px}.chat-panel{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:linear-gradient(150deg,#101a2c65,transparent 45%),#0b1322;display:flex;flex-direction:column;min-width:0;min-height:650px;height:min(76dvh,810px)}.panel-top{padding:14px 23px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #1a2638;font-size:11px;color:#bdcbdc;letter-spacing:.2px}.online-dot{width:6px;height:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 12px #9de3cc30}.powered{margin-left:auto;color:#6b8098;font-size:11px}.conversation{flex:1;overflow:auto;overscroll-behavior:contain;padding:0 26px;scroll-behavior:smooth}.welcome{max-width:740px;margin:0 auto;padding:35px 0 40px;text-align:center;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.welcome-art{position:relative;width:136px;height:129px;display:grid;place-items:center;margin-bottom:15px}.welcome-art svg{width:79px;height:95px;z-index:1;transform:rotate(-8deg)}.art-ring{position:absolute;width:116px;height:116px;border-radius:50%;background:radial-gradient(circle,#2c554b66,#16332f22);border:1px solid #30584860}.spark{position:absolute;color:var(--mint)}.spark-one{right:4px;top:19px;font-size:23px}.spark-two{left:4px;bottom:23px;font-size:18px;color:#d6b49b}.eyebrow{font-size:9px;letter-spacing:2px;color:#7ca99c;font-weight:650;margin:0 0 10px}.welcome h1{font-size:clamp(25px,3vw,36px);font-weight:600;letter-spacing:-1.2px;line-height:1.2;margin:0 0 14px}.intro{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 30px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.quick-actions button{position:relative;text-align:left;border:1px solid #273347;border-radius:13px;background:linear-gradient(120deg,#19243660,#121d2e40);padding:17px 14px 15px;color:var(--text);transition:border-color .18s,transform .18s}.quick-actions button:hover{border-color:#659d8e;transform:translateY(-2px)}.quick-icon{display:block;color:var(--mint);margin-bottom:13px;font-size:20px;line-height:1}.quick-actions strong{display:block;font-size:12px;font-weight:600;white-space:nowrap}.quick-actions small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.quick-arrow{position:absolute;right:13px;top:15px;color:#61768a}.composer-wrap{border-top:1px solid #1c2739;background:#0d1626;padding:17px 18px 12px}.composer{display:flex;align-items:flex-end;gap:10px;border:1px solid #2b394e;background:#131e30;border-radius:14px;padding:9px 9px 9px 15px;transition:border-color .2s}.composer:focus-within{border-color:#6ba593}.composer textarea{resize:none;min-height:39px;max-height:140px;flex:1;align-self:center;outline:none;border:0;background:transparent;color:var(--text);padding:10px 0;line-height:1.5;font-size:12px;min-width:0}.composer textarea::placeholder{color:#75869f}.composer button{border:0;border-radius:9px;background:var(--mint);color:#0b3529;height:39px;padding:0 13px;display:flex;align-items:center;gap:11px;font-size:12px;font-weight:650}.composer button:hover{background:#b6efdc}.composer button svg{width:18px;height:18px}.prototype-note{color:#74859a;font-size:10px;text-align:center;margin:10px 0 0}.prototype-note span{color:#91b7a9;margin-right:4px}.site-footer{display:flex;justify-content:space-between;gap:14px;color:#596d83;font-size:10px;margin-top:17px}.messages{padding:25px 0 4px;display:flex;flex-direction:column;gap:22px}.messages:empty{display:none}.message{display:flex;align-items:flex-start;gap:10px;max-width:94%;animation:appear .2s ease}.message.user{align-self:flex-end;flex-direction:row-reverse}.mini-avatar{width:29px;height:29px;border-radius:9px;flex-shrink:0;display:grid;place-items:center;background:#183c35;border:1px solid #2b564b;color:var(--mint);font-size:12px;font-weight:600}.user .mini-avatar{background:#263550;border-color:#3b4e6d;color:#bfcee3}.bubble{border:1px solid #25354b;border-radius:0 13px 13px 13px;background:#141f31;padding:13px 16px;line-height:1.8;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.user .bubble{border-radius:13px 0 13px 13px;background:#173c34;border-color:#2d5a4b;color:#e2f4ec}.trace{font-size:9px;color:#7b9c8f;margin-top:7px;white-space:normal}.thinking{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);padding:15px 0 24px}.dots{display:flex;gap:3px}.dots i{height:4px;width:4px;border-radius:50%;background:var(--mint);animation:pulse 1.2s infinite}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}.error{padding:10px 12px;border-radius:8px;border:1px solid #764f40;background:#3e2924;color:#efc5b3;font-size:12px;margin-bottom:12px}.draft-panel{border:1px solid var(--line);border-radius:20px;background:#101a2a;padding:23px 20px;align-self:start;max-height:810px;overflow:auto}.draft-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:4px;gap:4px}.draft-heading .eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:7px}.draft-heading h2{font-size:21px;letter-spacing:-.5px;margin:0;font-weight:600}.draft-tag{font-size:9px;background:#24352f;color:#b4d8c8;border:1px solid #3d584b;border-radius:20px;padding:4px 8px}.draft-item{padding:16px 0;border-bottom:1px solid var(--line)}.draft-item h3{font-size:12px;margin:0 0 6px;font-weight:600}.draft-item p{font-size:11px;color:var(--muted);margin:3px 0}.gift-label{display:inline-block;font-size:9px;color:var(--mint);margin-bottom:5px}.draft-totals{padding:16px 0}.total-row{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:7px 0}.total-row.total{font-size:15px;color:var(--text);padding-top:9px}.total-row.discount{color:var(--mint)}.pending{border:1px solid #514536;background:#30291f55;border-radius:10px;padding:12px}.pending h3{font-size:11px;color:#e7d1aa;margin:0 0 7px}.pending ul{padding-left:16px;margin:0;font-size:10px;color:#cabfa9;line-height:1.8}.draft-footnote{font-size:10px;line-height:1.7;color:#8090a5;margin:14px 0 19px}.review-draft{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:11px;border-radius:8px;background:#20382f;border:1px solid #3f6757;color:#b5dfcf;font-size:11px}.not-sent{text-align:center;color:#6d8195;font-size:9px;margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes pulse{50%{opacity:.25;transform:translateY(-2px)}}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1400px){.shell{padding-top:45px}.chat-panel{min-height:710px}}@media(max-width:1000px){.has-draft .workspace{grid-template-columns:minmax(0,1fr) 260px}.has-draft .quick-actions{grid-template-columns:1fr}.has-draft .quick-actions button{padding:11px}.has-draft .quick-icon{display:none}}@media(max-width:760px){.shell{padding:20px 16px 14px}.topbar{margin-bottom:18px}.brand strong{font-size:16px}.new-chat{font-size:10px;padding:9px 10px}.brand-icon{width:39px;height:39px;border-radius:12px}.brand small{font-size:10px}.has-draft .workspace{grid-template-columns:1fr}.chat-panel{min-height:570px;height:76dvh}.conversation{padding:0 17px}.welcome{padding:25px 0}.welcome h1{font-size:27px}.welcome-art{height:110px;margin-bottom:12px}.intro{font-size:12px;margin-bottom:23px}.quick-actions{gap:7px}.quick-actions button{padding:13px 9px}.quick-actions strong{font-size:10px;white-space:normal}.quick-actions small{font-size:9px}.quick-icon{font-size:17px}.quick-arrow{right:8px;top:12px}.composer-wrap{padding:12px}.composer{padding-left:11px}.composer button span{display:none}.composer button{padding:0 11px}.composer textarea{font-size:12px}.prototype-note{font-size:9px}.site-footer span:last-child{display:none}.draft-panel{max-height:none}.message{max-width:100%}.bubble{font-size:12px;padding:11px 12px}.has-draft .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mobile viewport layout: composer is outside the scrolling conversation. */
.mobile-order{display:none}
@media(max-width:760px){
  .composer-wrap,.panel-top{flex-shrink:0}
  .message>div{min-width:0}
  html,body{height:100%;min-height:0;overflow:hidden}
  .shell{position:fixed;top:var(--delivery-viewport-top,0px);left:0;right:0;
    width:100%;height:100vh;height:var(--delivery-viewport-height,100dvh);
    max-width:none;margin:0;display:flex;flex-direction:column;gap:10px;
    padding:calc(10px + env(safe-area-inset-top,0px)) 10px calc(8px + env(safe-area-inset-bottom,0px));overflow:hidden}
  .topbar{flex:0 0 auto;margin:0;gap:8px;min-width:0}
  .brand{min-width:0;gap:8px}
  .brand-icon{flex-shrink:0;width:36px;height:36px}
  .brand strong{font-size:15px;max-width:45vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand small{font-size:10px}
  .new-chat{min-height:44px;flex-shrink:0;font-size:11px;padding:8px 10px}
  .workspace,.has-draft .workspace{display:flex;flex-direction:column;flex:1 1 0;gap:8px;min-height:0;min-width:0}
  .chat-panel{flex:1 1 0;height:auto;min-height:0;border-radius:14px;width:100%}
  .panel-top{padding:10px 14px;font-size:10px}
  .conversation{flex:1 1 0;min-height:0;padding:0 13px;overflow:auto;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
  .welcome{padding:18px 0;justify-content:flex-start}
  .welcome-art{height:90px;width:110px;margin-bottom:8px;flex-shrink:0}
  .welcome-art svg{height:75px;width:65px}
  .art-ring{height:86px;width:86px}
  .welcome h1{font-size:26px;margin-bottom:10px}
  .eyebrow{margin-bottom:7px}
  .intro{font-size:12px;margin-bottom:17px}
  .quick-actions,.has-draft .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .quick-actions button{min-height:70px;padding:12px}
  .quick-actions strong{font-size:12px;white-space:normal}
  .quick-actions small{font-size:10px}
  .quick-icon{font-size:17px;margin-bottom:9px}
  .composer-wrap{padding:9px 10px 8px}
  .composer{gap:7px;padding:5px 6px 5px 11px;border-radius:12px}
  .composer textarea{font-size:16px;line-height:1.4;min-height:42px;max-height:96px;padding:9px 0}
  .composer button{height:44px;min-width:44px;padding:0 12px;flex-shrink:0;justify-content:center}
  .composer button span{display:none}
  .prototype-note{font-size:9px;line-height:1.4;margin-top:6px}
  .messages{gap:16px;padding:17px 0 8px}
  .message{max-width:100%;gap:7px}
  .mini-avatar{width:25px;height:25px;border-radius:8px;font-size:11px}
  .bubble{font-size:14px;line-height:1.65;padding:10px 12px}
  .error{font-size:12px;padding:7px 10px;margin-bottom:7px;max-height:72px;overflow:auto}
  .site-footer{display:none}
  .mobile-order{display:block;flex:0 0 auto;min-height:0;border:1px solid var(--line);border-radius:12px;background:#101a2a;overflow:hidden}
  .mobile-order summary{cursor:pointer;min-height:44px;padding:10px 13px;color:var(--mint);font-weight:600;font-size:13px;list-style:none;display:flex;align-items:center;gap:8px}
  .mobile-order summary::-webkit-details-marker{display:none}
  .mobile-order summary::after{content:'＋';margin-left:auto;font-size:18px;line-height:1}
  .mobile-order[open] summary::after{content:'−'}
  .mobile-order summary:focus-visible{outline:2px solid var(--mint);outline-offset:-3px}
  .mobile-order .mobile-order-total{color:var(--text);font-size:12px;font-weight:500}
  .mobile-order .draft-panel{max-height:32vh;max-height:min(260px,calc(var(--delivery-viewport-height,100dvh) * .32));overflow:auto;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px}
  .mobile-order .draft-heading{padding-bottom:10px}
  .mobile-order .draft-item{padding:10px 0}
  .mobile-order .draft-item h3{font-size:13px}
  .mobile-order .draft-item p{font-size:12px}
}
@media(max-width:760px) and (max-height:480px){
  .shell{gap:5px;padding-top:4px;padding-bottom:4px}
  .topbar .brand small,.prototype-note,.welcome-art,.welcome>.eyebrow{display:none}
  .panel-top{padding:6px 12px}
  .welcome{padding:10px 0}
  .welcome h1{font-size:22px}
  .intro{margin-bottom:10px}
}
