.plcsim-page{width:100%;min-width:0;padding:0;font-size:14px}.plcsim-page .app-shell{width:100%;max-width:none;min-width:0;margin:0;padding:0;gap:0;align-items:stretch;text-align:left;border:0;border-radius:0;overflow:visible}.plcsim-page .topbar{width:100%;max-width:none;margin:0;min-height:44px;padding:6px 12px;flex-wrap:wrap}.plcsim-page .brand-identity{gap:8px}.plcsim-page .brand-mark{width:28px;height:28px;border-radius:6px;font-size:12px}.plcsim-page .brand-block strong{font-size:16px;font-weight:650}.plcsim-page .brand-subtitle{color:#475569;font-size:12px}.plcsim-page .topbar-status{flex-wrap:wrap}.plcsim-page .mode-chip{letter-spacing:0}.plcsim-page .topbar :is(.project-chip,.mode-chip){min-height:28px;padding:0 8px;font-size:11px;font-weight:600;box-shadow:none;border-radius:5px}.plcsim-page .workspace-nav{width:100%;max-width:none;margin:0;min-height:0;flex-wrap:wrap;overflow:visible;padding:4px 12px;gap:6px}.plcsim-page .ribbon-group,.plcsim-page .workspace-nav-actions{min-width:0;max-width:100%;flex-wrap:wrap}.plcsim-page .ribbon-group{min-height:28px;padding:0;gap:4px;border:0;border-radius:0;background:transparent;box-shadow:none}.plcsim-page .ribbon-label{display:none}.plcsim-page .ribbon-group button,.plcsim-page .ribbon-group select,.plcsim-page .workspace-nav-actions button{font-size:12px;font-weight:600;min-height:28px;height:28px;padding:3px 9px;border-radius:5px}.plcsim-page .ribbon-group select{max-width:180px;padding-right:24px}.plcsim-page .workspace-nav-actions{gap:6px}.plcsim-page .toolbar-overflow{position:relative}.plcsim-page .toolbar-overflow>summary{cursor:pointer;border:1px solid #c9d2df;border-radius:5px;padding:5px 9px;background:#fff;color:#172033;font-size:12px;font-weight:600;line-height:16px}.plcsim-page .toolbar-overflow-content{position:absolute;top:calc(100% + 6px);right:0;width:min(380px,calc(100vw - 32px));z-index:40;border-radius:10px;background:white;box-shadow:0 8px 28px #0f172a26}.plcsim-page .toolbar-overflow .project-file-group{padding:12px;gap:8px}.plcsim-page .project-file-status{white-space:normal;overflow:visible}.plcsim-page .plc-command-header{min-width:0;width:100%;background:#fff}@media (min-width:1200px){.plcsim-page .plc-command-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px 12px;border-bottom:1px solid #dce4ed}.plcsim-page .plc-command-header .topbar{display:contents}.plcsim-page .plc-command-header .brand-identity{grid-column:1;grid-row:1;white-space:nowrap}.plcsim-page .plc-command-header .workspace-nav{grid-column:2;grid-row:1;padding:0;border:0;box-shadow:none;background:transparent;gap:6px}.plcsim-page .plc-command-header .workspace-nav-actions{margin-left:0}.plcsim-page .plc-command-header .topbar-status{grid-column:3;grid-row:1;margin:0;gap:6px;flex-wrap:nowrap}.plcsim-page .plc-command-header .project-chip{max-width:160px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:26px}}.plcsim-page .component-shelf{width:100%;min-width:0;margin:0;padding:0}.plcsim-page .component-library-shelf{display:grid;grid-template-columns:340px minmax(0,1fr);align-items:center;gap:0}.plcsim-page .component-shelf-heading{min-height:0;padding:4px 8px 4px 12px;flex-direction:row;flex-wrap:wrap;gap:6px;border-bottom:0}.plcsim-page .component-shelf-title{display:none}.plcsim-page .component-shelf-title strong{font-size:12px;letter-spacing:.04em}.plcsim-page .component-shelf-mark{display:none}.plcsim-page .component-count-badge{color:#475569;font-size:11px}.plcsim-page .component-shelf-filters{min-width:0;width:100%;display:grid;grid-template-columns:140px minmax(0,1fr);gap:6px}.plcsim-page .component-library-shelf .component-library-search-wrap,.plcsim-page .component-shelf-filters select{width:100%;min-width:0;min-height:28px;height:28px}.plcsim-page .component-shelf-filters select{padding:3px 6px;font-weight:500}.plcsim-page .component-library-shelf .component-library-search{min-height:0;height:100%;padding-block:3px}.plcsim-page .component-library-shelf .search-glyph{top:8px;left:10px}.plcsim-page .component-library-search,.plcsim-page .component-shelf-filters select{font-size:12px}.plcsim-page .component-shelf-track{padding:4px 12px 4px 0;gap:5px}.plcsim-page .component-library-shelf .palette-device-row.shelf-item{position:relative;width:auto;flex:0 0 auto}.plcsim-page .component-library-shelf .palette-item.compact{width:100%;min-height:30px;padding:4px 7px;gap:5px;border-radius:5px;box-shadow:none;text-align:left;cursor:grab}.plcsim-page .component-library-shelf .palette-symbol{width:20px;height:20px;border-radius:4px}.plcsim-page .component-library-shelf .palette-device-copy strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:visible;line-height:1.3}.plcsim-page .component-library-shelf .palette-device-copy small{display:none}.plcsim-page .component-tooltip{position:fixed;inset:auto;margin:0;width:min(340px,calc(100vw - 32px));padding:12px;border:1px solid #64748b;border-radius:8px;background:#0f172a;color:#fff;font-size:13px;line-height:1.5;pointer-events:none;box-shadow:0 4px 16px #0f172a33}.plcsim-page .workspace{width:100%;max-width:none;margin:0;min-width:0}.plcsim-page .circuit-panel{padding:0 12px 8px}.plcsim-page .panel-heading{min-height:36px;flex-direction:row;flex-wrap:wrap;gap:6px;padding:4px 0}.plcsim-page .workspace-title,.plcsim-page .workspace-tools{min-width:0;max-width:100%;flex-wrap:wrap}.plcsim-page .workspace-title h2{margin:0;font-size:13px;font-weight:600;white-space:nowrap}.plcsim-page .project-title-input{font-size:12px;font-weight:500;min-height:28px;padding:4px 8px}.plcsim-page .workspace-tools{width:auto;overflow:visible}.plcsim-page .workspace-action-group{flex-wrap:wrap;gap:2px}.plcsim-page .workspace-tools button{font-size:12px;font-weight:500;min-height:28px;height:28px;padding:3px 8px;border-radius:5px}.plcsim-page .eco-print-action{margin-left:0}.plcsim-page .workspace-file-actions{display:flex;align-items:center;flex:0 0 auto;gap:4px}.plcsim-page .canvas-viewport-controls{min-height:36px;flex-wrap:wrap;overflow:visible;gap:4px 0;margin-bottom:4px;padding:3px 5px;border-radius:6px;box-shadow:none}.plcsim-page .canvas-control-group{margin-right:6px}.plcsim-page .canvas-viewport-controls button,.plcsim-page .canvas-viewport-controls select,.plcsim-page .canvas-zoom-label{font-size:12px;font-weight:500;min-height:28px;height:28px;padding:3px 8px}.plcsim-page .canvas-zoom-label{min-width:42px}.plcsim-page .canvas-viewport-controls button{min-width:28px}.plcsim-page .canvas-route-control select{max-width:170px}.plcsim-page .canvas-grid-size,.plcsim-page .canvas-route-control{color:#475569;font-size:11px}.plcsim-page .canvas-wrap{position:relative;width:100%;min-height:360px;height:max(360px,calc(100dvh - 335px));border-radius:8px}.plcsim-page .canvas-empty-state{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 32px));z-index:3;padding:20px;text-align:center;border:1px solid #dce5ee;border-radius:12px;background:#ffffffed;color:#334155}.plcsim-page .canvas-empty-state h3{margin:0 0 8px;color:#0f172a;font-size:18px}.plcsim-page .canvas-empty-state p{margin:0 0 16px;font-size:14px;line-height:1.5}.plcsim-page .canvas-empty-state>div{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.plcsim-page .canvas-empty-state button{min-height:38px;padding:8px 14px}.plcsim-page .workspace-statusbar{font-size:12px;color:#475569;min-height:30px;margin-top:6px}.plcsim-page .workspace-statusbar>span{white-space:normal;overflow:visible}.plcsim-page .workspace-message-row{margin-top:6px;grid-template-columns:minmax(0,1fr)}.plcsim-page .workspace-message-row>div{min-height:32px;padding:6px 10px;font-size:12px;color:#475569}.plcsim-page .lab-secondary-drawer{margin:0 16px 8px}.plcsim-page .lab-secondary-drawer>summary{min-height:34px;font-size:11px;letter-spacing:.04em}.plcsim-page .app-tipbar{display:none}.plcsim-page :is(button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #2563eb;outline-offset:2px}.plcsim-page .canvas-svg [tabindex]:focus-visible{outline:3px solid #2563eb!important;outline-offset:3px}.plcsim-page button:disabled{opacity:1;background:#f1f5f9;color:#64748b;border-color:#cbd5e1;box-shadow:none}.plcsim-page button.editor-tab.active:hover,.plcsim-page button.primary-action:hover:not(:disabled){background:#155db1;color:#fff}@media (max-width:1100px){.plcsim-page .component-library-shelf{grid-template-columns:minmax(0,1fr)}.plcsim-page .component-shelf-heading{padding:4px 16px}.plcsim-page .component-shelf-filters{grid-template-columns:minmax(0,180px) minmax(0,260px)}.plcsim-page .component-shelf-track{padding-left:16px}.plcsim-page .canvas-wrap{height:max(360px,calc(100dvh - 390px))}}@media (max-width:720px){.plcsim-page .topbar{flex-direction:row;align-items:center;flex-wrap:nowrap;min-height:48px;padding:6px 12px;gap:8px}.plcsim-page .topbar .brand-block strong{font-size:15px;white-space:nowrap}.plcsim-page .topbar-status{width:auto;margin-left:auto;overflow:visible;flex-shrink:0}.plcsim-page .workspace-nav{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:4px 12px;scrollbar-width:thin}.plcsim-page .workspace-nav .ribbon-group,.plcsim-page .workspace-nav-actions,.plcsim-page .workspace-nav>*{flex:0 0 auto;flex-wrap:nowrap}.plcsim-page .workspace-nav .ribbon-label{display:none}.plcsim-page .workspace-nav .ribbon-group{padding:3px;gap:3px}.plcsim-page .workspace-nav select{max-width:180px}.plcsim-page .component-shelf-title{width:auto}.plcsim-page .component-shelf-filters{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.plcsim-page .component-library-shelf .component-library-search-wrap,.plcsim-page .component-shelf-filters select{width:100%}.plcsim-page .toolbar-overflow-content{position:fixed;top:110px;right:12px;left:12px;width:auto;max-height:calc(100dvh - 140px);overflow-y:auto}.plcsim-page .project-title-input{min-width:0;width:min(220px,45vw)}.plcsim-page .canvas-route-control{margin-left:0}.plcsim-page .circuit-panel{padding-inline:12px}.plcsim-page .panel-heading{gap:4px;padding:4px 0}.plcsim-page .workspace-title{width:100%}.plcsim-page .workspace-tools{width:100%;flex-wrap:nowrap;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin}.plcsim-page .workspace-action-group,.plcsim-page .workspace-tools>*{flex:0 0 auto;flex-wrap:nowrap}.plcsim-page .canvas-viewport-controls{flex-wrap:nowrap;overflow-x:auto;padding:4px;scrollbar-width:thin}.plcsim-page .canvas-viewport-controls>*{flex:0 0 auto}.plcsim-page .canvas-wrap{height:max(360px,calc(100dvh - 365px))}}