.studio-shell{max-width:1600px;margin:0 auto;padding:10px 12px 44px;color:#263c31}
.studio-top,.studio-section-head{display:flex;align-items:center;justify-content:space-between;gap:24px}
.studio-top h1{font-size:28px;line-height:1.25;margin:5px 0 3px;letter-spacing:0}
.studio-top p{margin:0;color:#69796c;font-size:13px}
.studio-kicker{font-size:11px;font-weight:750;letter-spacing:0;color:#4e826a}
.studio-switch{display:flex;gap:2px;padding:3px;background:#e9f0e9;border:1px solid #d5e1d6;border-radius:6px;flex-shrink:0}
.studio-switch button{border:0;background:none;color:#526a5c;padding:9px 14px;border-radius:4px;font:inherit;font-size:13px;cursor:pointer}
.studio-switch button.active{background:#fff;color:#1d6043;box-shadow:0 1px 4px #173b2718;font-weight:750}
.studio-modes{display:flex;gap:4px;margin:10px 0 12px;border-bottom:1px solid #dce6dd;overflow:auto}
.studio-modes button{flex:0 0 auto;background:none;border:0;border-bottom:2px solid transparent;color:#637368;padding:10px 15px 12px;font:inherit;font-size:13px;cursor:pointer}
.studio-modes button.active{color:#215c41;border-color:#2c8159;font-weight:750}
.studio-first{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,30%);gap:12px;align-items:stretch}
.studio-chat,.studio-structure{background:#fff;border:1px solid #dce7de;border-radius:7px;min-width:0;overflow:hidden}
.studio-chat{position:relative}
.studio-chat-view{position:absolute;z-index:2;top:12px;right:12px;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #cbded0;border-radius:5px;background:#fff;color:#276548;font:inherit;font-size:12px;cursor:pointer}
.studio-chat-view .mini-icon{width:16px;height:16px}
.studio-chat{display:grid;grid-template-rows:minmax(180px,34%) minmax(150px,1fr) auto;height:max(450px,calc(100dvh - 275px))}
.studio-avatar{display:grid;grid-template-columns:minmax(190px,32%) minmax(0,1fr);align-items:center;gap:20px;min-height:180px;background:#eef5ef;border-bottom:1px solid #deeadf;overflow:hidden}
.studio-avatar .agent-avatar{align-self:end;justify-self:center;width:min(100%,300px);height:100%;min-height:180px}
.studio-avatar-copy{padding:22px 26px 22px 0}
.studio-avatar-copy h2{font-size:26px;line-height:1.25;margin:12px 0 8px}
.studio-avatar-copy p{font-size:14px;line-height:1.65;color:#53675a;margin:0;max-width:360px}
.studio-conversation.chat-body{padding:18px 26px;min-height:150px;max-height:none;overflow:auto}
.studio-opening{margin:2px 0 10px;font-size:14px;line-height:1.6;color:#344c3e;white-space:pre-wrap}
.studio-starters{display:flex;flex-wrap:wrap;gap:8px}
.studio-starters button{border:1px solid #d5e2d6;background:#f7faf7;color:#28583e;border-radius:5px;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.studio-starters .mini-icon{width:13px;height:13px}
.studio-chat .composer{border-top:1px solid #e2eae3}
.studio-chat .composer-bottom{align-items:center}
.studio-teaser{display:none}
.studio-structure{display:flex;flex-direction:column;min-height:450px}
.studio-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 17px 12px}
.studio-panel-head h2{font-size:16px;margin:4px 0 0}
.studio-flow-preview{flex:1;min-height:250px;margin:0 12px 10px;border:1px solid #e4ebe4;border-radius:5px;overflow:hidden}
.studio-flow-preview .fe-stage{height:250px}
.studio-flow-preview .fe-foot{display:none}
.studio-structure-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid #e4ebe4;color:#607565;font-size:11px}
.studio-structure-foot>span{display:flex;align-items:center;gap:5px}
.studio-structure-foot .mini-icon{width:14px;height:14px}
.studio-progress,.studio-expression,.studio-trace{margin-top:18px;border-top:1px solid #dde8de;padding-top:13px}
.studio-progress>summary,.studio-expression>summary,.studio-trace>summary{cursor:pointer;color:#2d664b;font-weight:700;padding:8px 0}
.studio-progress .creator-page{margin-top:12px}
.studio-section-head{margin:4px 0 8px}
.studio-section-head h2{font-size:21px;margin:4px 0 0}
.studio-section-note{font-size:13px;color:#65776a;line-height:1.6;margin:0 0 13px}
#flow-status:not(:empty){margin-bottom:10px}
.studio-flow-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start}
.studio-flow-editor{min-width:0;height:660px;border:1px solid #dce7de;border-radius:6px;overflow:hidden;background:#fff}
.studio-inspector{border:1px solid #dce7de;border-radius:6px;padding:18px;background:#fff;min-width:0}
.studio-inspector h3{margin:7px 0;font-size:18px}
.studio-inspector p{font-size:12px;line-height:1.65}
.studio-inspector form{margin-top:14px}
.studio-inspector .btn{margin-top:10px}
.flow-inspector-button{display:none}
.studio-port-list{font-size:12px;line-height:1.8;background:#f5f8f5;border-radius:4px;padding:9px 10px;margin:12px 0}
.studio-trace p{font-size:12px;border-bottom:1px solid #edf1ed;padding:7px 0}
.studio-trace strong{margin-right:8px}
.page-create,.page-example,.page-flow,.page-knowledge,.page-tests,.page-lessons{max-width:none}
body.flow-immersive{overflow:hidden}
.studio-flow-immersive{position:fixed;inset:0;z-index:55;display:flex;flex-direction:column;width:100vw;max-width:none;height:100dvh;margin:0;padding:12px 16px;background:#f5f9f6;overflow:hidden}
.studio-flow-immersive .studio-top,.studio-flow-immersive .studio-modes,.studio-flow-immersive .studio-section-note,.studio-flow-immersive .studio-trace,.studio-flow-immersive .studio-expression{display:none}
.studio-flow-immersive .studio-section-head{flex:0 0 auto;min-height:48px;margin:0 0 8px}
.studio-flow-immersive .studio-section-head .head-actions{margin-left:auto}
.studio-flow-immersive .studio-section-head>.pill{display:none}
.studio-flow-immersive #flow-status{flex:0 0 auto;max-height:90px;overflow:auto}
.studio-flow-immersive .studio-flow-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 280px;align-items:stretch}
.studio-flow-immersive .studio-flow-editor,.studio-flow-immersive .studio-inspector{height:100%;min-height:0}
.studio-flow-immersive .studio-inspector{order:0;overflow:auto}
.studio-flow-immersive .studio-flow-editor .fe-shell{display:flex;flex-direction:column;height:100%}
.studio-flow-immersive .studio-flow-editor .fe-top,.studio-flow-immersive .studio-flow-editor .fe-palette,.studio-flow-immersive .studio-flow-editor .fe-link-editor,.studio-flow-immersive .studio-flow-editor .fe-foot{flex:0 0 auto}
.studio-flow-immersive .studio-flow-editor .fe-stage{flex:1;height:auto;min-height:0}
@media(max-width:760px){.studio-flow-immersive{padding:8px}.studio-flow-immersive .studio-section-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px}.studio-flow-immersive .studio-section-head h2{font-size:16px}.studio-flow-immersive .studio-section-head .studio-kicker{display:none}.studio-flow-immersive .studio-section-head .head-actions{width:auto;justify-content:flex-end;flex-wrap:nowrap;gap:4px}.studio-flow-immersive .studio-section-head .head-actions .btn{min-width:0;padding:6px 7px}.studio-flow-immersive .flow-view-button,.studio-flow-immersive .flow-inspector-button{display:inline-flex;flex:0 0 36px!important;width:36px}.studio-flow-immersive .flow-view-button span:not(.mini-icon),.studio-flow-immersive .flow-inspector-button span:not(.mini-icon){display:none}.studio-flow-immersive .studio-flow-layout{display:block;position:relative}.studio-flow-immersive .studio-flow-editor{height:100%}.studio-flow-immersive .studio-inspector{display:none;position:absolute;z-index:2;left:8px;right:8px;bottom:8px;width:auto;height:auto;max-height:min(58dvh,460px);box-shadow:0 10px 35px #193c352e}.studio-flow-immersive.studio-inspector-open .studio-inspector{display:block}}
@media print{.studio-flow-immersive{position:static;width:auto;height:auto;overflow:visible}.studio-flow-immersive .studio-top,.studio-flow-immersive .studio-modes{display:flex}}
@media(max-width:1080px){.studio-first{grid-template-columns:1fr}.studio-chat,.studio-structure{min-height:0}.studio-flow-preview{height:390px;flex:none}.studio-flow-layout{grid-template-columns:1fr}.studio-inspector{order:-1}.studio-flow-editor{height:570px}}
@media(max-width:680px){.studio-shell{padding:14px 12px 72px}.studio-top{align-items:flex-start;flex-direction:column;gap:12px}.studio-top h1{font-size:23px}.studio-switch{width:100%}.studio-switch button{flex:1}.studio-modes{margin:12px 0 14px}.studio-modes button{padding:10px 11px;font-size:12px}.studio-avatar{grid-template-columns:124px minmax(0,1fr);gap:12px;min-height:132px}.studio-avatar .agent-avatar{width:116px;height:132px}.studio-avatar-copy{padding:10px 12px 10px 0}.studio-avatar-copy h2{font-size:18px;margin:8px 0 5px}.studio-avatar-copy p{font-size:11px;line-height:1.5}.studio-conversation.chat-body{max-height:185px;min-height:100px;padding:11px 14px}.studio-chat:has(.studio-conversation .message) .studio-avatar{min-height:112px}.studio-chat:has(.studio-conversation .message) .studio-avatar .agent-avatar{height:112px}.studio-opening{font-size:14px}.studio-starters button{font-size:11px}.studio-flow-preview{height:340px;margin:0 8px 8px}.studio-structure-foot{flex-wrap:wrap}.studio-section-head{align-items:flex-start;flex-direction:column;gap:8px}.studio-section-head .head-actions{display:flex;width:100%}.studio-section-head .head-actions .btn{flex:1}.studio-flow-editor{height:500px}.studio-inspector{padding:14px}}
@media(max-width:680px){.studio-chat{grid-template-rows:auto auto minmax(90px,1fr) auto}.studio-teaser{display:flex;flex-direction:column;gap:4px;width:100%;padding:7px 13px;border:0;border-bottom:1px solid #e2eae3;background:#fbfdfb;color:#315c43;text-align:left}.studio-teaser-title{font-size:10px;font-weight:700}.studio-teaser-steps{display:flex;align-items:center;gap:4px;max-width:100%;overflow:hidden}.studio-teaser-node{padding:2px 4px;border:1px solid #d6e4d8;border-radius:3px;background:#fff;font-size:9px;white-space:nowrap}.studio-teaser-arrow{color:#729882;font-size:13px}.studio-chat:has(.studio-conversation .message) .studio-conversation.chat-body{max-height:145px}}
#toast:not(.visible){transform:translateX(-50%) translateY(calc(100% + 110px))}
@media(prefers-reduced-motion:reduce){.studio-shell *{scroll-behavior:auto!important}}
.studio-chat-immersive{position:fixed;inset:0;z-index:55;display:block;width:100vw;height:100dvh;background:#fff}
.studio-chat-immersive .studio-chat{width:100%;height:100%;min-height:0;border:0;border-radius:0;grid-template-rows:minmax(240px,42%) minmax(0,1fr) auto}
.studio-chat-immersive .studio-avatar{grid-template-columns:minmax(270px,42%) minmax(0,1fr);min-height:0}
.studio-chat-immersive .studio-avatar .agent-avatar{height:100%;width:min(100%,440px);min-height:0}
.studio-chat-immersive .studio-conversation.chat-body{max-width:1050px;width:100%;margin:0 auto;min-height:0;overflow:auto}
.studio-chat-immersive .studio-chat .composer{width:100%;padding-left:max(24px,calc((100vw - 1000px)/2));padding-right:max(24px,calc((100vw - 1000px)/2))}
.studio-chat-immersive .studio-structure{display:none}
body:has(.studio-chat-immersive){overflow:hidden}
.workspace:has(.studio-shell) .mode-strip{display:none}
@media(min-width:1081px){.studio-structure{height:max(450px,calc(100dvh - 275px))}}
@media(max-width:1080px){.studio-chat{height:max(450px,calc(100dvh - 275px));min-height:0}.studio-structure{min-height:430px}}
@media(max-width:680px){
 .studio-shell{padding:6px 0 72px}
 .studio-top{flex-direction:row;align-items:center;gap:8px}.studio-top h1{font-size:20px;margin:0}.studio-top p,.studio-top .studio-kicker{display:none}
 .studio-switch{width:auto;min-width:0;flex-shrink:1}.studio-switch button{padding:8px;font-size:12px}
 .studio-modes{margin:8px 0 10px}.studio-modes button{padding:9px 10px}
 .studio-chat{grid-template-rows:minmax(190px,27dvh) auto minmax(140px,1fr) auto;height:max(560px,calc(100dvh - 284px));min-height:0}
 .studio-avatar{grid-template-columns:minmax(140px,42%) minmax(0,1fr);min-height:205px;gap:6px}
 .studio-avatar .agent-avatar,.studio-chat:has(.studio-conversation .message) .studio-avatar .agent-avatar{width:100%;height:100%;min-height:205px}
 .studio-avatar .agent-avatar__figure{background-size:contain;background-position:center bottom}
 .studio-chat:has(.studio-conversation .message) .studio-avatar{min-height:205px}
 .studio-avatar-copy{padding:12px 12px 12px 0}.studio-avatar-copy h2{font-size:19px}.studio-avatar-copy p{font-size:12px}
 .studio-conversation.chat-body,.studio-chat:has(.studio-conversation .message) .studio-conversation.chat-body{min-height:140px;max-height:none;padding:12px 14px}
 .studio-structure{min-height:430px;margin-top:14px}
 .studio-teaser{padding:9px 13px}
 .studio-chat-view{top:8px;right:8px;padding:6px;width:34px;justify-content:center}.studio-chat-view span:not(.mini-icon){display:none}
 .studio-chat-immersive .studio-chat{height:100%;min-height:0;grid-template-rows:minmax(220px,38%) auto minmax(0,1fr) auto}
 .studio-chat-immersive .studio-avatar{grid-template-columns:minmax(160px,45%) minmax(0,1fr)}
 .studio-chat-immersive .studio-avatar .agent-avatar{min-height:0}
 .studio-chat-immersive .studio-conversation.chat-body{min-height:0}
 .studio-chat-immersive .studio-chat .composer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}
}

/* Customer feedback: warm surfaces and a larger character/conversation area. */
body{background:#faf8f3}
.studio-first{grid-template-columns:minmax(0,1fr) minmax(250px,27%)}
.studio-chat{height:max(520px,calc(100dvh - 240px));grid-template-rows:minmax(210px,38%) minmax(170px,1fr) auto}
.studio-avatar{grid-template-columns:minmax(220px,43%) minmax(0,1fr);background:#f5f1e7;min-height:210px}
.studio-avatar .agent-avatar{max-width:360px;min-height:210px}
.studio-avatar-copy h2{font-size:29px}
.studio-conversation.chat-body{font-size:15px;background:#fffefa}
.studio-inspector{background:#fffdf8}
.studio-chat .notice{font-size:14px}
@media(max-width:760px){
 .studio-first{display:block}
 .studio-chat{height:auto;min-height:calc(100dvh - 245px);grid-template-rows:190px auto minmax(130px,1fr) auto}
 .studio-avatar{grid-template-columns:46% minmax(0,1fr);min-height:190px;gap:8px}
 .studio-avatar .agent-avatar{min-height:190px}
 .studio-avatar-copy{padding:42px 12px 12px 0}
 .studio-avatar-copy h2{font-size:23px}
 .studio-avatar-copy .pill{font-size:10px}
 .studio-conversation.chat-body{padding:16px;max-height:44dvh;min-height:130px}
 .studio-chat-immersive .studio-chat{grid-template-rows:170px auto minmax(0,1fr) auto;height:100dvh;min-height:0}
 .studio-chat-immersive .studio-avatar,.studio-chat-immersive .studio-avatar .agent-avatar{min-height:170px}
 .studio-chat-immersive .studio-conversation.chat-body{max-height:none;min-height:0}
}
