/* One simulator header contract. Only presentation: existing handlers/IDs stay local. */
.dba-header.dba-header {
  box-sizing: border-box;
  display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4) var(--space-5); min-height: 94px;
  padding: var(--space-4) var(--space-5);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); font-family: var(--font-ui);
}
.dba-header :is(.brand, .lock-brand, .header-identity) {
  display: flex; align-items: center; gap: var(--space-3); min-width: 0;
}
.dba-header :is(.brand-mark, .lock-mark) {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: var(--radius-control);
  background: var(--accent-soft); color: var(--accent-text);
  font: 650 22px/1 var(--font-ui);
}
.dba-header :is(.brand-kicker, .eyebrow) {
  margin: 0; color: var(--muted); font: 650 10px/14px var(--font-ui);
  letter-spacing: .07em; white-space: normal;
}
.dba-header :is(h1, .brand-title) {
  margin: 0; padding: 0; color: var(--text); font: 650 20px/26px var(--font-ui);
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.dba-header :is(.brand-sub, .brand-status, .header-description, .brand p) {
  display: block; margin: 0; color: var(--muted);
  font: 400 12px/18px var(--font-ui); letter-spacing: 0;
}
.dba-header :is(.brand-copy, .lock-brand-copy, .brand > div, .header-identity > div:last-child) { min-width: 0; }
.dba-header :is(.header-actions, .top-actions, .utilities, .topbar-actions) {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  gap: var(--space-2); max-width: none; margin: 0;
}
.dba-header.dba-header :is(button, a, select) {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; min-height: 42px; height: 42px;
  padding: 0 var(--space-3); border: 1px solid var(--border);
  border-radius: var(--radius-control); background: var(--surface);
  color: var(--text); box-shadow: none; font: 500 14px/20px var(--font-ui);
  letter-spacing: 0; text-decoration: none; white-space: nowrap; gap: 6px;
}
.dba-header.dba-header :is(button, a, select):hover { background: var(--surface-soft); border-color: var(--muted); color: var(--text); }
.dba-header :is(button, a, select):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dba-header button:disabled { opacity: .5; cursor: not-allowed; }
.dba-header :is(.clock, .mode-control) { color: var(--muted); font-size: 12px; }
.dba-header .mode-control { order: 1; }
.dba-header :is(.lock-topbar-spacer, .topbar-spacer) { display: none; }
.dba-header .header-brand-row { flex: 0 1 auto; min-width: 0; }
/* Static simulators nest the header; React simulators already use a 12px top gutter. */
:is(main, .workspace):has(> .dba-header) { padding-top: var(--space-3); }
.workspace > .dba-header { width: calc(100% + 8px); margin-inline: -4px; }
@media (min-width: 761px) and (max-width: 1050px) {
  .workspace > .dba-header { width: calc(100% - 16px); margin-inline: 8px; }
}
@media (max-width: 1100px) {
  .dba-header.dba-header { align-items: flex-start; }
  .dba-header :is(.header-actions, .top-actions, .utilities, .topbar-actions) { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .dba-header.dba-header { flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
  .dba-header > :is(.brand, .lock-brand, .header-brand-row) { width: 100%; }
  :is(main, .workspace) > .dba-header { width: calc(100% - 4px); margin-inline: 2px; }
  .dba-header :is(.header-actions, .top-actions, .utilities, .topbar-actions) { width: 100%; }
}
