/* Studio-owned chat-first composition; canonical Dot, fonts and material retained. */
body.ct-ui[data-layout="chat-first"]{background:#06060a;color:#eef0e8;--cf-rail:224px;--cf-nav-height:70px}
body.ct-ui[data-layout="chat-first"] #appShell{min-height:100dvh;isolation:isolate}
body.ct-ui[data-layout="chat-first"] .header-line{display:none}
body.ct-ui[data-layout="chat-first"] #appHeader{margin:0 0 0 var(--cf-rail);padding:0 36px;width:calc(100% - var(--cf-rail));max-width:none;height:66px;min-height:66px;border-bottom:1px solid #ffffff0c;position:sticky;top:0;z-index:25;background:#06060aeb;backdrop-filter:blur(16px);gap:12px}
body.ct-ui[data-layout="chat-first"] #main{margin:0 0 0 var(--cf-rail);padding:28px clamp(20px,4vw,64px) 48px;width:calc(100% - var(--cf-rail));max-width:none;min-width:0;position:relative}
body.ct-ui[data-layout="chat-first"] #main::before{content:"";position:fixed;top:66px;left:var(--cf-rail);right:0;height:390px;background:radial-gradient(ellipse at 55% 0%,#d6ff3f06,transparent 68%);pointer-events:none;z-index:-1}
body.ct-ui[data-layout="chat-first"] .ct-product-view{max-width:1240px;margin-inline:auto;min-width:0}
body.ct-ui[data-layout="chat-first"] .ct-product-chat{max-width:920px;animation:none}
body.ct-ui[data-layout="chat-first"] .connect-header{gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:24px}
body.ct-ui[data-layout="chat-first"] .connect-header h1{font-size:clamp(27px,3vw,38px);line-height:1.12;margin:0}
body.ct-ui[data-layout="chat-first"] .connect-header .eyebrow,body.ct-ui[data-layout="chat-first"] .connect-header .top-copy:empty{display:none}
.cf-page-heading{display:flex;align-items:center;gap:12px;min-width:0;font-size:14px}.cf-page-heading strong{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-desktop-product{display:flex;gap:14px;color:#777b73;font-size:13px}.cf-mobile-dot{display:none;flex:none;object-fit:contain;border-radius:9px}
.cf-header-actions{display:flex;gap:12px;align-items:center;flex:none}.cf-preview-note{font-size:11px;color:#b2b5a6;white-space:nowrap;border:1px solid #ffffff14;border-radius:999px;padding:5px 9px}
.cf-account-button{height:40px;width:40px;border:1px solid #ffffff18;background:transparent;border-radius:50%;display:grid;place-items:center;color:#dadbd4;cursor:pointer}.cf-account-button svg{height:19px;width:19px}
.cf-navigation{position:fixed;inset:0 auto 0 0;width:var(--cf-rail,224px);background:#08080d;border-right:1px solid #ffffff0d;z-index:35;padding:28px 16px}.cf-navigation[hidden]{display:none!important}
.cf-nav{height:100%;display:flex;flex-direction:column;gap:30px}.cf-rail-brand{display:flex;align-items:center;gap:11px;padding:0 9px;font:800 23px/1.1 "Syne",sans-serif;letter-spacing:-.04em}.cf-rail-brand>img{object-fit:contain;border-radius:12px}.cf-rail-brand div>span{color:#d6ff3f}.cf-rail-brand small{display:block;font:500 10px/2 "Instrument Sans",sans-serif;letter-spacing:.2em;color:#8b8f80;margin-top:3px}
.cf-nav-items{display:grid;gap:7px}.cf-nav-items button,.cf-rail-footer button{display:flex;align-items:center;gap:12px;text-align:left;background:none;border:1px solid transparent;color:#aeb2a9;border-radius:12px;padding:12px;font:500 14px/1.3 "Instrument Sans",sans-serif;cursor:pointer;min-height:46px;transition:background .16s,color .16s}.cf-nav-items button svg,.cf-rail-footer button svg{height:20px;width:20px;flex:none}.cf-nav-items button[aria-current],.cf-nav-items button:hover{color:#e9eee0;background:#d6ff3f09;border-color:#d6ff3f14}.cf-nav-items button[aria-current] svg{color:#d6ff3f}
.cf-rail-footer{margin-top:auto;padding-top:18px;border-top:1px solid #ffffff0e;display:grid;gap:24px;min-width:0}.cf-rail-footer p{padding:0 12px;color:#65695f;font-size:13px;line-height:1.6}.cf-rail-footer button{overflow:hidden;width:100%}.cf-rail-footer button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-chat-first{display:flex;flex-direction:column;min-width:0}.cf-chat-context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.cf-chat-selectors{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.cf-chat-selectors label{display:grid;gap:4px;min-width:0}.cf-chat-selectors label>span{font-size:10px;color:#797e70;text-transform:uppercase;letter-spacing:.08em;padding-left:3px}
body.ct-ui[data-layout="chat-first"] .cf-chat-selectors select{width:auto;max-width:250px;min-height:40px;border:1px solid #ffffff14;border-radius:10px;padding:8px 30px 8px 12px;background:#0c0d10;color:#d4d7ce;font-size:13px}.cf-context-pill{font:inherit;font-size:12px;border:1px solid #d6ff3f30;color:#d6ff3f;border-radius:999px;padding:9px 12px;background:#d6ff3f06;cursor:pointer}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-native-split{display:block}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-chat-panel{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;backdrop-filter:none;height:auto;min-height:0}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-chat-panel>.ct-hero-line{justify-content:flex-end;min-height:24px;margin:0 0 4px;gap:0}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-hero-line>div:first-child{display:none}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-chat-log{flex:none;min-height:0;max-height:none;padding:0 0 20px;display:flex;flex-direction:column;gap:18px;overflow:visible;border:0;background:transparent}
.cf-chat-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 12px 28px;gap:0}.cf-dot-stage{width:168px;height:168px;position:relative;flex:none;touch-action:pan-y}.cf-dot-stage canvas{display:block;width:100%;height:100%;position:relative;z-index:1}.cf-dot-stage .dot-contact-shadow{position:absolute;bottom:8%;left:25%;width:50%;height:8%;background:#0007;filter:blur(7px);border-radius:50%}
.cf-chat-welcome .cf-eyebrow{font-size:10px;letter-spacing:.2em;color:#848a78;margin:0 0 12px}
body.ct-ui[data-layout="chat-first"] .cf-chat-welcome h1{font-family:"Syne",sans-serif;font-size:clamp(32px,4.7vw,54px);font-weight:700;letter-spacing:-.055em;line-height:1.08;margin:0}.cf-chat-welcome h1 span{color:#9da494}.cf-chat-welcome p:last-child{font-size:13px;color:#818779;margin:16px 0 0}
body.ct-ui[data-layout="chat-first"] #chatForm{border:1px solid #ffffff1b;border-radius:22px;background:#101116e8;padding:12px;box-shadow:0 15px 55px #0002;position:relative}
body.ct-ui[data-layout="chat-first"] #chatForm:focus-within{border-color:#d6ff3f57;box-shadow:0 0 0 3px #d6ff3f05,0 15px 55px #0002}
body.ct-ui[data-layout="chat-first"] #chatForm .ct-flex{display:flex;align-items:flex-end;gap:10px;flex-wrap:nowrap}
body.ct-ui[data-layout="chat-first"] #liveChatInput{resize:none;min-height:56px;max-height:180px;min-width:0;width:100%;border:0;box-shadow:none;background:transparent;border-radius:12px;padding:10px 8px;font:400 16px/1.5 "Instrument Sans",sans-serif;color:#ecefe6;outline:none}
body.ct-ui[data-layout="chat-first"] #liveChatInput::placeholder{color:#72786a}
body.ct-ui[data-layout="chat-first"] #chatForm button[type=submit]{min-width:48px;min-height:48px;border-radius:15px;white-space:nowrap;flex:none;font-size:13px;padding:12px 15px}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-message{border-radius:18px;padding:14px 17px;max-width:90%;overflow-wrap:anywhere;font-size:15px;line-height:1.65;background:#ffffff04;border:1px solid #ffffff0a}
body.ct-ui[data-layout="chat-first"] .cf-chat-first .ct-message.mine{align-self:flex-end;background:#d6ff3f0b;border-color:#d6ff3f18;color:#e0e5d7}
.cf-chat-starters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:18px 0 0}.cf-chat-starters button{display:flex;align-items:center;gap:7px;border:1px solid #ffffff11;background:transparent;border-radius:999px;color:#9da591;font:inherit;font-size:12px;padding:10px 13px;min-height:42px;cursor:pointer}.cf-chat-starters button:hover{border-color:#d6ff3f38;color:#d6ff3f}.cf-chat-starters svg{width:15px;height:15px}
.cf-chat-tools{margin-top:24px;border-top:1px solid #ffffff0b;padding-top:14px}.cf-chat-tools>summary{font-size:12px;color:#929989;cursor:pointer;min-height:44px;display:flex;align-items:center}.cf-chat-tools>summary::before{content:"+";margin-right:8px;color:#d6ff3f}
.cf-more{max-width:900px;margin:0 auto}.cf-more>h1{font:700 clamp(30px,4vw,42px)/1.1 "Syne",sans-serif;letter-spacing:-.04em;margin:4px 0 12px}.cf-more>p{color:#858e7b;margin-bottom:30px;font-size:14px}
.cf-more-section{margin:24px 0}.cf-more-section>h2{font-size:11px;color:#7a826f;text-transform:uppercase;letter-spacing:.14em;margin:0 0 12px;font-family:"Instrument Sans",sans-serif}.cf-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cf-more-grid>button{display:flex;align-items:center;gap:12px;padding:18px;text-align:left;border:1px solid #ffffff0d;border-radius:15px;background:#10111660;color:#e2e7d7;cursor:pointer;min-width:0;font-family:"Instrument Sans",sans-serif;transition:background .16s,border-color .16s}.cf-more-grid>button:hover{border-color:#d6ff3f30;background:#d6ff3f04}.cf-more-grid>button>svg{width:21px;height:21px;flex:none;color:#b6c39d}.cf-more-grid>button>svg:last-child{margin-left:auto;width:16px;color:#778263}.cf-more-grid>button>span{display:grid;gap:5px}.cf-more-grid strong{font-size:14px;font-weight:550}.cf-more-grid small{font-size:12px;color:#818a74;line-height:1.4}
.cf-clt-link{display:flex;align-items:center;gap:10px;width:100%;padding:16px 8px;border:0;border-top:1px solid #ffffff0f;background:transparent;color:#818a75;font:inherit;font-size:13px;text-align:left;cursor:pointer}.cf-clt-link small{margin-left:auto;font-size:11px}.cf-clt-link svg{width:16px;height:16px}
body.ct-ui[data-layout="chat-first"] .ux-wallet{border:0;padding:0;background:transparent;box-shadow:none;backdrop-filter:none}
.cf-crm-overview{margin-bottom:18px;border-bottom:1px solid #ffffff0e}.cf-crm-overview>summary{font-size:12px;padding:10px 0 15px;color:#8f9880;cursor:pointer}.cf-select-all{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;color:#afb8a0}.cf-select-all input{width:19px;height:19px;accent-color:#d6ff3f}
body.ct-ui[data-layout="chat-first"] .ct-crm-source{font-size:12px;padding:10px 12px;background:#d6ff3f03;border-color:#d6ff3f14;color:#929b83}.ct-crm-source summary{cursor:pointer}.ct-crm-source p{margin-top:10px}.ct-crm-stage-note{font-size:11px}
body.ct-ui[data-layout="chat-first"] .ux-selection-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:8px 0 16px;font-size:12px}
body.ct-ui[data-layout="chat-first"] .ct-crm-list-row{padding:14px 16px;border-color:#ffffff0b}.ct-crm-list-row input[type=checkbox]{width:19px;height:19px;vertical-align:middle;margin-right:8px}.ct-crm-list-row label{min-height:44px;display:flex;align-items:center}
.cf-credential-saved{border:1px solid #d6ff3f25;background:#d6ff3f04;padding:16px;border-radius:14px;margin:15px 0}.cf-credential-saved>strong{color:#d6ff3f;font-size:14px}.cf-credential-saved dl{display:grid;gap:10px;margin:16px 0}.cf-credential-saved dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;font-size:13px}.cf-credential-saved dt{color:#8d967d}.cf-credential-saved dd{margin:0;overflow-wrap:anywhere}.cf-credential-saved p{font-size:12px;color:#959e87;line-height:1.6}
.cf-credential-replace{padding-top:8px}.cf-credential-replace summary{min-height:44px;cursor:pointer;color:#b0b99f;font-size:13px;display:flex;align-items:center}.cf-credential-replace summary::before{content:"+";margin-right:8px}
body.ct-ui[data-layout="chat-first"] :is(button,select,summary,a):focus-visible{outline:2px solid #d6ff3f;outline-offset:3px}
@media(max-width:760px){
 body.ct-ui[data-layout="chat-first"]{--cf-rail:0px}
 body.ct-ui[data-layout="chat-first"] #appHeader{margin:0;width:100%;height:60px;min-height:60px;padding:0 14px;gap:6px}
 .cf-desktop-product{display:none}.cf-mobile-dot{display:block}.cf-page-heading{gap:8px;font-size:13px}.cf-header-actions{gap:6px}.cf-preview-note{font-size:10px;padding:5px 7px}.cf-account-button{width:36px;height:36px}
 body.ct-ui[data-layout="chat-first"] #main{margin:0;width:100%;padding:18px 16px calc(92px + env(safe-area-inset-bottom,0px))}
 .cf-navigation{inset:auto 0 0 0;width:100%;height:calc(var(--cf-nav-height) + env(safe-area-inset-bottom,0px));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #ffffff14;background:#090a0ff5;backdrop-filter:blur(18px)}
 .cf-nav{display:block}.cf-rail-brand,.cf-rail-footer{display:none}.cf-nav-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;height:100%}.cf-nav-items button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:54px;padding:5px 2px;text-align:center;border-radius:12px;font-size:10px;line-height:1.2}.cf-nav-items button svg{height:22px;width:22px}.cf-nav-items button[aria-current]{background:#d6ff3f07;border-color:transparent;color:#d6ff3f}
 body.ct-ui[data-layout="chat-first"] .connect-header{margin-bottom:18px}.connect-header .right{flex-wrap:wrap;gap:6px}
 .cf-chat-context{margin-bottom:4px}.cf-chat-selectors{gap:6px;flex:1}.cf-chat-selectors label{max-width:calc(50vw - 24px)}
 body.ct-ui[data-layout="chat-first"] .cf-chat-selectors select{max-width:100%;font-size:13px;min-height:44px}
 .cf-dot-stage{width:132px;height:132px}.cf-chat-welcome{padding:0 4px 24px}.cf-chat-welcome p:last-child{max-width:240px;margin:12px auto 0;font-size:12px}
 body.ct-ui[data-layout="chat-first"] .cf-chat-welcome h1{font-size:36px}.cf-chat-welcome .cf-eyebrow{font-size:9px;letter-spacing:.15em}
 body.ct-ui[data-layout="chat-first"] #chatForm{padding:8px;border-radius:20px;position:relative;bottom:auto;z-index:10}
 body.ct-ui[data-layout="chat-first"] #chatForm button[type=submit]{width:48px;min-width:48px;overflow:hidden;font-size:0;padding:12px}
 body.ct-ui[data-layout="chat-first"] #chatForm button[type=submit] svg{font-size:16px;width:22px;height:22px}
 .cf-chat-starters{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:12px;gap:6px}.cf-chat-starters button{white-space:nowrap;flex:none;min-height:44px;font-size:11px}.cf-chat-tools{margin-top:16px}
 .cf-more-grid{grid-template-columns:1fr;gap:7px}.cf-more-grid>button{padding:15px;min-height:74px}.cf-more>p{margin-bottom:22px}.cf-more-section{margin:22px 0}
 body.ct-ui[data-layout="chat-first"] .ct-crm-list{border:0;overflow:visible;margin:0}.ct-crm-list-head{display:none!important}
 body.ct-ui[data-layout="chat-first"] .ct-crm-list-row{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;margin-bottom:10px;border:1px solid #ffffff11;border-radius:15px;background:#0e0f1566}.ct-crm-list-row>span:first-child{grid-column:1/-1}.ct-crm-list-row>span:last-child{grid-column:1/-1;justify-content:flex-end}.ct-crm-list-row>span:nth-child(3){text-align:right}.ct-crm-list-row small{margin-top:0}
 body.ct-ui[data-layout="chat-first"] .ct-crm-board{max-width:100%;margin:0}.ct-crm-column{flex-basis:min(270px,84vw)}
 body.ct-ui[data-layout="chat-first"] .ct-dialog-backdrop{padding:0;align-items:flex-end}
 body.ct-ui[data-layout="chat-first"] .ct-dialog{border-radius:24px 24px 0 0;max-height:92dvh;width:100%;max-width:100%;padding:20px 18px calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto}
 body.ct-ui[data-layout="chat-first"] .ct-dialog :is(input,select,textarea){font-size:16px}
 body.ct-ui[data-layout="chat-first"][data-keyboard-open="true"] .cf-navigation{display:none}
 body.ct-ui[data-layout="chat-first"][data-keyboard-open="true"] #chatForm{bottom:8px}
}
@media(prefers-reduced-motion:reduce){body.ct-ui[data-layout="chat-first"] *,body.ct-ui[data-layout="chat-first"] *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:761px){.cf-account-button{display:none}}
@media(max-width:760px){.cf-account-button{width:44px;height:44px}.cf-chat-starters button{min-height:44px}body.ct-ui[data-layout="chat-first"] #main button,body.ct-ui[data-layout="chat-first"] #main summary,body.ct-ui[data-layout="chat-first"] #overlayRoot button{min-height:44px}body.ct-ui[data-layout="chat-first"] #appHeader{padding-top:env(safe-area-inset-top,0px);height:calc(60px + env(safe-area-inset-top,0px))}}
