/* One header geometry for the report hub and every report. */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; height: 72px; min-height: 72px; padding: 0 32px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-panel); }
.app-header :is(.brand,.live-brand) { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--color-text); text-decoration: none; }
.app-header .brand-lockup { display: block; flex: 0 0 auto; }
.app-header :is(.brand img,.brand-logo) { display: block; flex: 0 0 auto; width: 104px; height: 26px; object-fit: contain; }
.app-header :is(.brand-divider,.live-brand-divider) { display: block; flex: 0 0 1px; width: 1px; height: 25px; background: var(--border-subtle); }
.app-header .brand-name { display: flex; align-items: baseline; flex-direction: row; gap: 4px; min-width: 0; margin: 0; color: var(--color-text); font: inherit; font-size: 14px; font-weight: 400; line-height: 1.25; letter-spacing: -.2px; white-space: nowrap; }
.app-header .brand-name .brand-prefix { color: inherit; font-size: inherit; font-weight: 400; line-height: inherit; letter-spacing: inherit; text-transform: none; }
.app-header .brand-name strong { color: inherit; font-size: inherit; font-weight: 750; line-height: inherit; letter-spacing: inherit; }
.app-header .header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; margin-left: auto; }
.app-header .header-actions > button { min-height: 40px; height: 40px; font-size: 12px; }
.app-header .header-actions > .icon-button { width: 40px; }
.app-header .header-actions > .user-badge { margin-left: 0; }
.app-header .header-actions > .user-badge > .user-initials { display: inline-grid; }
@media (max-width: 1000px) {
  .app-header .header-actions :is(.user-badge-name,.user-badge>svg) { display: none; }
}
@media (max-width: 760px) {
  .app-header { --mobile-brand-height: 20px; --mobile-brand-font: 10px; --mobile-brand-gap: 8px; --mobile-action-size: 30px; --mobile-action-gap: 5px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; height: 52px; min-height: 52px; padding: 8px 12px; }
  .app-header :is(.brand,.live-brand) { gap: var(--mobile-brand-gap); }
  .app-header :is(.brand img,.brand-logo) { width: calc(var(--mobile-brand-height)*4.75); height: var(--mobile-brand-height); }
  .app-header :is(.brand-divider,.live-brand-divider) { display: none; }
  .app-header .brand-name { flex: 1; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 0; height: var(--mobile-brand-height); font-size: var(--mobile-brand-font); line-height: calc(var(--mobile-brand-height)/2); }
  .app-header .brand-name > :is(span,strong) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-header .header-actions { justify-content: flex-end; gap: var(--mobile-action-gap); margin: 0; }
  .app-header .header-actions > :is(.secondary-button,.primary-button,.icon-button,.user-badge) { flex: 0 0 var(--mobile-action-size); width: var(--mobile-action-size); height: var(--mobile-action-size); min-height: var(--mobile-action-size); padding: 6px; margin: 0; border-radius: 7px; }
  .app-header .header-actions > button > span:not(.user-initials) { display: none; }
  .app-header .header-actions > :is(.secondary-button,.primary-button,.icon-button) > svg { display: block; width: 16px; height: 16px; }
  .app-header .header-actions > .user-badge { border: 1px solid var(--border-subtle); background: var(--surface-panel); padding: 2px; }
  .app-header .header-actions > .user-badge > .user-initials { display: inline-grid; width: calc(var(--mobile-action-size) - 6px); height: calc(var(--mobile-action-size) - 6px); font-size: 9px; }
}
@media (min-width: 400px) and (max-width: 760px) {
  .app-header { --mobile-brand-height: 22px; --mobile-brand-font: 11px; }
}
@media (max-width: 359px) {
  .app-header { --mobile-brand-height: 18px; --mobile-brand-font: 9px; --mobile-brand-gap: 6px; --mobile-action-size: 28px; --mobile-action-gap: 4px; column-gap: 5px; padding-inline: 10px; height: 48px; min-height: 48px; }
}
