.demo-titlebar{justify-content:flex-start}.demo-titlebar .demo-badge{margin-left:auto}.demo-window-actions{margin-left:auto}.demo-titlebar #demo-toggle-navigation{width:44px;min-height:44px;display:grid;place-items:center;background:none;border:1px solid transparent;color:#bbb;flex:none}.demo-titlebar #demo-toggle-navigation:hover{background:#303030;border-color:#666}.demo-shell:not(.nav-is-collapsed) .demo-nav{width:152px}.demo-shell:not(.nav-is-collapsed) .demo-nav button{justify-content:flex-start}.demo-shell:not(.nav-is-collapsed) .demo-nav button span{position:static;clip:auto;width:auto;height:auto;overflow:visible;white-space:normal}.demo-shell.nav-is-collapsed .demo-nav{width:60px;padding-inline:6px}.demo-shell.nav-is-collapsed .demo-nav button{justify-content:center;padding-inline:8px}.demo-shell.nav-is-collapsed .demo-nav button span{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.demo-map-settings{position:relative}.demo-legend-close{position:absolute;top:7px;right:6px;min-width:36px;min-height:36px!important;background:none;border:0;color:#aaa;font-size:23px!important}.demo-map-settings>h3{padding-right:24px}.demo-map-bottom{min-height:44px;align-items:center;padding:4px 10px}.demo-map-bottom>span:nth-child(2){display:none}.demo-map-bottom>button{background:transparent;border:1px solid var(--dy);color:var(--dy);padding:3px 12px;min-height:32px;font-size:11px}.demo-map-viewport{bottom:44px}.demo-map-layout.legend-hidden .demo-map-settings{display:none}.demo-map-layout.legend-hidden .demo-map-area{width:100%}.demo-content h4{font-size:18px;line-height:1.4;margin:0 0 12px}.demo-chat-messages{height:290px;overflow:auto;border:1px solid var(--dl);border-radius:4px;background:#191919;padding:16px;scrollbar-width:thin}.demo-chat-message{padding:10px 0;border-bottom:1px solid #333}.demo-chat-message:last-child{border:0}.demo-chat-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#999;margin-bottom:6px}.demo-chat-meta strong{font-size:13px;color:#f5c518}.demo-chat-message p{font-size:14px;color:#ddd;overflow-wrap:anywhere;line-height:1.6}.demo-chat-message.self .demo-chat-meta strong{color:#8fc7ae}.demo-chat-form{margin-top:16px}.demo-chat-form>label{display:block;font-size:13px;margin-bottom:8px}.demo-chat-form>div{display:flex;gap:10px}.demo-chat-form input{min-width:0;flex:1}.demo-chat-form>span{font-size:11px;color:#aaa;display:block;text-align:right;margin-top:6px}.demo-chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.demo-settings-card{padding:20px;border:1px solid var(--dl);border-radius:6px;background:#1b1b1b;margin-bottom:20px}.demo-settings-card>p{font-size:13px;line-height:1.8;margin:0 0 16px}.demo-settings-card>p:last-child{margin-bottom:0}.demo-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.demo-theme-choice{position:relative;display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto;column-gap:12px;text-align:left;align-items:center;padding:16px 36px 16px 14px;background:#161616;border:1px solid #4c4c4c;min-height:96px}.demo-theme-choice[aria-pressed=true]{border-color:var(--dy)}.demo-theme-choice strong{font-size:16px}.demo-theme-choice small{font-size:11px;line-height:1.5;color:#aaa}.demo-theme-check{position:absolute;right:12px;top:14px;color:var(--dy);font-size:16px}.demo-theme-thumb{grid-row:1/3;width:54px;height:46px;display:block;border-radius:5px;border:1px solid #626262;position:relative;background:#161616}.demo-theme-thumb:before{position:absolute;content:'';left:10px;right:10px;top:10px;height:5px;background:#eee;box-shadow:0 10px 0 #444,0 20px 0 #444;border-radius:1px}.demo-theme-thumb.light{background:#f4f5f7}.demo-theme-thumb.light:before{background:#333;box-shadow:0 10px 0 #c9cccf,0 20px 0 #c9cccf}.demo-performance-list{list-style:none;padding:0;margin:0 0 16px}.demo-performance-list li{display:flex;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #3a3a3a;font-size:12px}.demo-performance-list li>span{color:#aaa}.demo-performance-list li>strong{font-size:12px;text-align:right;font-weight:400;color:#eee}.editor-topbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.editor-topbar>label{flex:1;min-width:180px;font-size:12px}.editor-topbar input{display:block;width:100%;margin-top:6px}.editor-topbar>.demo-btn{font-size:11px!important;min-height:44px}.editor-instruction{font-size:12px;line-height:1.7;margin-bottom:16px!important}.editor-workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:12px;min-width:0}.editor-palette{padding:14px;background:#1b1b1b;border:1px solid #444;border-radius:4px;max-height:550px;overflow:auto}.editor-palette>h4{font-size:14px;margin:0 0 10px}.editor-palette>h4:not(:first-child){margin-top:22px}.editor-palette>button,.editor-palette>select,.editor-palette>input{width:100%;margin:0 0 12px;font-size:12px!important}.editor-palette>label{font-size:11px;display:block;margin-bottom:6px}.editor-connection-hint{font-size:11px;line-height:1.7;margin-top:10px}.editor-scroll{overflow:auto;min-height:500px;max-height:550px;border:1px solid #444;border-radius:4px;background:#121212;scrollbar-width:thin;scrollbar-color:#777 #222}.editor-canvas{width:1200px;height:1100px;position:relative;background-image:radial-gradient(#5555 1px,transparent 1px);background-size:20px 20px;isolation:isolate}.editor-wires{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:visible}.editor-wires path{stroke:var(--dy);stroke-width:2;fill:none;stroke-linecap:round}.editor-wires .editor-wire-running{stroke:#8fc7ae;stroke-width:3}.editor-node{position:absolute;width:230px;min-height:180px;border:1px solid #555;background:#1f1f1f;border-radius:6px;color:#eee}.editor-node.is-running{border-color:#8fc7ae;box-shadow:0 0 0 2px #8fc7ae33}.editor-node.is-done{border-color:var(--dy)}.editor-node.is-connecting{border-color:var(--dy);box-shadow:0 0 0 2px #f5c51833}.editor-node-header{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#292929;border-radius:5px 5px 0 0;padding:0 0 0 12px;cursor:grab;touch-action:none;user-select:none}.editor-node-header:active{cursor:grabbing}.editor-node-header>span{font-size:12px;font-weight:600}.editor-node-delete{width:44px;height:44px;border:0;background:none;font-size:21px!important;flex:none}.editor-node-delete:hover{background:#6c302755}.editor-node-body{padding:12px;min-height:94px}.editor-node-body>strong{font-size:14px;display:block;line-height:1.5;margin:0 0 6px}.editor-node-body>small{font-size:11px;color:#aaa}.editor-node-body>label{font-size:11px;display:block}.editor-node-body input,.editor-node-body select{width:100%;margin-top:6px;font-size:12px!important}.editor-ports{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px 8px;min-height:48px}.editor-ports>span{width:80px}.editor-port{border:1px solid #666;background:#222;color:var(--dy)!important;padding:6px 8px;min-width:84px;font-size:11px!important;min-height:44px;touch-action:none}.editor-port:hover,.editor-port[aria-pressed=true]{background:#f5c51822;border-color:var(--dy)}.editor-edge-remove{display:block;width:100%;text-align:left;padding:8px;background:none;border:1px solid #555;font-size:11px!important;line-height:1.6;margin-bottom:8px;overflow-wrap:anywhere}.editor-status{padding:12px 14px;border:1px solid #555;background:#1b1b1b;margin:16px 0 0!important;font-size:13px;line-height:1.7;color:#ccc!important}.editor-status.error{border-color:#af6657;color:#efb2a8!important}.editor-status.success{border-color:#638e77;color:#b9d9c8!important}.demo-builder-section .demo-scenario-log{min-height:80px;max-height:180px;overflow:auto}.demo-shell[data-theme=light]{--db:#f4f5f7;--dp:#fff;--dl:#d8dadd;--dt:#242424;--dm:#60646b;--dy:#8b6519;background:#f4f5f7;color:#242424;color-scheme:light}.demo-shell[data-theme=light] .demo-titlebar,.demo-shell[data-theme=light] .demo-nav,.demo-shell[data-theme=light] .demo-statusbar,.demo-shell[data-theme=light] .demo-map-settings,.demo-shell[data-theme=light] .demo-group-controls,.demo-shell[data-theme=light] .demo-chat-messages,.demo-shell[data-theme=light] .demo-settings-card,.demo-shell[data-theme=light] .editor-palette,.demo-shell[data-theme=light] .editor-status,.demo-shell[data-theme=light] .demo-node,.demo-shell[data-theme=light] .demo-group,.demo-shell[data-theme=light] .demo-info,.demo-shell[data-theme=light] .demo-resource-row,.demo-shell[data-theme=light] .demo-preset,.demo-shell[data-theme=light] .demo-search,.demo-shell[data-theme=light] .demo-scenario-log{background:#fff;border-color:#d8dadd;color:#242424}.demo-shell[data-theme=light] .demo-titlebar .demo-app-brand b{background:#242424;color:#fff}.demo-shell[data-theme=light] .demo-nav button{color:#60646b}.demo-shell[data-theme=light] .demo-nav button:hover{background:#eee;color:#242424}.demo-shell[data-theme=light] .demo-nav button[aria-selected=true]{background:#f3e7c8;color:#77550e;border-color:#b88720}.demo-shell[data-theme=light] button:not(.demo-btn-yellow):not(.demo-switch){color:#303238}.demo-shell[data-theme=light] .demo-btn{background:#fff;border-color:#b8bcc2;color:#242424}.demo-shell[data-theme=light] .demo-btn:hover{background:#eee}.demo-shell[data-theme=light] .demo-btn-yellow{background:#f5c518;border-color:#b88720;color:#242424!important}.demo-shell[data-theme=light] .demo-theme-choice{background:#f4f5f7;border-color:#c1c4ca}.demo-shell[data-theme=light] .demo-theme-choice[aria-pressed=true]{border-color:#b88720;box-shadow:inset 0 0 0 1px #b88720}.demo-shell[data-theme=light] .demo-theme-choice small,.demo-shell[data-theme=light] label,.demo-shell[data-theme=light] .demo-performance-list li>span,.demo-shell[data-theme=light] .demo-performance-list li>strong,.demo-shell[data-theme=light] .demo-device-row small,.demo-shell[data-theme=light] .demo-resource-row small,.demo-shell[data-theme=light] .demo-preset>small,.demo-shell[data-theme=light] .editor-node-body>small{color:#60646b}.demo-shell[data-theme=light] input:not([type=range]),.demo-shell[data-theme=light] select,.demo-shell[data-theme=light] textarea{background:#fff;border-color:#aeb3ba;color:#242424}.demo-shell[data-theme=light] input::placeholder{color:#72777f}.demo-shell[data-theme=light] .demo-switch:before{background:#b8bdc4}.demo-shell[data-theme=light] .demo-switch[aria-checked=true]:before{background:#242424}.demo-shell[data-theme=light] .demo-switch span{background:#fff}.demo-shell[data-theme=light] .demo-switch[aria-checked=true] span{background:#fff}.demo-shell[data-theme=light] .demo-breadcrumb,.demo-shell[data-theme=light] .demo-breadcrumb>span,.demo-shell[data-theme=light] .demo-chat-meta{color:#60646b}.demo-shell[data-theme=light] .demo-device-row,.demo-shell[data-theme=light] .demo-chat-message,.demo-shell[data-theme=light] .demo-performance-list li{border-color:#d8dadd}.demo-shell[data-theme=light] .demo-chat-message p{color:#303238}.demo-shell[data-theme=light] .demo-chat-meta strong{color:#8b6519}.demo-shell[data-theme=light] .demo-chat-message.self .demo-chat-meta strong{color:#23754a}.demo-shell[data-theme=light] .demo-statusbar>span:first-child{color:#23754a}.demo-shell[data-theme=light] .demo-preset-images img{background:#f1f1ef;border-color:#ccc}.demo-shell[data-theme=light] .demo-event-preview{background:#fff4df;border-color:#b88720}.demo-shell[data-theme=light] .demo-event-preview.active{background:#f3e7c8;border-color:#8b6519}.demo-shell[data-theme=light] .demo-event-preview>span,.demo-shell[data-theme=light] .demo-event-channels span{color:#785516;border-color:#b88720}.demo-shell[data-theme=light] .editor-scroll{background:#f4f5f7;border-color:#c1c4ca;scrollbar-color:#aaa #eee}.demo-shell[data-theme=light] .editor-node{background:#fff;color:#242424;border-color:#aeb3ba}.demo-shell[data-theme=light] .editor-node-header{background:#eee}.demo-shell[data-theme=light] .editor-port,.demo-shell[data-theme=light] .editor-edge-remove{background:#fff;border-color:#b8bcc2}.demo-shell[data-theme=light] .editor-status.error{color:#a33224!important;border-color:#b7342f}.demo-shell[data-theme=light] .editor-status.success{color:#23754a!important}.demo-shell[data-theme=light] .demo-preset-dialog{background:#fff;color:#242424;border-color:#ccc}.demo-shell[data-theme=light] .demo-dialog-item{border-color:#d8dadd}.demo-shell[data-theme=light] .demo-map-tools{background:#ffffffed;border-color:#bbb}.demo-shell[data-theme=light] .demo-map-tools button{background:#f4f5f7;border-color:#bbb;color:#242424}.demo-shell[data-theme=light] .demo-map-tools output{color:#303238}.demo-shell[data-theme=light] .demo-map-bottom{background:#fff;color:#555;border-top:1px solid #bbb}.demo-shell[data-theme=light] .demo-map-area{background:#0c3947}.demo-shell[data-theme=light] .demo-map-bottom>button{color:#8b6519}.demo-shell[data-theme=light] .demo-info{color:#60646b}.demo-shell[data-theme=light] .demo-node.active{background:#f3e7c8}.demo-shell[data-theme=light] .demo-node>span,.demo-shell[data-theme=light] .demo-node>small{color:#60646b}.demo-shell[data-theme=light] .demo-preset-fav[aria-pressed=true]{color:#8b6519!important}.demo-shell[data-theme=light] .demo-preset-fav[aria-pressed=true] svg{fill:#b88720}.demo-shell[data-theme=light] #demo-toggle-navigation{color:#333}.demo-shell[data-theme=light] .editor-status{color:#303238!important}
@media(max-width:1100px){.editor-workspace{grid-template-columns:180px minmax(0,1fr)}.editor-palette{padding:12px}.demo-theme-choice{grid-template-columns:1fr;padding:16px 30px 16px 12px;gap:8px}.demo-theme-thumb{grid-row:auto}.demo-theme-choice small{font-size:11px}}
@media(max-width:850px){.editor-workspace{grid-template-columns:1fr}.editor-palette{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;max-height:none}.editor-palette>h4,.editor-palette>#editor-connections,.editor-palette>.editor-connection-hint{grid-column:1/-1}.editor-palette>button,.editor-palette>input,.editor-palette>select{margin-bottom:0}.editor-palette>label{align-self:center;margin:0}.editor-palette>#editor-add-source,.editor-palette>#editor-add-action{grid-column:1/-1}.editor-scroll{min-height:440px;max-height:440px}.demo-performance-list li{flex-direction:column;gap:4px}.demo-performance-list li>strong{text-align:left}}
@media(max-width:560px){.demo-shell:not(.nav-is-collapsed) .demo-nav{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.demo-shell:not(.nav-is-collapsed) .demo-nav button{justify-content:center;flex-direction:column;padding:6px 2px;gap:3px;min-height:56px;font-size:9px}.demo-shell.nav-is-collapsed .demo-nav{display:none}.demo-titlebar{gap:2px;padding-left:4px}.demo-titlebar #demo-toggle-navigation{width:36px}.demo-app-brand{font-size:9px;gap:6px}.demo-app-brand b{width:18px;height:18px}.demo-window-actions button{width:34px}.demo-map-bottom>button{min-height:36px}.demo-map-settings .demo-legend-close{top:7px}.demo-chat-messages{height:270px;padding:12px}.demo-chat-form>div{flex-wrap:wrap}.demo-chat-form input{flex-basis:100%;width:100%}.demo-chat-form button{width:100%}.demo-chat-actions>.demo-btn{font-size:11px!important;flex:1}.demo-settings-card{padding:16px 12px}.demo-settings-card>p{font-size:12px}.demo-theme-options{gap:8px}.demo-theme-choice{padding:12px 24px 12px 10px;gap:8px}.demo-theme-choice strong{font-size:14px}.demo-theme-choice small{font-size:10px}.demo-theme-check{right:8px;top:10px;font-size:13px}.demo-theme-thumb{width:44px;height:40px}.demo-performance-list li{font-size:11px}.demo-performance-list li>strong{font-size:11px}.demo-content h4{font-size:16px}.editor-topbar>label{flex-basis:100%}.editor-topbar>.demo-btn{flex:1;font-size:10px!important;padding:9px}.editor-instruction{font-size:11px}.editor-palette{padding:12px;gap:8px}.editor-palette>.demo-btn{font-size:11px!important;padding:8px}.editor-palette>label{font-size:11px}.editor-scroll{min-height:400px;max-height:400px}.editor-status{font-size:12px}.demo-legend-close{right:6px}.demo-shell.is-expanded .demo-workspace{min-height:0}.demo-shell.is-expanded .demo-nav{flex:none}}
.demo-shell svg.editor-wires{width:1200px;height:1100px;position:absolute;z-index:0}#editor-nodes{position:relative;z-index:1}

/* Keep the badge at the true center, independent of the left/right controls. */
.demo-titlebar{position:relative}.demo-titlebar .demo-badge{position:absolute;left:50%;transform:translateX(-50%);margin:0;white-space:nowrap;pointer-events:none}
/* The scenario tab is a single board, without a second page inside it. */
#demo-panel-scenarios{overflow:hidden}#demo-panel-scenarios>.demo-breadcrumb{display:none}.demo-builder-section{padding:0!important;height:100%;min-height:0}.demo-builder-section .editor-workspace{display:block;position:relative;height:100%;min-height:0}.demo-builder-section .editor-scroll{height:100%;min-height:0;max-height:none;border:0;border-radius:0}.editor-add-menu{position:absolute;top:16px;left:16px;z-index:5}.editor-add-menu>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:10px 16px;background:var(--dp);color:var(--dt);border:1px solid var(--dl);border-radius:5px;font-size:13px;box-shadow:0 3px 12px #0003}.editor-add-menu>summary::-webkit-details-marker{display:none}.editor-add-menu>summary:focus-visible{outline:2px solid var(--dy);outline-offset:3px}.editor-add-options{margin-top:8px;display:flex;flex-direction:column;gap:4px;padding:6px;background:var(--dp);border:1px solid var(--dl);border-radius:5px;box-shadow:0 4px 16px #0004}.editor-add-options>.demo-btn{text-align:left;min-height:44px;white-space:nowrap;font-size:12px!important}.editor-a11y-status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0!important;margin:0!important;border:0!important}
@media(max-width:700px){.demo-titlebar{display:grid;grid-template-columns:36px minmax(0,1fr) 72px;grid-template-rows:44px 20px;height:72px;gap:0 6px;padding:0 6px}.demo-titlebar #demo-toggle-navigation{grid-column:1;grid-row:1}.demo-titlebar .demo-app-brand{grid-column:2;grid-row:1}.demo-titlebar .demo-window-actions{grid-column:3;grid-row:1;margin:0;justify-content:end}.demo-titlebar .demo-window-actions button{width:34px}.demo-titlebar .demo-badge{display:block;position:static;transform:none;grid-column:1/-1;grid-row:2;justify-self:center;align-self:start;font-size:9px;letter-spacing:.5px}.editor-add-menu{top:12px;left:12px}}
