:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#20211f;background:#fff;font-synthesis:none}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #92bba8;outline-offset:2px}.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}[hidden]{display:none!important}
.app-shell{display:grid;grid-template-columns:270px minmax(0,1fr);height:100dvh;min-height:460px}.sidebar{display:flex;flex-direction:column;min-width:0;background:#f7f7f5;border-right:1px solid #edeeeb;padding:20px 13px 15px}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:1px 10px 22px}.identity{display:flex;align-items:center;gap:8px;white-space:nowrap}.identity strong{font-size:16px;letter-spacing:-.02em}.identity-mark,.hero-mark,.dialog-mark{display:grid;place-items:center;background:#161f1a;color:#fff}.identity-mark{height:29px;width:29px;border-radius:9px;font-size:18px}.identity-sub{color:#878a85;font-size:12px}.new-chat{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:12px 13px;border:1px solid #e2e5df;border-radius:12px;background:#fff;color:#242924;font-weight:650;box-shadow:0 2px 8px #1b2b1b08}.new-chat:hover{background:#fafcf9}.new-chat>span:first-child{font-size:19px;line-height:1}.new-plus{margin-left:auto;color:#878d86;font-weight:400}.sidebar-section-heading{display:flex;justify-content:space-between;margin:27px 11px 10px;color:#858984;font-size:11px;font-weight:700;letter-spacing:.055em}.conversation-list{overflow:auto;flex:1;min-height:50px;padding-right:2px}.conversation-item{display:flex;align-items:center;gap:3px;margin:2px 0;border-radius:9px}.conversation-item.active{background:#e9ebe7}.conversation-open{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:transparent;text-align:left;padding:10px 6px 10px 11px;color:#434741;font-size:13px}.conversation-open:hover,.conversation-action:hover{color:#0e1710}.conversation-action{flex:none;width:27px;height:27px;border:0;border-radius:7px;background:transparent;color:#8a8e88;font-size:14px}.conversation-action:hover{background:#dfe3dc}.conversation-empty{padding:10px 11px;color:#999e98;font-size:13px;line-height:1.5}.sidebar-bottom{padding:10px 4px 0}.usage-mini{padding:14px 12px;margin-bottom:12px;background:#fff;border:1px solid #e8eae5;border-radius:13px}.usage-mini>div:first-child{display:flex;align-items:baseline;justify-content:space-between;font-size:12px;color:#667067}.usage-mini strong{font-size:18px;color:#243b2d}.usage-track{height:5px;background:#e8eee8;border-radius:5px;margin:12px 0 7px;overflow:hidden}.usage-track span{display:block;width:0;height:100%;border-radius:5px;background:#558669;transition:width .3s}.usage-mini small{display:block;color:#909691;font-size:11px}.access-trigger{width:100%;display:flex;gap:9px;align-items:center;border:0;border-radius:10px;background:transparent;padding:10px;color:#424a43;text-align:left;font-size:13px}.access-trigger:hover{background:#ebede9}.access-trigger span:nth-child(2){flex:1}.access-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e1e9df;color:#366446;font-size:19px}.side-footnote{margin:11px 9px 0;font-size:11px;color:#a7aaa6}.main-area{display:flex;flex-direction:column;min-width:0;background:#fff}.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid #f0f1ee;flex:none}.topbar-left,.topbar-right{display:flex;align-items:center;gap:10px;min-width:0}.topbar-left strong{font-size:15px}.topbar-chevron{font-size:20px;color:#a0a5a0}.topbar-title{font-size:12px;color:#858a84;max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{font-size:12px;color:#64816e}.mode-dot{height:7px;width:7px;border-radius:50%;background:#719b7c}.top-access{margin-left:11px;background:#fff;border:1px solid #e8eae6;border-radius:9px;padding:7px 11px;color:#47564b}.top-access:hover{background:#f6f8f5}.chat-surface{display:flex;flex-direction:column;flex:1;min-height:0}.chat-feed{flex:1;min-height:0;overflow-y:auto;scroll-behavior:smooth}.empty-state{width:min(100%,770px);margin:0 auto;padding:clamp(55px,12vh,135px) 26px 36px;text-align:center}.hero-mark{width:48px;height:48px;border-radius:16px;margin:0 auto 22px;font-size:29px;box-shadow:0 8px 24px #1d35251b}.empty-state h1{font-size:clamp(27px,3.4vw,36px);line-height:1.2;letter-spacing:-.04em;margin:0 0 13px;font-weight:650}.empty-state p{margin:0;color:#858a84;font-size:14px;line-height:1.6}.prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:34px}.prompt-grid button{min-height:60px;text-align:left;background:#fff;border:1px solid #e8ebe7;border-radius:13px;padding:16px;color:#555c55;font-size:13px}.prompt-grid button:hover{border-color:#bdd0c1;background:#fbfdfb}.prompt-grid button span{float:right;color:#9eaca0}.messages{width:min(100%,810px);margin:0 auto;padding:30px 29px 48px}.message{margin:0 0 25px}.message.user{display:flex;justify-content:flex-end}.message-bubble{max-width:min(76%,610px);padding:12px 16px;border-radius:20px;background:#f2f3ef;color:#2b302c;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}.message.assistant{display:flex;gap:13px}.assistant-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:10px;background:#18251c;color:#fff;font-size:18px;margin-top:1px}.assistant-content{min-width:0;flex:1;color:#343a34;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;padding:2px 0}.assistant-label{display:block;color:#829083;font-size:11px;font-weight:700;letter-spacing:.02em;margin:0 0 7px}.message.pending .assistant-content{color:#8c958d}.composer-dock{flex:none;padding:0 24px 19px;background:linear-gradient(180deg,#fff9,#fff 19%)}.composer{max-width:760px;margin:auto;border:1px solid #e5e8e4;border-radius:21px;box-shadow:0 8px 29px #2435290c,0 1px 3px #2435290b;padding:14px 14px 10px;background:#fff}.composer:focus-within{border-color:#c9d7c9}.composer textarea{resize:none;width:100%;min-height:50px;max-height:190px;overflow-y:auto;border:0;outline:none;padding:1px 4px;color:#252b26;line-height:1.55;font-size:14px}.composer textarea::placeholder{color:#a2a8a1}.composer-controls,.composer-left{display:flex;align-items:center;justify-content:space-between}.composer-left{gap:13px}.mode-picker{display:flex;align-items:center;gap:6px;color:#6e8372;border-radius:9px;padding:5px 8px;background:#f5f8f4}.mode-picker select{border:0;background:transparent;color:#49604e;font-size:12px;font-weight:650;appearance:none;outline:none;cursor:pointer}.mode-picker>span:last-child{font-size:15px;line-height:1}.char-count{font-size:11px;color:#a1a6a0}.send-button{height:32px;width:32px;border:0;border-radius:10px;background:#18251c;color:#fff;font-size:23px;line-height:1}.send-button:hover{background:#315a3e}.send-button:disabled{background:#dce2dc;color:#fff}.composer-note{text-align:center;margin:10px 0 0;color:#a0a5a0;font-size:11px;line-height:1.4}.mobile-only{display:none}.dialog-backdrop{position:fixed;inset:0;background:#0c1710a1;display:grid;place-items:center;padding:18px;z-index:20}.access-dialog{position:relative;width:min(100%,440px);max-height:min(94dvh,750px);overflow:auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 18px 80px #07130a3b}.dialog-close{position:absolute;right:17px;top:15px;border:0;background:transparent;font-size:26px;color:#888e87}.dialog-mark{width:39px;height:39px;border-radius:12px;font-size:24px;margin-bottom:24px}.dialog-eyebrow{margin:0 0 8px;color:#63856b;font-weight:700;font-size:11px;letter-spacing:.08em}.access-dialog h2{margin:0 0 10px;font-size:27px;letter-spacing:-.03em}.dialog-intro{margin:0 0 25px;color:#777e76;font-size:13px;line-height:1.65}.access-dialog form label,.lab-controls label{display:block;margin:0 0 7px;color:#485148;font-size:12px;font-weight:650}.access-dialog form input,.lab-controls input{width:100%;border:1px solid #dce1db;border-radius:10px;padding:12px 13px;background:#fff;color:#29312a}.redeem-button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:10px;background:#1e3625;color:#fff;border:0;border-radius:10px;padding:12px 15px;font-weight:650}.redeem-button:hover{background:#31583b}.access-message{min-height:22px;font-size:12px;color:#b4453c;margin:10px 0 0}.access-message.success{color:#367148}.demo-area{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f7f3;border:1px solid #e8eee6;border-radius:11px;padding:12px 13px;margin-top:14px}.demo-area span{display:block;font-size:11px;color:#6c756c;margin-bottom:3px}.demo-area code{font-size:12px;color:#3e6147;overflow-wrap:anywhere}.demo-area button,.lab-controls button{border:0;border-radius:8px;background:#e0e9e0;color:#356044;padding:7px 10px;font-size:12px}.lab-area{margin-top:17px;color:#676f67;font-size:12px}.lab-area summary{cursor:pointer}.lab-controls{display:flex;align-items:end;gap:9px;margin-top:11px}.lab-controls input{width:80px;padding:8px}.lab-controls button{height:36px}.lab-area p{overflow-wrap:anywhere;color:#366946;line-height:1.5}.dialog-footer{border-top:1px solid #edf0ec;margin-top:24px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#969c95;font-size:11px}.dialog-footer button{border:0;background:none;color:#a34f45;text-decoration:underline}.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#24372a;color:#fff;padding:10px 15px;border-radius:10px;z-index:40;font-size:12px;box-shadow:0 7px 30px #10231630}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,84vw);z-index:15;transform:translateX(-105%);transition:transform .2s;box-shadow:10px 0 35px #07120918}.sidebar.open{transform:translateX(0)}.mobile-scrim:not([hidden]){position:fixed;inset:0;background:#17211973;z-index:14;display:block}.mobile-only{display:grid;place-items:center}.icon-button{border:0;background:transparent;width:30px;height:30px;color:#586358;font-size:19px}.main-area{height:100dvh}.topbar{height:58px;padding:0 17px}.topbar-title,.topbar-chevron{display:none}.topbar-left{gap:12px}.topbar-right{gap:6px;font-size:11px}.top-access{margin-left:5px;padding:6px 8px}.empty-state{padding:clamp(48px,11vh,85px) 19px 25px}.empty-state p{font-size:13px}.prompt-grid{gap:9px;margin-top:28px}.prompt-grid button{padding:12px;min-height:57px;font-size:12px}.messages{padding:23px 17px 35px}.message-bubble{max-width:87%}.composer-dock{padding:0 12px 11px}.composer{border-radius:17px;padding:12px 11px 8px}.composer-note{font-size:10px;margin-top:8px;padding:0 10px}.access-dialog{padding:24px}.chat-feed{overscroll-behavior:contain}}
@media(max-width:360px){.prompt-grid{grid-template-columns:1fr}.topbar-right #mode-label{display:none}.char-count{display:none}}

/* Multi-model workspace and compact, centered start screen. */
.chat-surface:has(.empty-state:not([hidden])){justify-content:center}
.chat-surface:has(.empty-state:not([hidden])) .chat-feed{flex:0 0 auto;overflow:visible}
.chat-surface:has(.empty-state:not([hidden])) .empty-state{padding:0 20px 22px}
.chat-surface:has(.empty-state:not([hidden])) .composer-dock{flex:0 0 auto;background:none;padding-bottom:0}
.chat-surface:has(.empty-state[hidden]) .quick-actions{display:none}
.empty-state .hero-eyebrow{margin:0 0 13px;color:#52735d;font-size:11px;font-weight:700;letter-spacing:.13em}
.empty-state h1{font-size:clamp(30px,3.4vw,42px);font-weight:620}
.composer{max-width:760px}
.composer-left{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.model-picker{display:flex;align-items:center;gap:8px;max-width:250px;border:1px solid #dce5dc;border-radius:11px;background:#f5f8f4;color:#344c3b;padding:6px 10px;font-size:12px;font-weight:700}
.model-picker:hover{background:#eaf1ea}
.model-picker #model-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-picker-icon{font-size:16px}
.mode-picker{border:1px solid #e7eae5;background:#fff;color:#687269}
.mode-picker select{color:#59645b}
.quick-actions{max-width:820px;margin:18px auto 0;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:0 12px}
.quick-actions button{border:1px solid #e8eae6;border-radius:999px;background:#fff;color:#4b554d;padding:8px 13px;font-size:12px;white-space:nowrap}
.quick-actions button:hover{border-color:#b9cbbd;background:#f8fbf7}
.model-dialog{position:relative;width:min(100%,560px);max-height:min(85dvh,720px);display:flex;flex-direction:column;background:#fff;border-radius:22px;padding:24px;box-shadow:0 20px 70px #07130a35}
.model-dialog-header{display:flex;justify-content:space-between;align-items:flex-start}
.model-dialog-header h2{margin:0 0 19px;font-size:25px;letter-spacing:-.03em}
.model-dialog .dialog-close{position:static}
.model-dialog input[type=search]{width:100%;border:1px solid #e1e6df;background:#fafbf9;border-radius:13px;padding:12px 14px;color:#28352b;outline:none}
.provider-filters{display:flex;gap:7px;overflow:auto;padding:14px 0 12px}
.provider-filters button{flex:none;background:#fff;border:1px solid #e7eae5;color:#667167;border-radius:999px;padding:7px 11px;font-size:12px}
.provider-filters button.active{background:#1b2b20;border-color:#1b2b20;color:#fff}
.model-list{overflow:auto;min-height:90px}
.model-option{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #edf0eb;border-radius:12px;background:#fff;text-align:left;margin:7px 0;padding:11px 12px;color:#425047}
.model-option:hover,.model-option.active{border-color:#a9c3ad;background:#f8fbf8}
.provider-mark{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#e8f0e8;color:#28553a;font-weight:700}
.model-option>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
.model-option strong{font-size:13px;overflow:hidden;text-overflow:ellipsis}
.model-option small{font-size:11px;color:#8a948a}
.model-dialog-note,.model-empty{font-size:11px;color:#919990;line-height:1.6}
.model-dialog-note{margin:15px 2px 0}
@media(max-width:760px){
  .chat-surface:has(.empty-state:not([hidden])) .empty-state{padding:0 14px 18px}
  .quick-actions{gap:7px;margin-top:14px}
  .quick-actions button{padding:7px 10px;font-size:11px}
  .model-picker{max-width:170px}
  .model-dialog{padding:20px}
}
@media(max-height:590px){.chat-surface:has(.empty-state:not([hidden])){justify-content:flex-start;overflow:auto;padding-top:22px}}

.attach-button{border:1px solid #e4e9e2;background:#fff;color:#56675a;border-radius:10px;padding:6px 9px;font-size:12px;white-space:nowrap}
.attach-button:hover{background:#f5f9f4}
.attach-button:disabled{color:#aeb7ad;background:#f7f8f6}
.attachment-preview{display:flex;align-items:center;gap:8px;max-width:100%;border:1px solid #dfe9dd;background:#f7faf6;border-radius:10px;margin:0 0 10px;padding:7px 9px;font-size:11px;color:#738174}
.attachment-preview span:first-child{font-weight:700;color:#405a44;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attachment-preview span:nth-child(2){flex:1}
.attachment-preview button{border:0;background:transparent;color:#667568;font-size:18px}
.top-access:disabled{opacity:.45;cursor:not-allowed}
.message-copy{display:block;margin-top:8px;padding:2px 7px;border:0;border-radius:6px;background:transparent;color:#7d8980;font-size:11px;cursor:pointer}
.message-copy:hover{background:#edf2ed;color:#315841}
@media(max-width:520px){#export-chat{font-size:0;padding:6px 8px}#export-chat::before{content:'导出';font-size:11px}}
