/* Original Nexsoon studio layout: shared hierarchy, full-size input controls and
   contextual access to the existing engines. Loaded after the legacy styles. */
body.nexsoon-production.nx-studio-r36{--nx-ink:#243346;--nx-muted:#667589;--nx-border:#d4dce6;--nx-soft:#f3f6fa;--nx-surface:#fff;--line:#d4dce6;--text:#243346;--muted:#667589;--panel:#fff;--bg:#e7ecf2;font:13px/1.4 Inter,'Segoe UI',system-ui,sans-serif!important;background:#e7ecf2}
body.nexsoon-production.nx-studio-r36 .topbar{background:#202b3d!important;border-bottom:1px solid #162032;grid-template-rows:44px 35px!important;height:80px!important;min-height:80px!important;max-height:80px;flex:0 0 80px}
body.nexsoon-production.nx-studio-r36 .topbar .tabs{height:35px!important;background:#273448!important}
body.nexsoon-production.nx-studio-r36 .topbar .tab{height:35px!important;min-height:35px!important;font-size:12px!important;padding:0 13px!important;color:#d9e2ef!important;white-space:nowrap}
body.nexsoon-production.nx-studio-r36 .topbar .tab.active{color:#463078!important;background:#f7f9fc!important;box-shadow:inset 0 3px 0 #9b7be5}
body.nexsoon-production.nx-studio-r36 .top-actions button{font-size:12px;min-height:30px;height:30px;border-radius:5px!important}
body.nexsoon-production.nx-studio-r36 .top-actions #saveBtn{background:#7650d6!important;border-color:#7650d6!important;color:#fff!important}
body.nexsoon-production.nx-studio-r36 .top-actions #commandPaletteBtn{min-width:124px;color:#e7edf7}
body.nexsoon-production.nx-studio-r36 .brand strong{font-size:15px!important;letter-spacing:.01em}
body.nexsoon-production.nx-studio-r36 #nxLayoutTools button{width:29px;min-width:29px;padding:5px!important}
body.nexsoon-production.nx-studio-r36 .workspace{gap:0;padding:0;background:#e7ecf2;grid-template-columns:var(--left-w,254px) minmax(0,1fr) var(--right-w,300px)}
body.nexsoon-production.nx-studio-r36 .panel{border-radius:0!important;border:0;min-width:0;background:#fff}
body.nexsoon-production.nx-studio-r36 .left-panel{border-right:1px solid #cbd5e2}
body.nexsoon-production.nx-studio-r36 .right-panel{border-left:1px solid #cbd5e2}
body.nexsoon-production.nx-studio-r36 .panel-title{height:36px!important;min-height:36px;font-size:12px;background:#f1f5fa!important;color:#334963;border-bottom:1px solid #dae2ec;padding:8px 12px!important}
body.nexsoon-production.nx-studio-r36 .dock-tabs{height:36px;min-height:36px;gap:0;background:#f9fbfd;border-bottom:1px solid #dbe3ed}
body.nexsoon-production.nx-studio-r36 .dock-tab{font-size:12px;padding:8px 12px;flex:1;min-width:0;border:0!important;border-radius:0!important;background:transparent!important;color:#607187}
body.nexsoon-production.nx-studio-r36 .dock-tab.active{background:#fff!important;color:#53358b!important;box-shadow:inset 0 -2px #7650d6}
body.nexsoon-production.nx-studio-r36 .dock-pane{min-height:0}
body.nexsoon-production.nx-studio-r36 .dock-pane.active{display:flex;flex-direction:column;flex:1;overflow:hidden}
body.nexsoon-production.nx-studio-r36 #projectTree{flex:1;min-height:100px;overflow:auto;padding:8px 9px}
body.nexsoon-production.nx-studio-r36 .tree-search{position:sticky;top:-8px;z-index:2;background:#fff;padding:2px 0 8px}
body.nexsoon-production.nx-studio-r36 .tree-search input{height:32px;font-size:12px;border:1px solid #d3dce8;border-radius:5px}
body.nexsoon-production.nx-studio-r36 .tree details{margin:3px 0}
body.nexsoon-production.nx-studio-r36 .tree summary{font-size:12px;line-height:1.5;padding:5px 2px;color:#344b63;overflow-wrap:anywhere}
body.nexsoon-production.nx-studio-r36 .tree summary small{font-size:10px;color:#718196}
body.nexsoon-production.nx-studio-r36 .tree-row{min-height:30px;padding:5px 8px;border-radius:4px;font-size:12px;margin:1px 0}
body.nexsoon-production.nx-studio-r36 .tree-row.selected{background:#eee7fc;color:#543588;box-shadow:inset 2px 0 #8b65d2}
body.nexsoon-production.nx-studio-r36 .tree-row:hover{background:#f0f5fb}
body.nexsoon-production.nx-studio-r36 .project-stats{margin-top:auto;background:#f5f8fb;border-top:1px solid #dde5ed;padding:8px 10px;gap:5px;font-size:10px}
.nx-project-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:9px 8px 6px;gap:4px}
.nx-project-shortcuts button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;font-size:10px;color:#496079;background:#fff;border:1px solid #dde5ee;border-radius:5px;min-height:55px;padding:6px 2px}
.nx-project-shortcuts button:hover{background:#f3effb;border-color:#c6b4e4}
.nx-project-shortcuts svg{width:19px;height:19px}
.nx-project-systems{margin:4px 10px;border:1px solid #e0e7ef;border-radius:5px;flex:none}
.nx-project-systems>summary{cursor:pointer;padding:8px 10px;font-weight:600;font-size:12px;color:#45617a}
.nx-project-systems>summary span{float:right;background:#edf2f8;font-size:10px;border-radius:9px;min-width:20px;text-align:center;padding:1px 4px}
.nx-project-systems>div{max-height:180px;overflow:auto;padding:0 5px 5px}
.nx-project-systems button{display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;width:100%;border:0;background:transparent;padding:7px;color:#435a71;font-size:12px;border-radius:4px}
.nx-project-systems button:hover{background:#eee7fc}
.nx-project-systems p{font-size:11px;color:#778397;padding:0 7px}
body.nexsoon-production.nx-studio-r36 #documentationDock .nx-navigator{display:flex;flex:1;min-height:0;flex-direction:column;padding:12px}
body.nexsoon-production.nx-studio-r36 .nx-nav-heading{font-size:10px;letter-spacing:.06em;margin-bottom:8px}
body.nexsoon-production.nx-studio-r36 .nx-navigator>input{min-height:33px;border-radius:5px;font-size:12px}
body.nexsoon-production.nx-studio-r36 .nx-nav-tabs{gap:4px;margin:9px 0}
body.nexsoon-production.nx-studio-r36 .nx-nav-tabs button{min-height:30px;font-size:11px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 .nx-nav-list{flex:1;min-height:0;max-height:none;overflow:auto}
body.nexsoon-production.nx-studio-r36 .nx-nav-list>button{font-size:12px;padding:10px 7px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 .nx-nav-list>button small{font-size:9px;color:#78879a}
body.nexsoon-production.nx-studio-r36 .nx-nav-list>button span{font-size:10px}
body.nexsoon-production.nx-studio-r36 .nx-document-tabs{height:34px;min-height:34px;background:#e8edf4;border-top:0;border-bottom:1px solid #cbd5e1;padding:3px 9px 0;gap:5px}
body.nexsoon-production.nx-studio-r36 .nx-document-tabs button{font-size:12px}
body.nexsoon-production.nx-studio-r36 .nx-document-tab{border-radius:5px 5px 0 0;border:1px solid #c8d3e1;background:#eff3f9}
body.nexsoon-production.nx-studio-r36 .nx-document-tab.active{border-top:2px solid #8c67d3;background:#fff}
body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow{padding:6px 9px;background:#f6f8fb;border-bottom:1px solid #dae3ec;min-height:39px;gap:4px}
body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow>button{font-size:12px;padding:5px 9px;min-height:28px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow>button[aria-current=step]{color:#543687;background:#eee8fa}
body.nexsoon-production.nx-studio-r36 #nxWorkflowIdentity{font-size:11px;color:#77879a}
body.nexsoon-production.nx-studio-r36 .center-area{padding:0 5px;gap:0;background:#e7ecf2}
body.nexsoon-production.nx-studio-r36 .view-tabs{height:37px;min-height:37px;flex-basis:37px;padding:3px 4px;background:#f6f8fb;gap:2px;border-bottom:1px solid #dce4ed}
body.nexsoon-production.nx-studio-r36 .viewtab{height:30px;font-size:11px;padding:5px 8px;border-radius:4px;border:1px solid transparent}
body.nexsoon-production.nx-studio-r36 .viewtab.active{color:#53358b;background:white;border:1px solid #d4c7ec;box-shadow:inset 0 -2px #9470d1}
body.nexsoon-production.nx-studio-r36 .view-tabs select{height:28px;font-size:11px;border-radius:4px;max-width:180px;min-width:95px}
body.nexsoon-production.nx-studio-r36 .viewport{border-radius:3px!important;border:1px solid #cad5e3;background:#f5f8fc}
body.nexsoon-production.nx-studio-r36 .viewport-title{height:28px;min-height:28px;font-size:11px;font-weight:500;background:#f9fbfe;border-bottom:1px solid #dee5ed}
body.nexsoon-production.nx-studio-r36 .viewport-quickbar{top:35px;font-size:11px;border:1px solid #d9e2ed;background:#ffffffed;border-radius:5px;box-shadow:0 2px 8px #293c5310}
body.nexsoon-production.nx-studio-r36 .viewport-quickbar button{font-size:11px;min-height:28px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 .commandbar{height:34px;min-height:34px;background:#f9fbfe;font-size:11px}
body.nexsoon-production.nx-studio-r36 .commandbar input{font-size:12px;min-height:27px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 .commandbar .hint{font-size:10px}
body.nexsoon-production.nx-studio-r36 .statusbar{height:29px;min-height:29px;font-size:10px;background:#f5f8fc}
body.nexsoon-production.nx-studio-r36 .status-toggle{min-height:24px;font-size:10px;border-radius:4px}
body.nexsoon-production.nx-studio-r36 #ribbon{background:#f7f9fc!important;border-bottom:1px solid #cbd6e3;box-shadow:none;padding:6px 9px 3px!important}
body.nexsoon-production.nx-studio-r36 #ribbon .ribbon-cluster{padding:0 9px;border-color:#d8e1ed}
body.nexsoon-production.nx-studio-r36 #ribbon .ribbon-cluster-label{color:#708197;font-size:10px;line-height:17px;height:17px;text-align:center;background:transparent}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon{height:99px!important;min-height:99px!important;max-height:99px;flex-basis:99px}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .ribbon-cluster-tools{display:grid;grid-template-rows:repeat(2,34px);grid-auto-flow:column;min-height:71px!important;height:71px;gap:3px}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .tool{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;width:auto!important;min-width:85px!important;max-width:190px;height:34px!important;min-height:34px!important;padding:5px 7px!important;gap:7px;font-size:12px!important;white-space:nowrap;text-align:left;border:1px solid transparent;border-radius:4px}
body.nexsoon-production.nx-studio-r36 #ribbon .tool>.tool-icon{display:inline-flex;align-items:center;justify-content:center;min-width:21px!important;max-width:21px!important;width:21px!important;height:23px!important;flex:0 0 21px;color:#516985}
body.nexsoon-production.nx-studio-r36 #ribbon .tool .nx-command-icon{width:21px!important;height:21px!important}
body.nexsoon-production.nx-studio-r36 #ribbon .tool:hover{background:#eaf0f8!important;border-color:#c6d4e5}
body.nexsoon-production.nx-studio-r36 #ribbon .tool.active{background:#eee8fb!important;border-color:#c7b7e4!important;color:#53358b}
body.nexsoon-production.nx-studio-r36 #ribbon .tool:disabled{opacity:.4}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=expanded] #ribbon{height:113px!important;min-height:113px!important;max-height:113px;flex-basis:113px}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=expanded] #ribbon .ribbon-cluster-tools{height:83px;min-height:83px!important;display:flex!important;gap:3px}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=expanded] #ribbon .tool{display:flex!important;flex-direction:column!important;justify-content:center;height:79px!important;min-height:79px!important;max-height:79px;flex:0 0 77px;width:77px!important;min-width:77px!important;font-size:11px!important;gap:8px;padding:7px 4px!important;white-space:normal}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=icons] #ribbon .tool{width:36px!important;min-width:36px!important;height:34px!important;min-height:34px!important}
body.nexsoon-production.nx-studio-r36 .nx-inspector-context{padding:12px 11px 10px;background:#fff;border-bottom:1px solid #dde5ee;flex:none}
.nx-inspector-context>#nxInspectorSelection{font-size:14px;font-weight:650;color:#304660;line-height:1.4;margin-bottom:9px}
.nx-inspector-actions{display:flex;gap:4px;flex-wrap:wrap}
.nx-inspector-actions button{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 6px;font-size:10px;color:#4e6580;background:#f5f8fc;border:1px solid #dce5ee;border-radius:4px}
.nx-inspector-actions button svg{width:15px;height:15px;flex:none}
.nx-property-search{display:block;margin-top:10px;font-size:10px;color:#738196}
.nx-property-search input{display:block;width:100%;height:31px;font-size:12px;border:1px solid #d4deea;border-radius:5px;padding:6px 8px;margin-top:4px}
body.nexsoon-production.nx-studio-r36 #properties{padding:0 10px 12px;min-height:0;font-size:12px;background:#fff;overflow:auto}
body.nexsoon-production.nx-studio-r36 #properties>.prop-toolbar{display:none}
.nx-property-section{border-bottom:1px solid #e0e7ef;margin:0;background:#fff}
.nx-property-section>summary{padding:11px 2px;cursor:pointer;color:#516b86;font-size:10px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;line-height:1.3}
.nx-property-section[open]>summary{padding-bottom:8px}
.nx-property-section>summary{font-size:12px;letter-spacing:0;text-transform:none;display:list-item;border-radius:5px;color:#25465b;padding:11px 5px;background:#f1f6f8;margin:5px 0}
.nx-property-subheading{font-size:10px;letter-spacing:.025em;text-transform:uppercase;color:#647b8c;margin:12px 2px 5px;font-weight:650}
.nx-property-help{font-size:11px;line-height:1.45;color:#637986;margin:7px 2px 12px}
.nx-property-jumps{display:flex;gap:4px;flex-wrap:wrap;margin-top:9px}
.nx-property-jumps button{border:1px solid #d2dfe6;background:#f5f9fa;color:#375a6d;border-radius:12px;padding:4px 8px;font-size:10px;cursor:pointer}
.nx-property-jumps button:hover,.nx-property-jumps button:focus-visible{background:#e3eff3;border-color:#6998ac}
.nx-property-quantity{display:flex;justify-content:space-between;gap:8px;padding:5px 0;line-height:1.4;border-bottom:1px solid #e3eaf0}
.nx-property-quantity b{text-align:right;white-space:nowrap;font-weight:600}
.nx-property-quantity:last-child{border-bottom:0}
body.nexsoon-production.nx-studio-r36 #properties .nx-property-section .prop-row{grid-template-columns:minmax(0,1fr);gap:4px;padding:7px 3px;min-height:0}
body.nexsoon-production.nx-studio-r36 #properties .nx-property-section .prop-row label{font-size:11px;font-weight:550;color:#526879}
body.nexsoon-production.nx-studio-r36 #properties .prop-row input[type=color]{height:36px;padding:3px;cursor:pointer}
body.nexsoon-production.nx-studio-r36 #properties .prop-row input:read-only{background:#eef3f5;color:#526879}
body.nexsoon-production.nx-studio-r36 #properties .prop-row{display:grid;grid-template-columns:minmax(90px,.92fr) minmax(0,1.1fr);align-items:center;gap:8px;margin:0;padding:5px 2px;border-bottom:1px solid #f0f3f7;min-height:38px}
body.nexsoon-production.nx-studio-r36 #properties .prop-row label{font-size:12px;color:#5a6c80;line-height:1.4;min-width:0;overflow-wrap:anywhere}
body.nexsoon-production.nx-studio-r36 #properties .prop-row input,body.nexsoon-production.nx-studio-r36 #properties .prop-row select{font-size:12px;min-height:30px;width:100%;min-width:0;padding:5px 7px;border:1px solid #d3deeb!important;border-radius:4px;background:#fbfcfe;color:#293f58}
body.nexsoon-production.nx-studio-r36 #properties .prop-row input:focus,body.nexsoon-production.nx-studio-r36 #properties .prop-row select:focus{background:#fff;border-color:#9b7ed0!important}
body.nexsoon-production.nx-studio-r36 #properties .empty-state{padding:18px 4px;color:#7b8999;font-size:12px;line-height:1.7}
body.nexsoon-production.nx-studio-r36 #properties .metric-mini{font-size:11px;padding:10px;background:#f3f7fb;border-radius:4px;margin:8px 0}
.nx-studio-tool-browser{position:fixed;inset:105px 0 auto;margin:0 auto;padding:0;border:1px solid #c6d3e3;border-radius:10px;max-width:calc(100vw - 32px);background:#fff;box-shadow:0 20px 80px #15294450;overflow:auto;color:#2b4058;font:13px/1.5 system-ui;z-index:2100}
.nx-studio-tool-browser::backdrop{background:#17233855;backdrop-filter:blur(2px)}
.nx-studio-tool-browser>header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #dce5ef;background:#f5f8fc;font-size:15px}
.nx-studio-tool-browser>header button{border:0;background:transparent;color:#60758b;font-size:24px;width:30px;cursor:pointer}
.nx-studio-tool-browser>label{display:flex;gap:12px;align-items:center;padding:13px 20px;font-size:12px;color:#64798d}
.nx-studio-tool-browser>label input{flex:1;min-width:120px;border:1px solid #cbd9e7;border-radius:5px;padding:8px 12px;font:13px system-ui}
.nx-studio-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;padding:0 18px 18px}
.nx-studio-tool-grid>.tool{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;border:1px solid #dce5ef;border-radius:5px;background:#fff;text-align:left;color:#3d5670;min-height:52px;height:auto;width:auto;padding:8px 10px;font:12px/1.4 system-ui;cursor:pointer;white-space:normal}
.nx-studio-tool-grid>.tool:hover{background:#f1ecfa;border-color:#c9b8e7}
.nx-studio-tool-grid>.tool .tool-icon{width:25px!important;height:25px!important;min-width:25px;flex:none}
.nx-studio-tool-grid>.tool .nx-command-icon{width:25px;height:25px}
body.nexsoon-production.nx-studio-r36 .nx-mep-workspace-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:8px!important;background:#edf3f9;border:1px solid #d6e1ee;border-radius:5px}
body.nexsoon-production.nx-studio-r36 .nx-mep-workspace-tabs button{min-height:33px;font-size:12px!important;padding:6px 10px!important}
body.nexsoon-production.nx-studio-r36 .nx-mep-system-summary{margin-top:18px}
body.nexsoon-production.nx-studio-r36 .nx-mep-model-visible #viewGrid{display:grid!important;flex:1;min-height:180px}
body.nexsoon-production.nx-studio-r36 .nx-mep-model-visible .view-tabs{display:flex!important;flex:none}
body.nexsoon-production.nx-studio-r36 .nx-mep-model-visible #moduleWorkspace{order:5;flex:0 1 48%;max-height:57%;min-height:230px;border:1px solid #c6d4e3;border-radius:5px 5px 0 0;margin-top:5px}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace>header{min-height:44px;flex-wrap:wrap;background:#f6f9fd;gap:8px}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace>header strong{font-size:13px;white-space:normal;line-height:1.35}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace>header #nxModuleStatus{flex:1 1 160px;min-width:0}
body.nexsoon-production.nx-studio-r36 #nxMepModelVisibility[aria-pressed=true]{background:#eee7fa!important;border-color:#bc9fe2!important;color:#56368d}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace #nxModuleBody{padding:14px 16px;background:#fff}
.nx-studio-empty{padding:20px;border:1px dashed #ccd9e7;border-radius:6px;background:#f8fafd;color:#526b83;margin:12px 0}
.nx-studio-empty p{margin-bottom:0}
.nx-mep-article-editor{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(400px,1.4fr);gap:24px}
.nx-mep-article-editor>*{min-width:0}.nx-mep-article-editor h3{font-size:16px;margin:0 0 12px;color:#3a5875}
.nx-mep-article-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#5b7087;margin:7px 0}
.nx-mep-article-editor input,.nx-mep-article-editor select,.nx-mep-article-editor textarea{width:100%;min-width:0;border:1px solid #cddae8;border-radius:4px;font-size:12px;padding:7px}
.nx-mep-article-editor details{margin-top:16px;border-top:1px solid #dbe4ee;padding-top:12px}.nx-mep-article-editor summary{cursor:pointer;font-weight:600;color:#506b85}
.nx-mep-article-editor .form-grid{gap:8px 12px}.nx-mep-article-editor p{font-size:12px;color:#637a90;line-height:1.5}
#nxMepArticleDiagram{height:200px;background:linear-gradient(135deg,#f5f8fc,#e9f0f8);border:1px solid #d5e0ee;border-radius:6px;margin:12px 0}
#nxMepArticleDiagram svg{width:100%;height:100%}#nxMepArticleDiagram [data-port-pick]{cursor:pointer}
.nx-mep-article-editor .nx-table-scroll{max-width:100%;overflow:auto;border:1px solid #d9e3ed;border-radius:4px}
#nxMepArticlePorts input{width:80px;min-width:80px}#nxMepArticlePorts [data-port-field=role]{width:110px;min-width:110px}
#nxMepArticlePorts .selected{background:#f0eafa}#nxMepArticlePorts input:disabled{background:#f0f3f7;color:#8e9baa}
.nx-mep-article-editor th{font-size:10px;white-space:nowrap;background:#f1f5fa;color:#57718b}
@media(max-width:900px){.nx-mep-article-editor{grid-template-columns:1fr}}
body.nexsoon-production.nx-studio-r36 .nx-resizer{width:6px;z-index:5}
@media(min-width:1101px){body.nexsoon-production.nx-studio-r36 .workspace>.left-panel,body.nexsoon-production.nx-studio-r36 .workspace>.right-panel{height:auto;max-height:none}}
@media(max-width:1300px){body.nexsoon-production.nx-studio-r36 .topbar .tab{padding:0 9px!important;font-size:11px!important}body.nexsoon-production.nx-studio-r36 #nxWorkflowIdentity{display:none}body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow>button{padding:5px 8px}}
@media(max-width:1100px){body.nexsoon-production.nx-studio-r36 .workspace{grid-template-columns:minmax(0,1fr)}body.nexsoon-production.nx-studio-r36 .panel.mobile-open{width:min(340px,85vw)}body.nexsoon-production.nx-studio-r36 .top-actions #commandPaletteBtn{min-width:0}body.nexsoon-production.nx-studio-r36 .nx-mep-model-visible #moduleWorkspace{max-height:65%;flex-basis:55%}}
@media(max-width:700px){body.nexsoon-production.nx-studio-r36 .topbar{grid-template-columns:26px minmax(0,1fr)!important}body.nexsoon-production.nx-studio-r36 .topbar .tab{padding:0 9px!important}body.nexsoon-production.nx-studio-r36 #nxLayoutTools{gap:0}body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow{overflow:auto;flex-wrap:nowrap}body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow>button{white-space:nowrap;flex:none}body.nexsoon-production.nx-studio-r36 .view-tabs{overflow:auto}body.nexsoon-production.nx-studio-r36 .view-tabs select{min-width:105px}body.nexsoon-production.nx-studio-r36 .commandbar .hint{display:none}body.nexsoon-production.nx-studio-r36 .nx-module-workspace #nxModuleBody{padding:10px}.nx-studio-tool-browser{inset:90px 0 auto}.nx-studio-tool-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.nx-studio-tool-browser>label{flex-wrap:wrap}}
@media(pointer:coarse){body.nexsoon-production.nx-studio-r36 .dock-tab,body.nexsoon-production.nx-studio-r36 .nx-nav-tabs button,body.nexsoon-production.nx-studio-r36 .nx-nav-list>button{min-height:38px}body.nexsoon-production.nx-studio-r36 .nx-inspector-actions button{min-height:34px}.nx-project-systems button{min-height:38px}}
body.nexsoon-production.nx-studio-r36 .nx-mep-config-layout{display:grid;grid-template-columns:minmax(340px,1fr) minmax(320px,1fr);gap:20px;align-items:start}
body.nexsoon-production.nx-studio-r36 #nxComponentPreview{width:100%;height:360px;display:block;border:1px solid #cbd5e1;border-radius:8px;touch-action:none;background:#edf2f7}
body.nexsoon-production.nx-studio-r36 .nx-mep-config-layout .nx-cost-fields{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
body.nexsoon-production.nx-studio-r36 .nx-mep-project-components{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
body.nexsoon-production.nx-studio-r36 .nx-mep-project-components h4{flex-basis:100%;margin:0}
body.nexsoon-production.nx-studio-r36 #nxPhysicalPoints{display:block;box-sizing:border-box;width:100%;font:14px/1.5 monospace;padding:10px;border:1px solid #b8c5d3;border-radius:5px}
body.nexsoon-production.nx-studio-r36 .nx-mep-registry{border:1px solid #cbd5e1;border-radius:6px;padding:12px;margin-bottom:16px}
body.nexsoon-production.nx-studio-r36 .nx-mep-registry summary{font-weight:600;cursor:pointer;margin-bottom:8px}
@media(max-width:1050px){body.nexsoon-production.nx-studio-r36 .nx-mep-config-layout{grid-template-columns:1fr}body.nexsoon-production.nx-studio-r36 #nxComponentPreview{height:300px}}

/* Single sizing contract for every ribbon mode. Legacy min/max/flex declarations
   must never clip a newer grid. Hidden commands remain hidden in every mode. */
body.nexsoon-production.nx-studio-r36 #app>.topbar{background:#202b3d!important}
body.nexsoon-production.nx-studio-r36 #app{font:13px/1.4 Inter,'Segoe UI',system-ui,sans-serif}
body.nexsoon-production.nx-studio-r36 .topbar .tabs{position:static;align-self:stretch;padding:0;min-height:35px;max-height:35px}
body.nexsoon-production.nx-studio-r36 .topbar .tab{flex:0 0 auto}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=icons] #ribbon{height:44px!important;min-height:44px!important;max-height:44px;flex-basis:44px}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=icons] #ribbon .ribbon-cluster-tools{height:34px;min-height:34px!important;display:flex!important}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=icons] #ribbon .tool{font-size:0!important;max-width:36px;padding:5px!important;gap:0}
body.nexsoon-production.nx-studio-r36[data-ribbon-mode=icons] #ribbon .ribbon-cluster-label{display:none}
body.nexsoon-production.nx-studio-r36 #ribbon .tool[hidden]{display:none!important}
body.nexsoon-production.nx-studio-r36 .panel-title{flex-basis:36px}
body.nexsoon-production.nx-studio-r36 .viewport-title{flex-basis:28px}
body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow{height:auto;flex:0 0 auto}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace>header{flex-shrink:0;flex-wrap:wrap;gap:8px}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace>header strong{white-space:normal}
body.nexsoon-production.nx-studio-r36 .nx-module-workspace .nx-module-actions{top:0}
@media(max-width:1100px){body.nexsoon-production.nx-studio-r36 .topbar .top-actions{overflow-x:auto!important;justify-content:flex-start;scrollbar-width:none}body.nexsoon-production.nx-studio-r36 .topbar .top-actions>*{flex-shrink:0}}
/* Keep the workspace controls reachable without clipping their last buttons. */
@media(min-width:701px) and (max-width:1100px){body.nexsoon-production.nx-studio-r36 .topbar{grid-template-columns:96px minmax(0,1fr)!important}body.nexsoon-production.nx-studio-r36 .topbar .brand strong{font-size:10px!important}}
@media(max-width:700px){body.nexsoon-production.nx-studio-r36 .top-actions>#openBtn{font-size:0!important;width:30px;min-width:30px;padding:4px!important}body.nexsoon-production.nx-studio-r36 .top-actions>#openBtn img,body.nexsoon-production.nx-studio-r36 .top-actions>#openBtn svg{width:18px;height:18px}}
@media(max-height:600px){body.nexsoon-production.nx-studio-r36 #app>.topbar{height:62px!important;min-height:62px!important;max-height:62px;flex-basis:62px;grid-template-rows:32px 29px!important}body.nexsoon-production.nx-studio-r36 .topbar .tabs,body.nexsoon-production.nx-studio-r36 .topbar .tab{height:29px!important;min-height:29px!important;max-height:29px}body.nexsoon-production.nx-studio-r36 #nxProjectWorkflow{display:none!important}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon{height:62px!important;min-height:62px!important;max-height:62px;flex-basis:62px}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .ribbon-cluster-tools{grid-template-rows:repeat(2,22px);min-height:44px!important}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .tool{height:22px!important;min-height:22px!important}body.nexsoon-production.nx-studio-r36 .nx-document-tabs{height:28px;min-height:28px;padding-top:0}}
@media(max-height:450px){body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon{height:42px!important;min-height:42px!important;max-height:42px;flex-basis:42px}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .ribbon-cluster-tools{display:flex!important;height:30px;min-height:30px!important}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .tool{height:28px!important;min-height:28px!important;font-size:0!important;padding:4px!important}body.nexsoon-production.nx-studio-r36[data-ribbon-mode=compact] #ribbon .ribbon-cluster-label{display:none}body.nexsoon-production.nx-studio-r36 .viewport-title{height:26px;min-height:26px;flex-basis:26px}}
@media(min-width:701px) and (max-width:900px){body.nexsoon-production.nx-studio-r36 .topbar{grid-template-columns:26px minmax(0,1fr)!important}body.nexsoon-production.nx-studio-r36 .topbar .brand div{display:none!important}}
