/* Approved desktop shell. Model geometry and command handlers are unchanged. */
html:has(body.ned-shell){height:100%;color-scheme:light}
body.ned-shell{--nd-bg:#e9eef4;--nd-panel:#f6f8fb;--nd-raised:#fff;--nd-border:#bbc8d8;--nd-text:#172b42;--nd-muted:#50637a;--nd-accent:#3b82f6;background:var(--nd-bg)!important;color:var(--nd-text)!important;height:100dvh;display:flex!important;flex-direction:column!important;overflow:hidden;font:13px "Segoe UI",Arial,sans-serif!important}
body.ned-shell>header{align-items:center!important;background:#23384e!important;color:#fff!important;min-height:44px!important;padding:5px 14px!important;gap:16px!important;flex:none!important}
body.ned-shell>header>strong{display:flex;align-items:center;flex:0 0 auto;gap:6px;line-height:1.2;color:#fff;font-size:22px!important;letter-spacing:.4px}
body.ned-shell>header>strong .brandIcon{display:block;flex:none;margin-right:0}
body.ned-shell #appVersion{font-size:11px;letter-spacing:0;color:#c8d9eb}
body.ned-shell #documentHeading{line-height:1.2;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:16px}
body.ned-shell #headerRight{align-items:center;margin-left:auto;flex:none}
body.ned-shell #shellMenus{display:flex;align-items:center;flex-wrap:wrap;background:#edf1f6;border-bottom:1px solid var(--nd-border);padding:0 10px;z-index:30;flex:none}
body.ned-shell #documentMenus{padding:0;gap:0}
body.ned-shell #mainNavigation{display:flex!important;padding:0!important;background:transparent!important;border:0!important;gap:2px!important;overflow:visible!important}
body.ned-shell #shellMenus button,body.ned-shell #fileMenu>summary{background:transparent!important;color:var(--nd-text)!important;border:1px solid transparent!important;border-radius:4px!important;padding:8px 12px!important;min-height:36px!important;font-size:13px!important;width:auto!important;font-weight:600;white-space:nowrap;box-shadow:none!important}
body.ned-shell #shellMenus button:hover,body.ned-shell #fileMenu[open]>summary{background:#dbe8f8!important;border-color:#adc5e4!important}
body.ned-shell .documentMenuItems{background:#fff;border-color:var(--nd-border);box-shadow:0 8px 20px #18345030}
body.ned-shell #shellMenus .documentMenuItems button{text-align:left}
body.ned-shell #shellTools{display:flex;align-items:center;gap:10px;padding:6px 10px;background:#f1f4f8;border-bottom:1px solid var(--nd-border);flex:none;min-width:0;overflow-x:auto}
body.ned-shell #shellModes{display:flex;gap:3px;border-right:1px solid var(--nd-border);padding-right:10px;flex:none}
body.ned-shell #shellModes button{padding:9px;font-weight:600;min-height:44px;background:#fff!important;color:#23415f!important;border-color:#bdcbdc!important;white-space:nowrap}
body.ned-shell #shellModes button[aria-pressed=true]{background:#2679c9!important;border-color:#1965ac!important;color:#fff!important}
body.ned-shell #shellTools :is(#toolsPanel,#projectTools,.toolIcons,.rotateTools,.historyTools,#viewControlsDock){position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;gap:4px!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;transform:none!important;background:transparent!important;border:0!important;box-shadow:none!important;flex:none}
body.ned-shell[data-document-kind=project] #shellTools #toolsPanel,body.ned-shell[data-document-kind=constructor] #shellTools #projectTools{display:none!important}
body.ned-shell #shellTools button:not([hidden]){width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:8px!important;border-radius:5px!important;background:#f8fafd!important;color:#294967!important;border:1px solid #c5cfdb!important;box-shadow:none!important;flex:none!important;transform:none!important}
body.ned-shell #shellTools button.active{background:#cee3ff!important;color:#125ba9!important;border-color:#92bcef!important}
body.ned-shell #shellTools svg{stroke:currentColor!important;filter:none!important}
body.ned-shell>main,body.ned-shell>main.projectMode:not(.catalogMode){display:grid!important;grid-template-columns:230px minmax(0,1fr) 280px!important;gap:6px!important;padding:6px!important;margin:0!important;height:auto!important;min-height:0!important;flex:1!important;overflow:hidden!important;background:var(--nd-bg)!important}
body.ned-shell main:not(.catalogMode)>#outlinePanel{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;padding:0!important;overflow:auto!important;order:0!important;background:#f6f8fb!important;border:1px solid var(--nd-border)!important;border-radius:5px!important}
body.ned-shell :is(#outlineHeading,#inspectorPanel>h2){margin:0;padding:10px 12px;background:#d7e1ed;color:#172b42;font-size:13px;font-weight:600;border-bottom:1px solid var(--nd-border);overflow-wrap:anywhere}
body.ned-shell #groupList{max-height:none;padding:8px;color:var(--nd-text)}
body.ned-shell main>.stage{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;height:auto!important;width:auto!important;border:1px solid var(--nd-border)!important;border-radius:5px!important;order:1!important;background:#eef2f7!important;overflow:hidden!important}
body.ned-shell #view{flex:1!important;min-width:0!important;min-height:100px!important;height:auto!important;background:#edf1f6!important}
body.ned-shell #inspectorPanel{min-width:0;overflow:auto;background:#f6f8fb;border:1px solid var(--nd-border);border-radius:5px;order:2}
body.ned-shell #inspectorPanel>p{padding:12px;line-height:1.6;color:#50637a!important}
body.ned-shell main.catalogMode{display:block!important;overflow:auto!important;min-height:0!important}
body.ned-shell main.catalogMode>#inspectorPanel{display:none}
body.ned-shell main.catalogMode>#projectResults{min-height:100%!important}
body.ned-shell #draftRecoveryBar{flex:none;font-size:11px;padding:3px 12px}
body.ned-shell #draftRecoveryBar button{min-height:28px;padding:3px 8px}
body.ned-shell #outlinePanel>.helpDock{display:none!important}
@media(max-width:1000px){body.ned-shell>main,body.ned-shell>main.projectMode:not(.catalogMode){grid-template-columns:180px minmax(0,1fr) 230px!important}body.ned-shell #cloudStatus{display:none}}
@media(max-width:720px){body.ned-shell #documentHeading{font-size:12px}body.ned-shell>header{gap:6px!important;padding:5px 8px!important;flex-wrap:wrap!important}body.ned-shell>header>strong{font-size:18px!important}body.ned-shell #headerRight{gap:3px!important}body.ned-shell #shellMenus{padding:0 4px}body.ned-shell #shellMenus button,body.ned-shell #fileMenu>summary{padding:6px 7px!important;font-size:12px!important}body.ned-shell #shellTools{gap:6px;padding:4px}body.ned-shell #shellModes{padding-right:4px}body.ned-shell #shellModes button{font-size:11px;padding:6px}body.ned-shell>main,body.ned-shell>main.projectMode:not(.catalogMode){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(240px,1fr) auto!important;overflow:auto!important}body.ned-shell main:not(.catalogMode)>#outlinePanel{order:2!important;max-height:180px!important}body.ned-shell #inspectorPanel{display:none}body.ned-shell #view{min-height:240px!important}body.ned-shell #shellTools #viewControlsDock{flex-wrap:nowrap!important}}
body.ned-shell #shellTools #shellModes button{width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;padding:8px 12px!important}
body.ned-shell .documentTree,body.ned-shell .documentTree ul{list-style:none;padding:0;margin:0}
body.ned-shell .documentTree ul{padding-left:14px;border-left:1px solid #d5dfeb;margin-left:7px}
body.ned-shell .documentTree summary{cursor:pointer;padding:8px 4px;overflow-wrap:anywhere;font-weight:600;color:#25415f}
body.ned-shell .documentTree .treeItem{display:flex;align-items:center;gap:7px;width:100%;min-height:36px;text-align:left;padding:6px;border:1px solid transparent!important;border-radius:3px!important;background:transparent!important;color:#273d55!important;box-shadow:none!important;font-size:12px}
body.ned-shell .documentTree .treeItem span{overflow-wrap:anywhere;min-width:0}
body.ned-shell .documentTree .treeItem svg{width:18px;height:18px;flex:none;stroke:currentColor}
body.ned-shell .documentTree .treeItem[aria-pressed=true]{background:#c7e1ff!important;border-color:#91bff4!important;color:#124f96!important}
body.ned-shell .documentTree .treeItem:hover{background:#e0ebf8!important}
body.ned-shell .outlineActions{display:flex;gap:6px;padding:8px;border-top:1px solid var(--nd-border);position:sticky;bottom:0;background:#f4f7fb}
body.ned-shell .outlineActions button{width:44px;height:44px;padding:10px;background:#fff!important;color:#294967!important;border-color:var(--nd-border)!important}
body.ned-shell .outlineActions svg{width:22px;height:22px}
body.ned-shell #inspectorPanel #detailSettings{display:block!important;margin:0!important;padding:0 8px!important;background:transparent!important;color:var(--nd-text)!important}
body.ned-shell #inspectorPanel #inspectorHint{margin:0;padding:10px;font-size:11px}
body.ned-shell #inspectorPanel .inspectorSection{margin:6px 0;border:1px solid #c2cedd;border-radius:5px;background:#fff;overflow:hidden}
body.ned-shell #inspectorPanel .inspectorSection>summary{padding:8px;background:#dae5f2;color:#163b62;cursor:pointer;font-weight:600}
body.ned-shell #inspectorPanel .inspectorSection>summary button{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;color:inherit!important;font-weight:600;box-shadow:none!important;font-size:12px}
body.ned-shell #inspectorPanel [data-pane]{display:block!important;padding:6px 10px 12px}
body.ned-shell #inspectorPanel .inspectorSection label{color:#374e69!important;font-size:11px;margin:8px 0 3px}
body.ned-shell #inspectorPanel :is(input,select,textarea){background:#fff!important;color:#152f4b!important;border:1px solid #b4c4d9!important;border-radius:4px!important;font-size:12px;min-width:0;max-width:100%}
body.ned-shell #inspectorPanel input:not([type=checkbox]),body.ned-shell #inspectorPanel select{height:32px}
body.ned-shell #inspectorPanel .inspectorFoot{padding:8px;display:flex;justify-content:flex-end}
body.ned-shell #inspectorPanel .inspectorFoot button,body.ned-shell #inspectorPanel #openEdgeEditor{background:#edf4fc!important;color:#234d7b!important;border-color:#b4c9e2!important;min-height:36px}
body.ned-shell #inspectorPanel #openEdgeEditor{width:calc(100% - 16px);margin:8px}
body.ned-shell #inspectorPanel #edgeEditorSummary{padding:0 8px;color:#50637a}
@media(max-width:720px){body.ned-shell #inspectorPanel.inspectorOpen{display:block;position:fixed;right:6px;top:140px;bottom:6px;width:min(320px,calc(100vw - 12px));z-index:50;box-shadow:0 12px 40px #152e5060}body.ned-shell #inspectorPanel .inspectorFoot{position:sticky;bottom:0;background:#f0f5fa}body.ned-shell #inspectorPanel input:not([type=checkbox]),body.ned-shell #inspectorPanel select{height:44px}}

#sharedBaseStatus:not([hidden]){display:inline-flex;align-items:center;min-width:0;max-width:min(42vw,360px);white-space:pre}
#sharedBaseStatus span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
#sharedBaseStatus span:last-child{flex:none}
@media(max-width:480px){
 #headerRight #sharedBaseStatus:not([hidden]){max-width:56vw}
 #headerRight #cloudStatus:has(+ #sharedBaseStatus:not([hidden])){display:none!important}
}

/* Native sliders retain keyboard, touch and drag behavior on both axes. */
#viewPanControls input[type=range]{appearance:none;-webkit-appearance:none;background:transparent}
#viewPanControls input::-webkit-slider-runnable-track{background:#20252b;border-radius:999px;block-size:8px;inline-size:100%}
#viewPanControls input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;background:#669eea;border:0;border-radius:50%;width:16px;height:16px;margin-block-start:-4px}
#viewPanControls input::-moz-range-track{background:#20252b;border-radius:999px;block-size:8px;inline-size:100%}
#viewPanControls input::-moz-range-progress{background:transparent}
#viewPanControls input::-moz-range-thumb{background:#669eea;border:0;border-radius:50%;width:16px;height:16px}
