/* Form titlebars share the Breakdown panel's 32px height (16px text + 8px above/below).
   Inline legacy styles remain for colour/drag behavior; geometry is common here. */
:root {--survey-titlebar-height:32px;}
:is(.survey-titlebar,.modal-drag-handle,.planning-head,.dbg-header,.summary-window-header,
    #master-header,#default-settings-header,#work-memo-handle,#scale-import-coach .scale-coach-head,
    .cad-dialog>header,.drawing-pdf-dialog>header,.drawing-links-dialog>header,
    .easy-report>header,.easy-panel>.easy-grip,#standard-properties-pane .standard-pane-header) {
  box-sizing:border-box!important;height:var(--survey-titlebar-height)!important;
  min-height:var(--survey-titlebar-height)!important;max-height:var(--survey-titlebar-height)!important;
  flex:0 0 var(--survey-titlebar-height)!important;
  padding:0 12px!important;display:flex;align-items:center;
  font-size:12px!important;line-height:16px!important;gap:8px;
}
:is(.survey-titlebar,.modal-drag-handle,.planning-head,.dbg-header,.summary-window-header,
    #master-header,#default-settings-header,#work-memo-handle,
    .cad-dialog>header,.drawing-pdf-dialog>header,.drawing-links-dialog>header,.easy-report>header) > :is(span:first-child,strong,b) {
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px!important;line-height:16px!important;
}
:is(.survey-titlebar,.planning-head,.dbg-header,.summary-window-header,
    #master-header,#default-settings-header,#work-memo-handle,
    .cad-dialog>header,.drawing-pdf-dialog>header,.drawing-links-dialog>header,.easy-report>header) button {
  box-sizing:border-box!important;min-height:24px!important;height:24px!important;
  min-width:24px;padding:0 4px!important;line-height:20px!important;flex-shrink:0;
}
.summary-window-actions button {width:24px;font-size:16px!important;background:none!important;border:0!important;color:inherit!important;}
.summary-window-actions button:hover {background:#ffffff24!important;}
.summary-window-actions button:focus-visible {outline:1px solid currentColor;outline-offset:-2px;}
@media print {.summary-window-actions {display:none;}}
