
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans","Microsoft YaHei",sans-serif;color:#18213b;background:#fafcff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 50% 36%,#edf3ff80 0%,#fafcff 55%);display:flex;flex-direction:column}button,input,textarea,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #92acff;outline-offset:3px}header{height:88px;display:flex;align-items:center;justify-content:space-between;width:min(1280px,100%);padding:0 42px;margin:auto auto 0;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand img{width:42px;height:42px;border-radius:50%;object-fit:cover}.brand-name{font-size:21px;font-weight:650;letter-spacing:.05em;color:#fff;background:#526be2;padding:5px 13px;border-radius:10px}.nav{display:flex;align-items:center;gap:22px}.nav a{font-size:14px;color:#64718d;text-decoration:none}.language{border:0;background:transparent;color:#56627c;height:44px;max-width:122px;font-size:14px}.login{background:white;border:1px solid #d9e1f3;color:#425cce;border-radius:10px;min-height:44px;padding:0 17px;font-size:14px}.preview-tag{position:fixed;bottom:16px;left:18px;color:#8893ac;font-size:11px;letter-spacing:.08em;pointer-events:none}main{width:min(840px,100%);padding:0 24px;margin:123px auto 0}.intro{text-align:center}.eyebrow{font-size:13px;color:#7384a8;letter-spacing:.06em;margin:0 0 19px}.intro h1{font-size:40px;font-weight:650;letter-spacing:-.035em;line-height:1.4;margin:0}.intro p.desc{font-size:15px;line-height:1.8;color:#78839d;margin:17px 0 37px}.composer{background:#fff;border:1px solid #dce4f4;border-radius:21px;padding:20px 20px 15px;box-shadow:0 8px 32px #354f9c05;transition:border-color .2s}.composer:focus-within{border-color:#8c9fe7;box-shadow:0 0 0 3px #5877ec0a}.composer textarea{display:block;width:100%;height:78px;line-height:26px;padding:0;border:0;resize:none;background:transparent;color:#283654;font-size:16px;outline:none}.composer textarea::placeholder{color:#98a2b8}.toolbar{display:flex;align-items:center;gap:12px;margin-top:13px}.request{display:flex;gap:7px;align-items:center;color:#64718c;font-size:13px;min-height:44px;border:0;background:transparent;padding:0 5px}.request svg{width:16px;height:16px}.toolbar-right{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0}.model{min-width:0;max-width:236px;height:44px;background:#f5f7fc;border:0;border-radius:9px;padding:0 9px;font-size:12px;color:#6e7a94}.send{border:0;background:#5472e6;border-radius:10px;height:44px;min-width:86px;padding:0 16px;color:white;display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px}.send svg{width:16px;height:16px}.hint{text-align:right;color:#a3adc1;font-size:11px;margin:10px 6px 23px}.examples{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.example{border:1px solid #e3e9f5;background:#fff9;border-radius:12px;min-height:71px;text-align:left;padding:13px 15px;color:#52617d;font-size:13px;line-height:1.65;display:flex;align-items:center;gap:12px}.example .icon{font-size:15px;color:#899ac3;flex-shrink:0}.example:hover{border-color:#b7c6ee;background:white}.account-note{color:#9aa6bf;font-size:12px;text-align:center;margin:25px 0 0}footer{margin:auto auto 30px;text-align:center;color:#98a3ba;font-size:12px;padding-top:74px;line-height:2}footer a{color:#7888ac;text-decoration:none;margin-left:14px}.toast{color:#657799;font-size:12px;min-height:20px;text-align:center;margin-top:12px}.overlay{position:fixed;inset:0;background:#15254735;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}.overlay[hidden]{display:none}.dialog{width:424px;border:1px solid #e4e9f4;background:#fff;border-radius:22px;padding:31px;box-shadow:0 26px 88px #0b215229;position:relative}.close{position:absolute;right:15px;top:13px;width:40px;height:40px;border:0;background:transparent;color:#99a4bb;font-size:24px}.dialog-brand{display:flex;align-items:center;gap:10px;font-size:13px;color:#7282a5;margin:0 0 27px}.dialog-brand img{width:34px;height:34px;border-radius:50%}.dialog h2{font-size:25px;font-weight:650;letter-spacing:-.02em;margin:0 0 11px}.dialog-intro{color:#8793ab;font-size:13px;line-height:1.85;margin:0 0 24px}.field-label{display:block;font-size:13px;color:#485877;margin-bottom:9px}.email,.code{border:1px solid #dce4f2;border-radius:10px;height:48px;width:100%;padding:0 13px;font-size:14px;color:#52617d;background:#fcfdff}.email::placeholder,.code::placeholder{color:#a3aec2}.code-row{display:flex;gap:10px;margin-top:19px}.code-field{flex:1;min-width:0}.code-action{min-width:115px;background:#f2f5ff;color:#5872d4;border:1px solid #e1e8fd;border-radius:10px;padding:0 10px;height:48px;align-self:flex-end;font-size:12px}.auth-submit{background:#5472e6;border:0;color:white;border-radius:10px;width:100%;min-height:48px;margin-top:25px;font-size:14px}.privacy{font-size:11px;color:#a0abc1;line-height:1.8;text-align:center;margin:18px 0 0}.auth-feedback{font-size:12px;line-height:1.7;color:#687897;min-height:0;margin:12px 0 0}.auth-feedback:empty{display:none}
@media(max-width:600px){header{height:74px;padding:0 19px;gap:8px}.brand{gap:7px}.brand img{width:31px;height:31px}.brand-name{font-size:17px;padding:4px 9px;border-radius:8px}.nav{gap:8px}.nav .official{display:none}.language{font-size:12px;max-width:91px}.login{font-size:12px;padding:0 10px}.intro h1{font-size:27px;letter-spacing:-.035em}.eyebrow{font-size:11px;margin-bottom:15px}.intro p.desc{font-size:13px;line-height:1.85;max-width:290px;margin:15px auto 29px}main{padding:0 19px;margin-top:78px}.composer{border-radius:17px;padding:17px 14px 12px}.composer textarea{height:78px;font-size:16px}.toolbar{gap:5px;margin-top:8px}.request{font-size:12px;padding:0;gap:5px}.toolbar-right{gap:7px}.model{max-width:145px;font-size:10px;padding:0 4px;height:44px}.send{min-width:44px;width:44px;padding:0}.send .send-text{display:none}.examples{grid-template-columns:1fr;gap:9px}.example{min-height:46px;font-size:12px;padding:10px 13px;gap:10px}.hint{font-size:10px;margin:9px 0 19px}.account-note{font-size:11px;margin-top:20px}footer{font-size:10px;max-width:325px;margin:0 auto 24px;padding-top:48px}.preview-tag{display:none}.dialog{padding:27px 23px;border-radius:19px}.dialog h2{font-size:23px}.dialog-intro{font-size:12px}.code-action{min-width:106px;font-size:11px}.dialog-brand{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Sample history only; no account or conversation is persisted by this preview. */
body{display:block}.workspace{margin-left:260px;min-height:100svh;display:flex;flex-direction:column}header{margin:0 auto;height:88px;flex-shrink:0;padding:0 38px}header>.brand{display:none}.nav{margin-left:auto}main{margin-top:112px}.history-sidebar{position:fixed;inset:0 auto 0 0;width:260px;display:flex;flex-direction:column;padding:24px 17px 18px;background:#f2f5fc;border-right:1px solid #e8edf7;z-index:3}.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:27px}.sidebar-head .brand{gap:8px}.sidebar-head .brand img{width:35px;height:35px}.sidebar-head .brand-name{font-size:19px}.icon-button{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;color:#8996b3;border:0;border-radius:9px;font-size:20px;flex-shrink:0}.icon-button:hover{background:#e8edf8}.new-conversation{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:1px solid #dce4f7;border-radius:11px;background:#e8eefe;color:#526cce;font-size:13px;width:100%;text-align:left}.new-conversation .plus{font-size:21px;font-weight:300}.history-scroll{overflow:auto;flex:1;min-height:0;padding-top:25px}.history-title{font-size:12px;color:#6f7f9f;font-weight:550;margin:0 12px 17px}.history-group{font-size:11px;color:#96a2b9;margin:22px 12px 8px}.history-group:first-child{margin-top:0}.history-item{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;width:100%;border:0;border-radius:9px;background:transparent;color:#63718d;font-size:13px;text-align:left}.history-item:hover{background:#e9eef9}.history-item[aria-current=true]{background:#e3eafb;color:#4560c3}.history-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-bubble{width:14px;height:14px;border:1.25px solid #9aa7c4;border-radius:4px;position:relative;flex-shrink:0}.history-bubble:after{content:'';position:absolute;left:2px;bottom:-3px;width:4px;height:4px;background:#f2f5fc;border-left:1px solid #9aa7c4;transform:skewY(-38deg)}.history-empty{font-size:12px;line-height:1.9;color:#8c99b1;padding:10px 12px}.history-empty button{display:block;background:white;border:1px solid #dce4f4;border-radius:9px;color:#526cce;min-height:44px;padding:0 16px;margin-top:16px}.sidebar-foot{border-top:1px solid #e1e7f3;margin-top:18px;padding:18px 10px 0;display:flex;align-items:center;gap:10px;color:#7c8bab;font-size:12px}.account-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e1e8f9;color:#7088c1;font-size:12px}.sidebar-foot small{display:block;font-size:10px;color:#9ba7bc;margin-top:5px}.preview-tag{left:auto;right:20px;bottom:14px}.preview-mode{font:inherit;color:#65769b;border:1px solid #dce5f7;border-radius:8px;background:#ffffffd9;min-height:32px;padding:0 10px;font-size:11px;pointer-events:auto;margin-left:12px}.history-toggle{display:none}.drawer-mask{display:none}#historyConversation[hidden],#homeContent[hidden]{display:none}.conversation-heading{font-size:15px;font-weight:550;color:#52617e;margin:0 0 26px;line-height:1.7}.sample-label{font-weight:400;color:#a2aec4;font-size:11px;margin-left:12px}.sample-user{max-width:80%;margin:0 0 32px auto;background:#eaf0ff;border-radius:16px 16px 4px 16px;padding:17px 21px;font-size:15px;line-height:1.8;color:#415677}.sample-answer{padding:0 14px 30px;font-size:15px;line-height:1.9;color:#586884}.sample-answer strong{color:#364b6e}.sample-answer p{margin:0 0 18px}.sample-answer .answer-brand{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:21px;color:#7082a6}.answer-brand img{width:30px;height:30px;border-radius:50%}body.history-selected main{margin-top:50px}body.history-selected .examples,body.history-selected .account-note,body.history-selected footer{display:none}.sidebar-collapsed .workspace{margin-left:0}.sidebar-collapsed .history-sidebar{display:none}.sidebar-collapsed .history-toggle{display:flex}.workspace footer{padding-bottom:15px}
@media(max-width:1100px) and (min-width:701px){.workspace{margin-left:234px}.history-sidebar{width:234px}main{padding:0 30px}.intro h1{font-size:33px}.examples{gap:8px}.example{font-size:12px;padding:12px 10px}.toolbar{gap:6px}.model{max-width:220px}.sidebar-collapsed .workspace{margin-left:0}}
@media(max-width:700px){.workspace{margin-left:0}.history-sidebar{display:none;width:min(280px,calc(100vw - 48px));z-index:12;padding-top:22px}.history-toggle{display:flex}header{height:74px;padding:0 15px;gap:5px}header>.brand{display:flex;gap:5px}.brand{gap:5px}.brand img{display:none}.brand-name{font-size:16px;padding:4px 8px}.nav{gap:4px}.nav .official{display:none}.language{max-width:84px;font-size:11px}.login{font-size:11px;padding:0 9px}.history-toggle{width:36px}.drawer-open .history-sidebar{display:flex}.drawer-open .drawer-mask{display:block;position:fixed;inset:0;background:#172c4e40;z-index:11}.sidebar-head .brand img{display:block}.sidebar-head .brand-name{font-size:19px}.preview-tag{position:static;display:block;text-align:center;margin:0 0 12px;font-size:9px}.workspace footer{padding-bottom:0}main{margin-top:70px}body.history-selected main{margin-top:28px}.sample-user{max-width:95%;font-size:14px;padding:15px}.sample-answer{padding:0 3px 20px;font-size:14px}.conversation-heading{font-size:14px}.sample-label{display:block;margin-left:0}.drawer-open{overflow:hidden}}

/* Layout overrides preserve the existing answer, table, progress and form components. */
[hidden]{display:none!important}body{height:100dvh;overflow:hidden;display:block;color:#18213b;background:#fafcff}.workspace{height:100dvh;min-height:0;overflow:auto}.chat-container{width:min(840px,100%);max-width:none;height:auto;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;display:block;margin:100px auto 0;padding:0 24px;flex-shrink:0}.chat-messages{padding:0;overflow:auto;min-height:0}.chat-input-container{border:0;background:transparent;padding:0}.chat-composer{padding:16px 16px 12px;border:0;border-radius:18px;background:#f0f3f8;box-shadow:none}.chat-composer:focus-within{background:#eaf0f9;box-shadow:none}.chat-input{display:block;padding:0;height:78px!important;min-height:78px;max-height:78px;line-height:26px;border:0;background:transparent;resize:none;font-size:16px}.chat-toolbar{margin-top:8px;padding:0;gap:10px}.submit-btn{min-height:44px;padding:0 5px;font-size:13px;background:transparent;color:#64718c;border:0}.model-picker{margin-left:auto}.model-picker summary{height:44px;min-width:0;font-size:12px;padding:0 10px;background:transparent;color:#64718c;border-radius:9px}.model-menu{z-index:6;max-width:min(290px,85vw)}.send-button{height:44px;min-width:86px;font-size:14px;background:#5472e6;border-radius:10px;padding:0 16px}.send-button:disabled{opacity:.55}.input-hint{font-size:11px;margin:10px 6px 23px;color:#98a3ba}.history-more,.older-messages{min-height:44px;border:0;background:transparent;color:#526cce;font-size:12px;padding:8px}.sidebar-foot{min-width:0}.sidebar-foot #sidebarAccount{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav{min-width:0}.login{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-active .chat-container{display:flex;flex-direction:column;flex:1;margin:0 auto;overflow:hidden;width:min(880px,100%);padding-top:12px}.chat-active .chat-messages{flex:1;padding:0 0 20px;scrollbar-gutter:auto}.chat-active .chat-input-container{flex-shrink:0}.chat-active header{flex-shrink:0;height:72px}.chat-active .toast{min-height:0;margin:0 0 8px}.chat-active .input-hint{margin:6px 4px 12px;padding:0}.message.user .message-content{background:#eaf0ff;color:#415677;box-shadow:none}.message.bot .message-content{box-shadow:none;background:transparent}.answer-shell{width:100%;background:transparent;border:0;border-radius:0;box-shadow:none}.work-progress{background:#f6f8fc;border:1px solid #e8edf4;border-radius:12px}.message-content{font-size:16px;line-height:1.85}.message-content p{margin:16px 0}.form-notice{font-size:13px;color:#64718d;margin:12px 0;line-height:1.7}.overlay,.modal-overlay{z-index:30}.modal{max-height:90dvh}.dialog{max-height:90dvh;overflow:auto}.sidebar-collapsed .workspace{margin-left:0}.history-scroll{overscroll-behavior:contain}.history-empty{line-height:1.9}.auth-submit:disabled,.code-action:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){.chat-container{padding:0 19px;margin-top:64px}.chat-active .chat-container{padding:0 12px}.chat-composer{padding:15px 12px 12px;border-radius:17px}.chat-toolbar{gap:5px}.submit-btn{font-size:12px;gap:4px}.model-picker summary{font-size:10px;max-width:145px;padding:0 5px}.send-button{min-width:44px;padding:0 9px;gap:4px}.send-button [data-i18n=send]{display:none}.nav{gap:4px}.login{max-width:105px;padding:0 8px;font-size:11px}.message-content{font-size:15px}.message.bot>.message-content{padding:14px 4px}.history-selected main{margin:0}.drawer-open .history-sidebar{display:flex}.drawer-open .drawer-mask{display:block}.workspace{margin-left:0}.dialog{padding:27px 20px}.intro h1{font-size:27px}footer{margin-top:auto}.chat-active .chat-messages{padding:12px 0 20px;scrollbar-gutter:auto}.chat-active .answer-body{padding:18px 14px}.chat-active .message-content{max-width:100%}.chat-active .work-progress{padding:12px}.chat-active .chat-container .toast{font-size:11px}}

.chat-messages{background:transparent}.message{animation:none}.chat-active .chat-container{border-radius:0}

/* Input focus uses its caret and surface color, without drawing a frame. */
.chat-input:focus-visible{outline:none;box-shadow:none;border-radius:0;caret-color:#425fd0}
.chat-composer{position:relative}
.chat-input::placeholder{color:#8a94a8}
.chat-composer:hover:not(:focus-within){background:#edf1f7}
.model-picker summary:hover,.submit-btn:hover{background:#f3f5fa;color:#425c9a}
.message{margin-bottom:28px}
.message.user .message-content{max-width:85%;border-radius:16px;padding:12px 18px}
.answer-shell .final-reply{margin:18px 0 0;padding:0;border:0;color:#303a4c}
.message-content h2,.message-content h3{color:#24324a}
.followups{margin-top:24px;padding-top:16px;border-color:#e7ebf2}
.followup-heading{color:#8590a3;font-size:12px;margin-bottom:8px}
.followup-btn{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;margin-top:4px;min-height:44px;border:0;background:transparent;color:#526581;border-radius:8px;font-size:14px;font-weight:400}
.followup-btn::after{content:'↗';flex-shrink:0;color:#8b9ab2}
.followup-btn:hover{background:#eef2f9;color:#365bb1}
.workspace,.chat-messages,.history-scroll,.chat-input{scrollbar-width:none}
.workspace::-webkit-scrollbar,.chat-messages::-webkit-scrollbar,.history-scroll::-webkit-scrollbar,.chat-input::-webkit-scrollbar{display:none}
@media(max-width:700px){
 .chat-active header{height:64px}
 .answer-shell .final-reply{margin:16px 0 0;padding:0}
 .chat-composer{padding:14px 12px 10px}
 .chat-toolbar{flex-wrap:nowrap}
 .chat-toolbar>.submit-btn{flex-basis:auto;flex-shrink:0}
 .chat-toolbar>.model-picker{flex:1;min-width:0;position:static}
 .model-menu{left:auto;right:12px;bottom:calc(100% + 8px);width:min(280px,calc(100vw - 48px))}
 .followup-btn{font-size:13px;padding:10px 8px}
 .message.user .message-content{max-width:92%;padding:10px 14px}
}


/* Keep the supplied portrait proportional in every avatar slot. */
.dialog-brand img,.answer-brand img{object-fit:cover}

/* Compact head-and-shoulders portrait in the welcome area only. */
.sidebar-head{justify-content:flex-end;min-height:44px;margin-bottom:24px}
body:not(.chat-active) .chat-container{width:min(808px,100%);margin-top:62px}
.welcome-portrait{width:104px;height:104px;margin:0 auto 25px;overflow:hidden;border-radius:50%;background:#d5e6f8}
.welcome-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}
.intro .eyebrow{font-size:12px;letter-spacing:.06em;margin:0 0 12px;color:#8593ab}
.intro h1{font-size:34px;font-weight:650;letter-spacing:-.7px;line-height:1.4;margin:0;text-wrap:balance}
.welcome-name{color:#5268cb}
.intro p.desc{font-size:14px;font-weight:500;line-height:1.7;letter-spacing:.5px;margin:14px auto 29px;color:#8593ab}
.example{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:17px 16px;min-height:101px;border-radius:14px}
.example-category{font-size:12px;color:#8796b2}
@media(max-width:700px){
 body:not(.chat-active) .chat-container{margin-top:20px}
 .welcome-portrait{width:88px;height:88px;margin-bottom:20px}
 .intro h1{font-size:28px}
 .intro p.desc{font-size:13px;margin:12px auto 25px;max-width:100%}
 .example{min-height:0;display:block;padding:14px}
 .example-category{display:block;margin-bottom:6px}
}

/* One compact assistant identity for live, restored and error replies. */
.message.bot{flex-direction:column;align-items:stretch}
.reply-identity{display:flex;align-items:center;gap:9px;margin:0 0 12px;color:#596b87;font-size:13px;font-weight:600;line-height:32px}
.reply-portrait{position:relative;width:32px;height:32px;flex:0 0 32px;overflow:hidden;border-radius:50%;background:#d5e6f8}
.reply-portrait img{position:absolute;display:block;width:160%;height:160%;max-width:none;left:-30%;top:-10%;object-fit:cover}

/* Keep send right-aligned when the model picker is hidden. */
.chat-toolbar > .send-button{margin-left:auto}
