:root{background:#f5f2e9;color:#303b30}body{background:radial-gradient(ellipse at 70% 40%,#e5e8dd55,transparent 65%),#f5f2e9}main{max-width:960px}header{border-color:#d8dbce;padding-top:28px}.brand{display:flex;gap:13px;align-items:center}.brand span{font-size:12px;letter-spacing:2px;color:#78816c}.brand-mark{font-style:normal;font-family:"KaiTi","SimSun",serif;display:grid;place-items:center;width:36px;height:40px;background:#a54a3b;color:#fff4df;box-shadow:inset 0 0 0 3px #f3ead4;border:1px solid #873c32;font-size:26px;font-weight:400;transform:rotate(-3deg)}#account-button{border-color:#b7bfae;border-radius:2px}h1,dialog h2{font-family:"Songti SC","STSong","SimSun",serif;font-weight:500;letter-spacing:2px}#welcome{position:relative;isolation:isolate;padding:70px 0;min-height:290px}#welcome:before{content:"";position:absolute;inset:0;background:url('/landing/mountains.5b2a0a7746eb.webp') right center/360px auto no-repeat;opacity:.12;z-index:-1;pointer-events:none}#welcome p{line-height:1.9;max-width:490px;margin:auto;color:#79836e;font-size:13px}.welcome-links{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;font-size:12px;margin-top:27px;color:#506646}.welcome-links a{text-decoration:underline;text-underline-offset:5px}.model-picker{margin-top:24px}.model-picker select{background:#fbf9ef;border-color:#c4cbb8;border-radius:3px;max-width:350px}#model-status{font-size:12px;color:#81634a;line-height:1.9;margin-top:12px}.toolbar{border-bottom:1px solid #e0e2d5}.toolbar a{color:#67775c}#chat-form{background:#fbf9f0;border-color:#cbd2bf;border-radius:4px}#send,.primary{background:#344d3a;border-radius:3px}textarea:disabled{opacity:.7}#notice{background:#f0ebdb;border-color:#ded2b5;border-radius:3px}.message.user{background:#e9ecdf;border-radius:4px}.message{border-color:#dde1d2}.message-name{color:#6e805f}.message-text{color:#364431}.options,dialog{background:#faf8ee;border-radius:4px}dialog{border-color:#c9d0bd}.composer-note,footer{color:#7e8972}.account button{color:#68795d}#identity{line-height:1.8}@media(max-width:620px){main{padding:0 21px}.brand{gap:9px;font-size:17px}.brand-mark{width:31px;height:34px;font-size:23px}.brand span{font-size:12px;letter-spacing:1px}.toolbar{gap:14px;font-size:12px;flex-wrap:wrap}#welcome{padding:55px 0;min-height:280px}h1{font-size:24px}.welcome-links{gap:18px;font-size:12px}.model-picker select{font-size:12px;max-width:none}.account button{font-size:12px}#model-status{font-size:12px}}
details>summary{color:#596350}
.chat-recharge{display:inline-flex;align-items:center;min-height:44px;color:#405640;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px;align-self:flex-start}
body.embedded{--wk-bg:#f5f2e9;--wk-card:#fffdf7;--wk-border:#dedfd3;--wk-text:#303b30;--wk-muted:#626c5e;--wk-accent:#405640;background:var(--wk-card);color:var(--wk-text);color-scheme:light}
body.embedded.workspace-dark{--wk-bg:#1d241e;--wk-card:#252e27;--wk-border:#414b40;--wk-text:#eceee5;--wk-muted:#b8c3b2;--wk-accent:#b7cbb0;color-scheme:dark}
body.embedded main{max-width:none;min-height:100dvh;padding:24px;background:var(--wk-card)}
body.embedded header,body.embedded footer,body.embedded .welcome-links,body.embedded .toolbar a[href="/pricing"],body.embedded .toolbar a[href="/docs"],body.embedded .toolbar a[href="/status"],body.embedded .toolbar a[href="/dashboard"],body.embedded .toolbar a[href="/redeem"]{display:none}
body.embedded .model-picker{margin-top:0;color:var(--wk-muted);font-size:14px}
body.embedded .model-picker select{background:var(--wk-bg);border:1px solid var(--wk-border);color:var(--wk-text);border-radius:8px;min-height:44px;font-size:14px}
body.embedded #model-status,body.embedded .composer-note{color:var(--wk-muted);font-size:12px}
body.embedded .toolbar{border-color:var(--wk-border);padding:12px 0;justify-content:space-between;gap:12px}
body.embedded .toolbar button,body.embedded .toolbar a,body.embedded .chat-recharge{color:var(--wk-accent);min-height:44px;display:inline-flex;align-items:center;font-size:14px}
body.embedded #standalone{margin-left:auto}
body.embedded #welcome{padding:35px 0;min-height:220px}
body.embedded #welcome:before{display:none}
body.embedded h1{font:600 26px/1.5 system-ui,"Microsoft YaHei",sans-serif;letter-spacing:0;color:var(--wk-text)}
body.embedded #welcome p{font-size:14px;color:var(--wk-muted)}
body.embedded #chat-form{background:var(--wk-bg);border:1px solid var(--wk-border);border-radius:10px}
body.embedded textarea{color:var(--wk-text);font-size:16px}
body.embedded textarea::placeholder{color:var(--wk-muted)}
body.embedded #send{border-radius:7px;background:var(--wk-accent);color:var(--wk-card);min-height:44px;font-size:14px}
body.embedded .message,body.embedded .message.user{border-color:var(--wk-border)}
body.embedded .message.user,body.embedded .options{background:var(--wk-bg)}
body.embedded .message-text{color:var(--wk-text)}
body.embedded .message-name,body.embedded .message-meta,body.embedded summary,body.embedded .message-copy{color:var(--wk-muted)}
@media(max-width:620px){body.embedded main{padding:16px}body.embedded h1{font-size:23px}body.embedded #welcome{min-height:190px;padding:25px 0}body.embedded .toolbar{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){body.embedded *{transition:none!important;animation:none!important}}
/* Generated images stay within the same paper-and-ink conversation layout. */
.generated-image{display:block;max-width:100%;height:auto;border-radius:8px;margin:8px 0}.generated-image-save{display:inline-block;padding:8px 0;overflow-wrap:anywhere}
/* Account conversation controls share the paper palette and fit narrow screens. */
#history-panel{position:static;border:1px solid #d1d7c8;border-radius:8px;margin:12px 0;padding:0 14px;background:#faf8f0;color:#3d5139;white-space:normal}
#history-panel>summary{display:flex;align-items:center;min-height:44px;font-size:14px;gap:6px}#history-panel>summary:after{content:'展开';margin-left:auto;font-size:12px}#history-panel[open]>summary:after{content:'收起'}
.history-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.history-tools p,#history-empty{font-size:12px;line-height:1.7;color:#596350}.history-tools button,#history-retry,#history-copy,.history-delete{border:0;background:transparent;min-height:44px;padding:8px;color:#405640;font-size:13px}
#history-list{list-style:none;margin:0;padding:0;max-height:300px;overflow-y:auto}#history-list li{display:flex;align-items:center;gap:8px;border-top:1px solid #dedfd3}.history-open{flex:1;min-width:0;text-align:left;background:transparent;border:0;padding:12px 4px;min-height:52px;color:inherit}.history-open strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.history-open small{display:block;font-size:12px;line-height:1.7;color:#596350;overflow-wrap:anywhere}.history-open[aria-current="true"] strong{font-weight:650}.history-delete{flex:none}
.conversation-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.conversation-heading h2{font:500 18px/1.5 system-ui,"Microsoft YaHei",sans-serif;margin:0;max-width:100%;overflow-wrap:anywhere}.conversation-heading>div{display:flex;align-items:center;gap:8px}.conversation-heading #history-save-state{font-size:12px;color:#596350}
.history-dialog-actions{display:flex;justify-content:flex-end;gap:12px}.history-dialog-actions button{min-height:44px;min-width:64px;padding:8px 14px}#history-delete-dialog p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
body.embedded #history-panel{background:var(--wk-bg);border-color:var(--wk-border);color:var(--wk-text)}body.embedded :is(.history-tools p,#history-empty,.history-open small,#history-save-state){color:var(--wk-muted)}body.embedded :is(.history-tools button,#history-retry,#history-copy,.history-delete){color:var(--wk-accent)}body.embedded .conversation-heading h2{color:var(--wk-text);font-size:18px}
@media(max-width:420px){#history-panel{padding:0 10px}.history-tools{gap:0}.history-tools p{margin:4px 0}.conversation-heading{align-items:flex-start}.conversation-heading>div{flex-wrap:wrap}}
