#industrial-rail{
 position:relative;z-index:115;min-height:0;display:flex;flex-direction:column;justify-content:space-between;
 align-items:center;gap:4px;padding:7px 4px;background:#131617;border-right:1px solid #353f42;
 overflow:auto;scrollbar-width:none;
}
#industrial-rail[hidden],#industrial-tool-panel[hidden]{display:none}
#industrial-rail .industrial-tool-set,#industrial-rail .rail-bottom{display:grid;gap:4px;margin:0;width:100%;justify-items:center}
#industrial-rail button{
 display:grid;place-items:center;width:min(38px,100%);height:36px;min-height:28px;padding:0;
 color:#a6b1b4;position:relative;isolation:isolate;background:transparent;border:0;border-radius:0;
}
#industrial-rail button svg{width:24px;height:24px;overflow:visible}
#industrial-rail button:is(:hover,:focus-visible){color:#ebf0ee;background:#323b3d55;outline:0}
#industrial-rail button[aria-expanded="true"]{color:#d5ee45;background:#d5ee4514}
#industrial-rail button[aria-expanded="true"]::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:2px;background:#d5ee45;box-shadow:0 0 8px #d5ee4555;background-image:linear-gradient(0deg,#888d19,#effcab,#888d19);background-size:100% 200%;animation:tool-edge 2.2s linear infinite}
#industrial-rail button[data-tool-new]::after{content:"";width:5px;height:5px;position:absolute;top:3px;right:4px;background:#d5ee45;box-shadow:0 0 6px #d5ee4570;animation:tool-scan .55s ease-out both}
#industrial-rail button:disabled{opacity:.35;cursor:default}
#industrial-rail .rail-bottom{border-top:1px solid #353d40;padding-top:5px}
@keyframes tool-edge{to{background-position:0 200%}}
@keyframes tool-scan{from{opacity:0;transform:scale(2)}to{opacity:1;transform:scale(1)}}
#industrial-rail svg :is(.glyph-focus,.glyph-assemble,.glyph-stack,.glyph-plan,.glyph-radar,.glyph-scan){transform-origin:12px 12px}
#industrial-rail button:is(:hover,[aria-expanded="true"]) :is(.glyph-focus,.glyph-stack,.glyph-plan){animation:tool-focus .45s ease-out}
#industrial-rail button:is(:hover,[aria-expanded="true"]) .glyph-assemble{animation:tool-assemble .52s ease-out}
#industrial-rail button:is(:hover,[aria-expanded="true"]) .glyph-radar{animation:tool-radar .66s ease-out}
#industrial-rail button:is(:hover,[aria-expanded="true"]) .glyph-scan{animation:tool-search .6s ease-out}
#industrial-rail .glyph-flow{opacity:0;stroke:#d5ee45;stroke-dasharray:4 28}
#industrial-rail button:is(:hover,[aria-expanded="true"]) .glyph-flow{opacity:1;animation:tool-flow .62s linear}
#industrial-rail button[data-tool="undo"]:hover .glyph-flow{animation-direction:reverse}
@keyframes tool-focus{from{transform:scale(1.17);opacity:.45}to{transform:scale(1);opacity:1}}
@keyframes tool-assemble{from{transform:translateY(-4px) scale(.72);opacity:.2}to{transform:none;opacity:1}}
@keyframes tool-radar{from{transform:rotate(-145deg);opacity:.4}to{transform:none;opacity:1}}
@keyframes tool-search{from{transform:scale(.48);opacity:.1}60%{opacity:.7}to{transform:scale(1);opacity:1}}
@keyframes tool-flow{from{stroke-dashoffset:28}to{stroke-dashoffset:0}}
#industrial-tool-panel,#workspace-stage>#build-drawer{
 position:absolute;top:9px;bottom:10px;left:8px;width:var(--tools-width,290px);max-width:calc(100% - 16px);min-width:0;
 z-index:105;background:#1a1e20;border:1px solid #4b595d;border-radius:0;box-shadow:9px 12px 28px #0008;
 overscroll-behavior:contain;--tool-scroll:#182022;
}
#industrial-tool-panel{display:flex;flex-direction:column}
#industrial-tool-panel:not([hidden]),#workspace-stage>#build-drawer:not([hidden]){transform-origin:left center;animation:tool-extend .17s ease-out}
@keyframes tool-extend{from{opacity:.35;transform:translateX(-7px);clip-path:inset(0 35% 0 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
#industrial-tool-panel>header{display:flex;justify-content:flex-start;align-items:center;gap:4px;position:static;flex:none;margin:0;padding:8px 7px 8px 12px;min-height:39px;height:auto;background:none;border:0;border-bottom:1px solid #354144}
#industrial-tool-panel h2{margin:0 auto 0 0;color:#e0e9e7;font-size:14px;font-weight:550}
#industrial-tool-panel>header button,#drawer-compact{display:grid;place-items:center;width:26px;min-width:26px;height:24px;padding:3px;border:0;border-radius:0;color:#b3c1c0;background:none}
#industrial-tool-panel>header button[aria-pressed="true"],#drawer-compact[aria-pressed="true"]{color:#d5ee45;background:#d5ee4513}
#industrial-tool-panel>header svg{width:17px;height:17px}
#industrial-tool-panel .tool-body,#build-drawer #build-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#536063 var(--tool-scroll)}
#industrial-tool-panel .tool-body{padding:9px 11px;flex:1}
#industrial-tool-panel h3{margin:4px 0 7px;color:#aab8b7;font-size:11px;font-weight:600}
.tool-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;margin-bottom:9px}
.tool-actions button,.tool-body>div>button{min-height:28px;padding:4px 7px;background:#232a2c;border:1px solid #3e494b;border-radius:0;color:#dce4e2;font-size:12px}
.tool-actions button:hover,.tool-body>div>button:hover{border-color:#869943;color:#d5ee45}
.tool-field{display:grid;grid-template-columns:55px minmax(0,1fr);align-items:center;gap:4px;margin-bottom:5px;font-size:12px;color:#bcc9c7}
.tool-body :is(select,input){min-width:0;width:100%;padding:5px;background:#111517;border:1px solid #424e50;border-radius:0;color:#dae6e1;font-size:12px}
.tool-body dl{margin:5px 0;font-size:11px}.tool-body dl div{display:flex;justify-content:space-between}.tool-body dd{margin:0;color:#c0cdcb}
.tool-body :is(#industrial-search-results,.tool-deposits){display:grid;gap:3px;margin-top:8px}
#industrial-search-results button,.tool-deposits button{display:flex;width:100%;justify-content:space-between;gap:4px;align-items:center;text-align:left;min-width:0}
#industrial-search-results b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:520}
#industrial-search-results small,.tool-deposits small{min-width:0;color:#a6b8b8;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#industrial-search-results p{color:#acb9b7;font-size:12px}
.tool-resize{position:absolute;right:-4px;top:10px;bottom:10px;width:8px;cursor:ew-resize;touch-action:none;z-index:2;border-right:1px solid transparent}
.tool-resize:is(:hover,:focus-visible){border-right-color:#d5ee45;outline:0}
#workspace-stage>#build-drawer .drawer-tabs{display:none}
#workspace-stage>#build-drawer .drawer-head{padding:8px 10px}
#workspace-stage[data-tools-open="true"]:not([data-tools-narrow="true"]) .material-tray{left:calc(var(--tools-width) + 19px)}
#workspace-stage[data-tools-open="true"][data-tools-narrow="true"] :is(#industrial-tool-panel,#build-drawer){bottom:calc(var(--tray-reserve,120px) + 8px)}
#workspace-stage[data-tools-open="true"][data-tools-narrow="true"] .material-tray{top:auto;bottom:8px;left:8px}
#workspace-stage[data-tools-open="true"][data-tools-narrow="true"] #tray-stock{max-height:min(20dvh,138px)}
#industrial-tool-panel[data-tools-compact="true"] .tool-body{padding:5px 7px}
#industrial-tool-panel[data-tools-compact="true"] button{min-height:22px}
#build-drawer[data-tools-compact="true"] .drawer-head{padding-block:4px}
#workspace-stage .network-tools[hidden],.edit-tools .legacy-tool,.edit-tools:has(#undo[hidden]):not(:has(button:not([hidden]):not(.legacy-tool))){display:none}
body.drawer-pinned #factory-workspace{margin-left:0}
@media(max-height:560px){#industrial-rail button{height:28px}#industrial-rail button svg{width:18px;height:18px}#industrial-rail .industrial-tool-set,#industrial-rail .rail-bottom{gap:2px}}
@media(prefers-reduced-motion:reduce){#industrial-rail *,#industrial-tool-panel,#workspace-stage>#build-drawer{animation:none!important}}
html[data-motion="reduced"] :is(#industrial-rail *,#industrial-tool-panel,#workspace-stage>#build-drawer){animation:none!important}
body.drawer-pinned #factory-workspace{width:100%}
#industrial-tool-tip{position:fixed;z-index:812;pointer-events:none;max-width:230px;display:grid;gap:2px;padding:6px 9px;border:1px solid #566164;border-left:2px solid #d5ee45;color:#e5eeea;background:#181d1e;box-shadow:0 6px 20px #0009;font-size:11px}
#industrial-tool-tip[hidden]{display:none}#industrial-tool-tip span,#industrial-tool-tip kbd{color:#a7b8b5}
