/* All task pages share a full-width Page Title above both working panes. */
.task-title{background:#fff;border-bottom:1px solid #e5eaf0;position:relative;z-index:60}
.rs-local-head{min-width:0;background:#fff;border-bottom:1px solid #e8edf3}
.rs-local-head:empty{display:none}
.rs-local-head .settings-line{margin:0;padding:16px 16px;flex-wrap:wrap;gap:8px}
.rs-local-head .management-summary{flex-wrap:wrap;min-width:0}
.rs-local-head .settings-values{gap:8px 16px}
.rs-local-head .utility{flex-wrap:wrap;padding:8px 16px}
.rs-local-head .locked-note{margin:8px 16px}
.task-panel-head{background:inherit;padding-top:16px;padding-bottom:16px;border-bottom:1px solid #e5eaf0;margin-bottom:16px}
.task-panel-head h3{margin:0!important}.task-panel-head .dp-navigation{margin:0}.task-panel-head .dp-context{margin-bottom:8px}
.rs-viewport{min-width:0;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;outline-offset:-3px}
.rs-layout .rs-left{padding:0;align-self:stretch;overflow:hidden;min-height:0}
.rs-layout .rs-content{padding:16px 16px 24px}
.rs-layout>.side,.rs-layout>.pd-side,.pk-page .rs-layout>.pk-side{border-radius:0;padding:0 16px 16px!important}
.rs-content.rs-terms{container-type:inline-size;grid-template-columns:130px minmax(0,1fr);gap:16px}
.rs-terms .term-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-terms .term-field input,.rs-terms .term-field select{min-width:0;width:100%}
@container(max-width:650px){.rs-terms .term-grid{grid-template-columns:1fr}.rs-terms .term-wide{grid-column:auto}}
.rs-viewport .term-section,.rs-viewport .pd-main section{scroll-margin-top:16px}
.rs-content .pd-anchors,.rs-content .terms-nav,.rs-content .pk-categories{position:sticky;top:16px;align-self:start}
.task-panel-head .rs-panel-tools{margin-bottom:8px}
.panel-focused>.rs-handle{cursor:default;background:#edf3fb}
.panel-focused>.rs-handle:after{background:#87aee8}
/* Product selection occupies the task workspace, never the global header. */
body.picker-overlay-open{overflow:auto}
#page.picker-overlay-host{position:relative!important;inset:auto!important;z-index:auto;margin:0!important;max-height:none;overflow:visible!important;border-radius:10px!important}
.picker-overlay-host .pk-page,.picker-overlay-host .catalog-reader{min-height:0}
.picker-overlay-host .page-title{position:relative;top:auto}
.picker-overlay-host .rs-layout{min-height:0}
.pk-page .rs-left>.pk-footer{min-width:0;position:relative;bottom:auto;flex-wrap:wrap;padding:8px 16px;border-radius:0;border-top:1px solid #e5eaf0}
.pk-page .rs-left>.pk-footer .pk-footer-spacer{min-width:0}
.collection-local-head .toolbar{padding:16px 16px!important}.collection-local-head .scope-caption{padding:0 16px 8px!important}
.task-collection .results{padding:0 16px;min-width:0}.task-collection .collection-local-head{margin:0 -16px}.task-collection .sidepanel{padding:0 16px 16px}.task-collection .sidepanel .task-panel-head{background:#fff}
.task-collection .result-scroller{min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
@media(min-width:900px){
 body.task-frame-active{height:auto;overflow:visible}
 .task-frame-active .app,.task-frame-active .shell{min-height:0}
 .task-frame-active #page,.task-frame-active .pd-page,.task-frame-active .pk-page{min-height:0;overflow:visible!important}
 .task-frame-active .rs-layout,.task-frame-active .pk-page .rs-layout,.task-frame-active .pd-page .rs-layout{height:auto;min-height:0;min-width:0!important;padding:0!important}
 .task-frame-active .rs-layout>.rs-left{display:block;height:auto;min-height:0;overflow:visible;align-self:start!important}
 .task-frame-active .rs-viewport{height:auto;max-height:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior:auto}
 .task-frame-active .rs-layout>.side,.task-frame-active .rs-layout>.pd-side,.task-frame-active .pk-page .rs-layout>.pk-side,.task-collection>.sidepanel{position:sticky!important;top:var(--sticky-title-height,0px)!important;height:auto;min-height:0;max-height:calc(100dvh - var(--sticky-title-height,0px) - 12px)!important;align-self:start!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
 .task-frame-active .task-panel-head{position:sticky;top:0;z-index:40}
 .task-frame-active .rs-handle{align-self:stretch}
 .task-frame-active #workspace.task-collection{height:auto;min-height:0}
 .task-collection>.results{display:block;height:auto;overflow:visible}
 .task-collection .results>.result-scroller{height:auto;max-height:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior:auto}
 .task-collection .buckets{height:48px}.task-collection .result-meta{padding:8px 0}
}
/* Maximize the complete task, with its title and both panes, not the system Global. */
body.page-maximized .top,body.page-maximized .prototype,body.page-maximized .prototype-bar,body.page-maximized .rail{display:none!important}
body.page-maximized .app>.workspace,body.page-maximized .shell>.main{position:fixed;inset:0;z-index:500;background:#eef1f5;padding:0 16px!important;overflow:auto}
body.page-maximized .app,body.page-maximized .shell{display:block;min-height:0}
body.page-maximized dialog{z-index:2000}body.page-maximized #toast{z-index:2100}
@media(max-width:899px){.rs-viewport{max-height:none}.task-panel-head{position:relative}.rs-local-head .settings-line{padding:16px}.rs-local-head .utility{padding:8px 16px}.rs-content.rs-terms{min-width:560px}.task-collection .sidepanel{display:block;min-width:326px}.task-collection{min-width:652px}}
.task-collection .splitter span{position:absolute;top:65px;margin-top:0}
@media(min-width:900px){.task-collection{min-width:0!important}}
.rs-local-head .scope{max-width:100%;overflow:hidden;text-overflow:ellipsis}.rs-local-head .management-summary{border-left:0;padding-left:0}.rs-local-head .settings-line>.scope{flex-shrink:1}

/* Page Title row two remains common, with full-width Utility below it. */
.task-title .settings-line{flex-wrap:wrap;gap:8px 16px;margin-top:16px}
.task-title .management-summary{flex-wrap:wrap;min-width:0}
.task-title .settings-values{gap:8px 16px}
.task-title .scope{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.task-page>.utility,.pd-page>.utility,.pk-page>.utility{width:100%;flex-wrap:wrap;border-bottom:1px solid #e8edf3;background:#fff;position:relative}
.rs-viewport .term-section,.rs-viewport .pd-main section{scroll-margin-top:calc(var(--sticky-title-height,0px) + 16px)}
.rs-floating-x{position:fixed;bottom:0;height:18px;overflow-x:scroll;overflow-y:hidden;z-index:650;background:#f3f6fa;border-top:1px solid #d9e2ed;box-shadow:0 -2px 8px #20354c12}
.rs-floating-x>div{height:1px;pointer-events:none}

/* A dedicated divider owns touch gestures and stays above overlapping content. */
.rs-handle,.task-collection .splitter{touch-action:none;user-select:none;z-index:45}
.rs-dragging,.rs-dragging *{cursor:col-resize!important;user-select:none!important}
