/* Conversation workspace: light navigation, open canvas, bottom composer. */
body.workspace-brand{--soft:#fff;--gold-ink:#183e5c;--gold:#183e5c;--line:#e5e7eb}
body.workspace-brand #side{background:#f7f7f8;color:#26282c;border-right:1px solid #ededf0;width:260px;flex-basis:260px;padding:24px 16px;gap:18px}
body.workspace-brand #side .brand{border:0;padding:0 10px 14px;gap:10px}
body.workspace-brand #side .brand .t{font-size:21px;color:#22252a;letter-spacing:-.5px}
body.workspace-brand #side .brand .s{font-size:11px;color:#8a8d94}
body.workspace-brand #side .brand img{width:28px;height:28px;border-radius:6px}
body.workspace-brand #side .who,body.workspace-brand #side .sidefoot button{color:#666b74}
body.workspace-brand #side .sidefoot{border-top:1px solid #e3e5e8;padding-top:14px;font-size:12px}
body.workspace-brand #side .icp-side{color:#a1a4aa;font-size:9px;line-height:1.5}
body.workspace-brand #side .workspace-main-nav .newbtn{border:0;border-radius:8px;background:transparent;color:#4b5058;padding:9px 12px}
body.workspace-brand #side .workspace-main-nav .newbtn[aria-current=page]{background:#e9ebee;border:0;color:#20252c}
body.workspace-brand #side .side-resource{color:#626872;border:0;text-align:left;font-size:12px}
body.workspace-brand #side .sideitem,body.workspace-brand #side .sidehead,body.workspace-brand #side .folder{color:#505660}
body.workspace-brand #side .sideitem.on{background:#e9ebee;border-left:0;color:#20252c}
body.workspace-brand .main{background:#fff}
.chat-layout #side .workspace-main-nav,.chat-layout #side #sideScope,.chat-layout #side #sideTree{display:none!important}
.chat-sidebar{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.chat-sidebar nav{display:grid;gap:4px;margin-bottom:28px}
.chat-sidebar button{display:block;text-align:left;border:0;background:none;color:#41464e;padding:9px 12px;border-radius:8px;font-size:14px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-sidebar button:hover,.chat-sidebar button.active{background:#e9ebee;color:#1b222c}
.chat-sidebar-scroll{overflow:auto;min-height:0;flex:1}
.chat-sidebar section{margin:0 0 24px}
.chat-sidebar h2{margin:0 12px 9px;color:#9599a1;font-size:11px;font-weight:500;letter-spacing:0}
.chat-sidebar p{font-size:12px;color:#9ba0a7;padding:0 12px}
body.workspace-brand .chat-layout #main{padding:0;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.chat-layout .workspace-home{margin:0;width:100%;max-width:none;height:100%;padding:0;display:flex;flex-direction:column;overflow:hidden}
.chat-layout .workspace-tools{display:none}
.chat-layout.chat-tools-open #main{overflow:auto;padding:28px}
.chat-tools-open .workspace-chat{display:none}
.chat-layout.chat-tools-open .workspace-tools{display:block}
.workspace-chat{color:#272c33;background:#fff;display:flex;flex-direction:column;flex:1;min-height:0;height:100%;width:100%;margin:0;line-height:1.65;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.workspace-chat button:focus-visible,.workspace-chat select:focus-visible,.workspace-chat textarea:focus-visible,.chat-sidebar button:focus-visible{outline:2px solid #72a0c2;outline-offset:3px}
.chat-topbar{height:62px;flex-shrink:0;display:flex;gap:16px;align-items:center;padding:0 30px;color:#585e67;font-size:14px}
.chat-topbar [data-title]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80%}
.chat-topbar [data-new]{margin-left:auto;font-size:23px;color:#7f858e}
.chat-topbar [data-menu]{display:none}
.chat-scroll{flex:1;min-height:0;overflow:auto;padding:24px 30px 16px;scroll-behavior:smooth}
.chat-welcome{max-width:760px;margin:clamp(38px,14vh,150px) auto 0;text-align:center}
.workspace-chat .chat-welcome h1,.workspace-chat .chat-welcome h2{font-size:29px;line-height:1.4;font-weight:550;letter-spacing:-.5px;color:#252b33;margin:0 0 10px}
.chat-welcome p{color:#9a9fa7;font-size:14px;margin:0}
.chat-starters{display:flex;justify-content:center;gap:10px;margin:24px 0;flex-wrap:wrap}
.chat-starters button{border:1px solid #ebecef;border-radius:9px;color:#737b86;font-size:12px;padding:7px 13px;background:white}
.chat-starters button:hover{background:#f6f8fa;color:#263c50}
.has-messages .chat-welcome{display:none}
.chat-transcript{max-width:760px;margin:0 auto}
.chat-message{margin:12px 0 30px;font-size:15px}
.chat-message small{display:block;font-size:11px;color:#8b929c;margin-bottom:7px}
.chat-message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
.chat-message.user{margin-left:12%;display:flex;flex-direction:column;align-items:flex-end}
.chat-message.user small{display:none}
.chat-message.user .chat-message-content{padding:12px 18px;background:#f4f5f7;border-radius:16px;max-width:100%}
.chat-composer-wrap{flex-shrink:0;padding:12px 30px 20px;width:100%;max-width:840px;margin:0 auto}
.chat-composer{background:#fff;border:1px solid #dfe2e7;border-radius:18px;padding:16px 16px 12px;box-shadow:0 3px 18px #1b2e4210}
.workspace-chat .chat-composer textarea{width:100%;display:block;background:transparent;border:0;outline:0;resize:none;padding:0 5px;margin:0;min-height:56px;max-height:180px;font-size:15px;line-height:1.65;color:#272e38}
.chat-composer textarea::placeholder{color:#a5aab2}
.chat-composer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.chat-composer select{border:0;background:transparent;padding:5px 3px;max-width:200px;text-overflow:ellipsis;color:#6a7380;font-size:12px;font-family:inherit}
.chat-model-tools{display:flex;align-items:center;gap:9px;margin-left:auto;min-width:0}
.chat-model-tools [data-balance]{color:#949aa3;font-size:11px;padding:4px 0;white-space:nowrap}
.workspace-chat .chat-send{width:32px;height:32px;display:grid;place-items:center;background:#253c50;color:white;font-size:23px;line-height:1;border-radius:50%;padding:0;border:0}
.workspace-chat button:disabled{opacity:.4;cursor:default}
.chat-caption{min-height:23px;margin:8px 4px 0;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#a1a6ae}
.chat-caption [data-rules]{font-size:10px;color:#969da7;white-space:nowrap;padding:0}
.chat-billing-details{max-height:210px;overflow:auto;font-size:11px;color:#7e8794;background:#fafbfc;border-radius:8px;margin-top:8px}
.chat-billing-details:not([open]){display:none}
.chat-billing-details p{margin:8px 14px}
.chat-billing-details summary{padding:8px 14px;cursor:pointer}
.chat-embedded{height:650px;max-height:80vh;margin:18px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}
.chat-embedded .chat-topbar{padding:0 12px}.chat-embedded .chat-welcome{margin-top:30px}
@media(max-width:760px){
 body.workspace-brand .chat-layout #side{display:none;position:fixed;inset:0 auto 0 0;height:100dvh;z-index:80;box-shadow:15px 0 80px #19263525}
 body.workspace-brand .chat-layout.chat-sidebar-open #side{display:flex}
 .chat-topbar{padding:0 18px;height:52px}.chat-topbar [data-menu]{display:block;font-size:17px}
 .chat-scroll{padding:16px}.chat-welcome{margin-top:15vh}.workspace-chat .chat-welcome h1{font-size:24px}
 .chat-composer-wrap{padding:8px 12px max(12px,env(safe-area-inset-bottom))}.chat-composer{padding:12px;border-radius:16px}
 .chat-composer select{max-width:155px;font-size:11px}.chat-model-tools{gap:5px}.chat-model-tools [data-balance]{font-size:10px}
 .chat-message{font-size:14px}.chat-composer-toolbar{gap:5px}.chat-caption{font-size:9px}.chat-caption [data-rules]{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.chat-scroll{scroll-behavior:auto}}
.chat-composer-toolbar [data-limit]{font-size:10px;color:#a0a6af;margin-left:auto}.chat-composer-toolbar:has([data-limit]:not(:empty)) .chat-model-tools{margin-left:0}
.chat-message.assistant .chat-message-content{white-space:normal}.chat-message-content p{margin:8px 0}.chat-message-content h1,.chat-message-content h2,.chat-message-content h3{font-size:18px;line-height:1.5;margin:20px 0 10px;font-weight:600}.chat-message-content pre{overflow:auto;background:#f5f6f8;padding:16px;border-radius:9px;font-size:12px}.chat-message-content code{background:#f3f5f7;padding:2px 4px;border-radius:3px}.chat-message-content ul,.chat-message-content ol{padding-left:22px}.chat-message-content .tablewrap{max-width:100%;overflow:auto}.chat-message-content table{border-collapse:collapse;font-size:12px}.chat-message-content td,.chat-message-content th{border:1px solid #e5e8ec;padding:8px 12px;text-align:left}
.chat-backdrop{display:none}@media(max-width:760px){.chat-sidebar-open .chat-backdrop{display:block;position:fixed;inset:0 0 0 260px;z-index:79;background:#24334222;border:0}}
/* One navigation shell across every workspace view. */
.workspace-shell #side .workspace-main-nav,.workspace-shell #side #sideScope,.workspace-shell #side #sideTree{display:none!important}
.workspace-stage{display:flex;flex:1;flex-direction:column;height:100%;min-width:0;min-height:0;overflow:hidden;background:white}
.workspace-location{display:flex;align-items:center;gap:12px;flex-shrink:0;min-height:44px;padding:8px 28px;border-bottom:1px solid #f1f2f4;background:white;color:#818996;font-size:12px}
.workspace-location nav{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
.workspace-location nav button{color:#667488;padding:2px 0;text-align:left;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-location .shell-menu{display:none}.workspace-shell #main{min-height:0;height:auto;flex:1}.workspace-shell #main.research-main{padding:24px 32px;overflow:auto}
.workspace-shell .workspace-navigation [aria-current=page]{background:#e9ebee;color:#20252c}
.shell-section-title{display:flex;align-items:center;justify-content:space-between;padding-right:6px}.shell-section-title button{width:auto;padding:0 5px;color:#8993a2;font-size:16px}
.shell-project-group{border:0;padding:0;margin:0 0 4px;background:none}.shell-project-group summary{display:flex;align-items:center;cursor:pointer;list-style:none;gap:2px}
.shell-project-group summary::before{content:'▸';color:#929aa6;font-size:10px;width:8px;flex-shrink:0}.shell-project-group[open] summary::before{content:'▾'}
.shell-project-group summary button{min-width:0;padding:8px 4px}.shell-project-group .shell-project-chat{padding-left:28px;color:#7a8391;font-size:12px}.shell-project-group small{display:block;padding:4px 10px 8px 22px;font-size:10px;color:#a1a7b0}
.workspace-shell.chat-tools-open #main{padding:24px 32px;overflow:auto}.workspace-shell .chat-topbar [data-menu]{display:none!important}
.workspace-shell.chat-tools-open .home-intro{background:none;border:0;color:#263746;padding:0;margin:0 0 24px}.workspace-shell.chat-tools-open .home-intro::before{display:none}
.workspace-shell.chat-tools-open .home-intro h1{color:#263746;font-size:26px;line-height:1.4;letter-spacing:0}.workspace-shell.chat-tools-open .home-intro p{color:#8793a2;font-size:13px;max-width:none}.workspace-shell.chat-tools-open .workspace-tools>summary{display:none}
.project-heading h1{font-size:27px!important;line-height:1.4!important;letter-spacing:0!important;margin:0 0 8px!important}.project-heading p{font-size:12px;color:#8a94a3}
.project-workspace-tabs{display:flex;gap:8px;margin:18px 0 24px;border-bottom:1px solid #e9edf1;padding:0 0 8px}.project-workspace-tabs button{padding:8px 18px;font-size:13px;border-radius:7px;color:#7a8796;border:0;background:none}.project-workspace-tabs [aria-selected=true]{background:#edf2f6;color:#244461}
.project-workspace-panel[hidden]{display:none!important}.project-workspace-panel h2{font-size:18px;line-height:1.5;margin:20px 0 12px;color:#2c4357}.project-workspace-panel>p,.project-workspace-panel>section>p{font-size:13px;color:#8591a0}
.project-workspace-panel .chat-embedded{border:0;height:570px;margin-top:0}.project-workspace-panel .project-visibility{font-size:11px;color:#96a0ad;margin:0}
.project-settings{position:relative;color:#8190a1;font-size:12px}.project-settings summary{cursor:pointer;padding:8px 12px}.project-settings[open]{background:#f7f9fb;border-radius:8px;padding-bottom:8px}.project-settings button{display:block}
.workspace-shell .library-heading>div>p{font-size:13px;max-width:700px;color:#8795a5}.workspace-shell .progress-global{font-size:12px;color:#8b96a3}
@media(max-width:760px){body.workspace-brand .workspace-shell #side{display:none;position:fixed;inset:0 auto 0 0;height:100dvh;z-index:80;box-shadow:15px 0 80px #19263525}body.workspace-brand .workspace-shell.chat-sidebar-open #side{display:flex}.workspace-location{padding:8px 16px;min-height:44px}.workspace-location .shell-menu{display:block}.workspace-location nav{font-size:11px;gap:6px}.workspace-location nav button{max-width:170px}.workspace-shell #main.research-main,.workspace-shell.chat-tools-open #main{padding:18px 16px}.project-heading{display:block}.project-heading .voice-actions{margin-top:12px}.project-workspace-tabs{gap:4px;justify-content:space-between}.project-workspace-tabs button{padding:8px 15px}}
#main .project-workspace-tabs button[aria-selected=true]{background:#edf2f6;color:#244461}
/* Self-serve onboarding inside the same workspace shell. */
.workspace-guide{width:100%;max-width:940px;margin:0 auto;color:#33485b;font-size:14px;line-height:1.85;padding:8px 0 60px}
.guide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:32px}
.workspace-guide h1{font-size:28px;line-height:1.4;letter-spacing:-.3px;margin:0 0 10px;color:#253c50;font-weight:600}
.guide-heading p{color:#8996a4;margin:0;font-size:13px}.guide-heading>button{font-size:12px;color:#8292a4;padding:8px 0;white-space:nowrap}
.guide-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-bottom:28px;border-bottom:1px solid #e9edf1}
.workspace-guide .guide-start h2{font-size:16px;margin:0 0 7px}.guide-start p{font-size:12px;color:#8c98a6;margin:0 0 14px}
.workspace-guide button:not(.guide-toc button):not(.guide-heading>button){border:1px solid #dde4eb;border-radius:8px;padding:8px 14px;color:#35536d;background:#fff;font-size:12px}
.workspace-guide button:hover{background:#f4f7fa}.workspace-guide button:focus-visible,.workspace-guide textarea:focus-visible,.workspace-guide summary:focus-visible{outline:2px solid #8eb3d0;outline-offset:3px}
.guide-toc{display:flex;gap:20px;flex-wrap:wrap;margin:22px 0 36px}.guide-toc button{font-size:12px;color:#7e90a3;padding:0}
.workspace-guide>section[data-section]{padding:0 0 30px;margin-bottom:30px;border-bottom:1px solid #edf0f3;scroll-margin-top:20px}
.workspace-guide h2{font-size:21px;font-weight:600;color:#2c4459;margin:0 0 16px}.workspace-guide h3{font-size:14px;margin:0 0 8px;color:#435d74}
.workspace-guide section>p{color:#7c8c9d}.guide-steps{padding-left:23px;margin:18px 0 24px}.guide-steps li{padding:0 0 14px 5px;color:#788a9c}.guide-steps strong{font-weight:550;color:#36526c}
.guide-example{background:#f7f9fb;border-radius:10px;padding:20px;margin:20px 0}.guide-example p{font-size:12px;color:#8896a5;margin:0 0 14px}
.workspace-guide .guide-example textarea{display:block;width:100%;resize:vertical;border:1px solid #e0e7ee;border-radius:8px;background:#fff;color:#536e86;font:inherit;font-size:13px;line-height:1.8;padding:12px;margin-bottom:12px;min-height:120px}
.guide-example [role=status]{font-size:11px;color:#8998a8;margin-left:12px}.workspace-guide .guide-note{font-size:12px;color:#8c99a7;padding-left:14px;border-left:2px solid #dce7ef}
.workspace-guide table{border-collapse:collapse;width:100%;font-size:13px;margin:22px 0}.workspace-guide caption{text-align:left;font-size:12px;color:#95a0ad;margin-bottom:10px}.workspace-guide td,.workspace-guide th{padding:12px 14px;border-bottom:1px solid #e9eef3;text-align:left;vertical-align:top}.workspace-guide th{font-size:12px;background:#f8fafb;color:#6e8296;font-weight:500}.workspace-guide td:first-child{white-space:nowrap;color:#36546e}
.guide-actions{display:flex;gap:10px;margin:18px 0}.workspace-guide ul{padding-left:22px;color:#7b8c9f}.workspace-guide li{margin-bottom:10px}
.workspace-guide details{border-bottom:1px solid #e9edf1;padding:14px 0}.workspace-guide summary{cursor:pointer;font-size:13px;color:#49657e}.workspace-guide details p{font-size:13px;color:#8b99a8;padding-left:16px;margin:12px 0}
.guide-footer{margin-top:30px}.guide-footer p{font-size:17px;color:#405c73}.guide-footer button{margin-right:10px}
body.workspace-brand #side .workspace-guide-link[aria-current=page]{background:#e9ebee;border-radius:8px;color:#263f55}
.workspace-chat .chat-guide-entry{font-size:11px;color:#8296a9;margin-top:14px;padding:3px 8px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.guide-heading{display:block;margin-bottom:24px}.workspace-guide h1{font-size:24px}.guide-heading>button{margin-top:12px}.guide-start{grid-template-columns:1fr;gap:20px}.guide-start>div{padding-bottom:16px;border-bottom:1px solid #f0f3f5}.guide-start>div:last-child{border:0;padding-bottom:0}.guide-toc{gap:14px;margin:22px 0 28px}.workspace-guide h2{font-size:19px}.guide-example{padding:16px}.guide-example [role=status]{display:block;margin:10px 0 0}.workspace-guide td,.workspace-guide th{padding:10px 9px}.workspace-guide{font-size:13px}}
.workspace-guide section>p,.workspace-guide .guide-steps li,.workspace-guide ul,.workspace-guide details p{color:#61778c}.workspace-guide .guide-note{color:#73879b}

/* Keep the guide in its own scrollport and reserve sidebar height for work. */
body.workspace-brand .workspace-shell #main.guide-main{display:block;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px 32px}
body.workspace-brand .workspace-shell #side{gap:10px;padding:16px 12px}
body.workspace-brand .workspace-shell #side .brand{padding:0 10px 6px}
.workspace-shell .chat-sidebar nav{margin-bottom:14px}
.shell-utilities{position:relative;flex:0 0 auto;border-top:1px solid #e3e5e8;padding-top:6px}
.shell-utilities>summary{list-style:none;cursor:pointer;padding:10px 12px;border-radius:8px;font-size:12px;color:#626872}
.shell-utilities>summary::-webkit-details-marker{display:none}
.shell-utilities>summary:hover,.shell-utilities[open]>summary{background:#e9ebee}
.shell-utility-panel{position:absolute;bottom:100%;left:0;right:0;max-height:65dvh;overflow-y:auto;background:#fff;border:1px solid #e3e5e8;border-radius:12px;padding:8px;box-shadow:0 8px 30px #24334220;z-index:85}
body.workspace-brand #side .shell-utility-panel>.side-resource{display:block;width:100%;padding:9px 12px;border-radius:6px;margin:0;min-height:0}
body.workspace-brand #side .shell-utility-panel .sidefoot{display:flex;flex-wrap:wrap;gap:6px;padding:10px 6px;margin-top:6px}
body.workspace-brand #side .shell-utility-panel .who{flex-basis:100%;margin-bottom:4px}
body.workspace-brand #side .shell-utility-panel .sidefoot button{padding:6px}
body.workspace-brand #side .shell-utility-panel .icp-side{display:block;padding:3px 6px;margin:0}
@media(max-width:760px){body.workspace-brand .workspace-shell #main.guide-main{padding:18px 16px}}
.chat-image-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 0 12px;color:#7a8591;font-size:12px}.chat-image-controls[hidden]{display:none}.chat-image-controls button,.chat-image-controls select{font-size:12px;padding:5px 8px;border:0;background:#f4f6f8;border-radius:6px;color:#526677}.chat-generated-image{display:block;max-width:100%;width:420px;max-height:520px;object-fit:contain;border-radius:10px;margin:12px 0}.chat-image-actions{display:flex;gap:16px;align-items:center;font-size:12px}.chat-image-actions a,.chat-image-actions button{color:#486a84;background:none;border:0;padding:6px 0;text-decoration:none}.chat-composer-toolbar [data-mode]{max-width:100px}.chat-model-tools select[hidden]{display:none}
