/* Full-width shell; responsive links stay in normal flow. */
.app-header { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 8px 24px; border-bottom: 1px solid var(--erh-border); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand__logo { display: block; width: 160px; height: 46px; object-fit: cover; object-position: center 52%; }
.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-width: 0; }
.app-nav a, .app-nav button { display: inline-flex; align-items: center; min-height: 44px; color: var(--erh-text); font-size: 16px; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; }
.app-nav .is-active { text-decoration: underline; text-underline-offset: 6px; }
.page-shell { width: 100%; min-width: 0; }
.account-header-links { display: contents; }
.mobile-menu-button { display: none; }
@media (max-width: 759px) {
  .app-header { padding: 8px 16px; gap: 4px 12px; }
  .brand__logo { width: 132px; height: 40px; }
  .app-nav { width: 100%; gap: 4px 16px; }
  .has-mobile-menu .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; font: inherit; color: var(--erh-text); background: var(--erh-surface); border: 1px solid var(--erh-border); border-radius: 4px; }
  .has-mobile-menu .account-header-links { display: none; width: 100%; }
  .has-mobile-menu.is-menu-open .account-header-links { display: grid; gap: 8px; padding: 8px 0; border-top: 1px solid var(--erh-border); }
  .has-mobile-menu .app-nav { display: grid; grid-template-columns: 1fr; gap: 0; }
  .has-mobile-menu .account-mode-switch { min-height: 44px; align-items: center; }
  .has-mobile-menu .account-mode-switch:not([hidden]) { display: inline-flex; }
}
