/* DEC-014: compact desktop-workbench presentation inspired by Visual Studio. */
body.orb-workspace{--ow-bg:#1e1e1e;--ow-panel:#252526;--ow-line:#3f3f46;--ow-text:#d4d4d4;--ow-muted:#aaa;--ow-mint:#75beff;--ow-amber:#d7ba7d;font-family:'Segoe UI',sans-serif}
body.orb-workspace:before{height:28px!important;padding:5px 12px!important;background:#1e1e1e!important;color:#ccc!important;font:12px 'Segoe UI',sans-serif!important}
body:not(.orb-canvas-workspace) #orbGlobalConfig{top:2px!important;padding:3px 10px!important;height:24px;background:#333!important;border-color:#555!important;border-radius:0!important;font:12px 'Segoe UI',sans-serif}
body.orb-workspace #owApp{top:58px!important;bottom:22px!important;background:#1e1e1e;font:12px/1.45 'Segoe UI',sans-serif!important}
#studioToolbar{position:fixed;top:28px;left:0;right:0;height:30px;background:#2d2d30;border-bottom:1px solid #444;z-index:1200;display:flex;align-items:center;gap:5px;padding:0 8px;color:#ccc;font:12px 'Segoe UI',sans-serif}
#studioStatus{position:fixed;bottom:0;left:0;right:0;height:22px;background:#007acc;color:#fff;padding:3px 10px;font:11px 'Segoe UI',sans-serif;z-index:1200}
body.orb-workspace .ow-sidebar{padding:8px!important;gap:12px!important;background:#252526;border-color:#3f3f46}
.ow-brand{padding:0!important;gap:6px!important}.ow-brand strong{font-size:14px!important;letter-spacing:1px!important}.ow-brand small{font-size:9px!important;letter-spacing:0!important}.ow-mark{width:20px!important;height:20px!important;font-size:14px!important;border-radius:0!important}
.ow-sidebar-foot{font-size:10px!important;padding:8px 0!important}.ow-sidebar .ow-nav button{font:12px 'Segoe UI',sans-serif!important;padding:4px 6px!important;border-radius:0!important}.studio-explorer{display:grid;gap:2px}.studio-explorer button{text-align:left}
body.orb-workspace .ow-body{background:#1e1e1e;border-color:#444}body.orb-workspace .ow-topbar{padding:3px 8px!important;min-height:28px!important;gap:5px;background:#2d2d30;border-color:#444;position:static}
.ow-breadcrumb{font-size:11px!important}.ow-pill{font-size:10px!important;padding:1px 5px!important;border-radius:0!important}
#studioTabs{display:flex!important;flex-direction:row!important;gap:1px!important;overflow-x:auto;background:#252526;border-bottom:1px solid #007acc;flex-shrink:0}
#studioTabs button{padding:5px 10px!important;font:12px 'Segoe UI',sans-serif!important;border:0!important;border-radius:0!important;white-space:nowrap;color:#bbb!important;background:#2d2d30!important}
#studioTabs button[aria-current=page]{background:#007acc!important;color:#fff!important}#studioTabs span{display:none}
body.orb-workspace .ow-main{padding:12px!important}body.orb-workspace #owApp h1{font:500 20px/1.25 'Segoe UI',sans-serif!important;letter-spacing:0;margin-bottom:8px}body.orb-workspace #owApp h2{font-size:15px!important;margin-bottom:8px}body.orb-workspace #owApp h3{font-size:13px!important}
.ow-title-row{margin-bottom:12px!important}.ow-eyebrow{font:10px Consolas,monospace!important;margin-bottom:6px}.ow-question{font-size:17px!important;margin:10px 0!important}.ow-card{border-radius:0!important;padding:12px!important;background:#252526!important}.ow-card+.ow-card{margin-top:12px!important}.ow-grid,.ow-hypotheses{gap:10px!important}
body:not(.orb-canvas-workspace) #owApp .ow-btn,body:not(.orb-canvas-workspace) .layout-button,body:not(.orb-canvas-workspace) #worldViewport button,body:not(.orb-canvas-workspace) #owApp .cfg-btn,body:not(.orb-canvas-workspace) #studioToolbar button,body:not(.orb-canvas-workspace) .studio-explorer button{font:12px 'Segoe UI',sans-serif!important;padding:4px 8px!important;min-height:24px;border:1px solid #555;border-radius:0!important;background:#333;color:#ddd}
body:not(.orb-canvas-workspace) #owApp .ow-btn-primary{background:#0e639c!important;color:#fff!important;border-color:#007acc!important}
body:not(.orb-canvas-workspace) #owApp input,body:not(.orb-canvas-workspace) #owApp select,body:not(.orb-canvas-workspace) #owApp textarea{font:12px/1.4 'Segoe UI',sans-serif!important;padding:6px 8px!important;background:#333!important;color:#ddd!important;border:1px solid #555!important;border-radius:0!important;margin-top:4px}
#owApp textarea{min-height:90px!important}#owNotebook{min-height:200px!important}.ow-field{font-size:12px!important}.ow-form-grid{gap:10px!important;margin:10px 0!important}.ow-small,.ow-summary-list{font-size:11px!important}.ow-status{font-size:11px!important;min-height:16px!important;margin-top:6px!important}.ow-rule{margin:10px 0!important}
.ow-stats{border-radius:0!important;margin-bottom:12px!important}.ow-stat{padding:10px!important;background:#252526!important}.ow-stat b{font:24px Consolas,monospace!important;margin:3px 0!important}.ow-stat span,.ow-stat small{font-size:10px!important}.ow-step{padding:8px 0!important}.ow-step p{font-size:12px!important}
.world-head{padding:3px 8px!important;min-height:28px;gap:5px;background:#2d2d30;border-color:#444}.world-head strong{font:12px 'Segoe UI',sans-serif!important}.world-head small{display:none}.world-toolbar{top:8px;left:8px;gap:4px}.world-context{padding:8px 10px!important;background:#252526;border-color:#444;font-size:11px!important}.world-context p{font-size:10px!important;margin:3px 0 6px!important}.world-note{font-size:10px!important}
#worldAdvanced{top:40px;width:280px;height:180px;padding:8px;background:#252526;border-radius:0;border-color:#555}.panel-controls{padding:2px;margin-bottom:6px;background:#2d2d30}.layout-controls{gap:5px;font-size:10px}.layout-controls label{gap:3px}
#ov .modal,#orbResearchDialog{font:12px 'Segoe UI',sans-serif;background:#252526;color:#ddd;border-radius:0}#ov .modal input,#ov .modal select{font-size:12px;padding:6px}#ov .modal label{font-size:11px}#ov .modal h2{font-size:18px}
.studio-divider{position:absolute;right:0;top:28px;bottom:0;width:5px;cursor:col-resize;z-index:15;touch-action:none;background:#3f3f46}.studio-divider:hover,.studio-divider:focus{background:#007acc}
*{scrollbar-width:thin;scrollbar-color:#686868 #252526}
@media(min-width:1101px){body.orb-workspace:not(.orb-canvas-workspace):not(.world-expanded):not(.lab-expanded) #owApp{grid-template-columns:156px minmax(260px,var(--globe-share,48fr)) minmax(300px,var(--lab-share,52fr))!important}}
@media(max-width:1100px){.studio-divider{display:none}}
@media(max-width:650px){.studio-explorer,.ow-sidebar-foot{display:none}.ow-brand small{display:none}#studioToolbar{overflow:auto;white-space:nowrap}#studioTabs button{font-size:11px!important}.ow-sidebar{max-height:100px;overflow:auto!important}}

/* DEC-015: topic hierarchy and active brief. */
.studio-explorer details{margin:6px 0}.studio-explorer summary{cursor:pointer;color:#ccc}.studio-explorer button[aria-current=true]{background:#094771!important;color:#fff}.studio-explorer button{white-space:normal;overflow-wrap:anywhere}#briefSources{max-height:180px;overflow:auto}#briefFindings{max-height:280px;overflow:auto}#briefActions{margin-top:10px}

/* DEC-018: neutral entry; progressively disclose detail. */
#orbStart{position:absolute;inset:0;z-index:100;background:#1e1e1e;overflow:auto;color:#ddd}#orbStart[hidden]{display:none}.start-content{max-width:700px;margin:6vh auto;padding:24px}.start-content h1{font-size:25px!important}.start-content p{color:#aaa}.start-content textarea{width:100%;min-height:100px;margin:10px 0}.start-content details{margin:12px 0}.start-content summary,.brief-disclosure summary{cursor:pointer;padding:8px 0}.start-content h2{margin-top:28px!important}#startRecent{display:grid;gap:6px}#startRecent button{text-align:left}.brief-disclosure{margin:12px 0;border-top:1px solid #444}.brief-disclosure>summary{color:#75beff}body.orb-starting #studioStatus{color:transparent}body.orb-starting #studioStatus:before{content:'ORB | Ready to begin';color:white}

/* DEC-021: explorer uses user actions rather than internal record terminology. */
.explorer-help{font-size:11px!important;line-height:1.45;color:#aaa;margin:6px 0}.explorer-list-title{font-size:11px;margin:10px 0 5px;display:block}.investigation-list{display:grid;gap:4px}.investigation-item{width:100%;text-align:left;white-space:normal;padding:7px!important;line-height:1.4!important}.investigation-item span{display:block;font-size:12px}.investigation-item small{display:block;color:#aebdca;font-size:10px;margin-top:4px}.investigation-item[aria-current=true]{border-left:3px solid #75beff!important}.studio-explorer>input{width:100%;min-width:0}

/* DEC-023: sibling corner button avoids nested interactive controls. */
.investigation-card{position:relative;min-width:0}.investigation-card .investigation-item{padding-right:30px!important;min-height:38px}
#owApp .investigation-card .research-delete{position:absolute;right:3px;top:3px;width:24px;height:24px;min-height:24px;padding:0!important;border:0!important;background:transparent!important;color:#bcbcbc;font:18px/24px 'Segoe UI',sans-serif!important;text-align:center}
#owApp .investigation-card .research-delete:hover{background:#643333!important;color:#fff}#owApp .investigation-card .research-delete:focus-visible{outline:2px solid #75beff;outline-offset:0}
