.bot-editor-route.workspace-mode .app-shell{display:block;height:var(--workspace-viewport-height,100dvh)}
.bot-editor-route .sidebar,.bot-editor-route .topbar{display:none!important}
.bot-editor-route.workspace-mode .workspace{height:100%;overflow:hidden}
.bot-editor-route.workspace-mode #main{height:100%;max-width:none;margin:0;padding:0;overflow:hidden}
.bot-editor-page{height:100%;min-height:0;display:flex;flex-direction:column;background:#e8edf3;color:#20334b}
.bot-editor-page.catalog-frame-explorer{gap:0;overflow:hidden}
.bot-viz-workspace{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.bot-editor-page .bot-viz-dock{flex:none;border-radius:0;border-left:0;border-right:0;border-bottom:0;z-index:25}
.bot-editor-page button,.bot-editor-page input,.bot-editor-page select,.bot-editor-page textarea{font:inherit}
.bot-editor-page button{border:1px solid #ced9e8;background:#fff;color:#2a4667;border-radius:7px;padding:.42rem .65rem;cursor:pointer}
.bot-editor-page button:hover{border-color:#4d82d2;background:#edf5ff}.bot-editor-page button:disabled{opacity:.45;cursor:default}
.bot-editor-page input,.bot-editor-page select,.bot-editor-page textarea{border:1px solid #ced9e8;border-radius:7px;background:#fff;color:#20334b;padding:.42rem .5rem;min-width:0}
.bot-editor-page label{font-size:.76rem;color:#60758d;display:flex;align-items:center;gap:.4rem;margin:0}
.bot-editor-page label input[type=checkbox]{width:auto}
.bot-viz-head{flex:none;min-height:62px;padding:.55rem .85rem;display:flex;align-items:center;gap:.6rem;background:#fff;border-bottom:1px solid #dce5ef;flex-wrap:wrap}
.bot-viz-head-actions{display:contents}
.bot-viz-head label{flex:1;min-width:180px}.bot-viz-head label input{width:100%;font-weight:700;font-size:1rem}
.bot-viz-back{white-space:nowrap;color:#2a66b4;font-weight:700;padding:.5rem}
.bot-viz-status{font-size:.74rem;color:#657c95}.bot-viz-dirty{font-size:.75rem;color:#a26720;min-width:110px}
.bot-editor-page .bot-viz-primary{background:#3d70d8;color:#fff;border-color:#3d70d8;font-weight:700}
.bot-viz-conflict{background:#fff2d8;color:#6a461b;padding:.5rem 1rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.bot-viz-subhead{flex:none;display:flex;justify-content:space-between;align-items:center;gap:.5rem;background:#fff;border-bottom:1px solid #dce5ef;padding:.4rem .85rem;flex-wrap:wrap}
.bot-viz-channels,.bot-viz-subhead nav{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.bot-viz-channels input[type=number]{width:5rem}
.bot-viz-subhead nav button[aria-current=page]{color:#225fc0;border-color:#6692da;background:#eaf2ff;font-weight:700}
.bot-viz-palette[hidden]{display:none}
.bot-viz-main.no-panel{grid-template-columns:minmax(0,1fr)}
.bot-viz-surface{position:relative;overflow:hidden;cursor:grab;min-width:0;min-height:0;background-color:#e6ebf1;background-image:radial-gradient(#b9c9da 1px,transparent 1px);background-size:20px 20px}
.bot-viz-surface:active{cursor:grabbing}.bot-viz-world{position:absolute;top:0;left:0;transform-origin:0 0;width:1px;height:1px}
.bot-viz-lines{position:absolute;overflow:hidden;pointer-events:none}.bot-viz-lines marker path{fill:#7195bf}
.bot-viz-link{fill:none;stroke:#86a2bc;stroke-width:2}.bot-viz-link.is-traced{stroke:#2672e0;stroke-width:3}
.bot-viz-link-hit{fill:none;stroke:transparent;stroke-width:14;pointer-events:stroke;cursor:crosshair}
.bot-viz-link-label{font-size:11px;fill:#476580;paint-order:stroke;stroke:#e6ebf1;stroke-width:4;pointer-events:none}
.bot-viz-node{position:absolute;background:#fff;border:1px solid #c6d4e4;border-radius:10px;box-shadow:0 3px 13px #253f5b1b;overflow:hidden;cursor:default;display:flex;flex-direction:column}
.bot-viz-node.is-selected{border:2px solid #3478d9;box-shadow:0 0 0 3px #4f8de42a}.bot-viz-node.is-traced{background:#f0f6ff}.bot-viz-node.is-disabled{opacity:.6}
.bot-viz-node-head{display:grid;gap:.1rem;cursor:move;background:#f4f7fb;padding:.42rem .62rem;border-bottom:1px solid #e4ebf3;min-height:45px}
.bot-viz-node-head span{font-size:.65rem;text-transform:uppercase;color:#4176b2;font-weight:700}.bot-viz-node-head strong{font-size:.81rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bot-viz-node>small{font-size:.7rem;color:#6c8097;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.2rem .62rem}
.bot-viz-node-ports{display:grid;margin-top:auto}.bot-editor-page .bot-viz-port{width:100%;height:27px;display:flex;justify-content:space-between;align-items:center;border:0;border-top:1px solid #edf1f6;border-radius:0;background:#fff;padding:.12rem .5rem;font-size:.68rem;cursor:grab}
.bot-viz-port b{color:#397bd0;font-size:1rem}.bot-viz-input{position:absolute;left:-2px;top:37px;color:#4484d4;font-size:1rem}
.bot-viz-minimap{position:absolute;bottom:14px;right:14px;width:190px;height:126px;background:#fffffff0;border:1px solid #cad6e4;border-radius:8px;box-shadow:0 3px 12px #2341  ;padding:4px;cursor:pointer}
.bot-viz-minimap rect{fill:#aac5e8;stroke:#6a91c1}.bot-viz-minimap rect.is-selected{fill:#3e7dd2}
.bot-viz-panel{background:#fff;border-left:1px solid #d8e2ed;min-height:0;overflow:auto}.bot-viz-panel-body{padding:.8rem .9rem}
.bot-viz-panel h3{display:flex;justify-content:space-between;margin:.15rem 0 .8rem;font-size:1rem}.bot-viz-panel h3 small{color:#7b8da2;font-size:.68rem}
.bot-viz-panel h4{font-size:.78rem;margin:1rem 0 .45rem;color:#4f6680}.bot-viz-panel label{display:grid;gap:.3rem;margin:.6rem 0;color:#465f78}
.bot-viz-panel label.bot-viz-inline{display:flex}.bot-viz-panel select,.bot-viz-panel input{width:100%}.bot-viz-panel input[type=checkbox]{width:auto}
.bot-viz-panel ul{list-style:none;padding:0;margin:.3rem 0}.bot-viz-panel li button{width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f5;border-radius:0;font-size:.72rem;color:#9a5b2b;padding:.4rem 0}
.bot-viz-panel p,.bot-viz-hint{font-size:.75rem;color:#657b93}
.bot-viz-panel .bot-viz-warning{font-size:.75rem;color:#955627;background:#fff3df;padding:.6rem;border-radius:7px}
.bot-viz-template-results{display:grid;gap:.3rem;max-height:220px;overflow:auto;margin-top:.55rem}
.bot-viz-template-results button{display:grid;gap:.2rem;text-align:left;white-space:normal}
.bot-viz-template-results button[aria-current=true]{border-color:#3980db;background:#eaf3ff}
.bot-viz-template-results small{font-size:.68rem;color:#607b98}
.bot-viz-json,.bot-viz-test,.bot-viz-runs{flex:1;min-height:0;overflow:auto;background:#fff;padding:1rem 1.4rem}
.bot-viz-json{display:flex;flex-direction:column}.bot-viz-json p{margin:.1rem 0 .6rem;color:#617690;font-size:.8rem}
.bot-viz-json textarea{flex:1;min-height:200px;width:100%;resize:none;font:12px/1.5 ui-monospace,Consolas,monospace}
.bot-viz-json .bot-viz-error,.bot-viz-test .bot-viz-error{color:#b24b43}.bot-viz-test{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));align-content:start;gap:.8rem}
.bot-viz-test>p,.bot-viz-test .wide,.bot-viz-test .bot-viz-trace{grid-column:1/-1}.bot-viz-test label{display:grid}.bot-viz-test textarea{width:100%;min-height:145px;font:12px/1.5 ui-monospace,Consolas,monospace}
.bot-viz-test>button{justify-self:start}.bot-viz-trace{border-top:1px solid #e6edf4;padding-top:.6rem}.bot-viz-trace li{padding:.3rem;border-bottom:1px solid #edf1f5}.bot-viz-runs p{padding:.5rem;border-bottom:1px solid #edf1f5}
.bot-scenario-link{border:1px solid #dce6ee;border-radius:10px;padding:.7rem;min-width:230px;color:#253a54;display:grid;gap:.3rem}
.bot-scenario-link:hover{background:#edf5ff}.bot-scenario-link small{color:#6c8197}
@media(max-width:900px){.bot-viz-head{font-size:.8rem}.bot-viz-test{grid-template-columns:1fr}}
@media(max-width:650px){
  .bot-viz-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.3rem .5rem;padding:.4rem .5rem}
  .bot-viz-head label{min-width:0}
  .bot-viz-head .bot-viz-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bot-viz-head-actions{grid-column:1/-1;display:flex;gap:.35rem;overflow-x:auto;min-width:0;scrollbar-width:thin}
  .bot-viz-head-actions button{flex:none}
  .bot-viz-subhead{display:grid;grid-template-columns:minmax(0,1fr);gap:.25rem;padding:.3rem .5rem}
  .bot-viz-channels,.bot-viz-subhead nav{min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
  .bot-viz-channels>*,.bot-viz-subhead nav button{flex:none}
  .bot-viz-minimap{width:130px;height:88px}
}

.bot-viz-head .bot-viz-back { display: inline-grid; padding: 0; }
.bot-viz-head label { min-width: 0; margin-block: 0; }
.bot-viz-head .bot-viz-status { min-width: 0; white-space: nowrap; }
@media (max-width: 640px) {
  .bot-viz-head { grid-template-columns: auto minmax(0,1fr) auto; }
  .bot-viz-head .bot-viz-status { font-size: .69rem; }
  .bot-viz-head .bot-viz-dirty:empty { display: none; }
  .bot-viz-head label input { padding: .35rem .4rem; font-size: .83rem; }
  .bot-viz-channels input[type=checkbox] { width: 1rem; height: 1rem; margin: 0; flex: none; }
}

.bot-viz-head { position: relative; z-index: 30; flex-wrap: nowrap; }
.bot-viz-head h1 {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: .4rem;
  margin: 0;
  color: #20334b;
  font-size: 1.12rem;
  line-height: 1.2;
}
.bot-viz-head h1 > svg { flex: none; }
.bot-viz-head h1 > span { overflow-wrap: anywhere; }
.bot-viz-properties { flex: none; }
.bot-viz-properties > summary { list-style: none; cursor: pointer; }
.bot-viz-properties > summary::-webkit-details-marker { display: none; }
.bot-viz-properties-content {
  position: absolute;
  inset-inline-end: .5rem;
  inset-block-start: calc(100% + .25rem);
  z-index: 1;
  display: grid;
  gap: .7rem;
  width: min(26rem,calc(100% - 1rem));
  max-height: min(28rem,60dvh);
  overflow: auto;
  padding: .75rem;
  border: 1px solid #ced9e8;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 7px 20px #233f6025;
  box-sizing: border-box;
}
.bot-viz-properties-content > label { display: grid; }
.bot-viz-properties-content .bot-viz-channels {
  display: grid;
  padding: .4rem;
  margin: 0;
  border: 1px solid #dce5ef;
  border-radius: .5rem;
}
.bot-viz-channels p { margin: 0; color: #60758d; font-size: .8rem; }
@media(max-width:650px) {
  .bot-viz-head { grid-template-columns: auto minmax(0,1fr) auto; }
  .bot-viz-head .bot-viz-status { grid-row: 2; grid-column: 2; }
  .bot-viz-head .bot-viz-properties { grid-row: 1; grid-column: 3; }
  .bot-viz-minimap-wrap.is-auto { display: none; }
}
.bot-test-tools { display:flex; gap:.4rem; flex-wrap:wrap; align-content:start; }
.bot-test-tools button { display:inline-flex; gap:.35rem; align-items:center; }
.bot-test-advanced{border-top:1px solid #e1e8f1;border-bottom:1px solid #e1e8f1;padding:.45rem 0;min-width:0}
.bot-test-advanced summary{cursor:pointer;color:#315c96}
.bot-test-advanced summary svg{vertical-align:middle}
.bot-test-advanced>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.65rem;margin-top:.6rem}
/* The graph, block library and inspector share the editor's remaining height. */
.bot-viz-shell{--bot-panel-width:275px;display:grid;flex:1;min-height:0;grid-template-columns:42px minmax(10.2rem,12.15rem) minmax(0,1fr);position:relative;overflow:hidden}
.bot-viz-shell[data-blocks-open=false]{grid-template-columns:42px minmax(0,1fr)}
.bot-viz-shell[data-blocks-open=false]>.bot-viz-blocks,.bot-viz-main.no-panel>.bot-viz-panel{display:none}
.bot-viz-rail{display:flex;flex-direction:column;gap:5px;align-items:center;padding:7px 3px;background:#f3f7fc;border-right:1px solid #d8e2ed;overflow:auto}
.bot-viz-rail button,.bot-viz-blocks header button,.bot-viz-panel header button,.bot-viz-find button{height:32px;width:32px;padding:0;display:grid;place-items:center}
.bot-viz-rail button{background:#f7faff}
.bot-viz-blocks,.bot-viz-panel{min-width:0;min-height:0;background:#fff;overflow:auto}
.bot-viz-blocks{border-right:1px solid #d8e2ed}
.bot-viz-blocks header,.bot-viz-panel header{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 8px;border-bottom:1px solid #dce5ef;background:#f9fbfe;position:sticky;top:0;z-index:2}
.bot-viz-blocks header strong,.bot-viz-panel header strong{font-size:.85rem}
.bot-viz-toolbar{display:grid;gap:7px;white-space:normal;padding:7px 8px;border:0;background:#fff;z-index:auto}
.bot-viz-toolbar input{width:100%;min-width:0;font-size:.78rem}
.bot-viz-palette h4{font-size:.7rem;color:#536783;margin:0 0 3px}
.bot-viz-toolbar .bot-viz-palette>div{position:static;display:grid;gap:3px;min-width:0;padding:0;border:0;background:none;box-shadow:none}
.bot-viz-toolbar :is([data-add],.bot-viz-pair){display:flex;align-items:center;text-align:left;gap:6px;white-space:normal;padding:.37rem .45rem;min-height:33px}
.bot-viz-toolbar [data-add][hidden]{display:none}
.bot-viz-toolbar [data-add]{color:var(--record-ink,#315d96);border-color:var(--record-line,#dae6f4);background:var(--record-fill,#f4f8fd)}
.bot-viz-toolbar [data-add]:hover{background:var(--record-tint,#e6effd)}
.bot-viz-toolbar [data-add] svg,.bot-viz-pair svg{flex:none}
.bot-viz-find{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;margin:0}
.bot-viz-main{display:grid;min-width:0;min-height:0;grid-template-columns:minmax(0,1fr) min(36%,var(--bot-panel-width))}
.bot-viz-surface{touch-action:none;background-color:#eaf0f8;background-image:radial-gradient(#b8cbe1 1px,transparent 1px)}
.catalog-editor-window .bot-viz-head .bot-viz-properties[open]{height:0}
.catalog-editor-window .bot-viz-properties[open] .bot-viz-properties-content>label{display:grid}
.bot-viz-subhead{flex-wrap:nowrap;gap:8px;min-width:0;padding:4px 8px}
.bot-viz-subhead nav{flex-wrap:nowrap;overflow:auto;gap:3px}
.bot-viz-subhead nav button,.bot-viz-issue-count,.bot-viz-progress{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:.77rem;min-height:31px}
.bot-viz-subhead nav button{padding:.28rem .48rem}
.bot-viz-subhead button svg,.bot-viz-progress svg{flex:none}
.bot-viz-progress{color:#476981}
.bot-viz-progress svg{animation:bot-viz-spin .85s linear infinite}
@keyframes bot-viz-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bot-viz-progress svg{animation:none}}
.bot-viz-node-head{height:auto;min-height:45px}
.bot-viz-node-head strong{min-width:0}
@media(max-width:960px){
  .bot-viz-shell,.bot-viz-shell[data-blocks-open=false]{grid-template-columns:42px minmax(0,1fr)}
  .bot-viz-shell>.bot-viz-blocks,.bot-viz-main>.bot-viz-panel{display:none}
  .bot-viz-shell>.bot-viz-main{display:grid;grid-template-columns:minmax(0,1fr)}
  .bot-viz-shell[data-drawer=blocks]>.bot-viz-blocks,.bot-viz-shell[data-drawer=properties]>.bot-viz-main>.bot-viz-panel{
    display:block;position:absolute;z-index:5;inset-block:0;max-height:none;width:min(calc(100% - 50px),17rem);box-shadow:0 6px 20px #233f6033
  }
  .bot-viz-shell[data-drawer=blocks]>.bot-viz-blocks{inset-inline-start:42px}
  .bot-viz-shell[data-drawer=properties]>.bot-viz-main>.bot-viz-panel{inset-inline-end:0}
  .bot-viz-panel h3{position:static}
}
@media(max-width:480px){
  .bot-viz-rail{padding-inline:2px}
  .bot-viz-subhead nav button{padding-inline:.37rem}
  .bot-viz-progress{font-size:0}
  .bot-viz-panel-body{padding:8px}
  .bot-viz-test,.bot-viz-json{padding:10px}
}
.bot-editor-page button.bot-viz-primary:hover,.bot-editor-page button.bot-viz-primary:focus-visible{background:#2b5fbd;color:#fff;border-color:#2b5fbd}
.bot-viz-node-head{background:var(--record-tint,#f4f7fb)}
.bot-viz-node-head span{display:flex;align-items:center;gap:4px;color:var(--record-ink,#4176b2)}
.bot-viz-node-head svg{flex:none}
.bot-viz-node-head:focus-visible{outline:2px solid #3478d9;outline-offset:-2px}
.bot-editor-page .bot-viz-port[aria-pressed=true]{background:#deecff;font-weight:700}
.bot-viz-connection{position:absolute;inset-inline:9px auto;inset-block:9px auto;z-index:3;display:flex;align-items:center;gap:5px;
  max-width:calc(100% - 18px);padding:4px 5px 4px 7px;border:1px solid #bbcfec;border-radius:9px;background:#f5f9ff;color:#25476f;font-size:.76rem}
.bot-viz-connection svg{flex:none}
.bot-viz-connection button{width:29px;height:29px;display:grid;place-items:center;padding:0;flex:none}
.catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.catalog-editor-window [data-bot-window-status]{margin:0}
.catalog-editor-window [data-bot-window-metrics]{margin-inline-start:auto;white-space:nowrap}
.catalog-editor-window [data-bot-window-metrics]+[data-catalog-editor-hint]:empty{display:none}
.catalog-editor-window .bot-viz-subhead{display:flex;justify-content:space-between}
.catalog-editor-window .bot-viz-subhead>button.bot-viz-issue-count{width:auto;flex:none;padding-inline:7px;color:#805017;background:#fff4df;border-color:#ecd3a8}
@media(max-width:490px){
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-system .catalog-editor-window-primary{width:34px;padding-inline:0}
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-system .catalog-editor-window-primary span,
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-icon{display:none}
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-heading{column-gap:.3rem}
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-caption small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .catalog-editor-window:has(.catalog-bot-editor-host) .catalog-editor-window-title-edit{width:1.5rem}
}
