
/* BF_CREATE_RESPONSIVE_V8 */

/* Desktop: existing document navigation owns the button. */
@media (min-width:901px) {
  html body header.topbar nav#bf-main-nav
  > details.bf-global-create {
    display:block!important;
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    align-self:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:max-content!important;
    height:auto!important;
    margin:0 4px!important;
    z-index:3000!important;
  }
}

/* Mobile: dedicated small toolbar after the header. */
html body .bf-create-mobile-bar {
  display:none;
}

@media (max-width:900px) {
  html body .bf-create-mobile-bar {
    display:flex!important;
    position:relative!important;
    box-sizing:border-box!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-height:52px!important;
    padding:7px 12px!important;
    margin:0!important;
    background:#10243d!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    overflow:visible!important;
    z-index:1100!important;
  }

  html body .bf-create-mobile-bar
  > details.bf-global-create {
    display:block!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    z-index:3000!important;
  }
}

/* One consistent, compact button. */
html body #bf-global-create > summary {
  display:inline-flex!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  position:relative!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:38px!important;
  height:auto!important;
  padding:9px 13px!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.2)!important;
  border-radius:9px!important;
  background:#176b9d!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.3!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transform:none!important;
  box-shadow:none!important;
  list-style:none!important;
}

html body #bf-global-create > summary::-webkit-details-marker {
  display:none!important;
}

html body #bf-global-create .bf-create-long {
  display:inline!important;
}

html body #bf-global-create .bf-create-short {
  display:none!important;
}

/* Dropdown stays inside the viewport width. */
html body #bf-global-create
> .bf-global-create-panel {
  display:none!important;
  box-sizing:border-box!important;
  position:absolute!important;
  top:calc(100% + 7px)!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:280px!important;
  min-width:0!important;
  max-width:calc(100vw - 24px)!important;
  height:auto!important;
  max-height:min(70vh,520px)!important;
  overflow-y:auto!important;
  z-index:5000!important;
  border-radius:12px!important;
  box-shadow:0 12px 32px rgba(0,0,0,.2)!important;
}

html body #bf-global-create[open]
> .bf-global-create-panel {
  display:block!important;
}

html body header.topbar:has(#bf-global-create[open]),
html body header.topbar nav#bf-main-nav:has(#bf-global-create[open]) {
  overflow:visible!important;
}

@media (max-width:900px) {
  html body .bf-create-mobile-bar
  #bf-global-create > .bf-global-create-panel {
    right:0!important;
    left:auto!important;
  }
}
