/* EPA V60 - Mobile navigation regression fix.
   This only affects the masthead; property cards, consultant avatars,
   stories, speech controls and all underlying workflows stay unchanged. */
@media (max-width:850px) {
  .topbar {
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
    grid-template-areas:"menu brand actions" "search search search"!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:8px!important;
    height:auto!important;
    min-height:0!important;
    padding:9px 12px 10px!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  .topbar > .mobile-menu {
    grid-area:menu;
    width:38px!important;
    height:38px!important;
    margin:0!important;
    min-width:38px!important;
    padding:6px!important;
    justify-content:center!important;
    align-items:center!important;
  }
  .topbar > .brand {
    grid-area:brand;
    flex:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    gap:5px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  .topbar > .brand .epa-network-logo {
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }
  .topbar > .brand .brand-wordmark {min-width:0!important;overflow:hidden!important;}
  .topbar > .brand .brand-name {font-size:26px!important;line-height:1!important;}
  .topbar > .brand .brand-tagline {
    font-size:7px!important;
    line-height:1.3!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  .topbar > .top-actions {
    grid-area:actions;
    display:flex!important;
    align-items:center!important;
    flex:none!important;
    flex-wrap:nowrap!important;
    width:auto!important;
    max-width:100%!important;
    gap:5px!important;
    margin:0!important;
    min-width:0!important;
  }
  .topbar > .top-actions > .circle-btn {
    flex:0 0 36px!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
  }
  .topbar > .top-actions > .user-account {
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    gap:5px!important;
    margin:0!important;
    padding:0!important;
    min-width:0!important;
    max-width:108px!important;
    white-space:nowrap!important;
  }
  .topbar > .top-actions > .user-account .avatar,
  .topbar > .top-actions > .user-account .avatar-placeholder {
    box-sizing:border-box!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
    flex:0 0 34px!important;
  }
  .topbar > .top-actions > .user-account .user-text {
    display:block!important;
    min-width:0!important;
    max-width:59px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9px!important;
  }
  .topbar > .top-actions > .user-account .user-text small {
    display:block!important;
    min-width:0!important;
    max-width:59px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:7px!important;
    margin-top:1px!important;
  }
  .topbar > .top-actions > .user-account > span:last-child {
    display:none!important;
  }
  .topbar > .searchbar {
    grid-area:search;
    order:0!important;
    flex:none!important;
    flex-basis:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    height:48px!important;
  }
}
@media (max-width:360px) {
  .topbar > .top-actions > .user-account .user-text {display:none!important;}
  .topbar > .brand .brand-name {font-size:25px!important;}
  .topbar > .brand .epa-network-logo {width:36px!important;height:36px!important;flex-basis:36px!important;}
}
