/* Original-image editor occupies its own canvas dialog; controls never overlay
   room geometry, labels are opt-in and only the selected entity is prominent. */
#bobao-image-board .bib-room-dialog:has(.white-source-editor){width:min(1440px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-main{grid-template-columns:minmax(0,1fr) 292px;gap:18px}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-stage{min-width:0}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-source{background:#202125;min-height:300px;max-height:calc(100dvh - 250px)}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-sidebar{display:block;width:auto;max-height:calc(100dvh - 242px);overflow-y:auto;overscroll-behavior:contain;padding-right:8px}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-sidebar-head{display:block}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-sidebar-head h3{margin:0 0 10px}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-view-scale{color:#e1d8ca}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-list{max-height:180px;overflow-y:auto}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools label{flex-basis:100%;font-size:12px;color:#c9c2b9}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools .bib-check{display:flex;flex-direction:row;align-items:center;gap:6px;color:inherit;margin:4px 0}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools input[type=checkbox]{width:14px;height:14px;flex:none}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools select{max-width:100%;min-width:0}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools button{font-size:12px;padding:7px 9px}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-add-tools button[aria-pressed=true]{background:#a87850;color:#fff5e7;border-color:#c9a37d}
#bobao-image-board .bib-room-dialog .white-source-editor .white-entity-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
#bobao-image-board .bib-room-dialog .white-source-editor .white-entity-actions button{font-size:12px}
#bobao-image-board .bib-room-dialog .white-source-editor .white-entity-warning{border-left:3px solid #df9b82!important}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-issues{max-height:210px;overflow:auto}
#bobao-image-board .bib-room-dialog .white-source-editor #bib-room-issues p{font-size:12px;margin:9px 0}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-inspector h3{font-size:14px}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-hint{min-height:36px;font-size:12px;color:#c9c2b9}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-source .white-tracing{cursor:crosshair;touch-action:none}
#bobao-image-board .bib-room-dialog .white-source-editor .bib-room-footer{flex-wrap:wrap}
#bobao-image-board .bib-room-dialog .white-source-editor .studio-room-basis,.white-source-editor .studio-entity-evidence{font-size:12px}
@media(max-width:760px){
 #bobao-image-board .bib-room-dialog:has(.white-source-editor){width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-main{display:grid;grid-template-columns:1fr;gap:12px}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-source{min-height:260px;max-height:44dvh}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-sidebar{max-height:32dvh;border-top:1px solid #454443;padding:10px 2px 0}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-toolbar{flex-wrap:wrap;gap:6px}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-toolbar button{font-size:12px;padding:6px 8px}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-stage-controls{flex-wrap:wrap;gap:6px}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-footer-actions{display:flex;flex-wrap:wrap;gap:6px}
 #bobao-image-board .bib-room-dialog .white-source-editor .bib-room-submit-notice{font-size:11px}
}
