body > header, main > h1, main > .intro { display:none; }
body { margin:0; }
body:has(#inspection) {
  --panel:#242a25; --line:#434a41; --muted:#b9c0b5;
  background:#191d1a; color:#ebeee8; min-height:0; max-width:none; padding:0;
}
main:has(#inspection) { min-height:0; padding:8px 12px; margin:0; }
#setup:not([open]), #photo-model { display:none; }
#inspection { margin-top:6px; }
#inspection .viewer-bar { gap:6px 12px; }
#surface { height:clamp(190px,39vw,380px); }
#status { font-size:.8rem; color:var(--muted); background:transparent; padding:0; }
/* The original controls and their event handlers stay mounted in both views. */
.chat-focus body:has(#inspection) main { padding:0; }
.chat-focus #inspection { margin:0; }
.chat-focus #inspection > :not(#surface), .chat-focus #setup,
.chat-focus body:has(#inspection:not([hidden])) #status { display:none; }
.chat-focus #surface { height:clamp(210px,45vw,480px); border-radius:0; }
.chat-focus body:has(#scene) { padding:0; margin:0; }
.chat-focus body:has(#scene) :is(sa-navigation,.personal-toolbar,header,footer),
.chat-focus body:has(#scene) main > :not(.workspace),
.chat-focus .workspace > :not(.viewer),
.chat-focus .viewer > :not(.canvas-wrap),
.chat-focus .canvas-wrap > :not(canvas) { display:none !important; }
.chat-focus body:has(#scene) main, .chat-focus .workspace, .chat-focus .viewer { display:block; padding:0; margin:0; border:0; max-width:none; }
.chat-focus body .viewer .canvas-wrap { height:100dvh; width:100%; min-height:0 !important; max-height:none !important; aspect-ratio:auto !important; border:0; }
.chat-focus body:has(.image-world-panel[open]:not([data-built])) main > .image-world-panel { display:block !important; padding:0; margin:0; border:0; }
.chat-focus body:has(.image-world-panel[open]:not([data-built])) main > .workspace,
.chat-focus .image-world-panel > :not(canvas,output) { display:none !important; }
.chat-focus .image-world-panel > canvas { width:100% !important; object-fit:contain; }
.chat-focus [data-chat-path]:not(canvas) > :not([data-chat-path]) { display:none !important; }

.chat-advanced .personal-embedded main > :is(.intro,.project-library) { display:block; }
.chat-advanced body:has(#inspection) #setup { display:block; }
.chat-focus #surface { height:100dvh; width:100%; display:block; }
