html:has(.bot-overview),body[data-workspace=true]:has(.bot-overview){overflow:hidden;overscroll-behavior:none}
body[data-workspace=true] .shell:has(.bot-overview){height:var(--workspace-viewport-height,100dvh);min-height:0;overflow:hidden;padding-bottom:0;display:flex;flex-direction:column}
body[data-workspace=true] .shell:has(.bot-overview)>.topbar{flex-shrink:0}
body[data-workspace=true] .content:has(.bot-overview){min-width:0;min-height:0;flex:1;width:100%;overflow:hidden}
body[data-workspace=true] .bot-overview-toolbar{gap:12px;margin:0;flex-wrap:nowrap}
.bot-overview-status{font-size:12px;line-height:1.3;font-weight:600;color:var(--muted);background:var(--soft);border:1px solid var(--line);padding:5px 8px;border-radius:4px;white-space:nowrap}
.bot-overview-status.is-active{color:#fff;background:#37b17a;border-color:#37b17a}
.bot-overview-toolbar .btn{height:36px;white-space:nowrap}
.bot-overview-menu>summary{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.bot-overview-menu>div{right:0;left:auto;min-width:280px;z-index:40}
.bot-overview{--overview-width:340px;position:relative;isolation:isolate}
.bot-overview .bot-canvas-tools,.bot-overview [data-canvas-action=arrange],.bot-overview .bot-node-tools,.bot-overview .bot-edge-tools{display:none}
.bot-overview .bot-port-circle{cursor:default;opacity:1}
.bot-overview .bot-canvas{cursor:grab}
.bot-overview-panel{position:absolute;z-index:12;inset:0 auto 0 0;width:var(--overview-width);background:var(--surface);border-right:1px solid var(--line);transform:translateX(0);transition:transform .24s cubic-bezier(.2,.8,.2,1);box-shadow:8px 0 24px #00000003}
.bot-overview-panel.is-collapsed{transform:translateX(-100%)}
.bot-overview-panel-content{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:26px 22px}
.bot-overview-heading{margin-bottom:20px}
.bot-overview-panel h2{font-size:18px;line-height:1.35;margin:0;font-weight:600;overflow-wrap:anywhere}
.bot-overview-filter{display:block;position:relative;margin-bottom:16px}
body[data-workspace=true] .bot-overview-filter select{width:100%;height:38px;font-size:13px;padding:8px 34px 8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);appearance:none;box-shadow:none;text-overflow:ellipsis}
.bot-overview-filter>.icon{position:absolute;right:12px;top:11px;width:16px;height:16px;pointer-events:none;color:var(--muted)}
.bot-overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-workspace=true] .bot-overview-metric{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:12px;min-width:0;min-height:88px;padding:12px 12px 10px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);text-align:left;transition:border-color .18s,background .18s;box-shadow:none;outline:none}
.bot-overview-metric>span{font-size:12px;line-height:1.35;color:var(--muted)}
.bot-overview-metric>div{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0}
.bot-overview-metric strong{font-size:clamp(20px,2vw,24px);line-height:1.15;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bot-overview-metric .icon{width:14px;height:14px;flex-shrink:0;color:var(--muted)}
body[data-workspace=true] .bot-overview-metric:disabled{opacity:1;cursor:default}
body[data-workspace=true] .bot-overview-metric:not(:disabled):hover{border-color:var(--border-hover);background:var(--surface)}
.bot-overview-error{font-size:13px;color:var(--error)}
.bot-overview-panel-content[data-step-open=true]{padding:0}
.bot-step-heading{display:grid;place-items:center;min-height:60px;padding:12px 20px;text-align:center;background:color-mix(in srgb,var(--node-tint,var(--soft)) 72%,var(--surface));border-bottom:1px solid var(--line)}
.bot-step-heading h2{font-size:20px;line-height:1.25;font-weight:650}
body[data-appearance=dark] .bot-overview [data-panel-type]{--node-tint:color-mix(in srgb,var(--node-ink,var(--muted)) 26%,var(--surface))}
.bot-step-heading[data-panel-type=start]{background:color-mix(in srgb,var(--positive) 12%,var(--surface))}
.bot-start-preview{margin:0 22px;padding:20px 0 14px;border-bottom:1px solid var(--line)}
.bot-start-preview>.bot-trigger-card:last-child{margin-bottom:0}
.bot-step-heading[data-panel-type=start]~.bot-step-content .bot-step-route small{display:block;margin-top:1px;white-space:normal}
@media(max-width:700px){.bot-start-preview{margin-inline:16px}}
.bot-step-report{padding:22px 22px 20px;border-bottom:1px solid var(--line)}
.bot-step-report>p{font-size:13px}
.bot-step-reach{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px 10px;margin-bottom:16px;font-variant-numeric:tabular-nums}
.bot-step-reach span{grid-row:2;grid-column:1/-1;font-size:13px;color:var(--muted)}
.bot-step-reach strong{font-size:22px;line-height:1.2;font-weight:650}
.bot-step-reach strong+strong{color:var(--positive)}
.bot-step-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.bot-step-table :is(th,td){padding:9px 0 9px 6px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.bot-step-table th:first-child{width:39%;padding-left:0;text-align:left}
.bot-step-table thead th:nth-child(2){width:25%}
.bot-step-table th{font-weight:500;overflow-wrap:anywhere}
.bot-step-table thead th{padding-top:2px;font-size:12px;color:var(--muted)}
.bot-step-table tbody tr:last-child>*{border-bottom:0}
.bot-step-table small{display:block;margin-top:3px;font-size:12px;font-weight:500;color:var(--positive)}
body[data-workspace=true] .bot-step-count{font:inherit;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.bot-step-content{display:grid;gap:18px;padding:20px 22px;font-size:14px;line-height:1.45}
.bot-step-content:empty{display:none}
.bot-step-content ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.bot-step-config li,.bot-step-message{border:1px solid var(--line);border-radius:11px}
.bot-step-config li,.bot-step-message-body,.bot-step-message:not(:has(.bot-step-message-body,.bot-step-buttons,.bot-step-media,.bot-step-timing)){padding:10px 12px}
.bot-step-message{background:var(--soft);overflow:hidden;overflow-wrap:anywhere}
.bot-step-message-body{white-space:pre-wrap}
.bot-step-media{background:var(--surface)}
.bot-step-media .bot-media-composite.is-media_group{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:4px}
.bot-step-media .bot-media-composite.is-media_group>div{flex:1 1 36%;min-width:0}
.bot-step-timing{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;color:var(--muted)}
.bot-step-timing .icon{width:17px;height:17px}
.bot-step-message p{margin:0;white-space:pre-wrap}
.bot-step-message p+p{margin-top:10px}
.bot-step-content h3{margin:0 0 8px;font-size:13px;line-height:1.35;font-weight:600}
.bot-step-branches,.bot-step-branch{display:grid;gap:12px}
.bot-step-branch h3{margin:0}
.bot-step-branch+.bot-step-branch{padding-top:12px;border-top:1px solid var(--line)}
.bot-step-branch .bot-step-rules{padding:10px 12px;background:var(--soft);border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.bot-step-rules li+li{padding-top:8px;border-top:1px solid var(--line)}
.bot-step-rules .bot-condition-heading{display:block;color:var(--muted)}
body[data-workspace=true] .bot-step-route{width:100%;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);text-align:left;font-size:13px;overflow-wrap:anywhere}
body[data-workspace=true] .bot-step-route[aria-pressed=true],body[data-workspace=true] .bot-step-route:hover{background:var(--soft);border-color:var(--border-hover)}
.bot-step-route>span:not(.bot-trigger-channel){min-width:0;flex:1}
.bot-step-route>.bot-trigger-channel{width:24px;height:24px;flex:none}
.bot-step-route>.icon{width:16px;height:16px;flex-shrink:0;color:var(--node-ink,var(--muted))}
.bot-step-route small{white-space:nowrap;color:var(--muted)}
.bot-step-content .bot-step-buttons{gap:0}
body[data-workspace=true] .bot-step-buttons .bot-step-route{padding-block:0;gap:12px;border:0;border-top:1px solid var(--line);border-radius:0;color:var(--accent)}
.bot-step-buttons .bot-step-route small{color:inherit;font-size:inherit}
.bot-step-buttons .bot-step-button-icon{display:grid;place-items:center;align-self:stretch;flex:0 0 46px;border-left:1px solid var(--line)}
.bot-step-button-icon .icon{width:20px;height:20px;opacity:.65}
body[data-workspace=true] .bot-step-buttons .bot-step-route[aria-expanded=true]{box-shadow:inset 0 0 0 1px var(--positive);color:var(--positive)}
.bot-overview .bot-port-label[aria-expanded=true]{background:var(--surface);outline:1px solid var(--positive);color:var(--positive)}
.bot-button-info{--button-info-link:#2165c7;position:fixed;inset:auto;margin:0;padding:0;width:min(342px,calc(100vw - 20px));overflow:visible;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 32px rgb(22 33 46 / .15);font-size:14px;line-height:1.45}
.bot-button-info:is([data-side=left],[data-side=right])::before{content:'';position:absolute;top:calc(var(--button-info-arrow) - 6px);width:11px;height:11px;border:solid var(--line);border-width:0 0 1px 1px;background:var(--surface);transform:rotate(45deg);pointer-events:none}
.bot-button-info[data-side=right]::before{left:-7px}
.bot-button-info[data-side=left]::before{right:-7px;transform:rotate(225deg)}
.bot-button-info>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:17px}
body[data-workspace=true] .bot-button-info [data-info-close]{width:30px;height:30px;border:0;background:transparent;color:var(--button-info-link)}
body[data-appearance=dark] .bot-button-info{--button-info-link:#83b4ff}
.bot-button-info-body{display:grid;gap:8px;max-height:calc(100dvh - 84px);padding:14px 16px 16px;overflow:auto;overflow-wrap:anywhere}
.bot-button-info-body p{margin:0}
body[data-workspace=true] .bot-button-info-body button{padding:0;text-align:left;font:inherit;color:var(--button-info-link)}
body[data-workspace=true] .bot-button-info-body button:disabled{color:var(--muted);opacity:1}
body[data-workspace=true] .bot-overview-collapse{position:absolute;left:calc(100% + 16px);top:50%;transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:color-mix(in srgb,var(--surface) 65%,var(--line));color:var(--muted);cursor:pointer;box-shadow:none;transition:background .2s,color .2s}
.bot-overview-collapse:hover{background:var(--surface);color:var(--ink)}
.bot-overview-collapse .icon{width:19px;height:19px}
.bot-overview-banner.is-published{border-color:color-mix(in srgb,#a46d24 33%,var(--line));background:color-mix(in srgb,color-mix(in srgb,#a46d24 11%,var(--surface)) 84%,transparent)}
.bot-overview-banner small{display:block;font-size:11px;margin-top:2px}
.bot-overview-banner a{color:var(--bot-blue);pointer-events:auto}
.bot-overview:not(.metrics-collapsed){--bot-hint-inset:var(--overview-width)}
@media(max-width:700px){.bot-overview:not(.metrics-collapsed){--bot-hint-inset:0px}.bot-overview .bot-overview-panel{top:36px}}
.bot-node-metrics{display:flex;align-items:flex-start;width:100%;padding:7px 12px 9px;border:0;background:transparent;color:var(--muted);text-align:center;cursor:pointer}
.bot-node-metrics>span{display:grid;flex:1;min-width:0;gap:3px}
.bot-node-metrics strong{color:var(--bot-blue);font:500 18px/1.25 var(--font-ui);font-variant-numeric:tabular-nums}
.bot-node-metrics small{font:12px/1.4 var(--font-ui)}
.bot-node-metrics:focus-visible{outline:2px solid var(--bot-blue);outline-offset:-2px}
body[data-workspace=true] :is(.bot-overview,.bot-overview-toolbar) :is(button,a,summary):is(:focus,:focus-visible){outline:none;box-shadow:none}
body[data-workspace=true] :is(.bot-overview,.bot-overview-toolbar) :is(button,a,summary):focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 65%,transparent)}
body[data-workspace=true] dialog.bot-overview-contacts{width:420px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #0003;overflow:hidden}
.bot-overview-contacts[open]{display:flex;flex-direction:column;animation:overview-contacts-in .18s ease-out}
.bot-overview-contacts::backdrop{background:#0007}
.bot-overview-contacts>header{display:flex;justify-content:space-between;align-items:center;padding:20px 20px 14px;flex-shrink:0}
.bot-overview-contacts header>div{display:flex;align-items:baseline;gap:10px}
.bot-overview-contacts h2{margin:0;font-size:18px;font-weight:600}
.bot-overview-contacts [data-overview-total]{font-size:13px;color:var(--muted)}
.bot-overview-tagbar{padding:0 20px 12px;flex-shrink:0;border-bottom:1px solid var(--line)}
.bot-overview-tagbar details{position:relative}
.bot-overview-tagbar summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:9px 10px;font-size:13px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}
.bot-overview-tagbar summary::-webkit-details-marker{display:none}
.bot-overview-tagbar summary>.icon{width:16px;height:16px}
.bot-overview-tagbar summary>.icon:last-child{margin-left:auto}
.bot-overview-tagbar form{position:absolute;z-index:2;top:calc(100% + 6px);left:0;right:0;display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px;box-shadow:0 6px 20px #0002}
.bot-overview-tagbar form>div{max-height:220px;overflow-y:auto;overscroll-behavior:contain}
.bot-overview-tagbar form label{display:flex;align-items:center;gap:10px;padding:8px 4px;font-size:14px}
.bot-overview-tagbar form input{width:15px;height:15px;accent-color:var(--accent)}
.bot-overview-contact-status{padding:0 20px;margin:0;color:var(--muted);font-size:12px;line-height:1.5;flex-shrink:0}
.bot-overview-contact-status:not(:empty){padding-top:10px;padding-bottom:10px}
.bot-overview-contact-list{min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 12px 12px;max-height:560px}
.bot-overview-contact{display:flex;align-items:center;gap:12px;padding:10px 8px;border-radius:6px;min-height:62px}
.bot-overview-contact:hover,.bot-overview-contact:focus-within{background:var(--soft)}
.bot-flow-contact-avatar{position:relative;flex-shrink:0;width:34px;height:34px;display:grid;place-items:center;background:var(--soft);color:var(--muted);border-radius:50%;overflow:hidden;font-size:14px}
.bot-flow-contact-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bot-overview-contact>div{min-width:0;flex:1}
.bot-overview-contact strong{display:block;font-size:14px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.bot-overview-contact small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.bot-overview-contact a{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:var(--accent);opacity:0;transition:opacity .16s;flex-shrink:0}
.bot-overview-contact a .icon{width:16px;height:16px}
.bot-overview-contact:hover a,.bot-overview-contact:focus-within a{opacity:1}
.bot-overview-empty{padding:40px 10px;text-align:center;color:var(--muted);font-size:14px}
.bot-overview-more{display:block;margin:14px auto 4px;font-size:13px}
body[data-workspace=true] .bot-overview-more.btn.primary{background:var(--report-current);border-color:var(--report-current);color:#fff;padding-inline:16px}
body[data-workspace=true] .bot-overview-more.btn.primary:hover:enabled{background:color-mix(in srgb,var(--report-current) 86%,#000);border-color:transparent}
.bot-contact-placeholder{display:grid;place-items:center;min-height:180px}
.bot-contact-placeholder .workspace-spinner{animation-delay:160ms}
.bot-overview-contact-list[aria-busy=true]{min-height:180px}
@keyframes overview-contacts-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.bot-overview{--overview-width:min(300px,80vw)}.bot-overview-panel-content:not([data-step-open=true]){padding:20px 16px}.bot-overview-toolbar .bot-toolbar-spacer{display:none}.bot-overview-toolbar .btn{font-size:12px;gap:5px;padding-inline:8px}.bot-overview-toolbar .btn .icon{width:16px}.bot-overview-toolbar .bot-overview-status{font-size:11px;padding:4px 6px}.bot-overview-collapse{left:calc(100% + 8px)!important;width:32px!important;height:32px!important}.bot-overview-contact a{opacity:1}.bot-overview-contact a span{display:none}}
@media(max-width:700px){.bot-step-report,.bot-step-content{padding-inline:16px}.bot-step-table thead th{white-space:nowrap;font-size:11px}}
@media(prefers-reduced-motion:reduce){.bot-overview *,.bot-overview-contacts{animation:none!important;transition:none!important}}

.bot-overview .bot-trigger-add{display:none}
.bot-overview :where(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
