/* Visual separation only; retain native dialog layout and interaction. */
#builder-app dialog[aria-labelledby="section-update-title"]{
  border-color:var(--gold);
  background:var(--surface);
  box-shadow:0 8px 24px #0005;
}
#builder-app dialog[aria-labelledby="section-update-title"]::backdrop{
  background:rgba(0,0,0,.22);
}

/* Shared direct-edit confirmations: all sections, including Camera.
   Grid applies only while open so closed native dialogs stay hidden. */
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"]){
  box-sizing:border-box;
  width:min(460px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  padding:24px;
  overflow:auto;
}
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"])[open]{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"])>h2{
  margin:0;line-height:1.25;overflow-wrap:anywhere;
}
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"])>p{
  margin:0 0 4px;line-height:1.55;overflow-wrap:anywhere;
}
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"])>button{
  width:100%;min-width:0;min-height:48px;margin:0;
  white-space:normal;overflow-wrap:anywhere;line-height:1.4;
}
#builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"])>button:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;
}
@media(max-width:380px){
  #builder-app dialog:is([aria-labelledby="section-update-title"],[aria-labelledby="prompt-restore-title"]){padding:20px}
}
