/* One workbench: the viewport and inspector stay mounted across resource tabs. */
:root{--muted:#8da5bb;--line:rgba(145,183,214,.18)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.topbar{height:64px;gap:24px}.brand{min-width:0}.brand strong{font-size:15px}.page-title{display:flex;align-items:center;gap:16px;border-left:1px solid var(--line);padding-left:24px}.page-title h1{font-size:16px;font-weight:600;margin:0}.page-title>span{color:var(--muted);font-size:11px}.header-button{color:var(--text);background:#112638;border:1px solid var(--line);padding:8px 13px;border-radius:6px}.header-button:hover{border-color:var(--blue)}
.workspace{grid-template-columns:minmax(0,1fr) 328px;height:calc(100% - 64px);min-height:0}.center{overflow:hidden}.modelbar{flex:0 0 68px;display:flex;align-items:center;justify-content:space-between;padding:12px 22px;gap:14px;border-bottom:1px solid var(--line);background:#0b1928}.model-heading{display:flex;align-items:center;gap:12px;min-width:0}.model-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #29566a;background:#12303c;color:var(--cyan);border-radius:8px;font-size:23px}.model-heading b{font-size:14px;font-weight:600}.model-heading small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.model-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.model-badges>span{padding:5px 8px;border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--muted)}.model-badges .ready-status{color:var(--cyan);background:#0e2d32;border-color:#265050}
.viewport{flex:1 1 0;min-height:180px}.view-tag{top:18px;font-size:10px}.toolbox{gap:6px}.toolbox button{width:36px;height:34px;font-size:17px}.stats .stat{min-width:100px}.load-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;padding:20px 28px;text-align:center;background:#102538;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);color:var(--cyan)}.load-status b,.load-status span{display:block}.load-status span{font-size:11px;color:var(--muted);margin-top:9px}.load-status[hidden]{display:none}
.bottom{height:258px;flex:0 0 258px;padding:0;display:flex;flex-direction:column;transition:flex-basis .18s ease;z-index:5;min-height:0;overflow:hidden}.resource-header{flex-shrink:0;min-height:49px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 16px;gap:10px}.resource-tabs{display:flex;gap:20px;align-self:stretch;min-width:0}.resource-tabs>button{position:relative;display:flex;gap:7px;align-items:center;background:none;color:var(--muted);font-size:12px;white-space:nowrap;padding:0 2px}.resource-tabs>button[aria-selected="true"]{color:var(--text)}.resource-tabs>button[aria-selected="true"]:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-1px;background:var(--cyan)}.resource-tabs span{font-size:10px;min-width:19px;text-align:center;background:#183044;border-radius:4px;padding:2px 4px}.resource-tabs>button[aria-selected="true"] span{background:#16434b;color:var(--cyan)}#toggleResources{white-space:nowrap;flex-shrink:0}.resource-panel{padding:12px 16px;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.resource-panel[hidden]{display:none!important}.bottom.is-collapsed{height:49px;flex-basis:49px}.bottom.is-collapsed .resource-panel{display:none}.bottom-head{margin-bottom:8px}.bottom-head b{font-size:11px}.bottom-head span{font-size:10px}.data-table{min-width:660px;font-size:11px}.data-table td{height:33px;padding:8px}.data-table th{padding:7px 8px}.data-table .tag{white-space:nowrap}.data-table td:first-child{white-space:nowrap}.table-scroll{overscroll-behavior:contain}
.resource-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-bottom:10px}.resource-tools input,.resource-tools select{height:32px;min-width:0;border:1px solid var(--line);border-radius:5px;padding:6px 9px;background:#0a1623;color:var(--text);font-size:11px}.resource-tools input{width:260px}.resource-tools select{width:125px}.resource-hint{color:var(--muted);font-size:11px;white-space:nowrap;margin-left:auto}.action-button{padding:8px 11px;border-radius:5px;background:#1a4753;color:var(--cyan);font-size:11px;white-space:nowrap}.action-button.secondary{background:#172d41;color:var(--blue)}.resource-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:8px;overflow:auto;overscroll-behavior:contain;margin:0;min-height:0;flex:1;padding-right:4px}.resource-list .manage-item{min-height:59px;padding:9px 11px}.manage-item[aria-pressed="true"]{border-color:var(--cyan);background:#15333e}.manage-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manage-item small{font-size:10px}.resource-list .empty-message{grid-column:1/-1;margin:12px 0}.versions-layout{flex:1;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:16px;min-height:0}.versions-layout .manage-list{margin:0;overflow:auto;min-height:0;align-content:start}.version-detail{margin:0;overflow:auto;font-size:11px;line-height:1.9;padding:10px 14px;background:#0c1b2a;white-space:pre-wrap}.version-note{color:var(--muted);font-size:10px;margin-bottom:9px}.rightbar{min-height:0;overflow:auto;overscroll-behavior:contain}.rightbar .panel-head{min-height:47px;position:sticky;top:0;z-index:8;background:#0c1b2a}.rightbar .object-card{padding:18px}.annotation-editor .manage-actions{margin-top:9px}.field input,.field select{min-width:0}.rightbar .annotation-lock{font-size:11px;line-height:1.7}.info-item label{font-size:11px}.info-item strong{font-size:11px}.rel-item{cursor:pointer}
dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid #35566b;border-radius:12px;background:#0d1b2a;color:var(--text);box-shadow:0 30px 100px #0009;overflow:auto}dialog::backdrop{background:#030b16b3;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-header small{font-size:10px;color:var(--cyan);letter-spacing:1px}.dialog-header h2{font-size:19px;margin:5px 0 0}.dialog-close{background:#152c3e;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:23px;width:32px;height:32px}.metadata{border:0;padding:20px 16px 4px}.metadata .meta-title{display:none}.metadata .field{margin-bottom:14px}.metadata .field label{font-size:12px}.metadata .field input,.metadata .field select{padding:10px}.metadata .save-btn{padding:11px;margin-top:5px}.dialog-note{color:var(--muted);font-size:11px;margin:12px 24px 24px;line-height:1.7}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 350px}.resource-list{grid-template-columns:repeat(4,minmax(0,1fr))}.bottom{height:275px;flex-basis:275px}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 285px}.modelbar{padding:10px 16px}.model-badges>span:nth-child(2){display:none}.resource-tabs{gap:13px}.resource-tools input{width:190px}.resource-list{grid-template-columns:repeat(2,minmax(0,1fr))}.page-title>span{display:none}.stats .stat{min-width:83px}.legend{display:none}.bottom{height:255px;flex-basis:255px}.view-tag{top:72px}.resource-tools{flex-wrap:wrap}.resource-tools input{flex:1 1 150px}.resource-tools select{flex:0 0 120px}}
@media(max-height:700px) and (min-width:761px){.modelbar{flex-basis:58px}.bottom{height:215px;flex-basis:215px}.stats{bottom:10px}.stat{padding:5px 8px}.viewport{min-height:130px}}
@media(max-width:760px){html{height:auto;overflow:auto}body{height:auto;min-height:100vh;overflow:visible}.app{height:auto;min-height:100vh}.topbar{height:60px;padding:0 12px;gap:12px;position:sticky;top:0;z-index:20}.brand{gap:6px}.brand strong{display:none}.page-title{padding-left:12px;gap:0}.page-title h1{font-size:14px}.avatar{display:none}.top-actions{gap:7px}.top-actions .icon-btn{width:30px}.header-button{font-size:11px;padding:7px 9px}.workspace{height:auto;grid-template-columns:1fr}.center{height:auto;overflow:visible}.modelbar{min-height:72px;flex-basis:auto;flex-wrap:wrap;gap:8px}.model-heading b{font-size:12px}.model-heading small{font-size:10px}.model-badges{gap:5px}.model-badges span{font-size:9px}.model-icon{width:30px;height:30px}.viewport{height:440px;min-height:440px;flex:none}.bottom{height:300px;flex:none;min-height:0}.bottom.is-collapsed{height:49px}.resource-header{padding:0 10px;gap:8px}.resource-tabs{gap:12px;overflow-x:auto;min-height:49px}.resource-tabs>button{font-size:11px}.resource-tabs span{font-size:9px;min-width:15px;padding:2px}.resource-panel{padding:10px}.rightbar{max-height:none;height:auto;overflow:visible;border-left:0;border-top:1px solid var(--line)}.rightbar .panel-head{position:static}.resource-list{max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.manage-item strong{font-size:11px}.resource-hint{font-size:10px}.versions-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.version-detail{font-size:10px;padding:8px}.view-tag{right:12px}.stats{left:12px;bottom:12px}.toolbox{left:12px;gap:4px}.toolbox button{width:32px}.resource-tools{gap:6px}.resource-tools input{flex-basis:140px}.model-badges>span:nth-child(2){display:none}}
@media(prefers-reduced-motion:reduce){.bottom{transition:none}}
