/* Load last. Header must stay inside content width, including Tasks-specific overrides. */
.cw-ops.rf-root .rf-globalbar {
  box-sizing:border-box; width:auto!important; max-width:none; min-width:0;
  display:flex; flex-wrap:nowrap; align-items:center; gap:clamp(6px,1vw,12px);
}
@media(min-width:851px) {
 .cw-ops.rf-root .rf-globalbar {left:0!important;right:220px!important;padding-inline:18px!important}
 .cw-ops.rf-root.rf-sidebar-collapsed .rf-globalbar,
 .cw-ops.rf-root.ot-nav-collapsed .rf-globalbar {right:0!important;padding-inline-end:58px!important}
}
.cw-ops.rf-root .rf-globalbar .cw-user-context {
  flex:1 1 0;min-width:0;max-width:none;gap:8px;
}
.cw-ops.rf-root .rf-globalbar .rf-avatar {flex:0 0 36px;width:36px;height:36px}
.cw-ops.rf-root .rf-globalbar .rf-greeting {flex:0 1 150px;min-width:0;max-width:150px}
.cw-ops.rf-root .rf-globalbar .cw-company-context {flex:1 1 180px;min-width:0;max-width:260px;gap:8px}
.cw-ops.rf-root .rf-globalbar .cw-company-copy {flex:1 1 0;min-width:0;max-width:100%}
.cw-ops.rf-root .rf-globalbar :is(.cw-company-copy strong,.cw-company-copy small,.rf-greeting>span) {
 display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cw-ops.rf-root .rf-globalbar .rf-global-search {flex:0 1 240px;min-width:0;max-width:240px;width:20vw}
.cw-ops.rf-root .rf-globalbar .rf-header-date {flex:0 0 auto;margin-inline-start:0;font-variant-numeric:tabular-nums}
.cw-ops.rf-root .rf-globalbar .ops-header-actions {flex:0 0 auto;min-width:0;margin-inline-start:0;gap:8px}
.cw-ops.rf-root .rf-globalbar .ops-header-actions>button {flex-shrink:0}
/* Compact before the sidebar-constrained header can overflow into the brand. */
@media(min-width:851px) and (max-width:1180px) {
 .cw-ops.rf-root .rf-globalbar .rf-global-search {display:none}
 .cw-ops.rf-root .rf-globalbar .cw-company-mark {display:none}
 .cw-ops.rf-root .rf-globalbar .rf-greeting {flex-basis:115px}
 .cw-ops.rf-root .rf-globalbar .rf-header-date {max-width:105px;white-space:normal;line-height:1.35}
}
@media(max-width:850px) {
 .cw-ops.rf-root .rf-globalbar {left:0!important;right:0!important;padding:8px 66px 8px 12px!important}
 .cw-ops.rf-root .rf-globalbar .rf-global-search,
 .cw-ops.rf-root .rf-globalbar .rf-header-date {display:none}
 .cw-ops.rf-root .rf-globalbar .cw-user-context {max-width:none;gap:6px}
 .cw-ops.rf-root .rf-globalbar .cw-company-context {min-width:0;max-width:none;padding-inline-start:6px}
 .cw-ops.rf-root .rf-globalbar .cw-company-mark {display:none}
 .cw-ops.rf-root .rf-globalbar .rf-greeting {flex-basis:90px}
 .cw-ops.rf-root .rf-globalbar .ops-header-actions {gap:5px}
}
/* No overflow:hidden on the bar: notification/search popovers must remain usable. */
