/* Preserve the captured application styling; only controls with local demo
   behavior are enabled. Nothing here sends a command to a rig. */
#ls-interface select, #ls-interface input, #ls-interface textarea,
#ls-interface button[data-demo-options], #ls-interface button[aria-expanded],
#ls-interface [data-demo-menu] button { pointer-events: auto !important; }
#ls-interface [hidden], .demo-assistant[hidden], .demo-history[hidden], [data-demo-menu] [hidden] { display: none !important; }
#ls-interface [data-demo-menu] { flex: none; position: relative; z-index: 80; }
#ls-interface [data-demo-menu] [role="menu"] { max-height: calc(100vh - 120px); overflow-y: auto; }
#ls-interface [data-demo-menu] [role="menuitem"]:hover { background: #334155; }
#ls-interface [data-demo-dmd], #ls-interface button[data-demo-draw] { pointer-events: auto !important; }
[data-demo-dmd] { background: #090914; cursor: crosshair; touch-action: none; }
[data-demo-dmd] circle, [data-demo-dmd] polyline { stroke: #55e1ff; stroke-width: 2px; fill: #55e1ff40; vector-effect: non-scaling-stroke; }
[data-demo-dmd] polyline { fill: none; }
#ls-interface button[data-demo-draw][aria-pressed="true"] { background-color: #155e75; }
#ls-bar > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#demo-open-stream { white-space: nowrap; flex-shrink: 0; }
#ls-bar button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 520px) { #ls-bar > span { display: none; } }
#ls-interface .demo-tabs { display: block !important; overflow-x: auto; scrollbar-width: thin; }
#ls-interface .demo-navbar { min-width: 0; gap: 8px; }
@media (max-width: 800px) { #ls-interface .demo-tabs > div { margin-left: 12px; gap: 10px; } #ls-interface .demo-navbar { padding-left: 8px; padding-right: 8px; } }
.demo-dropdown { position: fixed; z-index: 500; min-width: 220px; max-width: 340px; max-height: 240px; overflow-y: auto; background: #374151; color: #e5e7eb; border: 1px solid #64748b; border-radius: 5px; padding: 4px; box-shadow: 0 10px 25px #0009; font: 12px system-ui,sans-serif; }
.demo-dropdown button { display: block; width: 100%; padding: 7px 9px; text-align: left; border: 0; background: transparent; color: inherit; cursor: pointer; }
.demo-dropdown button:hover, .demo-dropdown button:focus { background: #4b5563; }
.demo-nodes { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; color: #cbd5e1; font: 11px system-ui,sans-serif; }
.demo-nodes span { padding: 4px 7px; border: 1px solid #475569; border-radius: 5px; background: #1e293b; }
.demo-nodes b { color: #6ee7b7; font-weight: 500; }.demo-nodes i { color: #94a3b8; font-style: normal; }
.demo-assistant { position: fixed; z-index: 300; top: 40px; bottom: 0; right: 0; display: flex; flex-direction: column; width: min(36rem,100%); color: #e5e7eb; background: #0f172a; border-left: 1px solid #374151; box-shadow: 0 0 30px #0009; font: 12px/1.5 system-ui,sans-serif; }
.demo-assistant header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; border-bottom: 1px solid #374151; }
.demo-assistant header strong { flex: 1; font-size: 14px; color: white; }.demo-assistant button { cursor: pointer; }
.demo-assistant header button { border: 0; color: #cbd5e1; background: transparent; font-size: 16px; }
.demo-mode { border: 1px solid #0e7490; background: #155e75; border-radius: 3px; padding: 2px 8px; }
.demo-assistant-note { margin: 0; padding: 8px 16px; color: #94a3b8; border-bottom: 1px solid #374151; }
.demo-conversation { flex: 1; padding: 16px; overflow-y: auto; }.demo-user-message { margin: 0 0 16px 32px; padding: 10px; background: #164e6366; border-radius: 8px; white-space: pre-wrap; }
.demo-agent-message { padding: 10px 0; }.demo-agent-message b { display: block; color: #67e8f9; }.demo-agent-message span,.demo-tool-message { color: #94a3b8; font-size: 11px; }.demo-agent-message p { margin: 8px 0; }
.demo-history { margin-bottom: 16px; padding: 10px; border: 1px solid #475569; border-radius: 6px; }.demo-history button { display: block; padding: 6px 0; border: 0; color: #67e8f9; background: none; text-align: left; }
.demo-assistant footer { padding: 12px; border-top: 1px solid #374151; }.demo-assistant footer label { position: absolute; left: -9999px; }
.demo-assistant textarea { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid #4b5563; border-radius: 4px; color: white; background: #1f2937; resize: vertical; }
.demo-assistant footer div { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }.demo-assistant footer span { color: #94a3b8; }.demo-assistant footer button { color: white; border: 0; border-radius: 4px; padding: 6px 12px; background: #0e7490; }
