/* Bottom panes share one page scroll; right-hand panes retain their original scroll container. */
#app #workspace:not(.dock-right):not(.dual-editing) .workbench:not(.agent-editor){display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-padding-top:50px}
#app #workspace:not(.dock-right):not(.dual-editing) .workbench:not(.agent-editor)>.wb-head{flex:none}
#app #workspace:not(.dock-right):not(.dual-editing) .workbench:not(.agent-editor)>.wb-body{display:contents}
#app #workspace:not(.dock-right):not(.dual-editing) .workbench:not(.agent-editor) .editor-nav{position:sticky;top:0;z-index:6;flex:none;background:var(--surface)}
#app #workspace:not(.dock-right):not(.dual-editing) .workbench:not(.agent-editor) .editor-content{overflow:visible;flex:none;min-height:120px}
/* Phone resize starts from the status strip as well as the thin visible divider. */
@media(max-width:720px){
 #app #workspace:not(.dock-right):not(.dual-editing).has-selection:not(.maximized) #divider{position:relative;overflow:visible;z-index:30;touch-action:none;user-select:none}
 #app #workspace:not(.dock-right):not(.dual-editing).has-selection:not(.maximized) #divider::before{content:'';position:absolute;left:0;right:0;top:-32px;bottom:0;cursor:ns-resize;touch-action:none}
}
/* Experimental frameless reading surface; preserve the editing box, focus, and native resize behavior. */
.workspace .page-field.type-text .rich-text,.workspace .page-field.type-text .rich-text.has-heading-folding{border-color:transparent!important;background:transparent!important;box-shadow:none!important;border-radius:5px;padding:8px 8px 28px 6px!important;scroll-padding:8px 8px 24px 6px}
.workspace .page-field.type-text .text-field-shell{isolation:isolate}
.workspace .page-field.type-text .text-field-shell::after{content:'';position:absolute;inset:0;z-index:1;border-radius:5px;pointer-events:none;background:linear-gradient(90deg,var(--surface),transparent 5px,transparent calc(100% - 5px),var(--surface)),linear-gradient(var(--surface),transparent 5px,transparent calc(100% - 7px),var(--surface));opacity:.65}
.workspace .page-field.type-text:not(.text-compact) .text-field-shell::before{content:'';position:absolute;right:4px;bottom:4px;width:11px;height:11px;z-index:3;pointer-events:none;opacity:.45;background:repeating-linear-gradient(135deg,transparent 0 3px,var(--muted) 3px 4px);clip-path:polygon(100% 0,100% 100%,0 100%)}
.workspace .page-field.type-text .text-field-shell:has(.rich-text:focus-visible)::before{opacity:.85}
.workspace .page-field.type-text .rich-fold-gutter{left:-20px;width:22px}
.workspace .page-field.type-text .text-field-shell>.rich-fold-gutter{z-index:3}
.workspace .text-layout-expanded .page-field.type-text .rich-text{min-height:180px;max-height:none;resize:vertical}
.workspace .text-layout-expanded .page-field.type-text.text-compact .rich-text{resize:none}
