/* DEC-008: one persistent globe and one lab; view changes never recreate Cesium. */
body.orb-workspace #owApp{grid-template-columns:184px minmax(300px,1fr) minmax(390px,1.05fr);background:#0a1118}
body.orb-workspace .ow-sidebar{padding:24px 12px;gap:24px}
body.orb-workspace .ow-nav button{font-size:14px;padding:11px 10px}
body.orb-workspace .ow-nav span{display:none}
body.orb-workspace .ow-body{border-left:1px solid #293b48;background:#101923;min-height:0}
body.orb-workspace .ow-topbar{padding:18px 24px;min-height:68px;position:sticky;top:0;background:#101923;z-index:2}
body.orb-workspace .ow-main{padding:25px 24px 48px}
body.orb-workspace .ow-grid,body.orb-workspace .ow-hypotheses{grid-template-columns:1fr}
body.orb-workspace .ow-stats{grid-template-columns:repeat(2,1fr)}
body.orb-workspace .ow-stat:nth-child(2){border-right:0}
body.orb-workspace .ow-stat:nth-child(-n+2){border-bottom:1px solid var(--ow-line)}
body.orb-workspace .ow-card{padding:20px}
body.orb-workspace #owApp h1{font-size:29px}
body.orb-workspace .ow-title-row{display:block}
body.orb-workspace .ow-title-row>button{margin-top:10px}
#worldPane{position:relative;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#071019;color:#e5ebef}
.world-head{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #293b48;background:#0e1821;z-index:2}
.world-head strong{font-size:16px;font-weight:500}.world-head small{display:block;color:#a4b3c0;font-size:12px}
#worldViewport{position:relative;flex:1;min-height:260px;isolation:isolate}
#worldViewport #cesiumContainer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0}
.world-toolbar{position:absolute;top:16px;left:16px;right:16px;display:flex;gap:7px;flex-wrap:wrap;z-index:3;pointer-events:none}
.world-toolbar button{pointer-events:auto;background:#10202eef;border:1px solid #49606f;border-radius:6px;color:#e5ebef;padding:9px 12px;font:13px system-ui;cursor:pointer}
.world-toolbar button:disabled{opacity:.5;cursor:not-allowed}
.world-toolbar button:focus-visible{outline:3px solid #abe9cc;outline-offset:3px}
#worldEmpty{position:absolute;inset:85px 25px auto;padding:22px;border:1px solid #415564;border-radius:10px;background:#10202eee;z-index:2}
#worldEmpty p{font-size:14px;color:#b9cad5;margin:8px 0 14px}
.world-context{padding:17px 20px;border-top:1px solid #293b48;background:#0e1821;font-size:13px;z-index:2}
.world-context p{color:#b4c3cf;margin:5px 0 12px}.world-context strong{font-weight:500}
#worldSelection{overflow-wrap:anywhere}.world-note{font-size:11px;color:#a6b6c3;margin-top:10px}
body.orb-workspace .overlay{z-index:3100}
#worldAdvanced{position:absolute;top:62px;left:12px;right:12px;max-height:65%;overflow:auto;padding:15px;background:#101d29f5;border:1px solid #465a6b;border-radius:10px;z-index:5}
#worldAdvanced .top,#worldAdvanced .qbar{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;transform:none!important;display:flex;flex-wrap:wrap;visibility:visible!important;pointer-events:auto!important;padding:8px 0!important}
#worldAdvanced .qbar{display:block}#worldAdvanced .orb-nav{display:none}#worldAdvanced .qwrap{width:100%}
#worldViewport #rp{position:absolute;top:70px;right:12px;bottom:12px;width:calc(100% - 24px);max-width:460px;z-index:6}
#worldViewport #st,#worldViewport #tst{position:absolute;left:12px;right:12px;bottom:18px;top:auto;transform:none;max-width:calc(100% - 24px);z-index:8}
body.orb-workspace #owReturn{display:none!important}
body.orb-workspace.world-expanded #owApp{grid-template-columns:184px minmax(0,1fr)}
body.orb-workspace.world-expanded .ow-body{display:none}
@media(min-width:1600px){body.orb-workspace #owApp{grid-template-columns:200px minmax(440px,1.15fr) minmax(480px,1fr)}}
@media(max-width:1100px){body.orb-workspace #owApp{grid-template-columns:160px minmax(0,1fr);grid-template-rows:minmax(280px,43%) minmax(0,1fr)}body.orb-workspace .ow-sidebar{grid-row:1 / 3}body.orb-workspace .ow-body{grid-column:2;border-top:1px solid #293b48}body.orb-workspace.world-expanded #owApp{grid-template-columns:160px minmax(0,1fr);grid-template-rows:1fr}body.orb-workspace.world-expanded #worldPane{grid-row:1 / 3}.world-context{padding:10px 16px}.world-context p{margin:3px 0}.world-note{display:none}}
@media(max-width:650px){body.orb-workspace #owApp{grid-template-columns:1fr;grid-template-rows:auto minmax(290px,40%) minmax(0,1fr)}body.orb-workspace .ow-sidebar{grid-row:auto;padding:12px;gap:10px}body.orb-workspace .ow-body{grid-column:1}.ow-sidebar-foot{display:none}.world-head{padding:10px 14px}.world-head small{display:none}.world-context .ow-actions{gap:6px}.world-context .ow-btn{padding:7px 9px}.world-head strong{font-size:14px}body.orb-workspace.world-expanded #owApp{grid-template-columns:1fr;grid-template-rows:auto 1fr}body.orb-workspace.world-expanded #worldPane{grid-row:2}.ow-form-grid{grid-template-columns:1fr}#worldViewport{min-height:140px}.world-context p{font-size:12px}}

/* DEC-009: one brand and one chat surface; HTML hidden wins over legacy styles. */
#worldAdvanced .logo{display:none}#worldAdvanced .qbar[hidden]{display:none!important}
#worldAdvanced #worldAskAtlas{margin-bottom:12px}

/* DEC-010: inherited operational controls use the same panel layout. */
#ow-operations .qbar{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;padding:0!important}
#ow-operations .qbar[hidden]{display:none!important}
#ow-operations .qwrap{width:100%}#ow-operations .qin{padding-right:100px}
#ow-operations .orb-project-sel{width:100%;position:relative}
#ow-operations .orb-project-btn{width:100%;padding:14px;justify-content:flex-start}
#ow-operations .orb-project-dd{position:relative;top:auto;left:auto;width:100%;max-height:300px;overflow:auto}
#ow-operations .basemap-bar{display:flex;flex-wrap:wrap}#ow-operations .cfg-btn{padding:10px 14px;font-size:13px}

/* DEC-011: never let an outdated operations adapter obscure the globe. */
#worldAdvanced .qbar{display:none!important}
