/* Scoped, comfortable large view with visible margins — not browser fullscreen. */
body.radar-preview-open{overflow:hidden}
.radar-workbench #radar-preview{box-sizing:border-box;width:calc(100vw - 48px);max-width:1600px;height:calc(100dvh - 48px);max-height:1100px;margin:auto;padding:0;border:1px solid #b1a6d4;color:#fff;background:#302466;overflow:hidden;font-family:inherit}
#radar-preview::backdrop{background:rgb(9 12 38 / .78)}
#radar-preview[open]{display:flex;flex-direction:column}
#radar-preview .radar-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;background:#1a237e;flex:none}
#radar-preview .radar-preview-bar h2{font-size:16px;line-height:1.4;margin:0}
#radar-preview .radar-preview-bar button{flex:none;background:#ff5722;color:#fff;min-height:44px}
#radar-preview .radar-preview-content{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
body.radar-workbench #radar-preview #semet-viewer{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0}
body.radar-workbench #radar-preview #semet-stage{flex:1;height:auto;min-height:0;background:#302466}
body.radar-workbench #radar-preview #semet-selected{padding:4px 10px;font-size:12px;max-height:42px;overflow:auto;flex:none}
body.radar-workbench #radar-preview #image-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:8px;margin:0;border:0;overflow:hidden}
body.radar-workbench #radar-preview #image-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;margin:0}
#radar-preview .radar-preview-trigger{display:none}
#image-stage,#semet-stage{cursor:zoom-in}
#radar-preview #semet-stage{cursor:default}
.radar-preview-trigger{font-size:12px;margin:0 0 5px}
.semet-camera-controls .radar-preview-trigger{margin:0 0 0 auto}
@media(max-width:700px){
 .radar-workbench #radar-preview{width:calc(100vw - 8px);height:calc(100dvh - 24px);max-width:none;max-height:none}
 #radar-preview .radar-preview-bar{padding:6px 8px;gap:6px}
 #radar-preview .radar-preview-bar h2{font-size:12px}
 #radar-preview .radar-preview-bar button{font-size:12px;padding:6px 8px}
 body.radar-workbench #radar-preview #semet-selected{font-size:10px;max-height:30px}
 body.radar-workbench #radar-preview #image-stage{padding:0}
 .semet-camera-controls .radar-preview-trigger{padding:5px;font-size:11px}
}
