/* V28: application-specific composition with a shared data model. */
#nw-titlebar{display:none}
.sw-expanded #nw-titlebar{display:flex;align-items:center;gap:16px;height:30px;min-height:30px;padding:0 10px;border-bottom:1px solid var(--ui-edge);background:var(--ui-bar);font:12px Arial,sans-serif;color:var(--ui-ink)}
#nw-titlebar strong{font-weight:600}#nw-document-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#nw-titlebar small{color:var(--ui-muted);font-size:11px}
.sw-expanded[data-workspace=revit] #nw-titlebar{border-left:4px solid #2a78ae}
.sw-expanded[data-workspace=revit] #nw-ribbon nav button[data-nw-tab="1"]{background:var(--ui-active)}
.sw-expanded[data-workspace=allplan] #nw-titlebar{border-left:5px solid #248bce}
.sw-expanded[data-workspace=allplan] #nw-ribbon{border-bottom:3px solid #248bce}
.sw-expanded[data-workspace=allplan] .nw-ribbon-group button{flex-direction:row;max-width:170px;min-height:42px;text-align:left}
.sw-expanded[data-workspace=allplan] .nw-ribbon-group>div{display:grid;grid-template-columns:repeat(2,auto)}
.sw-expanded[data-workspace=allplan] .nw-ribbon-tools{min-height:70px}
.sw-expanded[data-workspace=solibri] #nw-titlebar{background:#1d2a43;color:#f4f7fb;border-left:5px solid #e3b63a}
.sw-expanded[data-workspace=solibri] #nw-titlebar small{color:#d5dfed}
.sw-expanded[data-workspace=solibri] #nw-ribbon nav{background:#1d2a43;color:#f4f7fb}
.sw-expanded[data-workspace=solibri] #nw-ribbon nav button{color:#f4f7fb}
.sw-expanded[data-workspace=solibri] #nw-ribbon nav button[aria-pressed=true]{color:#ffdf71;background:#304363;border-bottom-color:#e3b63a}
.sw-expanded[data-workspace=solibri] #nw-ribbon .nw-ribbon-tools{min-height:42px}
.sw-expanded[data-workspace=solibri] .nw-ribbon-group button{flex-direction:row;max-width:180px;min-height:34px}
.sw-expanded[data-workspace=solibri] .nw-ribbon-group>small{display:none}
.sw-expanded[data-workspace=solibri] .sw-view-tabs{display:none}
.sw-expanded[data-workspace=solibri] #nw-ribbon #nw-command-open{background:#304363;color:#fff}
.sw-expanded[data-workspace=navis] #ew-viewpoints{background:var(--ui-panel);color:var(--ui-ink);border-color:var(--ui-edge)}
.sw-expanded[data-workspace=navis] #ew-viewpoints select{background:var(--ui-field);color:var(--ui-ink)}
.sw-expanded[data-workspace=navis] #nw-titlebar{border-left:4px solid #7ba638}
.sw-expanded[data-workspace=dynamo] #nw-titlebar{background:#273238;color:#edf5f8;border-left:4px solid #59b6bd}
.sw-expanded[data-workspace=dynamo] #nw-titlebar small{color:#bacbd1}
.sw-expanded[data-workspace=dynamo] .nw-ribbon-tools{min-height:42px}
.sw-expanded[data-workspace=dynamo] .nw-ribbon-group{min-width:0}
.sw-expanded[data-workspace=dynamo] .nw-ribbon-group>small{display:none}
.sw-expanded[data-workspace=dynamo] .nw-ribbon-group button{flex-direction:row;max-width:145px;min-height:34px}
.sw-expanded[data-workspace=dynamo] #sw-overlay{inset:0 29% 0 0}
.sw-expanded[data-workspace=dynamo][data-native-overlay=true] #wb-model-viewport{left:71%}
.sw-expanded[data-workspace=office] #nw-titlebar{background:#153852;color:#fff;border-left:4px solid #3a96d2}
.sw-expanded[data-workspace=office] #nw-titlebar small{color:#c9e3f4}
.sw-expanded[data-workspace=office] .nw-ribbon-tools{min-height:42px}
.sw-expanded[data-workspace=office] .nw-ribbon-group>small{display:none}
.sw-expanded[data-workspace=office] .nw-ribbon-group button{flex-direction:row;max-width:190px;min-height:34px}
.sw-expanded[data-workspace=office] .sw-document-table{padding:18px 20px}
.sw-expanded[data-workspace=office] .sw-document-table table{font-family:Arial,sans-serif;font-size:13px}
.sw-expanded[data-workspace=office] .sw-document-table th{position:sticky;top:0}
#nw-rhino-command{display:none}
.sw-expanded[data-workspace=rhino] #nw-rhino-command:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr) 40px;align-items:center;gap:6px;padding:5px 10px;background:var(--ui-panel);border-bottom:1px solid var(--ui-edge);font:12px ui-monospace,monospace}
#nw-rhino-command input{min-height:30px;padding:5px;border:1px solid var(--ui-edge);font:13px ui-monospace,monospace}
#nw-rhino-command button{min-height:30px;padding:4px}
#nw-rhino-command output{grid-column:1/-1;color:var(--ui-muted);font-size:11px;line-height:1.4}
.sw-expanded[data-workspace=rhino] .nw-ribbon-tools{min-height:42px}
.sw-expanded[data-workspace=rhino] .nw-ribbon-group>small{display:none}
.sw-expanded[data-workspace=rhino] .nw-ribbon-group button{flex-direction:row;min-height:34px;max-width:155px}
.sw-expanded[data-workspace=rhino] .sw-view-tabs{display:none}
.sw-expanded[data-workspace=rhino][data-rhino-max=true] #nw-rhino{display:none}
.sw-expanded[data-workspace=rhino][data-rhino-max=true] #wb-model-viewport{inset:0}
.nw-object-finder label{display:block;font:12px/1.6 Arial,sans-serif;color:var(--ui-muted)}
#nw-object-search{box-sizing:border-box;width:100%;min-height:36px;padding:7px;border:1px solid var(--ui-edge);font:13px Arial,sans-serif}
#nw-object-results button{display:block;width:100%;text-align:left;border-bottom:1px solid var(--ui-edge)}
.nw-table-scroll i{background:#99a8b2}
/* A single offset, including the rail after the workbench is passed. */
html{scroll-padding-top:var(--ew-navigation-offset,108px)}
#main>section:not(#profil),#lebenslauf,#profil-details,#source-workbench,.pw-step,.pw-step:first-child,.pw-story :is(button,a,summary,input,select),#wb-original-rule{scroll-margin-top:16px}
#main>section:not(#profil){padding-block:64px}
#bim-journey[data-docked=true]:not(.ew-inline-explore)>.pw-desk{top:calc(var(--ew-page-top,100px) + var(--ew-dock-height,46px))}
.ew-inline-explore .pw-step,.ew-inline-explore .pw-step:first-child{min-height:0;padding-block:32px 38px}
#main [tabindex="-1"]:focus:not(:focus-visible){outline:0}
#ew-app-dock .sw-environment #nw-mobile-details{font-size:12px}
/* The mobile page scrolls normally; only a small environment rail remains. */
@media(max-width:1024px){
 #bim-journey:not(.ew-inline-explore)>.pw-desk{position:relative;top:auto!important}
 .sw-expanded #nw-titlebar{display:none}
 .sw-expanded .nw-ribbon-group>div{gap:2px}
 .sw-expanded .nw-ribbon-group button{font-size:12px;min-height:44px;padding:4px 8px}
 .sw-expanded #nw-ribbon nav button{min-height:44px;font-size:13px}
 .sw-expanded[data-workspace=allplan] .nw-ribbon-group>div{display:flex}
 .sw-expanded[data-workspace=allplan] .nw-ribbon-group button{flex-direction:column;min-width:68px}
 .sw-expanded[data-workspace=dynamo] #sw-overlay{inset:0 0 28% 0}
 .sw-expanded[data-workspace=dynamo][data-native-overlay=true] #wb-model-viewport{inset:72% 0 0 0}
 .sw-expanded[data-workspace=rhino] #nw-rhino-command:not([hidden]){grid-template-columns:auto minmax(0,1fr) 44px;padding:3px 6px}
 #nw-rhino-command :is(input,button){min-height:40px;font-size:14px}
 #nw-rhino-command output{display:none}
 .sw-expanded :is(.sw-browser,#ew-inspector) .ew-panel :is(button,summary){min-height:44px;font-size:14px}
 .sw-expanded .ew-panel p,.sw-expanded .ew-attributes{font-size:13px}
 #main>section:not(#profil){padding-block:40px}
 .pw-step,.pw-step:first-child,.pw-story :is(button,a,summary,input,select){scroll-margin-top:16px}
 .ew-inline-explore .pw-step,.ew-inline-explore .pw-step:first-child{padding-block:26px 32px}
}
/* Short landscape needs side-by-side surfaces, not a 30 px model strip. */
@media(max-height:520px) and (max-width:1024px){
 #bim-journey.ew-inline-explore>.pw-desk.sw-expanded{min-height:0;height:calc(100dvh - var(--ew-page-top,60px) - var(--ew-dock-height,50px) - 8px)}
 .sw-expanded .nw-ribbon-tools{display:none}
 .sw-expanded #nw-ribbon nav{height:44px;min-height:44px}
 .sw-expanded #nw-ribbon nav button{min-height:44px}
 .sw-expanded #ew-scope,.sw-expanded .sw-context-line{display:none}
 .sw-expanded #ew-task{min-height:44px;padding:0 6px}
 .sw-expanded #ew-task-next{min-height:40px}
 .sw-expanded .pw-visual{position:relative}
 .sw-expanded .pw-surface{min-height:100px!important}
 .sw-expanded[data-paired=true][data-native-two=true] #sw-drawing{inset:0 46% 0 0}
 .sw-expanded[data-paired=true][data-native-two=true] #wb-model-viewport{inset:0 0 0 54%}
 .sw-expanded[data-paired=true][data-native-two=false] #nw-linked{inset:0 46% 0 0}
 .sw-expanded[data-paired=true][data-native-two=false] #wb-model-viewport{inset:0 0 0 54%}
 .sw-expanded:is([data-workspace=dynamo],[data-workspace=office]) #sw-overlay{inset:0 38% 0 0}
 .sw-expanded:is([data-workspace=dynamo],[data-workspace=office])[data-native-overlay=true] #wb-model-viewport{inset:0 0 0 62%}
 .sw-expanded[data-native-table=true] .pw-surface{width:54%}
 .sw-expanded[data-native-table=true] #nw-takeoff{position:absolute;inset:0 0 38px 54%;min-height:0;max-height:none;flex-basis:auto;border-left:1px solid var(--ui-edge)}
 .sw-expanded #ew-command{padding:3px 6px}
 #ew-command-note{display:none}
 .sw-expanded #nw-rhino-command:not([hidden]){padding-block:0}
 #nw-rhino-command :is(input,button){min-height:30px}
 .sw-expanded #ew-viewpoints{min-height:40px;padding:2px 6px}
 .sw-expanded #ew-viewpoints>div{display:none}
}
