.bot-editor{color:#34443d;background:#f5f2ec;border:1px solid #e4e6df;border-radius:18px;overflow:hidden;min-width:0}
.bot-editor *{box-sizing:border-box}
.detail:has(>.bot-editor){max-width:none;width:100%}
.bot-editor .bot-editor-header{position:static;display:block;width:auto;min-height:0;box-shadow:none;border-radius:0}
.bot-editor .bot-breadcrumb{position:static;inset:auto;width:auto;height:auto;min-height:0;margin:0;justify-content:flex-start;background:transparent;box-shadow:none;border:0;border-radius:0;backdrop-filter:none;transform:none;z-index:auto}
.bot-editor .bot-window-top{position:static;width:auto;margin:0;box-shadow:none;border-radius:0;backdrop-filter:none;transform:none}
.bot-editor .bot-editor-footer{position:static;width:auto;margin:0;background:transparent;box-shadow:none;border-radius:0}
.bot-editor-header{padding:24px;background:#fbf9f4;border-bottom:1px solid #e4e6df}
#app .bot-editor-header h2{margin:0 0 8px;font:400 27px/1.2 Georgia,serif;color:#34443d}
.bot-editor-header p{margin:0;color:#6b7770;font-size:13px}
.bot-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:18px 22px 4px;color:#85918d;font-size:12px}
#app .bot-breadcrumb button{border:0;background:transparent;color:#526879;padding:4px 0;min-height:28px;box-shadow:none;font-size:12px;text-align:left;border-radius:0}
.bot-canvas{position:relative;padding:22px 22px 34px;min-width:0}
.bot-columns{position:relative;display:grid;grid-template-columns:repeat(var(--bot-count,3),minmax(0,1fr));gap:42px;align-items:start}
.bot-column{min-width:0;display:flex;flex-direction:column;gap:24px}
.bot-column:nth-child(2){padding-top:58px}.bot-column:nth-child(3){padding-top:116px}.bot-column:nth-child(4){padding-top:174px}
.bot-connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:#9aadb9;overflow:visible}
.bot-connections>g>path{fill:none;stroke:#9aadb9;stroke-width:1.5;marker-end:url(#bot-curve-arrow)}
.bot-window{position:relative;min-width:0;background:#fff;border:1px solid #dfe4e5;border-radius:14px;box-shadow:0 6px 18px #34443d08;overflow:hidden;animation:bot-window-in .25s ease-out}
.bot-window.bot-current{border-color:#b3935f;box-shadow:0 0 0 2px #e5cc9e55}
.bot-window-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:55px;padding:12px 12px 12px 15px;border-bottom:1px solid #edf0ed;background:#fafbf9}
#app .bot-window h3{margin:0;font:500 14px/1.35 Arial,sans-serif;overflow-wrap:anywhere;color:#34443d}
.bot-step{display:block;font:400 11px/1.4 Arial,sans-serif;color:#7a878e;margin-top:3px}
#app .bot-pencil{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:9px;background:#edf2f5;color:#526879;font:400 22px/1 Arial,sans-serif;box-shadow:none}
#app .bot-pencil:hover{background:#dce7ee}
.bot-copy{padding:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0;color:#34443d}
.bot-buttons{display:grid;gap:6px;padding:0 12px 13px}
#app .bot-go{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;padding:9px 8px;border:1px solid #e0e8ed;border-radius:9px;background:#edf3f7;color:#3e6078;font-size:12px;line-height:1.45;min-height:45px;text-align:center;white-space:normal;box-shadow:none}
#app .bot-go:hover{background:#dfeaf1;border-color:#b4c9d7}
#app .bot-go.bot-open{background:#526879;color:#fff;border-color:#526879}
.bot-go small{font-size:11px;color:#718796}.bot-go.bot-open small{color:#e0e9ef}
.bot-shared{margin:0 13px 13px;padding:8px 10px;background:#faf3e6;color:#806439;border-radius:8px;font-size:11px}
.bot-edit{display:grid;gap:12px;padding:13px}.bot-edit .bot-shared{margin:0}
.bot-edit-field{display:grid;gap:6px;margin:0;font-size:12px;color:#63716a}
#app .bot-edit textarea,#app .bot-edit input{display:block;width:100%;margin:0;border:1px solid #cbd6dc;border-radius:9px;background:#fff;color:#34443d;padding:10px;font:14px/1.55 Arial,sans-serif;min-width:0}
.bot-edit textarea{min-height:180px;resize:vertical}
.bot-edit-actions{display:flex;gap:7px}
#app .bot-edit-actions button{flex:1;padding:9px 7px;min-height:40px;border:0;border-radius:8px;font-size:12px;background:#526879;color:#fff;box-shadow:none}
#app .bot-edit-actions button.secondary{background:#f0f2ed;color:#52634f}
.bot-edit-hint{margin:0;color:#737b73;font-size:11px;overflow-wrap:anywhere}
.bot-feedback{margin:0;padding:0 13px 13px;font-size:12px;color:#526879}.bot-feedback.bot-error{color:#a13434}
.bot-editor-footer{padding:15px 22px 18px;border-top:1px solid #e4e6df;color:#69756f;font-size:12px}
@keyframes bot-window-in{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.bot-window{animation:none}}
@media(max-width:1100px){.bot-columns{gap:28px}.bot-canvas{padding:18px 16px 28px}}
@media(max-width:680px){.bot-columns{grid-template-columns:minmax(0,1fr);gap:30px}.bot-column:nth-child(n){padding-top:0}.bot-column{gap:30px}.bot-canvas{padding:16px 20px 24px}.bot-editor-header{padding:20px 16px}.bot-breadcrumb{padding:12px 16px 4px}#app .bot-edit input,#app .bot-edit textarea{font-size:16px}#app .bot-pencil{width:44px;height:44px;min-height:44px;flex-basis:44px}}

/* Keep this editor's preview palette above the shared administrator button colors. */
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-go,
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-go.bot-open{background:#edf3f7;color:#3e6078;border-color:#e0e8ed}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-go:not(:disabled):hover{background:#dfeaf1;color:#3e6078;border-color:#b4c9d7}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-go small{color:#718796}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-pencil{background:#edf2f5;color:#526879}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor button.bot-pencil:not(:disabled):hover{background:#dce7ee;color:#526879}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-breadcrumb button,
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-breadcrumb button:not(:disabled):hover{background:transparent;color:#526879}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-edit-actions button{background:#526879;color:#fff}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-edit-actions button:not(:disabled):hover{background:#455b6b;color:#fff}
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-edit-actions button.secondary,
body.admin-shell-active #app:has(.admin-section-nav) .bot-editor .bot-edit-actions button.secondary:not(:disabled):hover{background:#f0f2ed;color:#52634f}
