/* One Worker Portal header, based on Home. No per-route logo/identity corrections. */
body:not([data-worker-portal-shell]) :is([data-worker-detail-identity],[data-worker-detail-nav]) { display: none; }
@media (max-width: 699px) {
  body[data-worker-portal-shell][data-presentation-role="worker"] > .worker-portal-header {
    height: 59px; min-height: 59px; box-sizing: border-box;
    background: var(--surface); color: var(--navy);
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header-inner {
    display: flex; width: calc(100% - 24px); max-width: none; height: 58px; min-height: 58px;
    margin: 0 auto; padding: 0; gap: 8px; align-items: center; justify-content: space-between; box-sizing: border-box;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .brand {
    display: flex; min-width: 0; gap: 9px; align-items: center; flex: 0 1 auto;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .company-logo {
    display: flex; width: 34px; height: 34px; flex: 0 0 34px; font-size: 0;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .company-logo img {
    display: block; width: 34px; height: 34px; max-width: 34px; object-fit: contain;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header :is(.company-logo,.brand-copy)::before { content: none; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .brand-copy { display: flex; order: initial; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .brand-copy strong {
    display: block; color: var(--navy); font-size: 17px; font-weight: 850; line-height: 1.2; white-space: nowrap;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header :is(.brand-copy small,.admin-mobile-page-title,.detail-portal-link) { display: none; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header-actions {
    display: flex; min-width: 0; max-width: none; flex: 0 0 auto; gap: 4px; align-items: center;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu { min-width: 0; max-width: none; order: 0; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary {
    display: flex; width: auto; min-width: 0; max-width: none; height: 44px; min-height: 44px;
    padding: 4px; gap: 4px; align-items: center; box-sizing: border-box;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary > span:nth-child(2) { display: flex; min-width: 0; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary strong {
    color: var(--navy); font-size: 13px; line-height: 1.2; max-width: 52px;
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary b {
    margin: 0; padding: 2px 4px; font-size: 9px; line-height: normal; color: var(--navy); background: var(--surface-soft, #edf2f8);
  }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary :is(small,.auth-user-chevron) { display: none; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary > .material-symbols-rounded:first-child { font-family: 'Material Symbols Rounded'; font-size: 20px; }
  body[data-worker-portal-shell][data-presentation-role="worker"] .worker-portal-header .auth-user-menu summary > .material-symbols-rounded:first-child::before { content: none; }
  body[data-worker-portal-shell].admin-page .admin-shell { height: calc(100dvh - 59px); }
  body[data-worker-portal-shell].detail-page .detail-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
