:root{--bg:#eef2f5;--panel:#f7f9fb;--panel-2:#e8edf2;--line:#9aa8b7;--text:#1b2430;--muted:#5f6f7f;--accent:#168a54;--accent-2:#1e6fa8;--warn:#9a6900;--sheet:#fffcc5;--sheet-grid:rgba(79,88,96,0.24)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;letter-spacing:0}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);background:#e2e8ef;color:var(--text);border-radius:6px;padding:8px 10px;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);color:#08110d;border-color:var(--accent);font-weight:700}input,select{width:100%;border:1px solid var(--line);background:#ffffff;color:var(--text);border-radius:6px;padding:8px}label{display:grid;grid-gap:6px;gap:6px;color:var(--muted);font-size:13px}.start-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.start-panel{width:min(540px,100%);display:grid;grid-gap:22px;gap:22px;padding:32px;border:1px solid var(--line);background:var(--panel);border-radius:8px}.eyebrow,.muted{color:var(--muted)}.intro{line-height:1.55;color:#c5d0da}.editor-shell{height:100vh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:54px minmax(0,1fr);grid-template-areas:"toolbar" "dock"}.editor-shell[data-theme=dark]{--bg:#11151a;--panel:#182029;--panel-2:#202a35;--line:#344150;--text:#eef3f7;--muted:#9aa8b7;--accent:#47b37a;--accent-2:#4da3d9;--warn:#d9a441;--sheet:#0f141a;--sheet-grid:rgba(185,201,216,0.35)}@media (prefers-color-scheme:dark){.editor-shell[data-theme=system]{--bg:#11151a;--panel:#182029;--panel-2:#202a35;--line:#344150;--text:#eef3f7;--muted:#9aa8b7;--accent:#47b37a;--accent-2:#4da3d9;--warn:#d9a441;--sheet:#0f141a;--sheet-grid:rgba(185,201,216,0.35)}}.topbar{grid-area:toolbar;display:flex;align-items:center;gap:6px;padding:0 8px;border-bottom:1px solid var(--line);background:var(--panel);position:relative}.topbar-separator{width:1px;height:22px;background:#9ba8b6}.topbar-menus{display:flex;align-items:center;gap:0}.menu-group{position:relative}.menu-button{min-width:58px;padding:5px 8px;border-radius:4px;background:transparent;border:1px solid transparent;font-size:11px;font-weight:700}.menu-button:hover{background:var(--panel-2);border-color:var(--line)}.top-menu-popover{position:absolute;top:32px;left:0;z-index:70;min-width:180px;display:grid;grid-gap:2px;gap:2px;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--panel);box-shadow:0 10px 22px rgba(10,20,30,.18)}.top-menu-popover button{width:100%;text-align:left;border-radius:4px;border:0;background:transparent;padding:7px 8px;font-size:12px}.top-menu-popover button:hover:not(:disabled){background:var(--panel-2)}.insert-menu-popover{min-width:280px;max-width:min(380px,94vw)}.insert-menu-section{display:grid;grid-gap:6px;gap:6px;padding:4px 2px 10px;border-bottom:1px solid var(--line)}.insert-menu-section:last-of-type{border-bottom:0;padding-bottom:4px}.insert-menu-section strong{font-size:11px;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}.insert-hint{margin:0;font-size:11px;color:var(--muted);line-height:1.35}.shape-insert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:4px;gap:4px}.shape-insert-tile{font-size:11px;padding:8px 6px;border:1px solid var(--line);background:var(--panel-2);border-radius:4px;cursor:pointer;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}.shape-insert-tile svg{width:28px;height:28px;flex-shrink:0}.shape-insert-label{font-size:10px;line-height:1.2;color:var(--muted)}.shape-insert-tile:hover{border-color:var(--accent-2)}.draw-tool-btn{display:flex;align-items:center;gap:8px}.draw-tool-btn svg{width:18px;height:18px;flex-shrink:0}.menu-toggle-active{background:var(--panel-2);font-weight:700}.sheet-graphic-node{width:100%;height:100%;box-sizing:border-box}.sheet-graphic-node.is-selected{box-shadow:0 0 0 2px var(--accent-2);border-radius:2px}.sheet-image-node img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sheet-shape-svg{display:block}.sheet-text-node{display:flex;flex-direction:column;align-items:stretch;min-height:0}.canvas-panel .react-flow .sheet-text-node.sheet-text-node--idle{cursor:-webkit-grab;cursor:grab}.canvas-panel .react-flow .sheet-text-node.sheet-text-node--idle:active{cursor:-webkit-grabbing;cursor:grabbing}.sheet-text-node--idle .sheet-text-body-view{cursor:inherit;-moz-user-select:none;user-select:none;-webkit-user-select:none}.sheet-text-format-popover{max-width:min(340px,calc(100vw - 24px));pointer-events:auto}.sheet-text-format-popover-inner{padding:12px;border-radius:16px;background:linear-gradient(165deg,rgba(255,255,255,.98),rgba(245,250,252,.96));border:1px solid rgba(22,138,84,.28);box-shadow:0 12px 40px rgba(22,42,62,.14),inset 0 2px 0 rgba(255,255,255,.75);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.sheet-text-format-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}.sheet-text-format-row:last-child{margin-bottom:0}.sheet-text-format-icons{justify-content:flex-start;flex-wrap:wrap}.sheet-text-format-split{gap:10px;align-items:flex-end}.sheet-text-format-field{display:flex;flex-direction:column;gap:4px;flex:1 1;min-width:0}.sheet-text-format-grow{flex:2 1}.sheet-text-format-label{font-size:11px;font-weight:600;letter-spacing:.03em;color:rgba(29,39,48,.72);display:flex;align-items:center;gap:4px}.sheet-text-format-select{width:100%;min-height:38px;padding:8px 12px;font-size:13px;line-height:1.35;border-radius:10px;border:1px solid rgba(29,39,48,.14);background:rgba(255,255,255,.95);color:#1d2730;box-sizing:border-box}.sheet-text-format-color{flex:0 0 auto;min-width:72px}.sheet-text-format-color-input{width:100%;height:38px;padding:2px;border-radius:10px;border:1px solid rgba(29,39,48,.14);background:rgba(255,255,255,.95);cursor:pointer;box-sizing:border-box}.sheet-text-format-clear-fill{width:100%;margin:4px 0 12px;padding:8px 10px;font-size:12px;border-radius:10px;border:1px dashed rgba(22,138,84,.45);background:rgba(22,138,84,.06);color:#166534;cursor:pointer}.sheet-text-format-clear-fill:hover{background:rgba(22,138,84,.11)}.sheet-text-fmt-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:none;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(22,42,62,.12);color:#1d2730;cursor:pointer;transition:transform .12s ease,background .12s ease}.sheet-text-fmt-btn:hover{transform:translateY(-1px);background:rgba(22,138,84,.12);color:#14532d}.sheet-text-fmt-btn-danger:hover{background:rgba(229,57,53,.14);color:#b71c1c}.sheet-text-fmt-ico{width:22px;height:22px}.sheet-text-fmt-ico-inline{width:14px;height:14px;opacity:.85}.sheet-text-fmt-gap{width:8px}.sheet-text-format-actions{margin-top:4px;padding-top:10px;border-top:1px solid rgba(29,39,48,.08)}.sheet-text-body{width:100%;height:calc(100% - 0px);box-sizing:border-box;overflow:auto;outline:none;font-size:14px;line-height:1.45;color:#1d2730;font-family:system-ui,sans-serif}.sheet-text-body-view{min-height:100%;padding:4px 6px}.sheet-text-body-editing{flex:1 1;min-height:0;padding:6px 8px;cursor:text;background:rgba(255,255,255,.55);border-radius:4px}.sheet-text-body ol,.sheet-text-body ul{margin:.35em 0;padding-left:1.35em}.sheet-text-body p{margin:.25em 0}.shape-style-menu .shape-style-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 0;font-size:12px}.shape-style-menu input[type=color]{width:36px;height:28px;padding:0;border:0;background:transparent;cursor:pointer}.shape-style-menu input[type=range]{flex:1 1;min-width:72px;max-width:160px}.shape-style-row-icons .shape-style-icon-label{display:inline-flex;align-items:center;justify-content:center}.shape-style-row-icons .shape-style-icon-label svg{width:18px;height:18px}.shape-style-row-labeled .shape-style-label-with-icon{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:12px;color:#24303a}.shape-style-row-labeled .shape-style-label-with-icon svg{width:18px;height:18px;flex-shrink:0}.shape-style-row-inline.style-color-row{display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:nowrap;width:100%}.style-color-row-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}.style-color-row-icon svg{width:18px;height:18px}.style-color-row-text{font-weight:600;font-size:12px;color:#24303a;flex:1 1;min-width:0}.style-color-swatch{position:relative;width:26px;height:26px;flex-shrink:0;border-radius:4px;border:1px solid rgba(0,0,0,.28);box-sizing:border-box;overflow:hidden}.style-color-swatch input[type=color]{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;border:0;opacity:0;cursor:pointer}.connection-context-menu .context-menu-style-nested .shape-style-row-inline.style-color-row{padding:4px 0}.connection-context-menu .context-menu-submenu-toggle{width:100%;text-align:left;font-weight:600}.connection-context-menu .context-menu-style-nested{padding:6px 8px 8px 12px;margin:2px 0 6px;border-left:3px solid rgba(30,111,168,.35);background:rgba(30,111,168,.06)}.connection-context-menu .context-menu-style-nested .shape-style-row-labeled{padding:3px 0}.topbar-actions{margin-left:2px;display:flex;align-items:center;gap:2px;padding:0;border:0;background:transparent}.icon-action{width:26px;height:26px;padding:0;display:inline-grid;place-items:center;border-radius:4px;border:0;background:transparent;font-size:15px}.icon-action:hover{background:#e7edf5}.icon-action.is-active{border-color:#2f8f59;box-shadow:0 0 0 1px rgba(47,143,89,.2)}.topbar-sheet-text-format{flex-wrap:wrap;align-items:center;gap:4px 6px;max-width:min(780px,58vw);margin-left:0}.topbar-text-fmt-field{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:#28313b}.topbar-text-fmt-label{white-space:nowrap}.topbar-text-fmt-select{min-width:0;max-width:120px;height:24px;padding:2px 6px;font-size:11px}.topbar-text-fmt-color .sheet-text-format-color-input{width:26px;height:22px;padding:0}.topbar-text-fmt-divider{display:inline-block;width:1px;height:18px;background:#b8c2ce;margin:0 2px;align-self:center}.topbar-text-clear-fill{padding:3px 8px;font-size:10px;font-weight:700;border-radius:4px;border:1px solid #8896a5;background:rgba(255,255,255,.85);color:#28313b;cursor:pointer}.topbar-text-clear-fill:hover{background:#fff}.editor-shell[data-theme=dark] .topbar-text-fmt-field{color:#d7e0ea}.editor-shell[data-theme=dark] .topbar-text-fmt-divider{background:#4a5666}.editor-shell[data-theme=dark] .topbar-text-clear-fill{border-color:#5a6a7c;background:rgba(30,38,48,.9);color:#d7e0ea}.dock-layout-wrap{grid-area:dock;min-height:0;overflow:hidden;background:#d7dde3;padding:6px}.dock-layout-wrap>.flexlayout__layout{position:relative!important;width:100%!important;height:100%!important;inset:auto!important;background:#d7dde3;border:1px solid var(--line)}.flexlayout__tabset{background:var(--panel)}.flexlayout__tabset_tabbar_outer{min-height:30px;background:var(--panel-2);border-bottom:1px solid var(--line)}.flexlayout__tab_button{font-size:12px;font-weight:700;color:var(--muted)}.flexlayout__tab_button--selected{background:var(--panel);color:var(--accent-2)}.flexlayout__tab{background:var(--panel);overflow:auto}.flexlayout__splitter{background:#b9c3ce}.flexlayout__splitter:hover,.flexlayout__splitter_drag{background:var(--accent-2)}.flexlayout__outline_rect{border-color:var(--accent-2)!important;background:rgba(30,111,168,.12)!important}.flexlayout__tab_button_trailing,.flexlayout__tab_toolbar_button-max,.flexlayout__tab_toolbar_button-min{display:none!important}.panel-resizer{position:-webkit-sticky;position:sticky;top:0;z-index:20;width:7px;height:100%;min-height:100vh;cursor:col-resize;background:transparent}.panel-resizer.right-edge{float:right;margin-right:-4px}.panel-resizer.left-edge{float:left;margin-left:-4px}.panel-resizer:hover{background:rgba(30,111,168,.2)}.wiring-sheet-root{position:absolute;inset:0;width:100%;height:100%;display:flex;flex-direction:column;min-width:0;min-height:0}.canvas-panel[data-sheet-canvas]{flex:1 1;min-height:0;display:flex;flex-direction:column;position:relative;background:#d7dde3;padding:18px;overflow:hidden;cursor:crosshair}.flow-sheet{flex:1 1;min-width:0;min-height:0;width:100%;position:relative}.canvas-panel .react-flow{width:100%;height:100%;border:0;background:#d7dde3}.sheet-frame-node{border:2px solid #2e3741;background:var(--sheet-canvas,var(--sheet));pointer-events:none;position:relative}.sheet-frame-node.sheet-grid-on{background-color:var(--sheet-canvas,var(--sheet));background-image:radial-gradient(circle,rgba(72,88,104,.78) 1.2px,transparent 1.3px);background-size:20px 20px}.react-flow__node-sheetFrame{pointer-events:none;z-index:0!important}.react-flow__edges{z-index:1!important}.sheet-frame-node span{position:absolute;top:8px;left:10px;padding:3px 8px;background:rgba(255,255,255,.82);border:1px solid #8896a5;color:#28313b;font-size:12px;font-weight:700;pointer-events:none}.panel-section{padding:14px;border-bottom:1px solid var(--line);display:grid;grid-gap:12px;gap:12px}.palette{gap:9px}.palette.horizontal{grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;padding:7px 10px}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.palette-heading div{display:flex;align-items:center;gap:6px}.palette-heading button{padding:3px 6px;font-size:10px;font-weight:700}.palette-heading h2{display:inline-flex;align-items:center;gap:6px}.category-icon{min-width:18px;height:18px;display:inline-grid;place-items:center;border:1px solid #9badbf;background:#ffffff;color:#1e6fa8;font-size:10px;font-weight:900;line-height:1}.palette-heading span{min-width:28px;padding:2px 7px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:11px;font-weight:700;text-align:center}.palette-search{position:-webkit-sticky;position:sticky;top:0;z-index:5;padding-bottom:6px;background:var(--panel);font-size:0}.palette-search input{height:28px;padding:4px 8px;font-size:12px}.palette.horizontal .palette-heading{min-width:128px}.palette.horizontal .palette-search{position:static;padding-bottom:0;align-self:center}.palette-groups{min-width:0;display:grid;grid-gap:6px;gap:6px}.palette.horizontal .palette-groups{display:grid;grid-template-rows:auto minmax(0,1fr);align-items:stretch;grid-gap:6px;gap:6px;overflow-x:auto;overflow-y:auto;padding-bottom:4px;max-height:152px}.palette-category-tabs{display:flex;align-items:flex-end;gap:3px;overflow-x:auto;border-bottom:1px solid var(--line)}.palette-category-tabs button{width:max-content;min-height:28px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-bottom-left-radius:0;border-bottom-right-radius:0;font-size:11px;font-weight:700;white-space:nowrap}.palette-category-tabs button.active{background:#ffffff;border-bottom-color:#ffffff;color:var(--accent-2)}.palette-category-tabs small{color:var(--muted);font-size:10px}.panel-section h2,.panel-section h3{margin:0}.panel-section h2{font-size:15px}.panel-section h3{font-size:13px;color:var(--muted)}.button-row,.section-row{display:flex;align-items:center;gap:8px}.section-row{justify-content:space-between}.button-row.compact button{padding:5px 7px;font-size:12px}details{border-top:1px solid var(--line);padding-top:6px}.palette.horizontal details{flex:0 0 auto;min-width:max-content;border-top:0;border-left:1px solid var(--line);padding:0 0 0 8px}summary{cursor:pointer;color:#263342;font-weight:700;font-size:12px}.palette-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:6px;gap:6px;padding:7px 0}.palette.horizontal .horizontal-list,.palette.horizontal .palette-list{display:flex;flex-wrap:wrap;align-items:center;gap:5px;max-height:none;overflow:auto;padding:2px 0 0}.palette-list button{text-align:left;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;grid-gap:6px;gap:6px;min-height:34px;padding:5px 6px;border-radius:5px;font-size:11px;line-height:1.1}.palette.horizontal .palette-list button{width:44px;min-width:44px;max-width:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:44px;padding:1px;flex:0 0 auto;text-align:center}.palette.horizontal .palette-list button .palette-block-label{display:none}.palette.horizontal .palette-list button .block-icon{flex-shrink:0;width:40px;height:40px;min-height:40px;border:0;background:transparent;padding:0;overflow:hidden}.palette-list button span:last-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palette-list button .palette-block-label{min-width:0}.palette.compact .palette-list{grid-template-columns:repeat(5,34px)}.palette.horizontal.compact .palette-list{display:flex;flex-wrap:wrap}.palette.compact .palette-list button{width:34px;min-height:32px;grid-template-columns:1fr;place-items:center;padding:3px}.palette.compact .palette-list button span:last-of-type{display:none}.palette-list small{color:var(--warn);display:none}.block-icon{width:26px;min-height:24px;display:grid;place-items:center;border:2px solid #4b5968;background:#ffffff;color:#064d5d;font-size:9px;font-weight:800;line-height:1}.palette-custom-icon{width:100%;height:100%}.palette.horizontal .palette-list button .palette-custom-icon{width:100%;height:100%;transform:scale(1.16);transform-origin:center}.palette-raster-tile-icon{width:100%;height:100%;object-fit:contain;image-rendering:auto;display:block}.logic-instruction-icon{width:25px;height:22px;display:block}.palette.horizontal .palette-list button .block-icon .logic-instruction-icon{width:100%;height:100%;min-height:0;transform:scale(1);transform-origin:center}.palette-logic-composite{width:100%;height:100%;display:grid;grid-template-rows:1fr auto;align-items:center;justify-items:center}.palette-logic-caption{width:100%;text-align:center;font-size:6px;font-weight:800;line-height:1;color:#111820;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:clip}.instruction-icon-text{display:inline-grid;min-width:0;place-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-node,.io-symbol-node,.plc-symbol-node{min-width:128px;border:2px solid #4b5968;background:#ffffff;color:var(--text);border-radius:2px;box-shadow:none}.io-symbol-node{min-width:62px;width:62px;min-height:42px;display:grid;grid-template-columns:34px 1fr;align-items:center;grid-gap:2px;gap:2px;padding:2px;overflow:visible}.io-symbol-body{width:32px;height:38px;display:grid;grid-template-rows:1fr auto;place-items:center;border:2px solid #2d3844;background:#ffffff;color:#03131b;font-weight:800;line-height:1}.io-symbol-body strong{width:24px;height:22px;display:grid;place-items:center;background:#f6d84d;border:1px solid #2d3844}.io-svg-icon{width:21px;height:21px;display:block}.io-symbol-body span{min-height:10px;font-size:10px}.io-symbol-node.input{border-left:0;transform:translateX(-1px)}.io-symbol-node.output{border-right:0;transform:translateX(1px)}.io-symbol-node .react-flow__handle{width:8px;height:8px;background:#111820;border:1px solid #ffffff}.io-symbol-node.input .react-flow__handle{right:-5px}.io-symbol-node.output .react-flow__handle{left:-5px}.io-toggle{width:15px;height:15px;padding:0}.io-comment,.io-state{color:var(--muted);font-size:10px;font-weight:700}.block-node.active,.io-symbol-node.active,.plc-symbol-node.active .plc-symbol-body{border-color:var(--accent);box-shadow:0 0 0 2px rgba(71,179,122,.2)}.block-title{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-bottom:1px solid #93a0ad;font-weight:700}.block-title small{color:var(--muted)}.ports{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px;padding:8px 10px}.port-row{position:relative;height:24px;display:flex;align-items:center;color:#2c3947;font-size:12px}.port-row.output{justify-content:flex-end}.react-flow__handle{width:10px;height:10px;background:var(--accent-2);border:2px solid #10202d;cursor:crosshair;z-index:20}.react-flow__handle:hover{background:#111820}.react-flow__pane{cursor:crosshair}.react-flow__background{pointer-events:none}.react-flow__node{cursor:move}.canvas-panel .react-flow__node.react-flow__node-sheetText{cursor:-webkit-grab!important;cursor:grab!important}.canvas-panel .react-flow__node.react-flow__node-sheetText:active{cursor:-webkit-grabbing!important;cursor:grabbing!important}.canvas-panel .react-flow__node.react-flow__node-sheetText:has(.sheet-text-node--editing){cursor:default!important}.canvas-panel.tool-draw-eraser .react-flow,.canvas-panel.tool-draw-eraser .react-flow__node,.canvas-panel.tool-draw-eraser .react-flow__pane,.canvas-panel.tool-draw-eraser .react-flow__viewport,.canvas-panel.tool-draw-pencil .react-flow,.canvas-panel.tool-draw-pencil .react-flow__node,.canvas-panel.tool-draw-pencil .react-flow__pane,.canvas-panel.tool-draw-pencil .react-flow__viewport{cursor:inherit!important}.manual-selection-box,.react-flow__selection{background:rgba(30,111,168,.14);border:1px dashed #1e6fa8}.manual-selection-box{position:absolute;z-index:30;pointer-events:none}.react-flow__node.selected .block-node,.react-flow__node.selected .plc-symbol-node{outline:1px solid #1e6fa8;outline-offset:2px}.react-flow__node.selected .block-group-node{outline:1px solid #1e6fa8;outline-offset:1px}.block-group-node{display:flex;flex-direction:column;width:100%;height:100%;min-width:48px;min-height:48px}.block-group-node__tab{flex:0 0 auto;align-self:flex-start;max-width:92%;min-height:26px;padding:4px 10px;border:1.5px solid transparent;border-bottom:none;border-radius:8px 0 0 0;font-size:12px;font-weight:700;line-height:1.2;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;box-sizing:border-box}.block-group-node__title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}.block-group-node__memory{flex:0 0 auto;font-weight:600;font-size:11px;color:#3d4f60;white-space:nowrap}.block-group-node__memory-label{font-weight:500;color:#5a6b7a}.block-group-node__body{flex:1 1 auto;min-height:0;border:1.5px solid transparent;border-radius:0 3px 5px 5px}.plc-symbol-node{min-width:36px;min-height:40px;display:grid;place-items:center;border-radius:0;overflow:visible;background:transparent;border:0}.plc-symbol-body{width:38px;height:42px;display:grid;grid-template-rows:1fr auto;align-items:stretch;justify-items:center;border:1px solid rgba(45,56,68,.42);background:rgba(255,255,255,.03);color:#03131b;font-weight:800;line-height:1;box-shadow:none}.plc-symbol-icon-wrap{display:flex;align-items:center;justify-content:center;min-height:0;width:100%;border:none;background:transparent;padding:1px 2px 0}.plc-symbol-icon-wrap .palette-raster-tile-icon{mix-blend-mode:multiply;opacity:.92}.plc-symbol-icon-wrap .logic-instruction-icon{width:100%;height:100%;min-height:18px;max-height:100%;display:block}.plc-symbol-label{width:100%;min-width:0;padding:0 1px 1px;overflow:hidden;color:#111820;font-size:5px;font-weight:400;letter-spacing:-.02em;text-align:center;text-overflow:clip;text-transform:uppercase;white-space:nowrap;line-height:1.1}.plc-handle{width:18px;height:14px;border:0!important;background:transparent!important;border-radius:0}.plc-handle:before{content:"";position:absolute;top:1px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent}.plc-handle-input{left:-18px}.plc-handle-input:before{left:2px;border-left:7px solid #111820}.plc-handle-output{right:-18px}.plc-handle-output:before{right:2px;border-left:7px solid #111820}.plc-handle-green:before{border-left-color:#31b53f!important}.plc-handle:hover:before{border-left-color:#d19600}.property-heading{display:grid;grid-gap:4px;gap:4px;padding:10px;background:var(--panel-2);border-radius:6px}.property-heading span{color:var(--muted);font-size:12px}.json-panel pre,.runtime pre{margin:0;max-height:280px;overflow:auto;background:#ffffff;border:1px solid var(--line);border-radius:6px;padding:10px;color:#17202b;font-size:11px;line-height:1.45}.json-panel pre{max-height:420px}.json-workspace{min-height:360px;display:block;border-radius:8px;transition:box-shadow .12s ease,background-color .12s ease}.json-workspace.json-workspace-drop-active{background:rgba(30,111,168,.08);box-shadow:inset 0 0 0 2px rgba(30,111,168,.55)}.json-panel-header-row{align-items:flex-start;flex-wrap:wrap;gap:10px 12px}.json-panel-heading{margin:0;line-height:1.25}.json-header-right{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 10px;margin-left:auto}.json-header-inline-actions{display:flex;align-items:center;gap:4px}.json-header-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:0;border-radius:6px;border:1px solid var(--line);background:var(--panel-2);color:var(--text,#17202b);transition:background-color .12s ease,box-shadow .12s ease,border-color .12s ease}.json-header-icon-btn:hover{box-shadow:0 0 0 1px rgba(30,111,168,.22);border-color:rgba(30,111,168,.35)}.json-header-icon-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.canvas-panel.canvas-json-drop-active{box-shadow:inset 0 0 0 3px rgba(30,111,168,.45);background:linear-gradient(180deg,rgba(30,111,168,.09),rgba(30,111,168,.04))}.json-tabs{display:flex;align-items:center;gap:4px}.json-tabs button{padding:5px 8px;border-bottom-left-radius:0;border-bottom-right-radius:0;font-size:11px;font-weight:700}.json-tabs button.active{background:#ffffff;border-bottom-color:#ffffff;color:var(--accent-2)}.json-editor{width:100%;resize:vertical;font-size:11px;line-height:1.45;white-space:pre}.json-editor,.json-tree{min-height:360px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:#ffffff;color:#17202b;font-family:Consolas,Courier New,monospace}.json-tree{font-size:10px;line-height:1;padding:2px 0}.json-props-panel{margin-top:10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:8px;max-height:260px;overflow-y:auto}.json-props-panel h3{margin:0;font-size:12px}.json-props-list{display:grid;grid-gap:6px;gap:6px}.json-prop-row{display:grid;grid-template-columns:minmax(130px,220px) minmax(0,1fr);align-items:center;grid-gap:8px;gap:8px}.json-prop-name{color:var(--muted);font-size:13px;font-weight:700;line-height:1.2}.json-prop-input{min-width:0;padding:5px;font-size:12px;font-weight:500}.json-tree-row{width:100%;min-height:9px;display:block;border:0;background:transparent;color:inherit;font-family:inherit;font-size:inherit;line-height:1;padding-top:0!important;padding-right:0!important;padding-bottom:0!important;text-align:left;cursor:default}.json-tree-node,.json-tree-row{position:relative}.json-tree-node:not(.root):before{content:"";position:absolute;left:var(--tree-x);top:-1px;bottom:-1px;border-left:1px solid #7f8c99;pointer-events:none}.json-tree-node:not(.root)>.json-tree-row:before{content:"";position:absolute;left:var(--tree-x);top:50%;width:6px;border-top:1px solid #7f8c99;pointer-events:none}.json-tree-row[draggable=true],.json-tree-row[draggable=true]:active{cursor:default}.json-tree-toggle{position:relative;display:flex;align-items:center;gap:2px;cursor:pointer;height:10px}.json-tree-row-highlighted{background:rgba(255,214,92,.42);outline:1px solid rgba(194,133,0,.55);border-radius:4px}.json-tree-box{width:7px;height:7px;display:inline-grid;place-items:center;border:1px solid #7f8c99;background:#ffffff;color:#17202b;font-size:7px;font-weight:900;line-height:5px}.json-key{color:#245bb2;font-weight:700}.json-meta{color:#7a35c9}.json-value.string{color:#168a54}.json-value.boolean,.json-value.number{color:#b45309}.json-status-panel{display:grid;grid-gap:0;gap:0}.json-status{max-height:150px;overflow:auto;display:grid;grid-gap:4px;gap:4px;padding:8px 10px;border:1px solid var(--line);border-radius:0 6px 6px 6px;background:#fff7df}.json-status p{margin:0;font-size:12px}.json-status.ok{background:#e8f7ef;color:#15613b}.json-status.has-errors{color:var(--warn)}.io-list{display:grid;grid-gap:6px;gap:6px}.output-row,.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--panel-2);border-radius:6px;padding:7px 9px;color:var(--text)}.toggle-row input{width:auto}.output-row strong{color:var(--muted)}.output-row strong.on{color:var(--accent)}.warning,.warnings p{margin:0;color:var(--warn);font-size:12px}.connection-edge{stroke:#7a35c9;stroke-width:2}.connection-edge-active,.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path{stroke:#e53935!important;stroke-width:2!important}.react-flow__edge.selected .connection-edge,.react-flow__edge:focus .connection-edge{stroke:#e53935!important}.connection-text-node{position:relative;min-width:0;max-width:none;padding:0;border:0;background:transparent;color:#17202b;font-size:11px;font-weight:700;line-height:1.15;text-align:left;white-space:nowrap;overflow:visible;text-overflow:clip;pointer-events:auto;cursor:pointer}.connection-text-node.selected{color:#e53935!important;text-decoration:none}.connection-text-node.source.selected,.connection-text-node.target.selected{color:#e53935!important}.connection-text-chip{display:inline}.connection-text-chip.selected{background:rgba(229,57,53,.18);border-radius:3px;padding:0}.connection-text-node.source{border-left:0;padding-right:1px;color:#13233a}.connection-text-node.target{border-right:0;padding-left:1px;text-align:right;color:#0f2f3d}.connection-context-menu{position:fixed;z-index:2000;min-width:128px;display:grid;grid-gap:2px;gap:2px;padding:4px;border:1px solid #8fa1b3;background:#ffffff;box-shadow:0 6px 18px rgba(20,30,40,.18)}.connection-context-menu button{width:100%;border:0;border-radius:2px;background:transparent;padding:5px 8px;text-align:left;font-size:12px}.connection-context-menu button:hover{background:#e8f0f7}.context-menu-summary{padding:6px 8px;margin-bottom:4px;border-bottom:1px solid #d5e0ea;font-size:12px;font-weight:700;color:#102032}.connection-rename-inline{display:grid;grid-template-columns:minmax(120px,1fr) auto;grid-gap:4px;gap:4px;align-items:center}.connection-rename-inline input{padding:4px 6px;font-size:12px}.connection-rename-inline button{width:auto;min-width:34px;padding:4px 8px;text-align:center;background:#e8f0f7}.text-layout-panel{gap:6px;padding:8px 10px}.text-layout-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-radius:4px;font-size:12px;font-weight:700;background:var(--panel-2)}.text-layout-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-gap:5px;gap:5px}.text-layout-row{display:grid;grid-template-columns:1fr 110px;align-items:center;grid-gap:8px;gap:8px;color:var(--muted);font-size:12px}.text-layout-grid input,.text-layout-row select{padding:4px 6px;height:28px}.text-layout-note{margin:0;color:var(--muted);font-size:11px}.toolbar-setting{width:178px;grid-template-columns:58px 1fr;align-items:center;color:var(--muted)}.block-view-setting{width:190px}.connection-mode-setting{width:166px}.compact-setting{width:110px;grid-template-columns:42px 1fr}.connection-font-setting{width:170px;grid-template-columns:62px 1fr}.sheet-size-setting{width:150px;grid-template-columns:58px 1fr}.compact-setting input,.sheet-size-setting input{padding:5px;min-width:0;width:100%}.compact-setting input[type=color]{height:30px;padding:2px}.toolbar-setting select{padding:6px}.toolbar-toggle{height:32px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:6px;font-weight:700}.toolbar-toggle.is-active{border-color:#4d78a6;background:#dce8f7;color:#16395f}.scan-meta{display:flex;flex-wrap:wrap;gap:6px}.scan-meta span{width:-moz-fit-content;width:fit-content;display:inline-flex;align-items:center;gap:5px;background:var(--panel-2);border:1px solid var(--line);border-radius:4px;padding:4px 7px;text-align:center;color:var(--muted);font-size:12px}.icon-command svg,.scan-meta svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-command{width:-moz-fit-content;width:fit-content;padding:5px 8px}.dock-tab-label,.icon-command{display:inline-flex;align-items:center;gap:6px}.dock-tab-icon{min-width:16px;height:16px;display:inline-grid;place-items:center;border:1px solid #93a4b5;background:#ffffff;color:#1e6fa8;font-size:10px;font-weight:900;line-height:1}.editor-shell[data-theme=dark] button{background:#25313d}.editor-shell[data-theme=dark] input,.editor-shell[data-theme=dark] select{background:#0f141a}.editor-shell[data-theme=dark] .dock-layout-wrap,.editor-shell[data-theme=dark] .dock-layout-wrap>.flexlayout__layout{background:var(--bg)}.editor-shell[data-theme=dark] .canvas-panel[data-sheet-canvas]{background:#2f3842}.editor-shell[data-theme=dark] .canvas-panel .react-flow{background:#3d4753}.editor-shell[data-theme=dark] .canvas-panel.canvas-json-drop-active{box-shadow:inset 0 0 0 3px rgba(120,180,255,.42);background:linear-gradient(180deg,rgba(80,140,220,.14),rgba(80,140,220,.06))}.editor-shell[data-theme=dark] .sheet-frame-node span{background:rgba(15,20,26,.86);color:#eef3f7;border-color:var(--line)}.editor-shell[data-theme=dark] .block-icon,.editor-shell[data-theme=dark] .block-node,.editor-shell[data-theme=dark] .io-symbol-node{background:#1b2530}.editor-shell[data-theme=dark] .plc-symbol-node{background:transparent}.editor-shell[data-theme=dark] .plc-symbol-body{background:rgba(27,37,48,.06);border-color:rgba(219,228,238,.35);color:#eef3f7;box-shadow:none}.editor-shell[data-theme=dark] .plc-symbol-icon-wrap .m3soft-palette-icon{mix-blend-mode:normal;opacity:.93}.editor-shell[data-theme=dark] .connection-text-node,.editor-shell[data-theme=dark] .connection-text-node.source,.editor-shell[data-theme=dark] .connection-text-node.target,.editor-shell[data-theme=dark] .plc-symbol-label{color:#dbe4ee}.editor-shell[data-theme=dark] .plc-handle-input:before{border-left-color:#dbe4ee}.editor-shell[data-theme=dark] .plc-handle-output:before{border-right-color:#dbe4ee}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(15,20,26,.35)}.io-modal{width:min(520px,calc(100vw - 32px));display:grid;grid-gap:14px;gap:14px;padding:14px;border:1px solid var(--line);background:var(--panel);color:var(--text);box-shadow:0 18px 40px rgba(0,0,0,.24)}.settings-modal{position:fixed;width:min(1020px,calc(100vw - 28px));max-height:calc(100vh - 34px);display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #c7d2de;border-radius:10px;background:#f4f7fb;color:#1b2430;overflow:hidden;box-shadow:0 20px 44px rgba(0,0,0,.24)}.editor-shell[data-theme=dark] .settings-modal{border-color:var(--line);background:var(--panel);color:var(--text);box-shadow:0 20px 44px rgba(0,0,0,.45)}.settings-modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid #cfdae5;background:#e9eff5;cursor:move}.editor-shell[data-theme=dark] .settings-modal-header{border-color:var(--line);background:var(--panel-2)}.settings-modal-header strong{font-size:16px}.settings-close{width:24px;height:24px;padding:0;border-radius:4px;font-size:16px;line-height:1;display:inline-grid;place-items:center}.settings-modal-body{min-height:0;display:grid;grid-template-columns:235px minmax(0,1fr)}.settings-menu{min-height:0;overflow-y:auto;display:grid;align-content:start;grid-gap:4px;gap:4px;padding:10px 10px 12px;border-right:1px solid #d5dee8;background:#f1f4f8}.settings-menu button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;padding:9px 12px;border-radius:8px;border:1px solid transparent;background:transparent;font-size:13px;font-weight:700}.settings-menu button span:first-child{min-width:18px;width:18px;text-align:center;font-size:11px}.settings-menu button.active{background:#e8f0f9;border-color:#9eb7cf;color:#2a78ad}.editor-shell[data-theme=dark] .settings-menu{border-color:var(--line);background:var(--panel-2)}.editor-shell[data-theme=dark] .settings-menu button{color:var(--text)}.editor-shell[data-theme=dark] .settings-menu button.active{background:var(--panel);border-color:var(--line);color:var(--accent-2)}.settings-content{min-height:0;overflow-y:auto;padding:12px;display:flex;flex-direction:column}.settings-card{display:grid;grid-gap:12px;gap:12px;padding:14px;border:1px solid #d7e0ea;border-radius:10px;background:#f9fbfe;margin-bottom:10px}.settings-card h3{margin:0;font-size:16px}.editor-shell[data-theme=dark] .settings-card{border-color:var(--line);background:var(--panel-2);color:var(--text)}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.settings-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-modal label{gap:4px;font-size:12px;font-weight:700;color:#2b3642}.settings-modal label small{color:var(--muted);font-size:12px;font-weight:400}.settings-modal input,.settings-modal select{padding:6px 9px;min-height:36px;font-size:13px;border-radius:8px;border-color:#bcc9d6;background:#ffffff}.segmented{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}.segmented button{min-width:78px;min-height:34px;padding:6px 10px;border:0;border-right:1px solid var(--line);border-radius:0;background:#ffffff;font-size:13px}.segmented button:last-child{border-right:0}.segmented button.active{background:#dcebf9;color:#145f95;font-weight:700}.switch-row{height:36px;display:flex;align-items:center;margin-top:2px}.switch{min-width:58px;height:30px;padding:2px 10px;border-radius:999px;border:1px solid var(--line);background:#d7dfe8}.switch.on{background:#2d8ae3;color:#ffffff;border-color:#2d8ae3}.with-unit{display:grid;grid-template-columns:minmax(0,1fr) 24px;grid-gap:4px;gap:4px;align-items:center}.with-unit span{font-size:13px;color:var(--muted)}.color-field{height:28px;width:132px;max-width:132px;padding:3px 5px;border:1px solid #bcc9d6;border-radius:8px;background:#ffffff;display:flex;align-items:center;overflow:hidden}.color-field input[type=color]{width:100%;height:20px;min-height:20px;border:0;padding:0;border-radius:4px;background:transparent;-moz-appearance:none;appearance:none;-webkit-appearance:none;display:block;cursor:pointer}.color-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-field input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.settings-sheet-color-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:100%;max-width:520px}.settings-sheet-color-row .color-field{width:52px;max-width:52px;flex-shrink:0}.settings-hex-input{width:96px;padding:6px 8px;font-family:ui-monospace,Consolas,Courier New,monospace;font-size:13px}.settings-about-product{margin:0;font-size:14px;line-height:1.45;color:#2b3642}.editor-shell[data-theme=dark] .settings-about-product{color:var(--text)}.settings-about-disclaimer{margin:0;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.5;color:#3d4d5c;background:rgba(30,111,168,.08);border:1px solid rgba(30,111,168,.2)}.editor-shell[data-theme=dark] .settings-about-disclaimer{color:#c8d6e4;background:rgba(30,111,168,.15);border-color:rgba(120,170,220,.25)}.settings-about-external{margin:0;font-size:13px}.settings-about-external a{color:#0d5a8c;font-weight:600}.settings-about-external a:hover{text-decoration:underline}.editor-shell[data-theme=dark] .settings-about-external a{color:#9ccfef}.settings-spacer{flex:1 1 auto;min-height:260px;border:1px solid #dce4ed;border-radius:10px;background:#f8fbff}.settings-footer{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid #d3dce6;background:#eef3f8}.settings-footer button{min-width:82px;height:36px;padding:0 16px;border-radius:8px;font-size:13px}.settings-footer .primary{background:#0b79d0;color:#ffffff;border-color:#0b79d0}.settings-footer .secondary{background:#ffffff;color:#243241;border-color:#c1cad4}.io-modal footer,.io-modal header{display:flex;align-items:center;justify-content:space-between;gap:10px}.check-row{display:flex;grid-template-columns:none;align-items:center;gap:8px;color:var(--text)}.check-row input{width:auto}.io-icon-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:8px;gap:8px}.io-icon-grid button{min-height:64px;display:grid;place-items:center;grid-gap:4px;gap:4px}.io-icon-grid button.selected{border-color:var(--accent-2);box-shadow:0 0 0 2px rgba(30,111,168,.18)}.io-icon-grid span{width:36px;height:32px;display:grid;place-items:center;border:2px solid #2d3844;background:#f6d84d;color:#03131b}.io-icon-grid small{font-size:11px;color:var(--muted)}.timer-modal{width:min(640px,calc(100vw - 32px));gap:10px;padding:12px}.timer-header{display:flex;align-items:center;justify-content:space-between}.timer-close{width:30px;height:30px;padding:0;display:inline-grid;place-items:center;font-size:18px;line-height:1}.timer-options{display:grid;grid-template-columns:minmax(0,1fr) 170px;grid-gap:10px;gap:10px;align-items:start}.timer-options-list{display:grid;grid-gap:5px;gap:5px}.timer-option{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;grid-gap:6px;gap:6px;min-height:24px}.timer-option input{margin:0}.timer-option span{line-height:1.2}.timer-preview{border:1px solid var(--line);background:#fffce8;padding:6px;display:grid;grid-gap:4px;gap:4px;justify-items:center}.timer-preview strong{width:100%;text-align:left;font-size:12px}.timer-preview img{width:120px;height:120px;object-fit:contain}.timer-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:2px}.timer-ok{min-width:72px}.editor-shell[data-theme=dark] summary{color:#dbe4ed}.editor-shell[data-theme=dark] .port-row{color:#cdd7e1}.editor-shell[data-theme=dark] .json-editor,.editor-shell[data-theme=dark] .json-panel pre,.editor-shell[data-theme=dark] .json-tabs button.active,.editor-shell[data-theme=dark] .json-tree,.editor-shell[data-theme=dark] .runtime pre{background:#0b1015;color:#d6e1ea}.editor-shell[data-theme=dark] .json-key{color:#75a7ff}.editor-shell[data-theme=dark] .json-value.string{color:#7de0aa}.editor-shell[data-theme=dark] .json-status{background:#20190d}.editor-shell[data-theme=dark] .panel-section,.editor-shell[data-theme=dark] .property-heading,.editor-shell[data-theme=dark] .property-heading span{color:var(--text)}.editor-shell[data-theme=dark] .json-status.ok{background:#0d2117;color:#7de0aa}.m3soft-help-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(15,22,28,.35);display:flex;align-items:flex-start;justify-content:center;padding:32px 16px 24px;box-sizing:border-box}.m3soft-help-window{width:min(1040px,calc(100vw - 32px));max-height:min(88vh,900px);display:flex;flex-direction:column;background:#f6f8fb;border-radius:10px;box-shadow:0 24px 80px rgba(0,0,0,.22),0 0 0 1px rgba(30,111,168,.12);overflow:hidden;font-family:Segoe UI,system-ui,-apple-system,sans-serif}.editor-shell[data-theme=dark] .m3soft-help-window{background:#1a222a;box-shadow:0 24px 80px rgba(0,0,0,.45),0 0 0 1px rgba(120,170,220,.15)}.m3soft-help-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 18px 12px;border-bottom:1px solid rgba(30,111,168,.18);background:linear-gradient(180deg,#fff,#f0f5fa)}.editor-shell[data-theme=dark] .m3soft-help-header{background:linear-gradient(180deg,#222b35,#1a222a);border-bottom-color:rgba(120,170,220,.2)}.m3soft-help-title{margin:0;font-size:1.15rem;font-weight:700;color:#14324a;letter-spacing:-.02em}.editor-shell[data-theme=dark] .m3soft-help-title{color:#e8f0f8}.m3soft-help-sub{margin:2px 0 0;font-size:12px;color:#5a6d7e}.editor-shell[data-theme=dark] .m3soft-help-sub{color:#9fb0c2}.m3soft-help-close{width:36px;height:36px;border:0;border-radius:6px;background:transparent;font-size:22px;line-height:1;color:#5a6d7e;cursor:pointer}.m3soft-help-close:hover{background:rgba(30,111,168,.12);color:#14324a}.editor-shell[data-theme=dark] .m3soft-help-close:hover{color:#7eb8e8}.editor-shell[data-theme=dark] .m3soft-help-close{color:#b8c8d8}.m3soft-help-body{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);min-height:0;flex:1 1}.m3soft-help-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid rgba(30,111,168,.15);background:#eef3f8}.editor-shell[data-theme=dark] .m3soft-help-sidebar{background:#151c24;border-right-color:rgba(120,170,220,.12)}.m3soft-help-search-label{display:flex;flex-direction:column;gap:6px;padding:12px 12px 10px;flex-shrink:0}.m3soft-help-search-hint{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#5a6d7e}.editor-shell[data-theme=dark] .m3soft-help-search-hint{color:#8a9bab}.m3soft-help-search{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid rgba(30,111,168,.25);border-radius:6px;font-size:13px;background:#fff;color:#14324a}.editor-shell[data-theme=dark] .m3soft-help-search{background:#222b35;border-color:rgba(120,170,220,.25);color:#e8f0f8}.m3soft-help-nav{flex:1 1;min-height:0;overflow:auto;padding:4px 8px 12px}.m3soft-help-tree-list{list-style:none;margin:0;padding:0}.m3soft-help-tree-item{margin:0}.m3soft-help-tree-row{width:100%;display:flex;align-items:center;gap:6px;text-align:left;border:0;border-radius:4px;background:transparent;font-size:13px;color:#24303a;cursor:pointer;min-height:28px;box-sizing:border-box}.editor-shell[data-theme=dark] .m3soft-help-tree-row{color:#d6e1ea}.m3soft-help-tree-folder:hover,.m3soft-help-tree-topic:hover{background:rgba(30,111,168,.1)}.m3soft-help-tree-topic.is-selected{background:rgba(30,111,168,.22);font-weight:600}.editor-shell[data-theme=dark] .m3soft-help-tree-topic.is-selected{background:rgba(30,111,168,.35)}.m3soft-help-tree-chevron{font-size:9px;width:14px;color:#5a6d7e;flex-shrink:0}.m3soft-help-tree-topic-dot{width:6px;height:6px;border-radius:1px;background:#8aa0b4;flex-shrink:0}.m3soft-help-tree-topic.is-selected .m3soft-help-tree-topic-dot{background:#1e6fa8}.m3soft-help-article{min-height:0;overflow:auto;padding:20px 28px 28px;color:#1d2730;line-height:1.55}.editor-shell[data-theme=dark] .m3soft-help-article{color:#e2ebf3}.m3soft-help-article-head h2{margin:0 0 6px;font-size:1.35rem;font-weight:700;color:#14324a;letter-spacing:-.02em}.editor-shell[data-theme=dark] .m3soft-help-article-head h2{color:#f0f6fc}.m3soft-help-article-sub{margin:0 0 16px;font-size:13px;color:#5a6d7e}.editor-shell[data-theme=dark] .m3soft-help-article-sub{color:#9fb0c2}.m3soft-help-summary{margin:0 0 20px;font-size:14px;color:#2e3d4a}.editor-shell[data-theme=dark] .m3soft-help-summary{color:#c8d6e4}.m3soft-help-window>.plc-help-disclaimer{flex-shrink:0;padding:12px 18px 16px;border-top:1px solid rgba(30,111,168,.15);background:rgba(248,251,255,.95)}.editor-shell[data-theme=dark] .m3soft-help-window>.plc-help-disclaimer{border-top-color:rgba(120,170,220,.2);background:rgba(22,32,42,.92)}.plc-help-disclaimer-text{margin:0 0 8px;font-size:12px;line-height:1.5;color:#3d4d5c}.editor-shell[data-theme=dark] .plc-help-disclaimer-text{color:#b8c8d8}.plc-help-disclaimer-link-wrap{margin:0;font-size:12px}.plc-help-disclaimer-link{color:#0d5a8c;font-weight:600}.plc-help-disclaimer-link:hover{text-decoration:underline}.editor-shell[data-theme=dark] .plc-help-disclaimer-link{color:#9ccfef}.m3soft-help-figures{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}.m3soft-help-figure{margin:0;padding:12px;background:#fff;border:1px solid rgba(30,111,168,.15);border-radius:8px;text-align:center}.editor-shell[data-theme=dark] .m3soft-help-figure{background:#222b35;border-color:rgba(120,170,220,.2)}.m3soft-help-figure img{max-width:100%;height:auto;vertical-align:middle}.m3soft-help-figure figcaption{margin-top:10px;font-size:12px;color:#5a6d7e}.m3soft-help-classic-figure{display:flex;flex-direction:column;align-items:center}.m3soft-help-classic-icon-wrap{width:260px;height:180px;display:flex;align-items:center;justify-content:center}.m3soft-help-classic-icon-wrap .instruction-icon-text,.m3soft-help-classic-icon-wrap .logic-instruction-icon,.m3soft-help-classic-icon-wrap .palette-custom-icon{width:190px;height:150px;max-width:100%;max-height:100%}.m3soft-help-section{margin-bottom:18px}.m3soft-help-section h3{margin:0 0 8px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#1e6fa8}.editor-shell[data-theme=dark] .m3soft-help-section h3{color:#7eb8e8}.m3soft-help-section p{margin:0 0 8px;font-size:14px}.m3soft-help-related{margin-top:24px;padding-top:16px;border-top:1px solid rgba(30,111,168,.15);font-size:13px;color:#5a6d7e}.m3soft-help-related-label{font-weight:600;color:#24303a}.editor-shell[data-theme=dark] .m3soft-help-related-label{color:#d6e1ea}.top-menu-popover.help-menu-popover{min-width:220px;padding:6px}.help-menu-primary{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 12px;border:0;border-radius:6px;background:rgba(30,111,168,.1);cursor:pointer;font-weight:600;font-size:13px;color:#14324a;text-align:left}.help-menu-primary:hover{background:rgba(30,111,168,.18)}.help-menu-desc{font-weight:400;font-size:11px;color:#5a6d7e}.help-menu-soon{width:100%;margin-top:4px;padding:8px 12px;border:0;border-radius:6px;background:transparent;font-size:13px;color:#8a9aa8;text-align:left;cursor:not-allowed}@media (max-width:1100px){.editor-shell{grid-template-columns:minmax(0,1fr);grid-template-areas:"toolbar" "dock";grid-template-rows:54px minmax(0,1fr)}.m3soft-help-body{grid-template-columns:1fr;max-height:none}.m3soft-help-sidebar{max-height:200px;border-right:0;border-bottom:1px solid rgba(30,111,168,.15)}}