/* Softer visual layer; the existing demo interaction contract is unchanged. */
:root{--ink:#393e63;--muted:#74788f;--lavender:#f3f1fa;--coral:#ed3b30}
body{font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;background:#fff;color:var(--ink);-webkit-font-smoothing:antialiased}
button{border-radius:16px;transition:background .18s,box-shadow .18s,border-color .18s}
.primary{background:var(--coral);border-color:var(--coral);box-shadow:0 5px 16px #ed3b3010;font-weight:600}
.primary:hover{background:#d93228;box-shadow:0 7px 20px #ed3b301c}
.sidebar{inset:16px auto 16px 16px;width:242px;border:0;border-radius:28px;background:#f7f6fb;padding:29px 23px}
.sidebar .new-chat{border-radius:18px;margin-top:3px;padding:14px 18px}
.side-title{letter-spacing:1px;color:#777b91;margin-top:36px}
.side-note{margin-top:52px}.side-note h2{font-size:22px;line-height:1.55;letter-spacing:-.5px}.side-note p{color:var(--muted);line-height:1.9}
.leaf{display:inline-flex;justify-content:center;align-items:center;width:55px;height:55px;border-radius:22px;background:#fff0ed;color:#ef8b80;font-size:32px}
.side-bottom p{color:#7a7e92}.side-bottom{color:#676d85}
main{margin-left:274px;background:radial-gradient(ellipse at 60% 35%,#fcfafc 0,white 70%)}
header{background:transparent;border:0;padding:18px 34px;height:84px}.identity img{background:transparent;object-fit:contain}.identity span{color:#767b93}.identity strong{font-weight:600}.preview{background:#f6f5fa;border:0;color:#757991}
.workspace{width:min(100% - 64px,850px)}
.role-bar{margin-top:18px;color:#74788f;gap:15px}.roles{border-radius:30px;background:#f3f1f8;padding:5px}.roles button{border-radius:24px;font-size:13px;padding:8px 20px}.roles button[aria-pressed=true]{box-shadow:0 3px 12px #4a436b09;color:#de392e}
#welcome{padding:24px 0 28px}.portrait{width:108px;height:122px;background:transparent;box-shadow:none;margin-bottom:12px}.portrait img{object-fit:contain;mix-blend-mode:normal;border-radius:0}.portrait span{display:none}
.eyebrow{letter-spacing:1.2px;color:#d95148;font-size:11px}h1{font-size:40px;line-height:1.25;font-weight:600;letter-spacing:-1.4px;margin:14px 0}.intro{color:#73778f;font-size:16px;line-height:1.8;margin-bottom:0}
.suggestions{gap:14px;margin-top:28px}.suggestions button{border-radius:22px;background:var(--lavender);border:1px solid transparent;padding:20px;box-shadow:none;min-height:116px}.suggestions button:hover{background:#eeebf7;border-color:#e2dcef;box-shadow:0 8px 24px #65577d08}.suggestions span{background:#ffffffa6;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:#ce6157;font-size:17px}.suggestions b{font-size:14px;font-weight:500;line-height:1.6;margin-top:9px}
#composer{border-radius:26px;border-color:#eeebf5;padding:20px 22px 15px;box-shadow:0 10px 42px #393e6307;background:#fff}.composer-bottom button{border-radius:14px;padding:11px 25px}.composer-bottom span{color:#7c8094}textarea{font-size:15px;resize:none}textarea::placeholder{color:#85899d}.disclaimer{color:#7d8298;font-size:10px;margin:14px 0 18px}
footer{border:0;color:#81869b;padding:14px 34px}.user-message{background:#f9eeec;border-radius:24px 24px 9px 24px;padding:16px 22px}.answer{gap:12px}.answer-content{padding:20px 24px;background:var(--lavender);border-radius:9px 25px 25px 25px}.answer>img{object-fit:contain;background:white;width:39px;height:46px}.answer h2{margin:0 0 7px;font-weight:600}.answer p{line-height:1.9;font-size:15px}.answer small{color:#767b94}.citation{border-radius:14px;background:#ffffffd9;border-color:#e7e2f1;padding:12px 16px;line-height:1.5;text-align:left}.feedback{color:#73788e}.feedback:hover{background:transparent;color:#ce3a30}
dialog{border-radius:30px;border-color:#f0edf5;padding:30px;box-shadow:0 24px 100px #35324e26}.source-body{border-radius:20px;background:var(--lavender)}.source-note,.source-meta{color:#747990}.dialog-head{color:#747990}.source-icon{background:#fff1ed;border-radius:18px;width:56px;text-align:center}#toast{border-radius:18px;max-width:calc(100vw - 32px);line-height:1.6}
@media(min-height:950px){#welcome{padding-top:44px}}
@media(max-width:1100px){.sidebar{width:214px;padding:28px 20px}.brand img{width:174px;max-width:100%}main{margin-left:246px}.workspace{width:calc(100% - 48px)}h1{font-size:35px}.suggestions button{padding:16px}}
@media(max-width:760px){main{margin:0}header{height:76px;padding:14px 18px}.workspace{width:calc(100% - 36px)}.mobile-new{border-radius:14px}.role-bar{margin-top:14px;gap:9px}#welcome{padding:23px 0 25px}.portrait{width:84px;height:100px;margin-bottom:8px}h1{font-size:31px;line-height:1.3;letter-spacing:-1px}.intro{font-size:14px}.suggestions{gap:10px;margin-top:23px}.suggestions button{border-radius:20px;padding:14px 17px;min-height:64px;gap:13px}.suggestions b{margin:0;font-size:13px}.suggestions span{flex-shrink:0}.composer-wrap{background:#fffffff2;backdrop-filter:blur(12px);padding-top:10px}#composer{padding:17px 18px 12px;border-radius:23px}.answer-content{padding:17px;border-radius:8px 22px 22px 22px}.answer>img{width:28px;height:36px}.answer{gap:8px}.answer p{font-size:14px}.preview{white-space:nowrap;font-size:9px}.identity span{font-size:9px}.identity{gap:8px}footer{padding:12px 18px}.disclaimer{font-size:9px}}
@media(max-width:760px){.composer-wrap{position:static}.suggestions{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){button{transition:none}*{scroll-behavior:auto!important}}

/* Keep the conversation moving, without moving the composer or stealing scroll. */
body{overflow:hidden}main{height:100dvh;min-height:0}header,footer{flex-shrink:0}
.workspace{min-height:0;overflow:hidden;margin:0 auto;position:relative}
.role-bar{flex-shrink:0}.conversation-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-anchor:none;padding:0 3px}
#messages{padding:24px 0}.answer-content{min-width:0;max-width:100%}.answer p,.user-message{overflow-wrap:anywhere}
.composer-wrap{flex-shrink:0;position:relative;margin-top:0;padding-top:12px}
#composer:focus-within{border-color:#c9c6df;box-shadow:0 0 0 3px #f4f2fa}
#question:focus,#question:focus-visible{outline:none;box-shadow:none;border:0}
#question{display:block;resize:none;overflow-y:auto;max-height:144px}
.latest-message{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:white;border:1px solid #e8e5ef;border-radius:24px;padding:9px 18px;box-shadow:0 4px 18px #393e6312;z-index:2;font-size:13px;white-space:nowrap}
[hidden]{display:none!important}.thinking{color:#787a94}.thinking:after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff493f;margin-left:10px;animation:thinking-pulse 1.2s ease-in-out infinite}
@keyframes thinking-pulse{50%{opacity:.3;transform:scale(.75)}}
@media(max-width:760px){footer{display:none}.composer-wrap{padding-bottom:env(safe-area-inset-bottom,0px)}.role-bar{margin-bottom:8px}.conversation-scroll{padding:0 2px}}
@media(prefers-reduced-motion:reduce){.thinking:after{animation:none}}
.chat-heading{flex-shrink:0;text-align:center;padding:8px 0 14px;border-bottom:1px solid #eeebf5}
.chat-heading h1{font-size:25px;line-height:1.3;letter-spacing:-.6px;margin:0}
.answer>.answer-avatar{flex:0 0 36px;width:36px;height:44px;object-fit:contain;background:transparent;border-radius:0;margin-top:4px}
.answer-content{flex:1}
@media(max-width:760px){.chat-heading{padding:5px 0 12px}.chat-heading h1{font-size:20px}.answer>.answer-avatar{flex-basis:28px;width:28px;height:36px}}
