:root[tabsintitlebar] #TabsToolbar:-moz-window-inactive {
  opacity: 1 !important;
}
#main-window:not([chromehidden~="toolbar"]) {
  --rounded-corners-padding: 4px;
  --browser-frame-bgcolor: var(--toolbar-bgcolor, var(--lwt-accent-color));
  --rounded-corners-radius: 8px;
  --rounded-corners-in-fullscreen: block
}
:root:is[inFullscreen] {
	--rounded-corners-in-fullscreen: none
}
#navigator-toolbox {
  border-bottom: none !important;
}
/*Disable rounded corners in fullscreen if the toolbar is hidden.*/
:root[inFullscreen] #navigator-toolbox[style*="margin-top"]+#browser,
:root[inDOMFullscreen] #browser {
  --rounded-corners-padding: 0;
  --rounded-corners-radius: 0;

}
#browser .browserStack {
  margin-inline: var(--rounded-corners-padding) !important;
  margin-block-end: var(--rounded-corners-padding) !important;
}
#PersonalToolbar,
#nav-bar {
  overflow: initial !important;
}
:root:is([inFullscreen]) {
	--rounded-corners-in-fullscreen: none !important;
}
#PersonalToolbar:before,
#PersonalToolbar:after,
#nav-bar:before,
#nav-bar:after,
#browser .browserStack:before,
#browser .browserStack:after {
  content: "" !important;
  display: var(--rounded-corners-in-fullscreen) !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  bottom: -16px !important;
  pointer-events: none !important;
  clip-path: inset(0);
  border-bottom-right-radius: var(--rounded-corners-radius) !important;
  left: var(--rounded-corners-padding) !important;
  transform: rotate(180deg) !important;
  box-shadow: 0 0 0 18px var(--toolbar-bgcolor) !important;
  z-index: 1;
}
:root:is[inFullscreen] {
	--rounded-corners-in-fullscreen: none !important;
}
#PersonalToolbar:after,
#nav-bar:after {
  right: var(--rounded-corners-padding) !important;
  left: auto !important;
  transform: rotate(270deg) !important;
}

#browser .browserStack:before,
#browser .browserStack:after {
  bottom: 0 !important;
  left: 0 !important;
  transform: rotate(90deg) !important;
}

#browser .browserStack:after {
  right: 0 !important;
  left: auto !important;
  transform: rotate(0deg) !important;
}

#browser {
  background-color: var(--browser-frame-bgcolor) !important;
}
#tabbrowser-tabpanels {
  background-color: transparent !important;
}