/* ENTRA V19.4 — browser-only 2D preliminary layout planner */
.lp-section{overflow:hidden}.lp-heading-row{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.lp-scale-control{display:flex;align-items:center;gap:10px;color:#53647f;font-size:12px;font-weight:800}.lp-scale-control select{min-height:40px;padding:0 12px;border:1px solid #d7e0eb;border-radius:9px;background:#fff;color:#173260;font-weight:700}.lp-workspace{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:16px;align-items:stretch}.lp-toolbox,.lp-stage-wrap{background:#fff;border:1px solid #dfe6ee;border-radius:16px;box-shadow:0 12px 32px #0c23400c}.lp-toolbox{padding:18px}.lp-toolbox>h3{margin:0;color:#142744;font-size:17px;font-weight:900}.lp-toolbox>p{margin:5px 0 16px;color:#71819a;font-size:12px;line-height:1.5}.lp-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lp-add-grid button{min-height:88px;padding:11px 8px;border:1px solid #e1e8f0;border-radius:10px;background:#f9fbfd;color:#203454;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;cursor:pointer;transition:border-color .18s,transform .18s,background .18s}.lp-add-grid button:hover{border-color:#f36e21;background:#fff8f3;transform:translateY(-2px)}.lp-add-grid b{font-size:11px;line-height:1.25;text-align:center}.lp-symbol{position:relative;display:block;width:43px;height:22px;border:2px solid #24456b;border-radius:4px;background:#dce9f5}.lp-symbol--roller{background:repeating-linear-gradient(90deg,#dce9f5 0 5px,#6586a8 5px 7px)}.lp-symbol--curve{border-radius:0 18px 0 0;border-top:3px solid #24456b;border-right:3px solid #24456b;border-bottom:0;border-left:0;background:transparent;width:34px;height:26px}.lp-symbol--machine{width:34px;height:30px;background:#fff0e6;border-color:#d65b19}.lp-symbol--transfer{width:28px;height:28px;transform:rotate(45deg);background:#f4f0ff;border-color:#7554a6}.lp-symbol--pallet{width:39px;height:24px;border:2px dashed #8b6325;background:#fff3d7}.lp-selection{margin-top:17px;padding:13px;border-radius:10px;background:#f4f7fa;min-height:110px}.lp-selection-kicker{display:block;color:#8a98aa;font-size:9px;font-weight:900;letter-spacing:.1em}.lp-selection strong{display:block;margin:5px 0 10px;color:#203454;font-size:12px}.lp-selection-actions{display:flex;flex-wrap:wrap;gap:6px}.lp-selection-actions button,.lp-toolbar button,.lp-exports button{min-height:31px;padding:0 9px;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#314967;font-size:10px;font-weight:800;cursor:pointer}.lp-selection-actions button:disabled,.lp-toolbar button:disabled{opacity:.4;cursor:not-allowed}.lp-selection-actions button:hover,.lp-toolbar button:hover,.lp-exports button:hover{border-color:#f36e21;color:#c95212}.lp-toolbar{display:flex;gap:7px;margin-top:11px}.lp-toolbar button{flex:1}.lp-exports{display:grid;gap:8px;margin-top:13px}.lp-exports button{min-height:38px}.lp-exports .lp-export-primary{border-color:#f36e21;background:#f36e21;color:#fff}.lp-exports .lp-export-primary:hover{background:#d95c16;color:#fff}.lp-stage-wrap{min-width:0;padding:12px}.lp-stage-toolbar{display:flex;justify-content:space-between;gap:12px;padding:2px 4px 10px;color:#71819a;font-size:10px;font-weight:700}.lp-stage-toolbar #lpStatus{color:#c95212}.lp-canvas{display:block;width:100%;height:auto;max-height:680px;aspect-ratio:1000/650;border:1px solid #dce4ed;border-radius:10px;touch-action:none;user-select:none}.lp-stage-legend{display:flex;align-items:center;flex-wrap:wrap;gap:13px;padding:11px 4px 1px;color:#71819a;font-size:10px;font-weight:700}.lp-stage-legend span{display:inline-flex;align-items:center;gap:6px}.lp-stage-legend i{display:inline-block;width:14px;height:9px;border:1px solid #24456b;border-radius:2px;background:#dce9f5}.lp-stage-legend .lp-legend-machine{background:#fff0e6;border-color:#d65b19}.lp-stage-legend .lp-legend-transfer{background:#f4f0ff;border-color:#7554a6}.lp-stage-legend #lpCount{margin-inline-start:auto;color:#314967}.lp-bottom-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:18px}.lp-note,.lp-share{padding:19px;border-radius:13px}.lp-note{border:1px solid #f3d1b9;background:#fff8f3}.lp-note b{color:#a9430c;font-size:13px}.lp-note p,.lp-share p{margin:7px 0 0;color:#596b83;font-size:12px;line-height:1.65}.lp-share{border:1px solid #dfe6ee;background:#f8fafc}.lp-share h3{margin:0;color:#173260;font-size:15px;font-weight:900}.lp-share .ds-btn{margin-top:12px}.lp-share .ds-btn:focus-visible,.lp-add-grid button:focus-visible,.lp-toolbar button:focus-visible,.lp-exports button:focus-visible,.lp-selection-actions button:focus-visible{outline:3px solid #f6a36f;outline-offset:2px}
@media(max-width:900px){.lp-workspace{grid-template-columns:1fr}.lp-toolbox{order:2}.lp-stage-wrap{order:1}.lp-add-grid{grid-template-columns:repeat(3,1fr)}.lp-selection{min-height:0}.lp-bottom-grid{grid-template-columns:1fr}}
@media(max-width:560px){.lp-heading-row{align-items:start;flex-direction:column}.lp-add-grid{grid-template-columns:repeat(2,1fr)}.lp-stage-wrap{padding:7px}.lp-stage-toolbar{font-size:9px}.lp-stage-legend{gap:8px;font-size:9px}.lp-bottom-grid{gap:10px}.lp-note,.lp-share{padding:15px}}
@media(prefers-reduced-motion:reduce){.lp-add-grid button{transition:none}}
/* V23.4 professional planner: library, properties, hall, zoom, bill of materials */
.lp-hall{display:flex;flex-wrap:wrap;gap:10px}.lp-hall label{display:grid;gap:4px;color:#53647f;font-size:11px;font-weight:800}.lp-hall input,.lp-hall select{width:110px;min-height:38px;padding:0 10px;border:1px solid #d7e0eb;border-radius:8px;background:#fff;color:#173260;font-weight:700}
.lp-workspace{grid-template-columns:minmax(260px,330px) minmax(0,1fr);align-items:start}
.lp-toolbox{display:flex;flex-direction:column;max-height:820px}
.lp-search input{width:100%;min-height:40px;padding:0 12px;border:1px solid #d7e0eb;border-radius:9px;background:#f9fbfd;font-size:13px}.lp-search input:focus{outline:2px solid #f6a36f;border-color:#f36e21;background:#fff}
.lp-cats{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.lp-cat{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #dfe6ee;border-radius:999px;background:#fff;color:#314967;font-size:11px;font-weight:800;cursor:pointer}.lp-cat small{font-size:10px;opacity:.85}.lp-cat[aria-pressed=true]{background:#173260;border-color:#173260;color:#fff}.lp-cat:hover{border-color:#f36e21}
.lp-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:auto;padding:2px 2px 6px;min-height:200px;flex:1}
.lp-part{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;border:1px solid #e1e8f0;border-radius:10px;background:#f9fbfd;color:#203454;cursor:grab;text-align:center;transition:border-color .15s,background .15s,transform .15s}.lp-part:hover{border-color:#f36e21;background:#fff8f3;transform:translateY(-1px)}.lp-part:focus-visible{outline:3px solid #f6a36f;outline-offset:1px}.lp-part b{font-size:10.5px;line-height:1.25}.lp-part small{font-size:9.5px;color:#5b6a80}
.lp-ico{width:100%;height:42px;display:block}
.lp-empty{margin:10px 2px;color:#5b6a80;font-size:12px}
.lp-stage-toolbar{align-items:center;flex-wrap:wrap}.lp-tb,.lp-zoom{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.lp-tb button,.lp-zoom button{min-height:32px;padding:0 10px;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#314967;font-size:11px;font-weight:800;cursor:pointer}.lp-tb button:hover,.lp-zoom button:hover{border-color:#f36e21;color:#c95212}.lp-tb button:disabled{opacity:.4;cursor:not-allowed}.lp-zoom output{min-width:44px;text-align:center;font-size:11px;font-weight:800;color:#314967}.lp-zoom button{min-width:32px;font-size:14px}
.lp-canvas{aspect-ratio:16/10;max-height:none;background:#eef2f6;cursor:grab}.lp-canvas:active{cursor:grabbing}
.lp-object{cursor:move;outline:none}.lp-object:focus-visible .lp-hit{stroke:#f36e21;stroke-width:2;vector-effect:non-scaling-stroke}
.lp-stage-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 14px;padding:9px 4px 2px;color:#71819a;font-size:10px;font-weight:700}.lp-stage-foot #lpStatus{color:#c95212}.lp-stage-foot #lpCount{color:#314967}
.lp-props{margin-top:10px;padding:13px;border:1px solid #e3e9f0;border-radius:12px;background:#f6f8fb}.lp-props.is-empty .lp-props-grid{display:none}.lp-props-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.lp-props-head strong{color:#173260;font-size:13px;margin-inline-end:auto}.lp-props-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}.lp-props-grid label{display:grid;gap:3px;color:#53647f;font-size:10px;font-weight:800}.lp-props-grid label[hidden]{display:none}.lp-props-grid input,.lp-props-grid textarea{width:100%;min-height:34px;padding:5px 8px;border:1px solid #d7e0eb;border-radius:7px;background:#fff;color:#173260;font:600 12px/1.3 Inter,Arial,sans-serif}.lp-props-grid .lp-wide{grid-column:span 2}.lp-props-grid .lp-full{grid-column:1/-1}.lp-props-grid .lp-check{display:flex;align-items:center;gap:7px;grid-column:span 2;font-size:11px}.lp-props-grid .lp-check input{width:16px;min-height:16px}
.lp-bom{margin-top:18px;padding:18px;border:1px solid #dfe6ee;border-radius:16px;background:#fff;box-shadow:0 12px 32px #0c23400c}.lp-bom-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px}.lp-bom h3{margin:0;color:#142744;font-size:17px;font-weight:900}.lp-bom-head p{margin:4px 0 0;color:#53647f;font-size:12px}
.lp-bom .lp-exports{display:flex;flex-wrap:wrap;gap:7px;margin:0}.lp-bom .lp-exports button,.lp-import{min-height:36px;padding:0 12px;border:1px solid #d7e0eb;border-radius:8px;background:#fff;color:#314967;font-size:11px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center}.lp-import input{position:absolute;width:1px;height:1px;opacity:0}.lp-import:hover,.lp-bom .lp-exports button:hover{border-color:#f36e21;color:#c95212}.lp-import:focus-within{outline:3px solid #f6a36f}
.lp-bom-scroll{margin-top:12px;overflow:auto;max-height:420px;border:1px solid #e6ebf1;border-radius:10px}.lp-bom table{width:100%;border-collapse:collapse;font-size:12px}.lp-bom th,.lp-bom td{padding:8px 10px;text-align:start;border-bottom:1px solid #eef2f6;color:#314967}.lp-bom th{position:sticky;top:0;background:#f6f8fb;color:#142744;font-weight:900;font-size:11px}.lp-bom td:nth-child(3){color:#71819a;font-size:11px}.lp-autosave{margin:10px 0 0;color:#5b6a80;font-size:11px}
@media(max-width:1100px){.lp-props-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.lp-toolbox{max-height:none}.lp-library{grid-template-columns:repeat(3,minmax(0,1fr));max-height:420px}}
@media(max-width:560px){.lp-library{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-props-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-hall input,.lp-hall select{width:96px}.lp-canvas{aspect-ratio:1/1}}
