/* One mobile CRM header for all staff roles and pages in Main and Pilot. */
@media (max-width:760px) {
  .redesign-shell .top.compact-mobile-top {
    position:relative!important;
    top:auto!important;
    z-index:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
    align-items:center!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    box-sizing:border-box!important;
    gap:8px!important;
    margin:0 0 12px!important;
    padding:10px 12px!important;
    border:1px solid rgba(225,217,209,.96)!important;
    border-radius:18px!important;
    background:rgba(255,253,249,.96)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:0 8px 24px rgba(80,62,47,.045)!important;
  }
  .redesign-shell .mobile-brand-block {
    position:static!important;
    transform:none!important;
    display:grid!important;
    align-self:center!important;
    justify-self:start!important;
    min-width:0!important;
    margin:0!important;
    text-align:left!important;
  }
  .redesign-shell .brand-mobile {
    display:block!important;
    font-size:22px!important;
    line-height:1!important;
  }
  .redesign-shell .mobile-brand-sub {
    margin-top:4px!important;
    font-size:7px!important;
    letter-spacing:.18em!important;
    white-space:nowrap;
  }
  .redesign-shell .mobile-right-stack {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    align-content:center!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    gap:4px!important;
  }
  .redesign-shell .top-user.profile-link {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    text-align:right!important;
    overflow:visible!important;
  }
  .redesign-shell .top-user strong {
    display:block!important;
    max-width:100%!important;
    font-size:11.5px!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere;
    text-overflow:clip!important;
  }
  .redesign-shell .top-actions {
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:5px!important;
  }
  .redesign-shell .top-actions button {
    flex:none!important;
    width:auto!important;
    min-width:38px!important;
    height:38px!important;
    padding:0 9px!important;
    font-size:13px!important;
    border-radius:11px!important;
  }
  .redesign-shell #logout {
    min-width:56px!important;
    margin:0!important;
  }
}
/* The journal intentionally hides its header to reserve room for the grid. */
@media (max-width:760px) {
  body.journal-screen .redesign-shell .top.compact-mobile-top {display:none!important}
}
@media (max-width:350px) {
  .redesign-shell .brand-mobile{font-size:20px!important}
  .redesign-shell .top-actions button{min-width:34px!important;height:36px!important;padding:0 7px!important}
}
