/* Chat left, preview right. Independent scroll containers and a visible bottom composer. */
.conversation-layout{--cx-ink:#202123;--cx-muted:#737780;--cx-line:#e6e8eb;background:#fff;color:var(--cx-ink)}
.conversation-layout .main{height:100dvh;display:flex;flex-direction:column;min-height:0}
.conversation-layout .content{max-width:none;padding:0;margin:0;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.conversation-layout .topbar{min-height:68px;padding:12px 24px;flex-shrink:0}
.conversation-layout .tabs,.conversation-layout .guide-top-link,.conversation-layout #help-context,.conversation-layout .reuse-bar{display:none}
.conversation-layout .sidebar{background:#f8f9fa}.conversation-layout .sidebar .brand{padding-bottom:22px}.conversation-layout .sidebar .foot>p:first-child{display:none}
.conversation-layout #feedback-bubble{bottom:110px;right:24px}
.cx-workspace{display:grid;grid-template-columns:minmax(350px,1.08fr) minmax(340px,1fr);flex:1;height:100%;min-height:0;max-width:1800px;width:100%;margin:0 auto;background:#fff}
.cx-chat{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--cx-line)}
.cx-chat-header,.cx-preview>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #f0f1f3;flex:none}
.cx-chat-header h1{font-size:17px;letter-spacing:-.3px;margin:0 0 4px}.cx-chat-header span{font-size:11px;color:var(--cx-muted)}.cx-chat-header button{padding:8px 11px;font-size:12px;border-radius:20px;background:#fff}
.cx-chat-scroll{flex:1;min-height:0;overflow-y:auto;padding:24px 28px;scrollbar-gutter:stable;overscroll-behavior:contain}
.cx-welcome{padding:clamp(30px,7vh,80px) 0 35px;max-width:510px;margin:auto}.cx-welcome>span{display:inline-flex;width:40px;height:40px;justify-content:center;align-items:center;border-radius:50%;background:#f0f3f4;font-size:26px;margin-bottom:22px}.cx-welcome h2{font-size:25px;line-height:1.5;letter-spacing:-.7px;margin-bottom:12px}.cx-welcome>p{font-size:13px;color:var(--cx-muted);max-width:300px}
.cx-starters{display:flex;gap:8px;flex-wrap:wrap;margin-top:26px}.cx-starters button{padding:10px 13px;border-radius:20px;font-size:12px;background:#fafbfc}
.cx-turn{margin:0 0 27px;min-width:0}.cx-user{margin-left:auto;max-width:86%;border-radius:18px;background:#f2f3f5;padding:13px 18px;overflow-wrap:anywhere}.cx-user>span{display:none}.cx-user p{margin:0;font-size:14px;white-space:pre-wrap;line-height:1.8}
.cx-assistant{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;margin-top:25px}.cx-avatar{font-size:21px;line-height:1.5}.cx-assistant>div>strong{font-size:13px}.cx-assistant>div>p{font-size:14px;line-height:1.95;white-space:pre-wrap;margin:10px 0 16px;overflow-wrap:anywhere}
.cx-options{display:grid;gap:8px}.cx-option{width:100%;display:flex;gap:12px;text-align:left;padding:13px 14px;border:1px solid #e5e8ea;border-radius:12px;background:#fff;align-items:flex-start;line-height:1.55}.cx-option>span{font-size:11px;color:#90949d;margin-top:2px;font-variant-numeric:tabular-nums}.cx-option>div{flex:1;min-width:0}.cx-option strong{font-size:13px}.cx-option p{font-size:12px;color:#757b84;margin:5px 0 0;line-height:1.65;overflow-wrap:anywhere}.cx-option>b{font-weight:400;color:#959aa4}.cx-option:hover{background:#f8faf9;border-color:#b5c9c2}.cx-option.selected{border-color:#20856c;background:#f4faf7}.cx-option.selected>b{color:#20856c}.cx-option:disabled{opacity:.82;cursor:default}
.cx-answer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.cx-answer-footer small{font-size:10px;color:#818792}.cx-answer-footer button{padding:5px 7px;border:0;background:none;font-size:11px;color:#65766f}
.cx-handoff{border:1px solid #e4e7eb;border-radius:14px;background:#fafbfc;padding:18px;margin:22px 0 8px}.cx-handoff h3{margin:12px 0 8px;font-size:14px}.cx-handoff p{font-size:12px;padding:9px 12px;background:#eef1f3;border-radius:8px;margin-bottom:10px}.cx-handoff small{display:block;font-size:11px;line-height:1.8}.cx-handoff>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.cx-handoff button,.cx-handoff a{font-size:11px;padding:8px 11px;border-radius:8px;text-decoration:none}
.cx-composer-wrap{flex:none;padding:8px 24px 14px;background:#fff}.cx-composer{border:1px solid #dde1e4;border-radius:20px;box-shadow:0 3px 15px #15202a05;padding:12px 14px 10px;max-width:800px;margin:auto}.cx-composer textarea{border:0!important;box-shadow:none!important;border-radius:0;resize:none;min-height:56px;height:62px;max-height:160px;overflow:auto;padding:2px 4px;margin:0;font-size:14px;background:transparent;line-height:1.7}.cx-composer textarea:focus{outline:none}.cx-composer:focus-within{border-color:#8eaaa0;box-shadow:0 0 0 2px #eaf3ee}
.cx-composer-bottom{display:flex;align-items:center;gap:12px}.cx-composer-bottom label{margin:0!important;font-size:11px;font-weight:400}.cx-composer select{border:0;border-radius:20px;background:#f5f6f7;padding:6px 9px;margin:0;width:auto;max-width:135px;font-size:11px}.cx-check{display:flex!important;align-items:center;gap:6px;white-space:nowrap;color:#717883}.cx-check input{display:inline-block;width:14px;height:14px;margin:0;padding:0;accent-color:#237760}.cx-composer .cx-send{margin-left:auto;width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:50%;background:#26292c;color:white;font-size:22px;border:0}
.cx-composer-note{font-size:10px;color:#8b9098;margin:7px 0 0;text-align:center;line-height:1.65}.cx-composer-note button{padding:0 3px;border:0;background:none;text-decoration:underline;color:#768079;font-size:10px}#cx-error{color:#a44238;font-size:12px;line-height:1.7;margin-bottom:8px;white-space:pre-wrap}#cx-error:empty{display:none}
.cx-preview{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f7f8fa}.cx-preview>header{background:#fff}.cx-preview>header small{font-size:9px;letter-spacing:1.5px;color:#8b9199}.cx-preview>header h2{font-size:15px;margin:4px 0 0;letter-spacing:0}.cx-badge{font-size:10px;border-radius:20px;padding:5px 9px;background:#eef3f0;color:#527364;white-space:nowrap}
.cx-preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px 8px;gap:8px}.cx-preview-toolbar>button{font-size:11px;padding:6px 10px;background:transparent}.cx-segment{display:flex;padding:3px;background:#e9ecef;border-radius:8px}.cx-segment button{border:0;background:transparent;font-size:11px;padding:6px 11px;border-radius:6px}.cx-segment button.active{background:#fff;box-shadow:0 1px 3px #00000008}
.cx-preview-tabs{display:flex;gap:15px;padding:0 22px;border-bottom:1px solid #e5e8ed}.cx-preview-tabs button{border:0;background:none;border-radius:0;padding:9px 1px;color:#9499a3;font-size:12px}.cx-preview-tabs button.active{color:#263e34;border-bottom:2px solid #38745e}
.cx-preview-scroll{flex:1;min-height:0;overflow:auto;padding:24px;scrollbar-gutter:stable;overscroll-behavior:contain}.cx-paper{background:white;border:1px solid #e6e8ec;border-radius:10px;padding:28px;margin:0 0 18px;box-shadow:0 4px 16px #11182703;overflow-wrap:anywhere}.cx-paper>small{font-size:9px;color:#a1a5ad;letter-spacing:2px}.cx-paper h2{font-size:21px;line-height:1.5;margin:13px 0 20px;letter-spacing:-.5px}.cx-paper p{white-space:pre-wrap;font-size:13px;line-height:1.95;color:#515968}.cx-tags{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 26px}.cx-tags span{font-size:10px;border:1px solid #e9eaef;border-radius:5px;padding:4px 7px;color:#9298a2}.cx-text-block{margin:23px 0}.cx-text-block h3{font-size:12px;margin:0 0 9px;color:#323b46}.cx-text-block p{margin:0}.cx-placeholder{padding:50px 15px;color:#a1a6ae;text-align:center;font-size:13px;line-height:2}
.cx-preview>footer{padding:13px 22px 18px;background:#fff;border-top:1px solid #e5e8ec;flex:none}.cx-preview>footer>p{font-size:10px;color:#9197a1;margin:0 0 9px}.cx-preview>footer>div{display:flex;justify-content:flex-end;gap:8px}.cx-preview>footer button{font-size:12px;padding:10px 15px}.cx-primary,button.cx-primary{display:inline-block;border:1px solid #26765e;background:#26765e;color:white!important;border-radius:9px;text-decoration:none}.cx-safe{font-size:11px;color:#72877b;padding:5px 0}
#cx-editor fieldset{min-width:0;border:1px solid #e1e5e9;border-radius:10px;padding:14px;margin:0 0 15px;background:white}#cx-editor legend{font-size:12px;font-weight:650;padding:0 5px}#cx-editor label{font-size:12px;margin-bottom:15px}#cx-editor textarea{font-size:12px;min-height:75px;margin-top:5px}#cx-editor .cx-id{display:none}.cx-note{font-size:11px;color:#89909a}
.cx-panel{position:relative;border:1px solid #e1e4e8;background:#f4f5f7;margin:16px 0;border-radius:8px;overflow:hidden}.cx-panel img{width:100%;display:block}.cx-panel-number{position:absolute;left:8px;top:8px;background:white;padding:2px 7px;border-radius:5px;font-size:10px}.cx-panel-placeholder{padding:34px 18px 24px}.cx-panel-placeholder>strong{font-size:11px;color:#99a1ac}.cx-panel-placeholder p{font-size:11px}.cx-panel .cx-dialogue{background:white;border:1px solid #d8dce3;border-radius:16px;padding:9px 12px;margin:10px;font-size:12px}.cx-panel .cx-caption{background:#fff;padding:12px;margin:0;font-size:11px}
.cx-notice{font-size:11px;color:#9298a1;margin-top:14px}.cx-notice button{font-size:11px;padding:5px 8px}.cx-legacy-bar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.cx-legacy-bar span{font-size:12px;color:#89909a}.cx-mobile-tabs{display:none}.cx-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1500px){.cx-chat-scroll{padding-left:50px;padding-right:50px}.cx-composer-wrap{padding-left:45px;padding-right:45px}.cx-preview-scroll{padding:32px 40px}}
@media(max-width:1050px){.conversation-layout .shell{grid-template-columns:160px minmax(0,1fr)}.conversation-layout .sidebar{width:160px;padding:22px 10px}.cx-workspace{grid-template-columns:minmax(0,1fr) minmax(0,.95fr)}.cx-chat-scroll{padding:20px 16px}.cx-composer-wrap{padding:8px 14px 12px}.cx-preview-scroll{padding:16px}.cx-paper{padding:20px}.cx-chat-header,.cx-preview>header{padding:16px}.cx-chat-header h1{font-size:15px}}
@media(max-width:760px){.conversation-layout .shell{display:block}.conversation-layout .sidebar{display:none}.conversation-layout .main{width:100%}.conversation-layout .topbar{height:62px;min-height:62px;padding:10px 14px}.conversation-layout .topbar small,.conversation-layout .topbar #save-status,.conversation-layout .topbar [data-tab=reader]{display:none}.conversation-layout .topbar button{font-size:11px;padding:7px 10px}.cx-workspace{height:100%;min-height:0;display:flex;flex-direction:column}.cx-mobile-tabs{display:flex;flex:none;border-bottom:1px solid #e7e9ec;background:#fff;height:40px}.cx-mobile-tabs button{width:50%;font-size:12px;border:0;border-radius:0;background:transparent}.cx-workspace[data-mobile=chat] .cx-mobile-tabs button:first-child,.cx-workspace[data-mobile=preview] .cx-mobile-tabs button:last-child{box-shadow:inset 0 -2px #26765e;color:#26765e}.cx-chat,.cx-preview{flex:1;min-height:0;border:0}.cx-workspace[data-mobile=chat] .cx-preview,.cx-workspace[data-mobile=preview] .cx-chat{display:none}.cx-chat-header{padding:12px 16px}.cx-chat-scroll{padding:18px 16px}.cx-welcome{padding:30px 5px 20px}.cx-welcome h2{font-size:23px}.cx-preview>header{padding:12px 16px}.cx-composer textarea{font-size:16px}.cx-assistant{grid-template-columns:20px minmax(0,1fr);gap:8px}.cx-option{padding:12px 10px}.cx-preview>footer{padding:12px 16px}.conversation-layout #feedback-bubble{bottom:9px;left:10px;right:auto;transform:scale(.8);transform-origin:bottom left}.cx-composer-note{padding-left:70px;font-size:9px}}
