/* One owner for shell branding. Keep native rail/menu/search nodes and handlers. */
@layer bleuResponsiveHeader {
  @media (min-width:861px) and (pointer:fine) {
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand { display:none !important; }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > #crumb {
      display:block !important;
      flex:0 1 auto !important;
      min-width:0 !important;
      max-width:230px !important;
      margin:0 !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell .rail #bleuRailToggle {
      min-width:44px !important;
      min-height:44px !important;
    }
  }
  @media (max-width:860px), (pointer:coarse) {
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand {
      display:flex !important;
      align-items:center !important;
      flex:0 1 auto !important;
      gap:4px !important;
      width:auto !important;
      max-width:none !important;
      min-width:0 !important;
      overflow:visible !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand > .topburger {
      display:inline-flex !important;
      width:44px !important;
      height:44px !important;
      min-width:44px !important;
      min-height:44px !important;
      padding:0 !important;
      flex:none !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand > .wm {
      display:flex !important;
      opacity:1 !important;
      width:86px !important;
      min-width:0 !important;
      max-width:86px !important;
      height:auto !important;
      flex:0 1 86px !important;
      margin-inline:0 !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand > .wm :is(img,svg) {
      width:86px !important;
      min-width:0 !important;
      max-width:100% !important;
      height:auto !important;
      max-height:24px !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > .topbrand > .mc-title { display:none !important; }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar > #crumb { display:none !important; }
  }
}
@layer bleuResponsiveHeader {
  @media (max-width:860px) {
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]):not([data-claude-gs-resident]) #shell > main > .topbar #gsToggle {
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      width:44px !important;
      min-width:44px !important;
      height:44px !important;
      min-height:44px !important;
    }
  }
}

@layer bleuResponsiveHeader {
  @media(max-width:860px) {
    html[data-claude-gs-resident]:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar #gsToggle { display:none !important; }
  }
}
@layer bleuResponsiveHeader {
  @media(max-width:1100px) {
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar .op-page-tools > button {
      width:44px !important;
      min-width:44px !important;
      min-height:44px !important;
      padding:0 !important;
      justify-content:center !important;
    }
    html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar .op-page-tools > button > span {
      position:absolute !important;
      width:1px !important;
      height:1px !important;
      padding:0 !important;
      margin:-1px !important;
      overflow:hidden !important;
      clip-path:inset(50%) !important;
      white-space:nowrap !important;
    }
  }
}

/* The native touch menu retains its overlay behavior. Its rail owns the brand while open. */
@layer bleuResponsiveHeader {
 html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > main > .topbar .topbrand .mc-title { display:none !important; }
 html:not([data-in-store-mode]):not([data-onbleu-communications-chrome]) #shell > .rail.navopen + main > .topbar > .topbrand > .wm { display:none !important; }
}
