/* 梯形图编辑区：工具条、悬浮属性面板、撤销重做、网络操作和实时提示。 */
.le-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 8px;padding:8px;background:#f8f9ff;border:1px solid #e5e7f2;border-radius:12px}
.le-tools button{font-size:12px;padding:4px 10px;white-space:nowrap}.le-tools button.on{background:var(--ho-brand,#4f46e5);color:#fff}
.le-tools .le-sep{width:1px;height:22px;background:#dfe3f0;margin:0 2px}.le-tools .le-label{font-size:12px;color:#6b7280}
.le-tools button:disabled{opacity:.4;cursor:not-allowed}
.le-selection{display:flex;flex:0 0 100%;gap:6px;flex-wrap:wrap;align-items:center;padding:7px 9px;border-top:1px solid #dfe3f0;background:#eef2ff;border-radius:9px}
.le-selection[hidden]{visibility:hidden;pointer-events:none}
.le-selection b{font-size:12px;color:#312e81;margin-right:2px}.le-selection .danger{color:#b91c1c;border-color:#fecaca}
.le-pop{position:absolute;z-index:5;right:22px;top:74px;width:min(330px,calc(100% - 32px));padding:14px;background:#fff;border:1px solid #c7d2fe;border-radius:16px;box-shadow:0 14px 38px rgba(49,46,129,.18)}
#plcCard{position:relative}.le-pop h4{margin:0 0 10px;color:#312e81;font-size:14px}.le-pop label{display:block;margin:7px 0;font-size:12.5px;color:#4b5563}
.le-pop input,.le-pop select{width:100%;margin-top:3px;padding:6px 9px;border:1px solid #d9dce8;border-radius:9px;background:#fff}
.le-pop .le-row{display:flex;gap:8px}.le-pop .le-row>label{flex:1}.le-pop .le-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.le-pop .le-actions button{font-size:12px}
.le-pop .le-close{position:absolute;right:10px;top:8px;border:0;padding:2px 8px;color:#6b7280}.le-pop .le-help{font-size:12px;color:#6b7280;line-height:1.55;margin-top:8px}
.le-warns{margin:4px 0 8px;font-size:12px}.le-warns button{display:block;border:0;text-align:left;padding:3px 6px;color:#92400e;background:#fffbeb;border-radius:6px;margin:2px 0;max-width:100%;white-space:normal}
.lad .el.le-selected rect{stroke:#4f46e5!important;stroke-width:3!important;fill:rgba(79,70,229,.16)!important}.lad .el.le-selected text{fill:#3730a3;font-weight:800}
.le-exam-lock{padding:7px 10px;background:#fffbeb;color:#92400e;border-radius:9px;font-size:12px;margin-bottom:8px}
@media(max-width:760px){.le-tools{flex-wrap:nowrap;overflow-x:auto;align-items:center}.le-pop{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:62vh;overflow:auto}.le-tools .le-label{display:none}.le-selection{flex-wrap:nowrap}}
.le-tools{position:relative;z-index:6}
.le-pop{top:150px}
@media(max-width:760px){.le-pop{top:auto}}
.lad .el.le-generated rect{animation:leFlash .6s ease-in-out 3;stroke:#4f46e5!important;stroke-width:3!important}
@keyframes leFlash{50%{fill:rgba(99,102,241,.3)}}
/* 属性面板固定在视口右下，不覆盖编辑工具条 */
.le-pop{position:fixed;right:22px;top:auto;bottom:22px;width:330px;max-height:65vh;overflow:auto;z-index:20}
@media(max-width:760px){.le-pop{left:16px;right:16px;bottom:16px;width:auto;max-height:62vh}}
.cols>section,.right,#plcCard,#paneLad{min-width:0}
.le-tools{min-width:0;max-width:100%}
.lad{max-width:100%}
.le-tools.le-collapsed>*:not([data-tool="toggle"]){display:none}
.le-tools.le-collapsed{justify-content:flex-end;padding:4px 8px}
.lad g.le-net-target>.tt{fill:#4f46e5;text-decoration:underline}
#plcCard:fullscreen,.plc-full-fallback{background:#fff;overflow:auto;padding:18px;border-radius:0}
#plcCard:fullscreen .lad,.plc-full-fallback .lad{max-height:calc(100vh - 280px)}
#plcCard:fullscreen #stl,.plc-full-fallback #stl{min-height:calc(100vh - 280px)}
.plc-full-fallback{position:fixed;inset:0;z-index:1000;margin:0}
#lad{position:relative}
.le-cursor{position:absolute;width:44px;height:44px;border:2px solid #111827;background:rgba(255,255,255,.08);pointer-events:none;z-index:4;box-sizing:border-box}

/* 嵌入官网 iframe 时按元素定位，禁止固定到超长页面底部 */
.le-pop{position:absolute;right:22px;top:150px;bottom:auto;max-height:65vh;overflow:auto;z-index:20}
@media(max-width:760px){.le-pop{position:absolute;left:16px;right:16px;top:auto;bottom:auto;width:auto;max-height:62vh}}
