/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

 /*    Firefox Edge v1.8.0    */

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url("chrome://browser/content/browser.xul") {


:root {
  font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", sans-serif;
}

  /* MAIN WINDOW & TITLEBAR BUTTONS  */
  #titlebar-min,
  #titlebar-max,
  #main-window[sizemode="maximized"] #titlebar-max,
  #titlebar-close,
  #minimize-button,
  #restore-button,
  #close-button {
    -moz-appearance: none !important;
    display: -moz-box !important;
    border: none !important;
    padding: 0 !important;
    width: 46px !important;
    height: 32px !important;
  	font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", sans-serif !important;
  }
  
  
  #main-window {
    background-color: var(--second-level-bg-color) !important;
  }
  
  @media (-moz-os-version: windows-xp),
         (-moz-os-version: windows-vista),
         (-moz-os-version: windows-win7),
         (-moz-os-version: windows-win8) {
    #main-window {
      -moz-appearance: none !important;
    }
  }

  #main-menubar {
    color: var(--main-font-color) !important;
  }
  
  #main-menubar > menu {
    background-color: var(--second-level-bg-color) !important;
  }
  
  #main-menubar > menu:hover {
    background-color: var(--second-level-bg-hover-color) !important;
  }
  
  #main-menubar > menu:hover:active,
  #main-menubar > menu[open="true"] {
    background-color: var(--second-level-bg-active-color) !important;
    border-width: 2px !important;
  }

  #titlebar-min,
  #minimize-button,
  toolbar[brighttext] #titlebar-min,
  toolbar[brighttext] #minimize-button {
    list-style-image: none !important;
    background: var(--titlebar-min-image) no-repeat center;
    background-position-y: 11px;
  }

  #titlebar-max {
    list-style-image: none !important;
    background: var(--titlebar-max-image) no-repeat center;
  }

  #main-window[sizemode="maximized"] #titlebar-max,
  #restore-button {
    list-style-image: none !important;
    background: var(--titlebar-restore-image) no-repeat center;
  }

  #titlebar-close,
  #titlebar-close:hover,
  #close-button,
  #close-button:hover {
    list-style-image: none !important;
    background: var(--titlebar-close-image) no-repeat center;
  }

  #titlebar-min:hover,
  #titlebar-max:hover,
  #minimize-button:hover,
  #restore-button:hover {
    background-color: var(--titlebar-min-max-hover-bg-color) !important;
  }

  #titlebar-min:hover:active,
  #titlebar-max:hover:active,
  #minimize-button:hover:active,
  #restore-button:hover:active {
    background-color: var(--titlebar-min-max-active-bg-color) !important;
  }

  #titlebar-close:hover,
  #close-button:hover {
    background-color: var(--titlebar-close-hover-bg-color);
  }

  #titlebar-close:hover:active,
  #close-button:hover:active {
    background-color: var(--titlebar-close-active-bg-color);
  }

  .titlebar-button {
    height: 32px !important;
    margin-bottom: -14px !important;
  }

  #main-window[sizemode="normal"] #TabsToolbar {
    margin-top: -1px !important;
    margin-left: -1px !important;
  }

  @media (-moz-os-version: windows-win10) {
    #main-window[sizemode="normal"] #TabsToolbar,
    #main-window[sizemode="maximized"] #TabsToolbar {
      margin-top: 2px !important;
    }
  }
  
  #titlebar-buttonbox {
    -moz-appearance: none !important;
    margin-inline-end: 0 !important;
  }

  #navigator-toolbox::after {
    border-bottom: 1px solid var(--navigator-separator-bg-color) !important;
  }

  /* TABS */
  #TabsToolbar {
    -moz-appearance: none !important;
    height: 32px !important;
    background-color: var(--second-level-bg-color) !important;
    margin-bottom: 0 !important;
  }

  .tabbrowser-tab {
    color: var(--inactive-font-color) !important;
    background-color: var(--second-level-bg-color) !important;
    border: none !important;
	font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", sans-serif !important;
	font-size: 12px;
  }
  
  .tab-content {
    padding-bottom: 1px !important;
  }

  .tabbrowser-tab .tab-stack {
    padding-bottom: 1px !important;
  }

  .tabbrowser-tab:hover:not([selected]) {
    color: var(--main-font-color) !important;
    background-color: var(--second-level-bg-hover-color) !important;
  }

  .tabbrowser-tab[selected] {
    color: var(--main-font-color) !important;
    background: var(--top-level-bg-color) !important;
  }

  .tab-background {
    -moz-margin-end: 0 !important;
    -moz-margin-start: 0 !important;
    background: transparent !important;
  }

  .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
    -moz-padding-end: 0 !important;
    -moz-padding-start: 0 !important;
  }

  .tab-background-start,
  .tab-background-end {
    display: none !important;
  }

  #TabsToolbar .tab-background-middle {
    background: transparent !important;
    margin: -12px 0px !important;
  }

  .tabs-newtab-button,
  #new-tab-button {
    -moz-margin-end: 0 !important;
    -moz-margin-start: 0 !important;
    background: transparent !important;
    width: 32px !important;
    margin: 0 !important;
  }

  .tabs-newtab-button .toolbarbutton-icon,
  #new-tab-button  .toolbarbutton-icon {
    list-style-image: var(--new-tab-button-image) !important;
    padding-top: 2px !important;
  }

  .tabs-newtab-button .toolbarbutton-icon {
    margin-left: 3px !important;
  }

  #new-tab-button  .toolbarbutton-icon {
    margin-left: 1px !important;
  }

  .tabs-newtab-button:hover,
  #new-tab-button:hover {
    background: var(--new-tab-hover-bg-color) !important;
  }

  .tabs-newtab-button:hover:active,
  #new-tab-button:hover:active {
    background: var(--tab-button-bg-active-color) !important;
  }

  #new-tab-button {
    padding-right: 0px !important;
  }

  .tabbrowser-tab::after,
  .tabbrowser-tab::before {
    background-image: linear-gradient(transparent 6px,
      var(--tab-separator-color) 6px,
      var(--tab-separator-color) calc(100% - 6px),
      transparent calc(100% - 6px));
    border: none !important;
    opacity: 1.0;
  }

  .tabbrowser-tab[pinned]::before,
  .tabbrowser-tab[pinned] + .tabbrowser-tab:not([pinned])::before,
  .tabbrowser-tab[last-visible-tab]::after {
    background-image: linear-gradient(transparent 0px,
      var(--tab-separator-color) 0px,
      var(--tab-separator-color) 100%,
      transparent 100%);
    border: none !important;
  }
  
  #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::before,
  #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::after {
    opacity: 1;
  }

  .tabbrowser-tab .close-icon {
    list-style-image: var(--tab-close-button-image);
    -moz-image-region: rect(0, 20px, 20px, 0px);
    background-image: none !important;
    height: 20px !important;
    width: 20px !important;
  }
  
  .tabbrowser-tab .close-icon:hover {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }
  
  .tabbrowser-tab .close-icon:hover:active {
    -moz-image-region: rect(0, 60px, 20px, 40px);
  }

  .tab-close-button:not([selected]) {
    display: none !important;
  }

  tab:hover:not([pinned]) .tab-close-button {
    display: -moz-box !important;
  }

  #tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] {
    padding-bottom: 15px !important;
    height: 32px !important;
  }

  #tabbrowser-tabs[overflow] > .tabbrowser-tab[pinned] > .tab-stack {
    margin-top: 7px !important;
    margin-bottom: -7px !important;
  }

  .tabbrowser-arrowscrollbox > .scrollbutton-up, 
  .tabbrowser-arrowscrollbox > .scrollbutton-down,
  #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-up,
  #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-down {
    list-style-image: var(--tab-scroll-up-down-button-image);
    -moz-image-region: rect(0, 15px, 17px, 0) !important;
    background-image: none !important;
    background-color: var(--tab-scroll-up-down-bg-color) !important;
    width: 34px !important;
    position: unset !important;
    transition: none !important;
    margin: 0 !important;
    padding-top: 1px !important;
  }

  .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled="true"]):hover, 
  .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled="true"]):hover {
    background-color: var(--tab-scroll-up-down-bg-hover-color) !important;
  }

  .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled="true"]):hover:active, 
  .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled="true"]):hover:active {
    background-color: var(--tab-scroll-up-down-bg-active-color) !important;
  }

  .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled="true"],
  .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled="true"] {
    background-color: var(--tab-scroll-up-down-bg-disabled-color) !important;
    opacity: 1.0;
  }
  
  .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled="true"]  > .toolbarbutton-icon,
  .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled="true"]  > .toolbarbutton-icon {
    opacity: 0.5;
  }

  .tabbrowser-arrowscrollbox > .scrollbutton-down > .toolbarbutton-icon,
  .tabbrowser-arrowscrollbox > .scrollbutton-up > .toolbarbutton-icon {
    margin-left: -1px !important;
  }

  .arrowscrollbox-overflow-start-indicator,
  .arrowscrollbox-overflow-end-indicator {
    display: none !important;
  }

  #alltabs-button,
  #TabsToolbar[brighttext] > #alltabs-button {
    list-style-image: var(--default-dropdown-image);
    background-color: transparent !important; 
    background-image: none !important;
  }

  #alltabs-button:hover {
    background-color: var(--alltabs-bg-hover-color) !important;
  }

  #alltabs-button:hover:active {
    background-color: var(--alltabs-bg-active-color) !important;
  }

  .tab-icon-image {
    list-style-image: var(--tab-icon-image);
  }

  .tabbrowser-tab:not(:hover):not([selected]) .tab-icon-image:not([src]) {
    opacity: .6;
  }

  .tab-icon-image:not([src]):not([pinned]):not([crashed]):not([busy]) {
    display: block !important;
  }

  .tab-icon-sound {
    list-style-image: var(--tab-icon-sound-image) !important;
  }

  .tab-icon-sound[soundplaying] {
    -moz-image-region: rect(0, 16px, 16px, 0);
    opacity: 0.8;
  }

  .tab-icon-sound[soundplaying]:hover {
    opacity: 0.9 !important;
  }

  .tab-icon-sound[soundplaying]:hover:active {
    opacity: 1 !important;
  }

  .tab-icon-sound[muted] {
    -moz-image-region: rect(0, 32px, 16px, 16px);
    opacity: 0.8;
  }

  .tab-icon-sound[muted]:hover {
    opacity: 0.9 !important;
  }

  .tab-icon-sound[muted]:hover:active {
    opacity: 1.0 !important;
  }

  .tab-icon-sound {
    order: 2 !important;
  }

  .tabbrowser-tab:not([visuallyselected]):not(:hover) > .tab-stack >.tab-content > .tab-icon-sound {
    opacity: 1;
  }

  /* REPLACE PINNED TAB'S FAVICON WITH AUDIO ICON */  
  .tabbrowser-tab[pinned][soundplaying] > .tab-stack >.tab-content > .tab-icon-image,
  .tabbrowser-tab[pinned][soundplaying] > .tab-stack >.tab-content > .tab-icon-overlay {
    display: none !important;
  }

  .tabbrowser-tab[pinned][muted] > .tab-stack >.tab-content > .tab-icon-overlay {
    display: none !important;
  }

  .tabbrowser-tab[pinned][soundplaying] > .tab-stack >.tab-content > .tab-icon-sound {
    display: block !important;
    margin-left: 0px !important;
    margin-right: 6px !important;
  }

  /* PUT TAB'S AUDIO ICON ON THE LEFT SIDE OF TEXT */
  .tab-content {
    display: -moz-box;
    -moz-box-orient: horizontal;
  }

  .tab-throbber {
    -moz-box-ordinal-group: 0;
  }

  .tab-icon-image {
    -moz-box-ordinal-group: 1;
  } 

  .tab-icon-overlay {
    -moz-box-ordinal-group: 1;
  }

  .tab-text {
    -moz-box-ordinal-group: 3;
  }

  .tab-icon-sound {
    -moz-box-ordinal-group: 4;
  }

  .tab-close-button {
    -moz-box-ordinal-group: 5;
  }

  .tab-icon-sound {
    -moz-box-ordinal-group: 2;
    margin-left: 3px !important;
    margin-right: 5px !important;
  }

  .tab-label:not([pinned]) {
    margin-left: 3px !important;
  }

  /* NEW TAB ANIMATION */
  .tabbrowser-tab:not([pinned]) {
    margin-top: 0;
    transition: min-width 70ms ease-out,
      max-width 100ms ease-out,
      margin-top 160ms linear;
  }

  .tabbrowser-tab:not([pinned]):not([fadein]) {
    margin-top: 14px;
  }
  
  /* TAB ATTENTION ANIMATION */
  @keyframes tab-attention {  
    0% { background-color: rgba(255, 185, 0, 0); }
    40% { background-color: rgba(255, 185, 0, 1); }
    100% { background-color: rgba(255, 185, 0, 0); }
  }
  
  .tabbrowser-tab:-moz-any([image], [pinned]) > .tab-stack > .tab-content[attention]:not([visuallyselected="true"]),
  .tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([visuallyselected="true"]) {
    background-image: none !important;
    -moz-animation: tab-attention 1.5s cubic-bezier(.20,.42,.60,.57) infinite;
  }

  .tab-label[attention]:not([visuallyselected="true"]) {
    font-weight: normal !important;
  }
  
  /* TAB DRAG & DROP INDICATOR */
  .tab-drop-indicator {
    list-style-image: var(--tab-drop-indicator) !important;
  }
  
  /* CLOSE ICON */
  .close-icon > .button-icon,
  .close-icon > .button-box > .button-icon,
  .close-icon > .toolbarbutton-icon {
    width: 20px !important;
  }
  
  /* TOOLBARBUTTON ON TABS TOOLBAR */
  #TabsToolbar .toolbarbutton-menu-dropmarker,
  #TabsToolbar .toolbarbutton-1,
  #TabsToolbar .toolbarbutton-menubutton-button,
  #TabsToolbar .toolbarbutton-menubutton-dropmarker {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }
  
  #TabsToolbar .toolbarbutton-menu-dropmarker {
    -moz-appearance: none !important;
    padding: 0 !important;
    list-style-image: var(--default-dropdown-image);
    margin-left: 3px !important;
  }
  
  #TabsToolbar .toolbarbutton-1,
  #TabsToolbar .toolbarbutton-menubutton-button {
    -moz-appearance: none !important;
    padding: 0 8px !important;
  }
  
  #TabsToolbar .toolbarbutton-1[type="menu-button"] {
    padding-left: 0 !important;
  }
  
  #TabsToolbar .toolbarbutton-menubutton-dropmarker {
    width: 16px !important;
  }
  
  #TabsToolbar .toolbarbutton-1:not([type="menu-button"]):hover,
  #TabsToolbar .toolbarbutton-1:not([id="bookmarks-menu-button"]) > .toolbarbutton-menubutton-button:hover,
  #TabsToolbar .toolbarbutton-1:not([id="bookmarks-menu-button"]):not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker {
    background-color: var(--second-level-alt-bg-hover-color) !important;
  }
  
  #TabsToolbar .toolbarbutton-1:not([type="menu-button"]):hover:active,
  #TabsToolbar .toolbarbutton-1:not([id="bookmarks-menu-button"]) > .toolbarbutton-menubutton-button:hover:active {
    background-color: var(--second-level-alt-bg-active-color) !important;
  }

  /* NAV. BAR */
  #nav-bar {
    background-image: none !important;
    background-color: var(--top-level-bg-color) !important;
    height: 44px !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  
  #TabsToolbar:not([collapsed="true"]) + #nav-bar {
    border: none !important;
  }

  #urlbar > toolbarbutton {
    -moz-box-ordinal-group: 0;
  }
  
  :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
  toolbar[brighttext] :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu) {
    list-style-image: var(--navbar-toolbarbutton-images);
  }
  
  @media (min-resolution: 1.1dppx) {
    :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
    toolbar[brighttext] :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu) {
      list-style-image: var(--navbar-toolbarbutton-images2x);
    }
  }

  /* BACK BUTTON */
  #back-button {
    list-style-image: var(--back-button-image);
    -moz-image-region: auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
  }

  #back-button > .toolbarbutton-icon {
    padding: 0 !important;
    max-width: 36px !important;
    background-color: transparent !important;
  }

  /* FORWARD BUTTON */
  #urlbar-wrapper {
    clip-path: none !important;
    margin-left: 4px !important;
  }

  #urlbar-wrapper > #forward-button {
    margin: 0 !important;
  }

  #forward-button {
    list-style-image: var(--forward-button-image);
    -moz-image-region: auto !important;
  }

  #forward-button > .toolbarbutton-icon {
    background-color: transparent !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    max-width: 36px !important;
    box-shadow: none !important;
    border: none !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
  }

  /* RELOAD BUTTON */
  #urlbar-reload-button {
    list-style-image: var(--reload-button-image);
    -moz-image-region: auto !important;
    border: none !important;
    background-color: var(--top-level-bg-color) !important;
    margin-inline-start: 4px !important;
    margin-top: -2px !important;
    margin-bottom: -2px !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
  }
  
  #urlbar-reload-button > .toolbarbutton-icon {
    width: 18px;
  }

  #urlbar-reload-button:not([displaystop]) {
    visibility: visible !important;
  }

  #urlbar-reload-button[displaystop] + #urlbar-stop-button {
    visibility: visible !important;
  }

  #urlbar-reload-button:not([disabled="true"]):hover {
    background-color: var(--top-level-bg-hover-color) !important;
  }

  #urlbar-reload-button:not([disabled="true"]):hover:active {
    background-color: var(--top-level-bg-active-color) !important;
  }

  /* STOP BUTTON */
  #urlbar-stop-button {
    list-style-image: var(--stop-button-image);
    -moz-image-region: auto !important;
    border: none !important;
    background-color: var(--top-level-bg-color) !important;
    margin-inline-start: 4px !important;
    margin-top: -2px !important;
    margin-bottom: -2px !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
  }
  
  #urlbar-stop-button > .toolbarbutton-icon {
    width: 16px;
  }

  #urlbar-stop-button:not([disabled="true"]):hover {
    background-color: var(--top-level-bg-hover-color) !important;
  }

  #urlbar-stop-button:not([disabled="true"]):hover:active {
    background-color: var(--top-level-bg-active-color) !important;
  }

  #urlbar-go-button {
    visibility: collapse !important;
  }
  
  /* HOME BUTTON */
  :-moz-any(#nav-bar, #mainPopupSet) #home-button {
    list-style-image: var(--home-button-image) !important;
    -moz-image-region: auto !important;
  }

  /* URLBAR */
  #urlbar {
    border: none !important;
    background-color: var(--top-level-bg-color) !important;
    color: var(--main-font-color) !important;
	font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", sans-serif !important;
  }

  #urlbar[focused] {
    box-shadow: none !important;
  }

  /* NOTIFICATION POPUP BOX */
  #notification-popup-box {
    border: none;
    border-radius: 0 !important;
    background-color: var(--top-level-bg-color) !important;
    margin-inline-end: -8px;
  }

  /* IDENTITY BOX */
  #identity-box {
    margin-right: 4px !important;
    border-right: none !important;
    padding-inline-start: 14px !important;
  }

  #notification-popup-box[hidden] + #identity-box {
    margin-left: 16px !important;
  }

  #identity-box:hover,
  #identity-box:active,
  #identity-box:focus,
  #identity-box[open=true],
  #identity-box.verifiedIdentity,
  #identity-box.verifiedIdentity:hover,
  #identity-box.verifiedIdentity[open=true],
  #identity-box.verifiedIdentity:not([open]):hover,
  #identity-box.verifiedDomain,
  #identity-box.verifiedDomain:hover,
  #identity-box.verifiedDomain[open=true],
  #identity-box.verifiedDomain:not([open]):hover,
  #identity-box.mixedContent,
  #identity-box.mixedContent:hover,
  #identity-box.mixedContent[open=true],
  #identity-box.mixedContent:not([open]):hover {
    background-color: transparent !important;
    background-image: none !important;
  }

  #identity-box.verifiedIdentity {
    color: var(--verified-identity-font-color) !important;
  }

  #identity-box > #identity-icon {
    margin-left: -4px !important;
  }
  
  #identity-icon {
    list-style-image: var(--identity-icon-image);
  }

  #identity-box:hover > #identity-icon:not(.no-hover),
  #identity-box[open=true] > #identity-icon {
    list-style-image: var(--identity-icon-hover-image);
  }

  #identity-box.grantedPermissions > #identity-icon {
    list-style-image: var(--identity-icon-notice-image);
  }

  #identity-box.grantedPermissions:hover > #identity-icon:not(.no-hover),
  #identity-box.grantedPermissions[open=true] > #identity-icon {
    list-style-image: var(--identity-icon-notice-hover-image);
  }

  #tracking-protection-icon {
    list-style-image: var(--tracking-protection-enabled-image);
  }

  #tracking-protection-icon[state="loaded-tracking-content"] {
    list-style-image: var(--tracking-protection-disabled-image);
  }

  #urlbar[pageproxystate="valid"] > #identity-box.certUserOverridden > #connection-icon {
    list-style-image: var(--connection-mixed-passive-image);
  }

  #urlbar[pageproxystate="valid"] > #identity-box.insecureLoginForms > #connection-icon,
  #urlbar[pageproxystate="valid"] > #identity-box.mixedActiveContent > #connection-icon {
    list-style-image: var(--connection-mixed-active-image);
  }

  #urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #connection-icon,
  #urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #connection-icon,
  #urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContentLoadedActiveBlocked > #connection-icon {
    list-style-image: var(--connection-mixed-passive-image);
  }

  .urlbar-textbox-container {
    margin-left: 16px !important;
    border-left: 1px solid;
    border-image: linear-gradient(transparent 21%, var(--urlbar-separator-color) 21%, var(--urlbar-separator-color) 79%, transparent 79%);
    border-image-slice: 1 !important;
	background: white !important;
  }

  .urlbar-input-box, #urlbar-display-box {
    border-inline-start: 0 !important;
	background: white !important;
  }

  .urlbar-history-dropmarker {
    list-style-image: var(--urlbar-history-dropmarker-image);
    -moz-image-region: auto !important;
    transition: none !important;
    opacity: 0.7;
    -moz-appearance: menulist-button;
  }

  .urlbar-history-dropmarker > .dropmarker-icon {
    filter: var(--chrome-icon-filter);
  }
  
  .urlbar-history-dropmarker:hover {
    opacity: 0.85;
  }
  
  .urlbar-history-dropmarker:hover:active {
    opacity: 1.0;
  }

  .urlbar-icon {
    padding: 0 6px;
    width: 32px;
    height: 20px;
  }

  /* READER MODE BUTTON */
  #reader-mode-button {
    list-style-image: var(--reader-mode-button-image);
    -moz-image-region: rect(0, 20px, 20px, 0);
  }

  #reader-mode-button:hover,
  #reader-mode-button[readeractive]:hover {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }

  #reader-mode-button:hover:active,
  #reader-mode-button[readeractive] {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }
  
  /* URLBAR ZOOM BUTTON */
  #urlbar-zoom-button {
    -moz-appearance: none !important;
    background-color: var(--top-level-bg-hover-color);
  }

  #urlbar-zoom-button:hover {
    background-color: var(--top-level-bg-active-color);
  }

  #urlbar-zoom-button:hover:active {
    background-color: var(--tab-scroll-up-down-bg-active-color);
  }

  /* SEARCH TEXTBOX */
  .searchbar-textbox {
    color: var(--main-font-color) !important;
    background-color: var(--searchbar-bg-color) !important;
    border-color: var(--tab-separator-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .searchbar-textbox:hover {
    background-color: var(--searchbar-bg-hover-color) !important;
  }

  .searchbar-textbox[focused] {
    background-color: var(--searchbar-bg-active-color) !important;
  }

  .searchbar-search-button {
    list-style-image: var(--searchbar-search-button-image);
    -moz-image-region: rect(0, 20px, 20px, 0);
  }
  
  .searchbar-search-button:hover {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }

  .searchbar-search-button:hover:active {
    -moz-image-region: rect(0, 60px, 20px, 40px);
  }

  .searchbar-search-button[addengines="true"] {
    list-style-image: var(--searchbar-search-button-addengines-image);
  }

  .search-go-button {
    list-style-image: var(--searchbar-go-button-image);
    -moz-image-region: rect(0, 14px, 14px, 0);
    padding: 0 !important;
  }
  
  .search-go-button:hover {
    -moz-image-region: rect(0, 28px, 14px, 14px);
  }
  
  .search-go-button:hover:active {
    -moz-image-region: rect(0, 42px, 14px, 28px);
  }

  /* BOOKMARKS BUTTON */
  :-moz-any(#nav-bar, #mainPopupSet, #PersonalToolbar, #TabsToolbar) #bookmarks-menu-button {
    list-style-image: var(--bookmarks-menu-button-image);
  }

  :-moz-any(#nav-bar, #mainPopupSet, #PersonalToolbar, #TabsToolbar) #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
  :-moz-any(#nav-bar, #mainPopupSet, #PersonalToolbar, #TabsToolbar)[brighttext] #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    list-style-image: var(--bookmarks-menu-button-dropmarker-image);
  }

  #nav-bar #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
    max-width: 33px;
  }

  #nav-bar #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    max-width: 34px;
  }

  #bookmarks-menu-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 20px, 20px, 0);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"]:not([starred]) > .toolbarbutton-menubutton-button:hover > .toolbarbutton-icon {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"][starred] > .toolbarbutton-menubutton-button:hover > .toolbarbutton-icon {
    opacity: 0.65 !important;
  }

  #bookmarks-menu-button[cui-areatype="toolbar"][starred] {
    -moz-image-region: rect(0, 60px, 20px, 40px);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    -moz-image-region: rect(0, 20px, 20px, 0);
    margin-left: 1px !important;
  }

  #bookmarks-menu-button[cui-areatype="toolbar"]:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled="true"]) > .dropmarker-icon,
  #bookmarks-menu-button[cui-areatype="toolbar"][open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }

  #bookmarked-notification-dropmarker-icon {
    width: 20px !important;
    height: 20px !important;
  }

  #bookmarked-notification {
    background-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
    background-image: var(--bookmarked-notification-image);
  }

  #nav-bar .badged-button:hover {
    background-color: var(--top-level-bg-hover-color) !important;
  }

  #nav-bar .badged-button:hover:active {
    background-color: var(--top-level-bg-active-color) !important;
  }

  /* DOWNLOADS BUTTON */
  
  #downloads-button[cui-areatype="toolbar"] .toolbarbutton-icon {
    width: 20px !important;
    height: 20px !important;
    list-style-image: none !important;
    background: var(--downloads-button-image) no-repeat center !important;
  }

  #downloads-indicator-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px !important;
    background: none !important;
    background-image: var(--downloads-button-image) !important;
  }
  
  #downloads-button[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-icon {
    background-image: var(--downloads-button-attention-image) !important;
  }

  #downloads-indicator-counter {
    margin: 0 !important;
    margin-bottom: 1px !important;
    color: var(--inactive-font-color) !important;
    text-shadow: none !important;
    font-size: 10px !important;
    line-height: 10px !important;
  }
  
  #downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
    background: var(--downloads-button-image) center no-repeat;
    background-size: 16px;
  }

  #downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
    background-color: var(--downloads-indicator-paused-bg-color) !important;
  }

  #downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {
    background-image: var(--downloads-button-start-notification-image);
  }

  #downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification {
    background-image: var(--downloads-button-finish-notification-image);
  }
  
  /* PROGRESS METER */
  progressmeter {
    -moz-appearance: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 4px !important;
    height: 4px !important;
  }

  progressmeter > .progress-bar {
    -moz-appearance: none !important;
    background-color: var(--downloads-indicator-bg-color) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
  
  progressmeter[paused="true"] > .progress-bar {
    background-color: var(--downloads-indicator-paused-bg-color) !important;
  }

  progressmeter > .progress-remainder {
    background-color: var(--downloads-indicator-remainder-color) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  /* MENU BUTTON */
  #PanelUI-button {
    margin-inline-start: 0px !important;
    border-inline-start: none !important;
  }

  #PanelUI-menu-button {
    list-style-image: var(--menu-button-image);
    -moz-image-region: auto !important;
    border-inline-start: none !important;
  }

  #PanelUI-menu-button > :-moz-any(.toolbarbutton-menubutton-button, .toolbarbutton-badge-stack) > .toolbarbutton-icon {
    max-width: 20px;
  }
  
  /* TOOLBAR BUTTON */
  #nav-bar .toolbarbutton-1,
  #nav-bar .toolbarbutton-1:not([id="bookmarks-menu-button"]) > .toolbarbutton-menubutton-button {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  #nav-bar :-moz-any(#back-button, #forward-button):not([disabled="true"]):hover,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([disabled="true"]):not([type="menu-button"]):not(#back-button):not(#forward-button):hover,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([id="bookmarks-menu-button"]) > .toolbarbutton-menubutton-button:hover,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([id="bookmarks-menu-button"]):not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker {
    background-color: var(--top-level-bg-hover-color) !important;
  }
  
  #nav-bar :-moz-any(#back-button, #forward-button):not([disabled="true"]):hover:active,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([disabled="true"]):not([type="menu-button"]):not(#back-button):not(#forward-button):hover:active,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([id="bookmarks-menu-button"]) > .toolbarbutton-menubutton-button:hover:active {
    background-color: var(--top-level-bg-active-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1 > .toolbarbutton-icon,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1 > .toolbarbutton-badge-stack,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar) .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }
  
  #PanelUI-popup .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker {
    background-color: var(--top-level-bg-active-color) !important;
  }
  
  #PanelUI-popup .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-dropmarker,
  #PanelUI-popup .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker{
    background-color: var(--tab-scroll-up-down-bg-active-color) !important;
  }
  
  #nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before {
    height: 18px !important;
    margin-inline-end: -1px !important;
    background-image: linear-gradient(var(--tab-separator-color) 0, var(--tab-separator-color) 100%) !important;
    background-size: 1px 18px !important;
    opacity: 1 !important;
  }
  
  .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
  .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker,
  toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
  toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
    -moz-appearance: none !important;
    padding: 0 !important;
    list-style-image: var(--default-dropdown-image);
  }
  
  .panelUI-grid .toolbarbutton-1[type="menu"] {
    background-image: var(--default-dropdown-image);
    background-position: right 4px top 22px;
  }
  
  /* TOOLBAR BUTTON BADGE */
  .toolbarbutton-badge {
    background-color: var(--toolbarbutton-badge-bg-color) !important;
    border-radius: 50% !important;
    border: 1px solid var(--toolbarbutton-badge-border-color) !important;
    box-shadow: none !important;
    min-width: 16px !important;
  }
  
  #nav-bar .toolbarbutton-badge {
    margin: 8px 0 0 !important;
    margin-inline-end: -8px !important;
  }

  /* BOOKMARKS TOOLBAR */
  #navigator-toolbox > #PersonalToolbar {
    background-color: var(--top-level-bg-color) !important;
    background-image: none !important;
    height: 33px !important;
    border-top: 1px solid var(--navigator-separator-bg-color) !important;
    padding: 0 !important;
  }

  #PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton) {
    padding: 2px 6px !important;
    border: none !important;
    border-radius: 0 !important;
    transition-property: none !important;
    box-shadow: none !important;
    color: var(--main-font-color) !important;
  }
  
  .bookmark-item {
    list-style-image: var(--bookmarks-favicon-image);
  }

  #PersonalToolbar .bookmark-item:hover:not([open]),
  #PersonalToolbar toolbarbutton.chevron:hover:not([open]) {
    background: var(--top-level-bg-hover-color) !important;
  }

  #PersonalToolbar .bookmark-item:hover:active,
  #PersonalToolbar .bookmark-item[open],
  #PersonalToolbar toolbarbutton.chevron[open] {
    background: var(--top-level-bg-active-color) !important;
  }

  #PlacesToolbarDropIndicator {
    list-style-image: var(--bookmarks-drop-indicator-image) !important;
  }

  toolbar toolbarbutton.chevron,
  toolbar[brighttext] toolbarbutton.chevron {
    -moz-appearance: none !important;
    padding: 0 !important;
    border: none !important;
    list-style-image: var(--bookmarks-chevron-image) !important;
    width: 44px !important;
  }
  
  #PersonalToolbar toolbarseparator {
    -moz-appearance: none !important;
    border: none !important;
    margin: 0 6px 0 6px !important;
    background-image: linear-gradient(transparent 6px,
      var(--urlbar-separator-color) 6px,
      var(--urlbar-separator-color) calc(100% - 6px),
      transparent calc(100% - 6px));
    min-width: 1px !important;
  }
  
  #PersonalToolbar .toolbarbutton-menu-dropmarker {
    -moz-appearance: none !important;
    padding: 0 !important;
    list-style-image: var(--default-dropdown-image);
    margin-left: 3px !important;
  }
  
  #PersonalToolbar toolbarbutton:not(.bookmark-item) {
    -moz-appearance: none !important;
    padding: 0 8px !important;
    border: none !important;
  }
  
  #PersonalToolbar toolbarbutton[type="menu-button"]:not(.bookmark-item) {
    padding-left: 0 !important;
  }
  
  #PersonalToolbar .toolbarbutton-menubutton-dropmarker {
    width: 16px !important;
  }
  
  /* POCKET BUTTON */
  #nav-bar #pocket-button {
    list-style-image: var(--pocket-button-image) !important;
  }
  
  @media (min-resolution: 1.1dppx) {
    #nav-bar #pocket-button {
      list-style-image: var(--pocket-button-image2x) !important;
    }
  }

  /* TAB THROBBER ANIMATION */
  .tab-throbber[busy],
  .tab-throbber[progress] {
    padding: 0px !important;
    margin-inline-end: 4px !important;
    margin-left: -2px !important;
    margin-top: 1px !important;
    width: 20px !important;
    height: 20px !important;
    image-rendering: auto !important;
    list-style-image: var(--tab-throbber-animation-image) !important;
  }
  
  @media (min-resolution: 1.1dppx) {
    .tab-throbber[busy],
    .tab-throbber[progress] {
      list-style-image: var(--tab-throbber-animation-image2x) !important;
    }
  }
  
  /* INVERSION & BRIGHTENING OF IMAGES */
  .notification-anchor-icon:not(#default-notification-icon):not(#servicesInstall-notification-icon):not(#translated-notification-icon):not(#web-notifications-notification-icon):not(.plugin-blocked),
  .notification-anchor-icon.desktop-notification-icon,
  .blocked-permission-icon,
  .messageImage:not([value="popup-blocked"]):not([value="plugin-hidden"]):not([value="reset-profile-notification"]),
  .popup-notification-icon:not([popupid="addon-install-confirmation"]):not([popupid="addon-progress"]):not([popupid="addon-install-complete"]):not([popupid="addon-install-restart"]):not([popupid="greasemonkey-notification"]):not([popupid="addon-install-blocked"]) {
    filter: invert(var(--image-inversion-percentage)) brightness(var(--image-brightness));
  }

  /* MENU & POPUPS */
  :-moz-any(#PopupAutoComplete, #PopupSearchAutoComplete, #PopupAutoCompleteRichResult, #invalid-form-popup, #editBookmarkPanel, #social-share-panel, #social-notification-panel, #social-flyout-panel, #ctrlTab-panel, #notification-popup, #PanelUI-popup, #widget-overflow, #customization-tipPanel, #panic-button-success-notification, #identity-popup, #alertbox_menu_panel, #downloadsPanel, #BMB_bookmarksPopup, #customizationui-widget-panel) .panel-arrowcontent,
  #BMB_bookmarksPopup .arrowscrollbox-scrollbox {
    background-color: var(--top-level-bg-color) !important;
    color: var(--main-font-color) !important;
    --arrowpanel-border-color: var(--urlbar-separator-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) .panel-subviews {
    background-color: var(--top-level-bg-color) !important;
    border-left: 1px solid var(--urlbar-separator-color);
  }
  
  #PanelUI-popup .panel-subview-body {
    margin: 0 -4px 0 -4px !important;
    padding: 4px 0 4px 0 !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) .panel-subview-header,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton[shortcut]::after,
  #nav-bar .menu-accel,
  #nav-bar .menu-iconic-accel,
  :-moz-any(#mainPopupSet, #nav-bar) .PanelUI-remotetabs-instruction-title, 
  :-moz-any(#mainPopupSet, #nav-bar) .PanelUI-remotetabs-instruction-label, 
  :-moz-any(#mainPopupSet, #nav-bar) #PanelUI-remotetabs-mobile-promo,
  :-moz-any(#mainPopupSet, #nav-bar) #identity-popup-content-verifier ~ description,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton[disabled="true"] {
    color: var(--gray-text-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton:not(.panel-subview-footer):not([disabled="true"]),
  :-moz-any(#mainPopupSet, #nav-bar) .downloadsPanelFooter {
    color: var(--main-font-color) !important;
    border: none !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton[disabled="true"],
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton:not(.panel-subview-footer)[disabled="true"] {
    color: var(--gray-text-color) !important;
  }
  
  #mainPopupSet toolbarbutton:not(.close-icon):not(#PanelUI-quit):not([disabled="true"]):hover,
  #nav-bar panel toolbarbutton:not(.close-icon):not([disabled="true"]):hover,
  #mainPopupSet .identity-popup-expander:not([disabled="true"]):hover,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton:not([disabled="true"]):hover,
  #mainPopupSet .searchbar-engine-one-off-item:not([disabled="true"]):hover {
    background-color: var(--top-level-bg-hover-color);
  }
  
  #mainPopupSet toolbarbutton:not(.close-icon):not(#PanelUI-quit):not([disabled="true"]):hover:active,
  #nav-bar panel toolbarbutton:not(.close-icon):not([disabled="true"]):hover:active,
  #mainPopupSet .identity-popup-expander:not([disabled="true"]):hover:active,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton:not([disabled="true"]):hover:active,
  #mainPopupSet .searchbar-engine-one-off-item:not([disabled="true"]):hover:active {
    background-color: var(--top-level-bg-active-color);
  }
  
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton.panel-subview-footer,
  #mainPopupSet #downloadsFooter,
  #mainPopupSet #identity-popup-securityView-footer > button,
  #mainPopupSet .search-setting-button,
  #mainPopupSet .addengine-item,
  .click-to-play-plugins-notification-button-container {
    color: var(--default-text-color);
    background-color: var(--second-level-bg-color) !important;
    border-top: 1px solid var(--panel-separator-color) !important;
    outline: none !important;
  }
  
  #mainPopupSet #PanelUI-footer toolbarbutton:not(#PanelUI-quit):hover,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton.panel-subview-footer:hover,
  #mainPopupSet .downloadsPanelFooterButton:hover,
  #mainPopupSet #identity-popup-securityView-footer > button:hover,
  #mainPopupSet .search-setting-button:hover,
  #mainPopupSet .addengine-item:hover {
    background-color: var(--second-level-alt-bg-hover-color) !important;
  }
  
  #mainPopupSet #PanelUI-footer toolbarbutton:not(#PanelUI-quit):hover:active,
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .subviewbutton.panel-subview-footer:hover:active,
  #mainPopupSet .downloadsPanelFooterButton:hover:active,
  #mainPopupSet #identity-popup-securityView-footer > button:hover:active,
  #mainPopupSet .search-setting-button:hover:active,
  #mainPopupSet .addengine-item:hover:active {
    background-color: var(--second-level-alt-bg-active-color) !important;
  }
  
  #mainPopupSet .downloadsPanelFooterButton {
    outline: none !important;
  }
  
  #mainPopupSet #edit-controls,
  #mainPopupSet #zoom-controls {
    border-bottom: 1px solid var(--panel-separator-color);
  }
  
  #mainPopupSet #edit-controls:hover,
  #mainPopupSet #zoom-controls:hover {
    border: 1px solid var(--panel-separator-color);
  }
  
  #mainPopupSet #PanelUI-footer {
    background-color: var(--second-level-bg-color) !important;
  }
  
  #mainPopupSet #PanelUI-footer-inner,
  #mainPopupSet #PanelUI-footer-fxa:not([hidden]) {
    border-top: 1px solid var(--panel-separator-color);
  }
  
  #mainPopupSet #PanelUI-footer-inner > toolbarseparator,
  #mainPopupSet #PanelUI-footer-fxa > toolbarseparator {
    border-left: 1px solid var(--panel-separator-color);
  }
  
  #PanelUI-fxa-status,
  #PanelUI-fxa-icon,
  #PanelUI-help,
  #PanelUI-customize,
  #PanelUI-quit {
    outline: none !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) separator {
    background: var(--panel-separator-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .panel-arrow[side="top"],
  :-moz-any(#mainPopupSet, #nav-bar, #PersonalToolbar, #TabsToolbar) .panel-arrow[side="bottom"] {
    list-style-image: var(--panel-arrow-vertical) !important;
  }
  
  #mainPopupSet #downloadsSummary {
    box-shadow: none !important;
    background-color: var(--second-level-bg-color) !important;
  }
  
  #mainPopupSet #downloadsSummary > .downloadTypeIcon {
    list-style-image: none !important;   
    background-image: var(--downloads-button-image) !important;
    background-size: cover;
  }
  
  #mainPopupSet richlistitem.download-state {
    -moz-appearance: none !important;
    background: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
  }
  
  richlistitem[type="download"][state="1"][exists] .downloadMainArea:hover,
  richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover,
  richlistitem[type="download"][verdict]:hover {
    background-color: var(--top-level-bg-hover-color);
  }

  richlistitem[type="download"][state="1"][exists] > .downloadMainArea:hover:active,
  richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover:active,
  richlistitem[type="download"][verdict]:hover:active {
    background-color: var(--top-level-bg-active-color);
  }
  
  #mainPopupSet #downloadsSummaryDescription,
  #mainPopupSet .text-link {
    color: var(--hyperlink-text-color);
  }
  
  #mainPopupSet .identity-popup-expander {
    background-image: var(--arrow-subview-forward-image);
  }
  
  #mainPopupSet .identity-popup-expander[panel-multiview-anchor] {
    background-image: url("chrome://browser/skin/controlcenter/arrow-subview-back.svg");
  }
  
  #mainPopupSet .identity-popup-connection-secure {
    color: var(--verified-identity-font-color);
  }
  
  #mainPopupSet .popup-notification-menubutton {
    border: none !important;
    background-color: transparent !important;
  }
  
  #mainPopupSet .popup-notification-menubutton:not([type="menu-button"]),
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-button,
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-dropmarker,
  #mainPopupSet .popup-notification-button-container button,
  #notification-popup button,
  #tracking-protection-content button,
  #mainPopupSet #editBookmarkPanelBottomButtons button,
  #mainPopupSet #editBMPanel_newFolderButton,
  .click-to-play-plugins-notification-button-container button,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-down,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-up,
  .notification-button,
  .findbar-find-previous,
  .findbar-find-next,
  tabmodalprompt button,
  menupopup button {
    -moz-appearance: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: var(--button-bg-color) !important;
    color: var(--main-font-color) !important;
  }
  
  #mainPopupSet .popup-notification-menubutton:not([type="menu-button"]):hover,
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-button:hover,
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-dropmarker:hover,
  #mainPopupSet .popup-notification-button-container button:hover,
  #notification-popup button:hover,
  #tracking-protection-content button:hover,
  #mainPopupSet #editBookmarkPanelBottomButtons button:hover,
  #mainPopupSet #editBMPanel_newFolderButton:hover,
  .click-to-play-plugins-notification-button-container button:hover,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-down:hover,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-up:hover,
  .notification-button:not([disabled="true"]):hover,
  .findbar-find-previous:not([disabled="true"]):hover,
  .findbar-find-next:not([disabled="true"]):hover,
  .findbar-highlight:not([disabled="true"]):hover,
  .findbar-case-sensitive:not([disabled="true"]):hover,
  .findbar-entire-word:not([disabled="true"]):hover,
  tabmodalprompt button:hover,
  menupopup button:hover {
    box-shadow: inset 0px 0px 0px 2px var(--button-border-hover-color) !important;
    background-color: var(--button-bg-color) !important;
  }
  
  #mainPopupSet .popup-notification-menubutton:not([type="menu-button"]):hover:active,
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-button:hover:active,
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
  #mainPopupSet .popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker,
  #mainPopupSet .popup-notification-button-container button:hover:active,
  #notification-popup button:hover:active,
  #tracking-protection-content button:hover:active,
  #mainPopupSet #editBookmarkPanelBottomButtons button:hover:active,
  #mainPopupSet #editBMPanel_newFolderButton:hover:active,
  .click-to-play-plugins-notification-button-container button:hover:active,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-down:hover:active,
  :-moz-any(#mainPopupSet, #nav-bar) .expander-up:hover:active,
  .notification-button:hover:active,
  .findbar-find-previous:not([disabled="true"]):hover:active,
  .findbar-find-next:not([disabled="true"]):hover:active,
  .findbar-highlight:not([disabled="true"])[checked="true"],
  .findbar-case-sensitive:not([disabled="true"])[checked="true"],
  .findbar-entire-word:not([disabled="true"])[checked="true"],
  .findbar-highlight:not([disabled="true"]):hover:active,
  .findbar-case-sensitive:not([disabled="true"]):hover:active,
  .findbar-entire-word:not([disabled="true"]):hover:active,
  tabmodalprompt button:hover:active,
  menupopup button:hover:active {
    box-shadow: none !important;
    background-color: var(--button-bg-active-color) !important;
  }
  
  #mainPopupSet .popup-notification-menubutton > .button-menubutton-dropmarker {
    list-style-image: var(--default-dropdown-image) !important;
    border-left: 1px solid var(--top-level-bg-color) !important;
  }
  
  #mainPopupSet button:not(toolbarbutton) {
    color: var(--main-font-color) !important;
  }
  
  #mainPopupSet .close-icon,
  notification .close-icon,
  .findbar-closebutton,
  #TabsToolbar[brighttext] .tab-close-button:not([selected="true"]) {
    -moz-appearance: none !important;
    list-style-image: var(--tab-close-button-image);
    -moz-image-region: rect(0, 20px, 20px, 0px);
    background-image: none !important;
    height: 20px;
    width: 20px;
  }
  
  #mainPopupSet .close-icon:hover,
  notification .close-icon:hover,
  .findbar-closebutton:hover,
  #TabsToolbar[brighttext] .tab-close-button:hover {
    -moz-image-region: rect(0, 40px, 20px, 20px);
  }
  
  #mainPopupSet .close-icon:hover:active,
  notification .close-icon:hover:active,
  .findbar-closebutton:hover:active,
  #TabsToolbar[brighttext] .tab-close-button:hover:active {
    -moz-image-region: rect(0, 60px, 20px, 40px);
  }
  
  #mainPopupSet .messageCloseButton {
    -moz-appearance: none !important;
    padding: 0 !important;
    border: none !important;
  }
  
  #mainPopupSet textbox {
    -moz-appearance: none !important;
    color: var(--main-font-color) !important;
    background-color: var(--searchbar-bg-color);
    border: 1px solid var(--tab-separator-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #mainPopupSet textbox:hover {
    background-color: var(--searchbar-bg-hover-color);
  }

  #mainPopupSet textbox[focused] {
    background-color: var(--searchbar-bg-active-color);
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) menulist {    
    -moz-appearance: none !important;
    background-color: transparent !important;
    border: 1px solid var(--tab-separator-color) !important;
    color: var(--main-font-color) !important;
    height: 24px;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) .menulist-dropmarker {
    -moz-appearance: none !important;
    list-style-image: var(--menulist-dropdown-image) !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-right: 6px !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) tree,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) listbox {
    -moz-appearance: none!important;
    background: var(--second-level-bg-color) !important;
    box-shadow: none !important;
    border: 1px solid var(--urlbar-separator-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) tree,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treechildren,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treecol,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treecolpicker,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treechildren::-moz-tree-cell-text,
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) listitem {
    color: var(--main-font-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treechildren::-moz-tree-row(hover),
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) listitem:hover {
    border: none !important;
    background: var(--second-level-alt-bg-hover-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) treechildren::-moz-tree-row(selected),
  :-moz-any(#mainPopupSet, #nav-bar) panel:not(#PopupAutoComplete) listitem[selected="true"] {
    border: none !important;
    background: var(--second-level-alt-bg-active-color) !important;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) #editBookmarkPanelStarIcon {
    list-style-image: var(--bookmarks-menu-button-image) !important;
    -moz-image-region: rect(0, 60px, 20px, 40px);
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) #editBookmarkPanelStarIcon[unstarred] {
    -moz-image-region: rect(0, 20px, 20px, 0);
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) .expander-down {
    list-style-image: var(--menulist-dropdown-image);
    width: 24px;
    height: 24px;
  }
  
  :-moz-any(#mainPopupSet, #nav-bar) .expander-up {
    list-style-image: var(--menulist-dropdown-image);
    -moz-transform: scaleY(-1);
    width: 24px;
    height: 24px;
  }
  
  #mainPopupSet #PopupSearchAutoComplete {
    border: 1px solid var(--urlbar-separator-color) !important;
    border-top: none !important;
  }
  
  #mainPopupSet .search-panel-header:not(.search-setting-button) {
    background-color: var(--top-level-bg-color) !important;
    color: var(--gray-text-color);
    border: none !important;
  }
  
  #mainPopupSet #PopupSearchAutoComplete tree {
    border: none !important;
    border-top: 1px solid var(--panel-separator-color) !important;
    border-bottom: 1px solid var(--panel-separator-color) !important;
  }
  
  #mainPopupSet .search-panel-input-value {
    color: var(--main-font-color) !important;
  }
  
  #mainPopupSet .search-panel-one-offs {
    background-color: var(--top-level-bg-color) !important;
    border-top: 1px solid var(--panel-separator-color) !important;
  }
  
  #mainPopupSet .searchbar-engine-one-off-item {
    background-image: none !important;
    border-right: 1px solid var(--panel-separator-color);
    border-left: none;
  }
  
  #mainPopupSet .searchbar-engine-one-off-item:-moz-locale-dir(rtl) {
    border-right: none;
    border-left: 1px solid var(--panel-separator-color);
  }

  #mainPopupSet .searchbar-engine-one-off-item.last-of-row,
  #mainPopupSet .searchbar-engine-one-off-item[selected] {
    border-right: none;
    border-left: none;
  }
  
  #mainPopupSet .searchbar-engine-one-off-item:not(.last-row) {
    border-bottom: 1px solid var(--panel-separator-color);
  }
  
  .cui-widget-panelview .subviewbutton:not(.panel-subview-footer) {
    margin-left: 0;
    margin-right: 0;
  }
  
  .cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent {
    padding: 8px 0;
  }
  
  #BMB_bookmarksPopup menupopup[placespopup="true"] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox {
    padding-top: 8px;
  }
  
  #BMB_bookmarksPopup menupopup[placespopup="true"][singleitempopup="true"] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox,
  #BMB_bookmarksToolbarPopup > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox,
  #BMB_unsortedBookmarksPopup > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox {
    padding-bottom: 8px;
  }
  
  notification {
    color: var(--main-font-color) !important;
    background-color: var(--top-level-bg-color);
    border-top: none !important;
    border-bottom: 1px solid var(--navigator-separator-bg-color) !important;
    height: 32px !important;
  }
  
  notification.pluginVulnerable {
    color: white !important;
  }
  
  .messageCloseButton {
    -moz-appearance: none !important;
    padding: 0 !important;
    margin-bottom: 1px !important;
  }
  
  /* Tooltip commented out due to it not being applied to some tooltips
     and causing too big of an inconsistency.
     A bug in Firefox or Stylish could be the cause.
     Preserved as a coment for future testing.*/
  /*tooltip {
    -moz-appearance: none !important;
    border: 1px solid var(--context-menu-border-color) !important;
    background-color: var(--context-menu-bg-color) !important;
    color: var(--main-font-color) !important;
    padding: 6px 8px !important;
  }*/
  
  .browserContainer > findbar {
    box-shadow: none !important;
    background-image: none !important;
    background-color: var(--top-level-bg-color) !important;
    border-top: 1px solid var(--navigator-separator-bg-color) !important;
    transition: none !important;
  }
  
  .findbar-container {
    background-color: var(--top-level-bg-color) !important;
  }
  
  .findbar-closebutton:hover:active {
    margin-bottom: 1px !important;
  }
  
  .findbar-textbox {
    -moz-appearance: none !important;
    border: 1px solid ThreeDShadow;
    border-radius: 2px 0 0 2px;
    margin: 0;
    padding: 1px 5px;
    width: 14em;
  }
  
  .findbar-textbox {
    -moz-appearance: none !important;
    color: var(--main-font-color) !important;
    background-color: var(--searchbar-bg-color);
    border: 1px solid var(--tab-separator-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .findbar-textbox.minimal {
    border-radius: 0 !important;
  }

  .findbar-textbox:not([status="notfound"]):not([flash="true"]):hover {
    background-color: var(--searchbar-bg-hover-color);
  }

  .findbar-textbox:not([status="notfound"]):not([flash="true"])[focused] {
    background-color: var(--searchbar-bg-active-color);
  }
  
  .findbar-textbox[status="notfound"] {
    background-color: var(--findbar-notfound-bg-color);
    color: white;
  }
  
  .findbar-textbox[flash="true"] {
    background-color: var(--findbar-flash-bg-color);
    color: black;
  }
  
  .findbar-find-previous,
  .findbar-find-next {
    border-radius: 0 !important;
    background-image: none !important;
    width: 24px;
    height: 24px;
  }
  
  .findbar-find-previous {
    list-style-image: var(--menulist-dropdown-image);
    -moz-transform: scaleY(-1);
  }
  
  .findbar-find-next {
    list-style-image: var(--menulist-dropdown-image);
    margin-left: 1px !important;
  }
  
  .findbar-button > .toolbarbutton-text {
    box-shadow: none !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--main-font-color) !important;
  }
  
  .findbar-find-status,
  .found-matches {
    color: var(--gray-text-color);
  }
  
  /* Status panel has been commented out because it contrasts too much
     with  most of websites (on the dark version).
     A user that uses dark version and mainly browses dark-themed websites might want to remove the comment.*/
  /*.statuspanel-label {
    background: var(--context-menu-bg-color);
    border: 1px none var(--context-menu-border-color);
    color: var(--main-font-color);
  }*/
  
  #widget-overflow-scroller {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
  
  #widget-overflow-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .widget-overflow-list > .toolbarbutton-1:not(:first-child),
  .widget-overflow-list > toolbaritem:not(:first-child) {
    margin-top: 0 !important;
  }
  
  #nav-bar-overflow-button {
    list-style-image: var(--tab-scroll-up-down-button-image) !important;
    -moz-image-region: auto !important;
    transform: scaleX(-1);
  }
  
  #nav-bar-overflow-button > .toolbarbutton-icon {
    width: 15px !important;
    height: 17px !important;
    padding: 0 !important;
    margin: 1px 1px 0 0 !important;
  }
  
  /* AUTOREPEATER BUTTONS */
  .autorepeatbutton-up,
  .autorepeatbutton-up[disabled="true"],
  .autorepeatbutton-down,
  .autorepeatbutton-down[disabled="true"] {
    list-style-image: var(--menulist-dropdown-image);
    border: none !important;
  }
  
  .autorepeatbutton-up {
    transform: scaleY(-1);
  }

  .autorepeatbutton-up[disabled="true"],
  .autorepeatbutton-down[disabled="true"] {
    opacity: 0.6;
  }
  
  autorepeatbutton {
    border: none !important;
    padding: 4px;
  }
  
  .autorepeatbutton-up > .autorepeatbutton-icon,
  .autorepeatbutton-down > .autorepeatbutton-icon {
    -moz-appearance: none !important;
  }
  
  /* WINDOW'S ALERT BOX */
  tabmodalprompt {
    background-color: rgba(0, 0, 0, .6);
    font-family: sans-serif; /* use content font not system UI font */
  }

  .mainContainer {
    color: var(--main-font-color);
    background-color: var(--top-level-bg-color);
    border-radius: 0;
    border: 1px solid var(--blue-accent-color);
  }

  .topContainer {
    padding: 40px 25px;
  }

  .buttonContainer {
    padding: 12px 20px 15px;
    background-color: transparent;
    border-top: none;
  }
  
  tabmodalprompt .buttonContainer button {
    min-width: 200px;
    min-height: 32px;
    font-size: 14px;
  }
  
  tabmodalprompt .info\.title {
    font-size: 19px;
    font-weight: normal;
  }
  
  tabmodalprompt .info\.body {
    font-size: 15px;
    font-weight: normal;
  }

  /* CONTEXT MENUS */
  #bookmarksMenuPopup,
  #goPopup,
  menupopup:not(#BMB_bookmarksPopup),
  splitmenu,
  #PlacesToolbar menupopup {
    -moz-appearance: none !important;
    background-color: var(--context-menu-bg-color) !important;
    border: 1px solid var(--context-menu-border-color) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  
  #BMB_bookmarksPopup menupopup {
    background-color: transparent !important;
    border: none !important;
    padding: 6px !important;
  }

  menuseparator {
    -moz-appearance: none !important;
    border: none !important;
    border-top: 1px solid var(--context-menu-separator-color) !important;
    margin: 4px 12px 4px 12px !important;
    padding: 0 !important;
  }
  
  menu, 
  menuitem, 
  menucaption, 
  .splitmenu-menuitem,
  toolbarbutton.subviewbutton {
    -moz-appearance: none !important;
    color: var(--main-font-color) !important;
    height: 32px !important;
  }
  
  menu:not(.subviewbutton), 
  menuitem:not(.subviewbutton), 
  menucaption:not(.subviewbutton), 
  .splitmenu-menuitem:not(.subviewbutton) {
    background-color: var(--context-menu-bg-color) !important;
  }
  
  menu:not(.subviewbutton):not([disabled="true"]):hover, 
  menuitem:not(.subviewbutton):not([disabled="true"]):hover, 
  menucaption:not(.subviewbutton):not([disabled="true"]):hover, 
  .splitmenu-menuitem:not(.subviewbutton):not([disabled="true"]):hover {
    background-color: var(--context-menu-bg-hover-color) !important;
  }
  
  menu:not(.subviewbutton):not([disabled="true"]):active, 
  menuitem:not(.subviewbutton):not([disabled="true"]):active, 
  menucaption:not(.subviewbutton):not([disabled="true"]):active, 
  .splitmenu-menuitem:not(.subviewbutton):not([disabled="true"]):active {
    background-color: var(--context-menu-bg-active-color) !important;
  }
  
  menu:not(.subviewbutton)[disabled="true"]:hover, 
  menuitem:not(.subviewbutton)[disabled="true"]:hover, 
  menucaption:not(.subviewbutton)[disabled="true"]:hover, 
  .splitmenu-menuitem:not(.subviewbutton)[disabled="true"]:hover {
    background-color: var(--second-level-alt-bg-hover-color) !important;
  }
  
  menu[disabled="true"],
  menuitem[disabled="true"],
  .splitmenu-menuitem[disabled="true"],
  menu[_moz-menuactive][disabled="true"],
  menuitem[_moz-menuactive][disabled="true"],
  .splitmenu-menuitem[_moz-menuactive][disabled="true"] {
    color: var(--gray-text-color) !important;
    text-shadow: none !important;
  }
  
  #menu_firebug_firebugInspect:hover {
    filter: none !important;
  }

  #menu_firebug_firebugInspect:active {
    filter: none !important;
  }
  
  .menu-right {
    -moz-appearance: none !important;
    list-style-image: var(--menu-arrow-image) !important;
    width: inherit !important;
    height: inherit !important;
  }
  
  menu:not(.subviewbutton) > .menu-right {
    margin-right: 6px !important;
  }
  
  #context-navigation .menu-iconic-left {
    list-style-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  #context-back .menu-iconic-left {  
    background-image: var(--back-button-image) !important;    
  }

  #context-back[disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }

  #context-forward .menu-iconic-left {
    background-image: var(--forward-button-image) !important;
  }

  #context-forward[disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }

  #context-reload .menu-iconic-left {
    background-image: var(--reload-button-image) !important;
  }

  #context-reload[disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }

  #context-stop .menu-iconic-left {
    background-image: var(--stop-button-image) !important;
  }

  #context-stop[disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }

  #context-bookmarkpage .menu-iconic-left {
    background-image: -moz-image-rect(var(--bookmarks-menu-button-image), 0, 20, 20, 0) !important;
  }

  #context-bookmarkpage[disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }

  #context-bookmarkpage[starred=true] .menu-iconic-left {
    background-image: -moz-image-rect(var(--bookmarks-menu-button-image), 0, 60, 20, 40) !important;
  }

  #context-bookmarkpage[starred=true][disabled=true] .menu-iconic-left {
    opacity: 0.6;
  }
  
  #context-navigation {
    padding: 0 !important;
  }
  
  menuitem[type="checkbox"]:not(.subviewbutton) {
    padding-left: 6px !important;
  }

  menuitem[checked="true"]:not(.subviewbutton):not([type="radio"]):not(.findbar-button) > .menu-iconic-left {
    background: var(--contextmenu-checkmark) no-repeat center;
  }
  
  menuitem:not(.subviewbutton):not([type="radio"]):not(.menuitem-iconic):not(.findbar-button) > .menu-iconic-left {
    margin-right: 7px !important;
  }
  
  menuitem:not(.subviewbutton):not([type="radio"]):not([type="checkbox"]):not(.menuitem-iconic):not(.findbar-button) > .menu-iconic-left {
    margin-left: 6px !important;
  }
  
  menuitem.subviewbutton:not([type="radio"]):not(.findbar-button)[checked="true"] {
    background-image: var(--contextmenu-checkmark);
    background-position: left;
    background-repeat: no-repeat;
    background-position-x: 7px !important;  
    background-size: auto auto;
  }
  
  toolbarbutton[checked="true"]:not([type="radio"]):not(.findbar-button):not([disabled="true"]) {
    -moz-appearance: none !important;
    background: var(--contextmenu-checkmark) no-repeat left;
    background-position-x: 7px !important;
  }
  
  menuitem[type="radio"] {
    background-position-x: 5px !important;
    padding-left: 13px !important;
  }
  
  menuitem[type="radio"][checked="true"] {
    background: var(--contextmenu-radio) no-repeat left;
  }
  
  menuitem[type="checkbox"] > .menu-iconic-left,
  menuitem[checked="true"] > .menu-iconic-left,
  menuitem[type="radio"] > .menu-iconic-left {
    -moz-appearance: none !important;
    width: 16px;
    height: 16px;
  }
  
  .unified-nav-back[_moz-menuactive] > .menu-iconic-left {
    list-style-image: var(--contextmenu-backarrow) !important;
  }
  
  .unified-nav-forward[_moz-menuactive] > .menu-iconic-left {
    list-style-image: var(--contextmenu-forwardarrow) !important;
  }
  
  @media not all and (min-resolution: 1.1dppx) {
    #mainPopupSet toolbaritem[sdkstylewidget="true"] > toolbarbutton,
    #mainPopupSet :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button:not([attention="success"]), #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"],
    #mainPopupSet toolbarpaletteitem[place="palette"] > :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu) {
      list-style-image: var(--menupanel-images);
    }
    
    #mainPopupSet #PanelUI-help[panel-multiview-anchor="true"]::after,
    :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton[panel-multiview-anchor="true"],
    :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-menubutton-button {
      background-color: var(--blue-accent-color) !important;
      background-image: url(chrome://browser/skin/customizableui/subView-arrow-back-inverted.png) !important;
      background-position: right 10px center, 0;
      background-repeat: no-repeat;
    }
    
    #mainPopupSet #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
    #mainPopupSet #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
    #mainPopupSet toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
    #mainPopupSet toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
      list-style-image: var(--menupanel-small-images);
    }
    
    #mainPopupSet #pocket-button[cui-areatype="menu-panel"],
    #mainPopupSet toolbarpaletteitem[place="palette"] > #pocket-button {
      list-style-image: var(--pocket-menupanel-image) !important;
    }
    
    #mainPopupSet #PanelUI-fxa-label,
    #mainPopupSet #PanelUI-fxa-icon {
      list-style-image: var(--panelui-fxa-icon);
    }
    
    #mainPopupSet #PanelUI-customize {
      list-style-image: var(--panelui-customize-icon);
    }
    
    #mainPopupSet #PanelUI-help {
      list-style-image: var(--panelui-help-icon);
    }

    #mainPopupSet #PanelUI-quit {
      list-style-image: var(--panelui-quit-icon);
    }
    
    .find-status-icon[status="pending"] {
      list-style-image: var(--tab-throbber-animation-image);
    }
  }
  
  @media (min-resolution: 1.1dppx) {
    #mainPopupSet toolbaritem[sdkstylewidget="true"] > toolbarbutton,
    #mainPopupSet :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button:not([attention="success"]), #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"],
    #mainPopupSet toolbarpaletteitem[place="palette"] > :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu) {
      list-style-image: var(--menupanel-images);
    }
    
    #mainPopupSet #PanelUI-help[panel-multiview-anchor="true"]::after,
    :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton[panel-multiview-anchor="true"],
    :-moz-any(#mainPopupSet, #nav-bar) toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-menubutton-button {
      background-color: var(--blue-accent-color) !important;
      background-image: url(chrome://browser/skin/customizableui/subView-arrow-back-inverted@2x.png) !important;
      background-position: right 10px center, 0;
      background-repeat: no-repeat;
    }
    
    #mainPopupSet #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
    #mainPopupSet #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
    #mainPopupSet toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
    #mainPopupSet toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
      list-style-image: var(--menupanel-small-images);
    }
    
    #mainPopupSet #pocket-button[cui-areatype="menu-panel"],
    #mainPopupSet toolbarpaletteitem[place="palette"] > #pocket-button {
      list-style-image: var(--pocket-menupanel-image-2x) !important;
    }
    
    #mainPopupSet #PanelUI-fxa-label,
    #mainPopupSet #PanelUI-fxa-icon {
      list-style-image: var(--panelui-fxa-icon-2x);
    }
    
    #mainPopupSet #PanelUI-customize {
      list-style-image: var(--panelui-customize-icon-2x);
    }
    
    #mainPopupSet #PanelUI-help {
      list-style-image: var(--panelui-help-icon-2x);
    }

    #mainPopupSet #PanelUI-quit {
      list-style-image: var(--panelui-quit-icon-2x);
    }
    
    .find-status-icon[status="pending"] {
      list-style-image: var(--tab-throbber-animation-image2x);
    }
  }

  :root {
    /* COLOR VARIABLES */
    --titlebar-min-max-hover-bg-color: #B3B3B3;
    --titlebar-min-max-active-bg-color: #9F9F9F;
    --titlebar-close-hover-bg-color: #E81123;
    --titlebar-close-active-bg-color: #F06F79;
    --top-level-bg-color: #F2F2F2;
    --top-level-bg-hover-color: #DADADA;
    --top-level-bg-active-color: #C2C2C2;
    --second-level-bg-color: #CCCCCC;
    --second-level-bg-hover-color: #E6E6E6;
    --second-level-bg-active-color: #F9F9F9;
    --second-level-alt-bg-hover-color: #B3B3B3;
    --second-level-alt-bg-active-color: #9F9F9F;
    --tab-scroll-up-down-bg-color: #E6E6E6;
    --tab-scroll-up-down-bg-hover-color: #F2F2F2;
    --tab-scroll-up-down-bg-active-color: #FFFFFF;
    --tab-scroll-up-down-bg-disabled-color: #F2F2F2;
    --tab-button-bg-active-color: #A3A3A3;
    --new-tab-hover-bg-color: #B8B8B8;
    --alltabs-bg-hover-color: #B8B8B8;
    --alltabs-bg-active-color: #A3A3A3;
    --searchbar-bg-color: #E6E6E6;
    --searchbar-bg-hover-color: #D9D9D9;
    --searchbar-bg-active-color: #CCCCCC;
    --tab-separator-color: #7A7A7A;
    --urlbar-separator-color: #919191;
    --navigator-separator-bg-color: #CCCCCC;
    --downloads-indicator-remainder-color: #C2C2C2;
    --downloads-indicator-bg-color: #0078D7;
    --downloads-indicator-paused-bg-color: #FFC40D;
    --main-font-color: #000000;
    --inactive-font-color: #525252;
    --verified-identity-font-color: #107C10;
    --toolbarbutton-badge-bg-color: rgba(100, 100, 100, 0.7);
    --toolbarbutton-badge-border-color: rgba(55, 55, 55, 0.6);
    --panel-separator-color: rgba(145,145,145,0.5);
    --blue-accent-color: #0078D7;
    --gray-text-color: GrayText;
    --hyperlink-text-color: -moz-nativehyperlinktext;
    --button-bg-color: #C2C2C2;
    --button-border-hover-color: #747474;
    --button-bg-active-color: #919191;
    --context-menu-bg-color: #F2F2F2;
    --context-menu-bg-hover-color: #DADADA;
    --context-menu-bg-active-color: #C2C2C2;
    --context-menu-border-color: #CCCCCC;
    --context-menu-separator-color: #919191;
    --findbar-notfound-bg-color: #F66;
    --findbar-flash-bg-color: yellow;

    /* NUMERICAL VARIABLES */
    --image-inversion-percentage: 0%;
    --image-brightness: 1.0;
    --chrome-icon-filter: none;

    /* IMAGE VARIABLES */
    --titlebar-min-image: url("chrome://browser/skin/caption-buttons.svg#minimize");
    --titlebar-max-image: url("chrome://browser/skin/caption-buttons.svg#maximize");
    --titlebar-restore-image: url("chrome://browser/skin/caption-buttons.svg#restore");
    --titlebar-close-image: url("chrome://browser/skin/caption-buttons.svg#close");
    --new-tab-button-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbD0iIzI5MjkyOSI+ICA8cmVjdCB4PSI2IiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxMyIvPiAgPHJlY3QgeD0iMCIgeT0iNiIgd2lkdGg9IjEzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=);
    --tab-close-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDYwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTR7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTJ7c3Ryb2tlOiM0YjRiNGI7fS5jbHMtM3tzdHJva2U6I2ZlMWMxYzt9LmNscy00e3N0cm9rZTojYjIxZDFkO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtaWRsZSIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMHB4KSI+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iNSIgeTE9IjUiIHgyPSIxNSIgeTI9IjE1Ii8+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iMTUiIHkxPSI1IiB4Mj0iNSIgeTI9IjE1Ii8+PC9nPjxnIGlkPSJsaWdodC1ob3ZlciIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMjBweCkiPjxsaW5lIGNsYXNzPSJjbHMtMyIgeDE9IjUiIHkxPSI1IiB4Mj0iMTUiIHkyPSIxNSIvPjxsaW5lIGNsYXNzPSJjbHMtMyIgeDE9IjE1IiB5MT0iNSIgeDI9IjUiIHkyPSIxNSIvPjwvZz48ZyBpZD0ibGlnaHQtYWN0aXZlIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSg0MHB4KSI+PGxpbmUgY2xhc3M9ImNscy00IiB4MT0iNSIgeTE9IjUiIHgyPSIxNSIgeTI9IjE1Ii8+PGxpbmUgY2xhc3M9ImNscy00IiB4MT0iMTUiIHkxPSI1IiB4Mj0iNSIgeTI9IjE1Ii8+PC9nPjwvc3ZnPg==);
    --tab-scroll-up-down-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE1IDE3Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MC45cHg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodCI+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxMSAxNC41IDQuNSA4IDExIDEuNSIvPjwvZz48L3N2Zz4=);
    --default-dropdown-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5IiBoZWlnaHQ9IjciIHZpZXdCb3g9IjAgMCA5IDciPjxkZWZzPjxzdHlsZT4uY2xzLTJ7ZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iOCAxIDQuNSA0LjUgMSAxIi8+PC9nPjwvc3ZnPg==);
    --tab-icon-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9IkxpZ2h0Ij48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjAuNSIgeT0iMS41IiB3aWR0aD0iMTUiIGhlaWdodD0iMTIiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIwLjUiIHkxPSI0LjUiIHgyPSIxNS41IiB5Mj0iNC41Ii8+PC9nPjwvc3ZnPg==);
    --tab-icon-sound-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0IiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgwcHgpIj48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjAgNS41IDIuNSA1LjUgNS41IDIuNSA1LjUgMTMuNSAyLjUgMTAuNSAwLjUgMTAuNSAwLjUgNS41Ii8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMTAuNSwzLjVzNSw0LjUsMCw5LjUiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xMi41LDEuNXM3LDYuNSwwLDEzLjUiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik04LjUsNS41YTMuNTQsMy41NCwwLDAsMSwwLDUuNSIvPjwvZz48ZyBpZD0ibGlnaHQyIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgwcHgpIj48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xMC41LDMuNXM1LDQuNSwwLDkuNSIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTEyLjUsMS41czcsNi41LDAsMTMuNSIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTguNSw1LjVhMy41NCwzLjU0LDAsMCwxLDAsNS41Ii8+PC9nPjxnIGlkPSJsaWdodC1pbmFjdGl2ZSIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMTZweCkiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMCA1LjUgMi41IDUuNSA1LjUgMi41IDUuNSAxMy41IDIuNSAxMC41IDAuNSAxMC41IDAuNSA1LjUiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI4IiB5MT0iNSIgeDI9IjE0IiB5Mj0iMTEiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI4IiB5MT0iMTEiIHgyPSIxNCIgeTI9IjUiLz48L2c+PC9zdmc+);
    --tab-throbber-animation-image: url(data:image/png;base64, );
    --tab-throbber-animation-image2x: url(data:image/png;base64, );
    --back-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjE4LjI1IDI3IDkuNzUgMTguNSAxOC4yNSAxMCIvPjxsaW5lIGNsYXNzPSJjbHMtMiIgeDE9IjI4IiB5MT0iMTguNSIgeDI9IjkuNSIgeTI9IjE4LjUiLz48L2c+PC9zdmc+);
    --forward-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjE4Ljc1IDI3IDI3LjI1IDE4LjUgMTguNzUgMTAiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI5IiB5MT0iMTguNSIgeDI9IjI3LjUiIHkyPSIxOC41Ii8+PC9nPjwvc3ZnPg==);
    --reload-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48ZGVmcz48c3R5bGU+LmNscy0ye29wYWNpdHk6MC4xO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQiPjxyZWN0IHg9IjIuMjUiIHdpZHRoPSI0Ljc1IiBoZWlnaHQ9IjEuMjUiLz48cmVjdCB4PSI1LjUiIHdpZHRoPSIxLjUiIGhlaWdodD0iNC41Ii8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMTEuNDMuMzRsLS40LDFhNy44OSw3Ljg5LDAsMSwxLTQuNTEuMTNMNS42Ni42NUE5LDksMCwxLDAsMTEuNDMuMzRaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwKSIvPjxwYXRoIGQ9Ik0xMS40My4zNGwtLjQsMWE3Ljg5LDcuODksMCwxLDEtNC41MS4xM0w1LjY2LjY1QTksOSwwLDEsMCwxMS40My4zNFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDApIi8+PC9nPjwvc3ZnPg==);
    --stop-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4xcHg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodCI+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iMC45IiB5MT0iMC45IiB4Mj0iMTUuMSIgeTI9IjE1LjEiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIwLjkiIHkxPSIxNS4xIiB4Mj0iMTUuMSIgeTI9IjAuOSIvPjwvZz48L3N2Zz4=);
    --urlbar-history-dropmarker-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDExIDE0Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjEwIDUgNS41IDEwIDEgNSIvPjwvZz48L3N2Zz4=);
    --reader-mode-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDQwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTQsLmNscy01LC5jbHMtNiwuY2xzLTd7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTIsLmNscy0zLC5jbHMtNHtzdHJva2U6IzAwMDt9LmNscy0yLC5jbHMtNXtzdHJva2Utd2lkdGg6MS40cHg7fS5jbHMtMywuY2xzLTZ7c3Ryb2tlLXdpZHRoOjEuNXB4O30uY2xzLTQsLmNscy03e3N0cm9rZS13aWR0aDoxLjJweDt9LmNscy01LC5jbHMtNiwuY2xzLTd7c3Ryb2tlOiMwMDc4ZDc7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodC1pZGxlIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgwcHgpIj48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjMuNjQgMi4yNSAwLjcgMi4yNSAwLjcgMTcuNzUgMTkuMyAxNy43NSAxOS4zIDIuMjUgMTYuMzYgMi4yNSIvPjxsaW5lIGNsYXNzPSJjbHMtMyIgeDE9IjEwIiB5MT0iMiIgeDI9IjEwIiB5Mj0iMTYiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik0xMCwyLjVTMTEuNS41LDE2LjUsMVYxNWgtNEEzLjgxLDMuODEsMCwwLDAsMTAsMTYuNSwzLjY5LDMuNjksMCwwLDAsNy41LDE1Yy0xLjE5LDAtMS41LDAtNCwwVjFDOC41LjUsMTAsMi41LDEwLDIuNVoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMCkiLz48L2c+PGcgaWQ9ImxpZ2h0LWhvdmVyIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgyMHB4KSI+PHBvbHlsaW5lIGNsYXNzPSJjbHMtNSIgcG9pbnRzPSIzLjY0IDIuMjUgMC43IDIuMjUgMC43IDE3Ljc1IDE5LjMgMTcuNzUgMTkuMyAyLjI1IDE2LjM2IDIuMjUiLz48bGluZSBjbGFzcz0iY2xzLTYiIHgxPSIxMCIgeTE9IjIiIHgyPSIxMCIgeTI9IjE2Ii8+PHBhdGggY2xhc3M9ImNscy03IiBkPSJNMTAsMi41UzExLjUuNSwxNi41LDFWMTVoLTRBMy44MSwzLjgxLDAsMCwwLDEwLDE2LjUsMy42OSwzLjY5LDAsMCwwLDcuNSwxNWMtMS4xOSwwLTEuNSwwLTQsMFYxQzguNS41LDEwLDIuNSwxMCwyLjVaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIi8+PC9nPjwvc3ZnPg==);
    --searchbar-search-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDYwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTR7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTJ7c3Ryb2tlOiM1YzVjNWM7fS5jbHMtM3tzdHJva2U6IzJiMmIyYjt9LmNscy00e3N0cm9rZTojMDAwO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtc2VhcmNoLWlkbGUiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDBweCkiPjxjaXJjbGUgY2xhc3M9ImNscy0yIiBjeD0iMTIuNSIgY3k9IjcuNSIgcj0iNSIvPjxsaW5lIGNsYXNzPSJjbHMtMiIgeDE9IjIiIHkxPSIxOCIgeDI9IjkiIHkyPSIxMSIvPjwvZz48ZyBpZD0ibGlnaHQtc2VhcmNoLWhvdmVyIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgyMHB4KSI+PGNpcmNsZSBjbGFzcz0iY2xzLTMiIGN4PSIxMi41IiBjeT0iNy41IiByPSI1Ii8+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMyIgcG9pbnRzPSIxMyAxNSAxNS41IDE3LjUgMTggMTUiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIyIiB5MT0iMTgiIHgyPSI5IiB5Mj0iMTEiLz48L2c+PGcgaWQ9ImxpZ2h0LXNlYXJjaC1hY3RpdmUiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDQwcHgpIj48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjEyLjUiIGN5PSI3LjUiIHI9IjUiLz48cG9seWxpbmUgY2xhc3M9ImNscy00IiBwb2ludHM9IjEzIDE1IDE1LjUgMTcuNSAxOCAxNSIvPjxsaW5lIGNsYXNzPSJjbHMtNCIgeDE9IjIiIHkxPSIxOCIgeDI9IjkiIHkyPSIxMSIvPjwvZz48L3N2Zz4=);
    --searchbar-search-button-addengines-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDYwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTQsLmNscy01LC5jbHMtNiwuY2xzLTd7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTJ7c3Ryb2tlOiM1YzVjNWM7fS5jbHMtM3tzdHJva2U6IzI4YTgyODt9LmNscy00e3N0cm9rZTojMmIyYjJiO30uY2xzLTV7c3Ryb2tlOiMyMzkzMjM7fS5jbHMtNntzdHJva2U6IzAwMDt9LmNscy03e3N0cm9rZTojMWU3ZjFlO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtc2VuZ2luZS1pZGxlIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgwcHgpIj48Y2lyY2xlIGNsYXNzPSJjbHMtMiIgY3g9IjEyLjUiIGN5PSI3LjUiIHI9IjUiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIyIiB5MT0iMTgiIHgyPSI5IiB5Mj0iMTEiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIxNS41IiB5MT0iMTQiIHgyPSIxNS41IiB5Mj0iMTkiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIxMyIgeTE9IjE2LjUiIHgyPSIxOCIgeTI9IjE2LjUiLz48L2c+PGcgaWQ9ImxpZ2h0LXNlbmdpbmUtaG92ZXIiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDIwcHgpIj48Y2lyY2xlIGNsYXNzPSJjbHMtNCIgY3g9IjEyLjUiIGN5PSI3LjUiIHI9IjUiLz48bGluZSBjbGFzcz0iY2xzLTQiIHgxPSIyIiB5MT0iMTgiIHgyPSI5IiB5Mj0iMTEiLz48bGluZSBjbGFzcz0iY2xzLTUiIHgxPSIxNS41IiB5MT0iMTQiIHgyPSIxNS41IiB5Mj0iMTkiLz48bGluZSBjbGFzcz0iY2xzLTUiIHgxPSIxMyIgeTE9IjE2LjUiIHgyPSIxOCIgeTI9IjE2LjUiLz48L2c+PGcgaWQ9ImxpZ2h0LXNlbmdpbmUtYWN0aXZlIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSg0MHB4KSI+PGNpcmNsZSBjbGFzcz0iY2xzLTYiIGN4PSIxMi41IiBjeT0iNy41IiByPSI1Ii8+PGxpbmUgY2xhc3M9ImNscy02IiB4MT0iMiIgeTE9IjE4IiB4Mj0iOSIgeTI9IjExIi8+PGxpbmUgY2xhc3M9ImNscy03IiB4MT0iMTUuNSIgeTE9IjE0IiB4Mj0iMTUuNSIgeTI9IjE5Ii8+PGxpbmUgY2xhc3M9ImNscy03IiB4MT0iMTMiIHkxPSIxNi41IiB4Mj0iMTgiIHkyPSIxNi41Ii8+PC9nPjwvc3ZnPg==);
    --searchbar-go-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MiIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDQyIDE0Ij48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTR7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTJ7c3Ryb2tlOiM1NDU0NTQ7fS5jbHMtM3tzdHJva2U6IzJhYWQxZTt9LmNscy00e3N0cm9rZTojMjI4YjE4O308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtaWRsZSIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMHB4KSI+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iMiIgeTE9IjcuNSIgeDI9IjExIiB5Mj0iNy41Ii8+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSI4IDQgMTEuNSA3LjUgOCAxMSIvPjwvZz48ZyBpZD0ibGlnaHQtaG92ZXIiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDE0cHgpIj48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIyIiB5MT0iNy41IiB4Mj0iMTEiIHkyPSI3LjUiLz48cG9seWxpbmUgY2xhc3M9ImNscy0zIiBwb2ludHM9IjggNCAxMS41IDcuNSA4IDExIi8+PC9nPjxnIGlkPSJsaWdodC1hY3RpdmUiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDI4cHgpIj48bGluZSBjbGFzcz0iY2xzLTQiIHgxPSIyIiB5MT0iNy41IiB4Mj0iMTEiIHkyPSI3LjUiLz48cG9seWxpbmUgY2xhc3M9ImNscy00IiBwb2ludHM9IjggNCAxMS41IDcuNSA4IDExIi8+PC9nPjwvc3ZnPg==);
    --bookmarks-menu-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDYwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtM3tmaWxsOm5vbmU7fS5jbHMtMntzdHJva2U6IzAwMDt9LmNscy0yLC5jbHMtMywuY2xzLTR7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuMnB4O30uY2xzLTMsLmNscy00e3N0cm9rZTojZmZiOTAwO30uY2xzLTR7ZmlsbDojZmZiOTAwO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtaWRsZSIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMHB4KSI+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjEuOCA4IDggOCAxMCAyIDEyIDggMTguMiA4IDEzIDEyIDE1IDE4LjMgMTAgMTQuNSA1IDE4LjMgNyAxMiAxLjggOCIvPjwvZz48ZyBpZD0ibGlnaHQtaG92ZXIiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDIwcHgpIj48cG9seWdvbiBjbGFzcz0iY2xzLTMiIHBvaW50cz0iMS44IDggOCA4IDEwIDIgMTIgOCAxOC4yIDggMTMgMTIgMTUgMTguMyAxMCAxNC41IDUgMTguMyA3IDEyIDEuOCA4Ii8+PC9nPjxnIGlkPSJsaWdodC1hY3RpdmUiIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDQwcHgpIj48cG9seWdvbiBjbGFzcz0iY2xzLTQiIHBvaW50cz0iMS44IDggOCA4IDEwIDIgMTIgOCAxOC4yIDggMTMgMTIgMTUgMTguMyAxMCAxNC41IDUgMTguMyA3IDEyIDEuOCA4Ii8+PC9nPjwvc3ZnPg==);
    --bookmarks-menu-button-dropmarker-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDQwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtM3tmaWxsOm5vbmU7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjEuMjVweDt9LmNscy0ye3N0cm9rZTojMDAwO30uY2xzLTN7c3Ryb2tlOiMwMDc4ZDc7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodC1pZGxlIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgwcHgpIj48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIyMCIgeTE9IjMuMjUiIHgyPSI5IiB5Mj0iMy4yNSIvPjxsaW5lIGNsYXNzPSJjbHMtMiIgeDE9IjMiIHkxPSIxMC43NSIgeDI9IjIwIiB5Mj0iMTAuNzUiLz48bGluZSBjbGFzcz0iY2xzLTIiIHkxPSIxNC43NSIgeDI9IjE3IiB5Mj0iMTQuNzUiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSIzIiB5MT0iMTguNSIgeDI9IjIwIiB5Mj0iMTguNSIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTE3LDdIM1MxLDcsMSw2VjNTMSwyLDMsMiw1LDMsNSwzVjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgMCkiLz48L2c+PGcgaWQ9ImxpZ2h0LWhvdmVyIiBzdHlsZT0idHJhbnNmb3JtOnRyYW5zbGF0ZSgyMHB4KSI+PGxpbmUgY2xhc3M9ImNscy0zIiB4MT0iMjAiIHkxPSIzLjI1IiB4Mj0iOSIgeTI9IjMuMjUiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIzIiB5MT0iMTAuNzUiIHgyPSIyMCIgeTI9IjEwLjc1Ii8+PGxpbmUgY2xhc3M9ImNscy0zIiB5MT0iMTQuNzUiIHgyPSIxNyIgeTI9IjE0Ljc1Ii8+PGxpbmUgY2xhc3M9ImNscy0zIiB4MT0iMyIgeTE9IjE4LjUiIHgyPSIyMCIgeTI9IjE4LjUiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0xNyw3SDNTMSw3LDEsNlYzUzEsMiwzLDIsNSwzLDUsM1Y1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDApIi8+PC9nPjwvc3ZnPg==);
    --bookmarked-notification-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6I2ZmYjkwMDtzdHJva2U6I2ZmYjkwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4ycHg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJib29rbWFya2VkLW5vdGlmaWNhdGlvbiI+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjEuOCA4IDggOCAxMCAyIDEyIDggMTguMiA4IDEzIDEyIDE1IDE4LjMgMTAgMTQuNSA1IDE4LjMgNyAxMiAxLjggOCIvPjwvZz48L3N2Zz4=);
    --downloads-button-img: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDQwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtMywuY2xzLTQsLmNscy01LC5jbHMtNiwuY2xzLTd7ZmlsbDpub25lO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTIsLmNscy0zLC5jbHMtNHtzdHJva2U6IzAwMDt9LmNscy0zLC5jbHMtNntzdHJva2Utd2lkdGg6MnB4O30uY2xzLTQsLmNscy03e3N0cm9rZS13aWR0aDoxLjc1cHg7fS5jbHMtNSwuY2xzLTYsLmNscy03e3N0cm9rZTojMDA3OGQ3O308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQtaWRsZSIgc3R5bGU9InRyYW5zZm9ybTp0cmFuc2xhdGUoMHB4KSI+PGxpbmUgY2xhc3M9ImNscy0yIiB4MT0iMyIgeTE9IjE5LjUiIHgyPSIxNyIgeTI9IjE5LjUiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSIxMCIgeTE9IjE1IiB4Mj0iMTAiIHkyPSIxIi8+PHBvbHlsaW5lIGNsYXNzPSJjbHMtNCIgcG9pbnRzPSIzLjUgOS41IDEwIDE1LjI1IDE2LjUgOS41Ii8+PC9nPjxnIGlkPSJsaWdodC1hdHRlbnRpb24iIHN0eWxlPSJ0cmFuc2Zvcm06dHJhbnNsYXRlKDIwcHgpIj48bGluZSBjbGFzcz0iY2xzLTUiIHgxPSIzIiB5MT0iMTkuNSIgeDI9IjE3IiB5Mj0iMTkuNSIvPjxsaW5lIGNsYXNzPSJjbHMtNiIgeDE9IjEwIiB5MT0iMTUiIHgyPSIxMCIgeTI9IjEiLz48cG9seWxpbmUgY2xhc3M9ImNscy03IiBwb2ludHM9IjMuNSA5LjUgMTAgMTUuMjUgMTYuNSA5LjUiLz48L2c+PC9zdmc+);
    --downloads-button-image: -moz-image-rect(var(--downloads-button-img), 0, 20, 20, 0);
    --downloads-button-attention-image: -moz-image-rect(var(--downloads-button-img), 0, 40, 20, 20);
    --downloads-button-start-notification-image: var(--downloads-button-image);
    --downloads-button-finish-notification-image: var(--downloads-button-attention-image);
    --menu-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZyBpZD0ibGlnaHQiPjxjaXJjbGUgY3g9IjIuNSIgY3k9IjEwIiByPSIxLjM4Ii8+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iMS4zOCIvPjxjaXJjbGUgY3g9IjE3LjUiIGN5PSIxMCIgcj0iMS4zOCIvPjwvZz48L3N2Zz4=);
    --bookmarks-drop-indicator-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5IiBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOSAxOCI+PGRlZnM+PHN0eWxlPi5jbHMtMiwuY2xzLTN7ZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO30uY2xzLTN7c3Ryb2tlLWRhc2hhcnJheToxO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMC41IDAuNSA0LjUgNC41IDguNSAwLjUiLz48bGluZSBjbGFzcz0iY2xzLTMiIHgxPSI0LjUiIHkxPSI4IiB4Mj0iNC41IiB5Mj0iMTciLz48L2c+PC9zdmc+);
    --bookmarks-chevron-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDE4IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjEgMSA5IDkgMTcgMSIvPjwvZz48L3N2Zz4=);
    --bookmarks-favicon-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MS4ycHg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodC1mYXZpY29uIj48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMS44IDggOCA4IDEwIDIgMTIgOCAxOC4yIDggMTMgMTIgMTUgMTguMyAxMCAxNC41IDUgMTguMyA3IDEyIDEuOCA4Ii8+PC9nPjwvc3ZnPg==);
    --pocket-button-image: url(chrome://pocket/skin/Toolbar.png);
    --pocket-button-image2x: url(chrome://pocket/skin/Toolbar@2x.png);
    --panel-arrow-vertical: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEwIj4gIDxwYXRoIGQ9Ik0gMCwxMCBMIDEwLDAgMjAsMTAgeiIgZmlsbD0iIzkxOTE5MSIvPiAgPHBhdGggZD0iTSAxLDEwIEwgMTAsMSAxOSwxMCB6IiBmaWxsPSIjRjJGMkYyIi8+PC9zdmc+);
    --menupanel-images: url(chrome://browser/skin/menuPanel.svg);
    --menupanel-small-images: url(chrome://browser/skin/menuPanel-small.svg);
    --pocket-menupanel-image: url(chrome://pocket/skin/menuPanel.png);
    --pocket-menupanel-image-2x: url(chrome://pocket/skin/menuPanel@2x.png);
    --panelui-fxa-icon: url(chrome://browser/skin/sync-horizontalbar.png);
    --panelui-fxa-icon-2x: url(chrome://browser/skin/sync-horizontalbar@2x.png);
    --panelui-customize-icon: url(chrome://browser/skin/menuPanel-customize.png);
    --panelui-customize-icon-2x: url(chrome://browser/skin/menuPanel-customize@2x.png);
    --panelui-help-icon: url(chrome://browser/skin/menuPanel-help.png);
    --panelui-help-icon-2x: url(chrome://browser/skin/menuPanel-help@2x.png);
    --panelui-quit-icon: url(chrome://browser/skin/menuPanel-exit.png);
    --panelui-quit-icon-2x: url(chrome://browser/skin/menuPanel-exit@2x.png);
    --arrow-subview-forward-image: url(chrome://browser/skin/controlcenter/arrow-subview.svg);
    --menu-arrow-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjUgMiAxMSA4IDUgMTQiLz48L2c+PC9zdmc+);
    --menulist-dropdown-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiPjxkZWZzPjxzdHlsZT4uY2xzLTJ7ZmlsbDpub25lO3N0cm9rZTojMDAwO3N0cm9rZS1taXRlcmxpbWl0OjEwO308L3N0eWxlPjwvZGVmcz48ZyBpZD0ibGlnaHQiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMSAxIDcgNi41IDEzIDEiLz48L2c+PC9zdmc+);
    --contextmenu-checkmark: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSI5LjI0IiB2aWV3Qm94PSIwIDAgMTUgOS4yNCI+PGRlZnM+PHN0eWxlPi5jbHMtMntmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodCI+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxIDUuNSAyLjUgNS41IDUgOC41IDEzIDAuNSAxNCAwLjUiLz48L2c+PC9zdmc+);
    --contextmenu-radio: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBpZD0ibGlnaHQiPjxjaXJjbGUgY3g9IjgiIGN5PSI4IiByPSIzIi8+PC9nPjwvc3ZnPg==);
    --contextmenu-backarrow: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwNzhkNztzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImRhcmsiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMTEgMiA1IDggMTEgMTQiLz48L2c+PC9zdmc+);
    --contextmenu-forwardarrow: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwNzhkNztzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImRhcmsiPjxwb2x5bGluZSBjbGFzcz0iY2xzLTIiIHBvaW50cz0iNSAyIDExIDggNSAxNCIvPjwvZz48L3N2Zz4=);
    --tab-drop-indicator: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSIxMSIgdmlld0JveD0iMCAwIDExIDExIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6IzAwMDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9ImxpZ2h0Ij48cG9seWxpbmUgY2xhc3M9ImNscy0yIiBwb2ludHM9IjEgNS41IDUuNSAxIDEwIDUuNSIvPjxsaW5lIGNsYXNzPSJjbHMtMiIgeDE9IjUuNSIgeTE9IjExIiB4Mj0iNS41IiB5Mj0iMS41Ii8+PC9nPjwvc3ZnPg==);
    --navbar-toolbarbutton-images: url(chrome://browser/skin/Toolbar.png);
    --navbar-toolbarbutton-images2x: url(chrome://browser/skin/Toolbar@2x.png);
    --home-button-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOSIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDE5IDE3Ij48ZGVmcz48c3R5bGU+LmNscy0yLC5jbHMtM3tmaWxsOm5vbmU7c3Ryb2tlOiMwMDA7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fS5jbHMtMntzdHJva2Utd2lkdGg6MS4xcHg7fS5jbHMtM3tzdHJva2Utd2lkdGg6MS4ycHg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJsaWdodCI+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxIDEwIDkuNSAxIDE4IDEwIi8+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMyIgcG9pbnRzPSIzIDggMyAxNiA3LjUgMTYgNy41IDEwLjUgMTEuNSAxMC41IDExLjUgMTYgMTYgMTYgMTYgOCIvPjwvZz48L3N2Zz4=);
    --identity-icon-image: url(chrome://browser/skin/identity-icon.svg#normal-black);
    --identity-icon-hover-image: url(chrome://browser/skin/identity-icon.svg#hover-black);
    --identity-icon-notice-image: url(chrome://browser/skin/identity-icon.svg#notice-black);
    --identity-icon-notice-hover-image: url(chrome://browser/skin/identity-icon.svg#notice-hover-black);
    --tracking-protection-enabled-image: url(chrome://browser/skin/tracking-protection-16.svg#enabled-black);
    --tracking-protection-disabled-image: url(chrome://browser/skin/tracking-protection-16.svg#disabled-black);
    --connection-mixed-passive-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon-black);
    --connection-mixed-active-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg#icon-black);
    --connection-mixed-passive-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon-black);
  }

}
 
@import url("chrome://global/skin/");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");




/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */




:root {
  --titlebar-text-color: currentColor;

  --space-above-tabbar: 15px;

  --backbutton-urlbar-overlap: 6px;

  /* icon width + border + horizontal padding (without the overlap from backbutton-urlbar-overlap) */
  --forwardbutton-width: 25px;

  --toolbarbutton-vertical-inner-padding: 2px;
  --toolbarbutton-vertical-outer-padding: 8px;

  --toolbarbutton-hover-background: rgba(0,0,0,.1);
  --toolbarbutton-hover-bordercolor: rgba(0,0,0,.2);
  --toolbarbutton-hover-boxshadow: none;

  --toolbarbutton-active-background: rgba(0,0,0,.15);
  --toolbarbutton-active-bordercolor: rgba(0,0,0,.3);
  --toolbarbutton-active-boxshadow: 0 0 0 1px rgba(0,0,0,.15) inset;

  --toolbarbutton-checkedhover-backgroundcolor: rgba(0,0,0,.1);

  --urlbar-dropmarker-url: url("chrome://browser/skin/urlbar-history-dropmarker.png");
  --urlbar-dropmarker-region: rect(0px, 11px, 14px, 0px);
  --urlbar-dropmarker-hover-region: rect(0px, 22px, 14px, 11px);
  --urlbar-dropmarker-active-region: rect(0px, 33px, 14px, 22px);
  --urlbar-dropmarker-2x-url: url("chrome://browser/skin/urlbar-history-dropmarker@2x.png");
  --urlbar-dropmarker-2x-region: rect(0, 22px, 28px, 0);
  --urlbar-dropmarker-hover-2x-region: rect(0, 44px, 28px, 22px);
  --urlbar-dropmarker-active-2x-region: rect(0, 66px, 28px, 44px);

  --panel-separator-color: ThreeDLightShadow;
  --arrowpanel-dimmed: hsla(0,0%,80%,.3);
  --arrowpanel-dimmed-further: hsla(0,0%,80%,.45);
  --arrowpanel-dimmed-even-further: hsla(0,0%,80%,.8);

  --urlbar-separator-color: ThreeDLightShadow;
}

  /* Dark theme support - activates on OS dark mode or manual toggle */
  @media (prefers-color-scheme: dark) {
    :root {
      --titlebar-min-max-hover-bg-color: #4a4a4a;
      --titlebar-min-max-active-bg-color: #3c3c3c;
      --titlebar-close-hover-bg-color: #c42b1c;
      --titlebar-close-active-bg-color: #a62518;
      --top-level-bg-color: #2b2b2b;
      --top-level-bg-hover-color: #3c3c3c;
      --top-level-bg-active-color: #4a4a4a;
      --toolbar-bgcolor: #2b2b2b;
      --toolbar-bgimage: none;
      --toolbar-field-background-color: #3c3c3c;
      --toolbar-field-color: #e0e0e0;
      --toolbar-field-border-color: #5a5a5a;
      --toolbar-field-focus-background-color: #3c3c3c;
      --toolbar-field-focus-color: #ffffff;
      --toolbar-field-focus-border-color: #0078d7;
      --button-bgcolor: #3c3c3c;
      --button-hover-bgcolor: #4a4a4a;
      --button-active-bgcolor: #5a5a5a;
      --button-primary-bgcolor: #0078d7;
      --button-primary-hover-bgcolor: #1084d7;
      --button-primary-active-bgcolor: #0066b3;
      --tabs-border: 1px solid #1a1a1a;
      --tab-bgcolor: #3c3c3c;
      --tab-hover-bgcolor: #4a4a4a;
      --tab-selected-bgcolor: #2b2b2b;
      --tab-text-color: #e0e0e0;
      --scrollbar-thumb-bgcolor: #5a5a5a;
      --scrollbar-thumb-hover-bgcolor: #6a6a6a;
      --scrollbar-track-bgcolor: #2b2b2b;
      --autocomplete-popup-background: #2b2b2b;
      --autocomplete-popup-border-color: #5a5a5a;
      --autocomplete-popup-highlight-background: #0078d7;
      --second-level-bg-color: #3c3c3c;
      --second-level-bg-hover-color: #4a4a4a;
      --second-level-bg-active-color: #5a5a5a;
      --second-level-alt-bg-hover-color: #5a5a5a;
      --second-level-alt-bg-active-color: #6a6a6a;
      --tab-scroll-up-down-bg-color: #3c3c3c;
      --tab-scroll-up-down-bg-hover-color: #4a4a4a;
      --tab-scroll-up-down-bg-active-color: #5a5a5a;
      --tab-scroll-up-down-bg-disabled-color: #3c3c3c;
      --tab-button-bg-active-color: #5a5a5a;
      --new-tab-hover-bg-color: #4a4a4a;
      --alltabs-bg-hover-color: #4a4a4a;
      --alltabs-bg-active-color: #5a5a5a;
      --searchbar-bg-color: #3c3c3c;
      --searchbar-bg-hover-color: #4a4a4a;
      --searchbar-bg-active-color: #5a5a5a;
      --tab-separator-color: #4a4a4a;
      --urlbar-separator-color: #5a5a5a;
      --navigator-separator-bg-color: #5a5a5a;
      --downloads-indicator-remainder-color: #5a5a5a;
      --downloads-indicator-bg-color: #0078d7;
      --downloads-indicator-paused-bg-color: #ffa500;
      --main-font-color: #e0e0e0;
      --inactive-font-color: #b0b0b0;
      --verified-identity-font-color: #90ee90;
      --toolbarbutton-badge-bg-color: rgba(0, 120, 215, 0.8);
      --toolbarbutton-badge-border-color: rgba(255, 255, 255, 0.3);
      --panel-separator-color: rgba(255, 255, 255, 0.1);
      --blue-accent-color: #0078d7;
      --gray-text-color: #b0b0b0;
      --hyperlink-text-color: #6eb3ff;
      --button-bg-color: #3c3c3c;
      --button-border-hover-color: #6a6a6a;
      --button-bg-active-color: #5a5a5a;
      --context-menu-bg-color: #2b2b2b;
      --context-menu-bg-hover-color: #3c3c3c;
      --context-menu-bg-active-color: #4a4a4a;
      --context-menu-border-color: #5a5a5a;
      --context-menu-separator-color: #5a5a5a;
      --findbar-notfound-bg-color: #5a3030;
      --findbar-flash-bg-color: #5a5a00;
      --image-inversion-percentage: 100%;
      --image-brightness: 1.0;
      --chrome-icon-filter: invert(100%) brightness(1.12);
      --arrowpanel-dimmed: hsla(0,0%,20%,.3);
      --arrowpanel-dimmed-further: hsla(0,0%,20%,.45);
      --arrowpanel-dimmed-even-further: hsla(0,0%,20%,.8);
    }
  }

  /* Manual dark theme toggle - can be set via data-theme attribute */
  :root[data-theme="dark"] {
    --titlebar-min-max-hover-bg-color: #4a4a4a;
    --titlebar-min-max-active-bg-color: #3c3c3c;
    --titlebar-close-hover-bg-color: #c42b1c;
    --titlebar-close-active-bg-color: #a62518;
    --top-level-bg-color: #2b2b2b;
    --top-level-bg-hover-color: #3c3c3c;
    --top-level-bg-active-color: #4a4a4a;
    --toolbar-bgcolor: #2b2b2b;
    --toolbar-bgimage: none;
    --toolbar-field-background-color: #3c3c3c;
    --toolbar-field-color: #e0e0e0;
    --toolbar-field-border-color: #5a5a5a;
    --toolbar-field-focus-background-color: #3c3c3c;
    --toolbar-field-focus-color: #ffffff;
    --toolbar-field-focus-border-color: #0078d7;
    --button-bgcolor: #3c3c3c;
    --button-hover-bgcolor: #4a4a4a;
    --button-active-bgcolor: #5a5a5a;
    --button-primary-bgcolor: #0078d7;
    --button-primary-hover-bgcolor: #1084d7;
    --button-primary-active-bgcolor: #0066b3;
    --tabs-border: 1px solid #1a1a1a;
    --tab-bgcolor: #3c3c3c;
    --tab-hover-bgcolor: #4a4a4a;
    --tab-selected-bgcolor: #2b2b2b;
    --tab-text-color: #e0e0e0;
    --scrollbar-thumb-bgcolor: #5a5a5a;
    --scrollbar-thumb-hover-bgcolor: #6a6a6a;
    --scrollbar-track-bgcolor: #2b2b2b;
    --autocomplete-popup-background: #2b2b2b;
    --autocomplete-popup-border-color: #5a5a5a;
    --autocomplete-popup-highlight-background: #0078d7;
    --second-level-bg-color: #3c3c3c;
    --second-level-bg-hover-color: #4a4a4a;
    --second-level-bg-active-color: #5a5a5a;
    --second-level-alt-bg-hover-color: #5a5a5a;
    --second-level-alt-bg-active-color: #6a6a6a;
    --tab-scroll-up-down-bg-color: #3c3c3c;
    --tab-scroll-up-down-bg-hover-color: #4a4a4a;
    --tab-scroll-up-down-bg-active-color: #5a5a5a;
    --tab-scroll-up-down-bg-disabled-color: #3c3c3c;
    --tab-button-bg-active-color: #5a5a5a;
    --new-tab-hover-bg-color: #4a4a4a;
    --alltabs-bg-hover-color: #4a4a4a;
    --alltabs-bg-active-color: #5a5a5a;
    --searchbar-bg-color: #3c3c3c;
    --searchbar-bg-hover-color: #4a4a4a;
    --searchbar-bg-active-color: #5a5a5a;
    --tab-separator-color: #4a4a4a;
    --urlbar-separator-color: #5a5a5a;
    --navigator-separator-bg-color: #5a5a5a;
    --downloads-indicator-remainder-color: #5a5a5a;
    --downloads-indicator-bg-color: #0078d7;
    --downloads-indicator-paused-bg-color: #ffa500;
    --main-font-color: #e0e0e0;
    --inactive-font-color: #b0b0b0;
    --verified-identity-font-color: #90ee90;
    --toolbarbutton-badge-bg-color: rgba(0, 120, 215, 0.8);
    --toolbarbutton-badge-border-color: rgba(255, 255, 255, 0.3);
    --panel-separator-color: rgba(255, 255, 255, 0.1);
    --blue-accent-color: #0078d7;
    --gray-text-color: #b0b0b0;
    --hyperlink-text-color: #6eb3ff;
    --button-bg-color: #3c3c3c;
    --button-border-hover-color: #6a6a6a;
    --button-bg-active-color: #5a5a5a;
    --context-menu-bg-color: #2b2b2b;
    --context-menu-bg-hover-color: #3c3c3c;
    --context-menu-bg-active-color: #4a4a4a;
    --context-menu-border-color: #5a5a5a;
    --context-menu-separator-color: #5a5a5a;
    --findbar-notfound-bg-color: #5a3030;
    --findbar-flash-bg-color: #5a5a00;
    --image-inversion-percentage: 100%;
    --image-brightness: 1.0;
    --chrome-icon-filter: invert(100%) brightness(1.12);
    --arrowpanel-dimmed: hsla(0,0%,20%,.3);
    --arrowpanel-dimmed-further: hsla(0,0%,20%,.45);
    --arrowpanel-dimmed-even-further: hsla(0,0%,20%,.8);
  }

@media (-moz-windows-default-theme) {
  :root {
    --panel-separator-color: hsla(210,4%,10%,.14);
  }
}

toolbar[brighttext] {
  --toolbarbutton-hover-background: rgba(255,255,255,.25);
  --toolbarbutton-hover-bordercolor: rgba(255,255,255,.5);

  --toolbarbutton-active-background: rgba(255,255,255,.4);
  --toolbarbutton-active-bordercolor: rgba(255,255,255,.7);
  --toolbarbutton-active-boxshadow: 0 0 0 1px rgba(255,255,255,.4) inset;

  --toolbarbutton-checkedhover-backgroundcolor: rgba(255,255,255,.3);
}

toolbar:-moz-lwtheme {
  --toolbarbutton-hover-background: rgba(255,255,255,.25);
  --toolbarbutton-hover-bordercolor: rgba(0,0,0,.2);

  --toolbarbutton-active-background: rgba(70%,70%,70%,.25);
  --toolbarbutton-active-bordercolor: rgba(0,0,0,.3);
  --toolbarbutton-active-boxshadow: 0 0 2px rgba(0,0,0,.6) inset;

  --toolbarbutton-checkedhover-backgroundcolor: rgba(85%,85%,85%,.25);
}

#menubar-items {
  -moz-box-orient: vertical; /* for flex hack */
}

#main-menubar {
  -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
}

/* Hides the titlebar-placeholder underneath the window caption buttons when we
   are not autohiding the menubar. */
#toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-placeholder[type="caption-buttons"] {
  display: none;
}

/* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
   toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care
   of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */
#toolbar-menubar:not([autohide=true]) ~ #TabsToolbar:not([inFullscreen]),
#toolbar-menubar[autohide=true]:not([inactive]) ~ #TabsToolbar:not([inFullscreen]) {
  margin-top: 3px;
}

#main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
#main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
  margin-top: var(--space-above-tabbar);
}

#main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[customizing-dragovertarget].customization-target::before,
#main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar[customizing-dragovertarget].customization-target::before,
#main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar.customization-target:hover::before,
#main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar.customization-target:hover::before {
  outline-color: CaptionText;
}

#navigator-toolbox {
  -moz-appearance: none;
  background-color: transparent;
  border-top: none;
}

@media (-moz-os-version: windows-win10) and (-moz-windows-theme: aero) {
  #navigator-toolbox {
    /* Override the global style for Windows 10 that adds a bottom border */
    border-bottom: none;
  }
}

#navigator-toolbox::after {
  content: "";
  display: -moz-box;
  -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
  border-bottom: 1px solid ThreeDShadow;
}

@media (-moz-windows-default-theme) {
  @media (-moz-os-version: windows-vista),
         (-moz-os-version: windows-win7) {
    #navigator-toolbox::after {
      border-bottom-color: #aabccf;
    }
  }

  @media (-moz-os-version: windows-win8),
         (-moz-os-version: windows-win10) {
    #navigator-toolbox::after {
      border-bottom-color: #c2c2c2;
    }
  }
}

#navigator-toolbox:-moz-lwtheme::after {
  border-bottom-color: rgba(0,0,0,.3);
}

#navigator-toolbox > toolbar {
  -moz-appearance: none;
  border-style: none;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
  background-clip: padding-box;
  background-image: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4));
}

@media (-moz-os-version: windows-xp),
       (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  #nav-bar {
    background-image: linear-gradient(rgba(255,255,255,.4), transparent) !important;
  }

  #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar) {
    background-image: none;
  }
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(:-moz-lwtheme) {
  background-color: -moz-Dialog;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
  overflow: clip;
  max-height: 4em;
  transition: min-height 170ms ease-out, max-height 170ms ease-out;
  padding: 0 5px;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
  min-height: 0.1px;
  max-height: 0;
  transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}

#toolbar-menubar,
#TabsToolbar {
  color: var(--titlebar-text-color);
}

@media not all and (-moz-windows-compositor),
       not all and (-moz-windows-default-theme) {
  /* Please keep the menu text colors in this media block in sync with
   * devedition.css, minus the :not(:-moz-lwtheme) condition - see Bug 1165718.
   */
  :root[tabsintitlebar]:not([inFullscreen]):not(:-moz-lwtheme) {
    --titlebar-text-color: CaptionText;
  }

  :root[tabsintitlebar]:not([inFullscreen]):not(:-moz-lwtheme):-moz-window-inactive {
    --titlebar-text-color: InactiveCaptionText;
  }
}

@media not all and (-moz-windows-compositor) {
  #main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
    visibility: hidden;
  }

  #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme {
    -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
    visibility: visible;
  }

  /* Top-level menu appearance has transparent background, so the text color
     needs to be inherited from our custom menubar too. */
  #main-window[tabsintitlebar] #main-menubar > menu:not(:-moz-lwtheme) {
    color: inherit;
  }
}

/**
 * In the classic themes, the titlebar has a horizontal gradient, which is
 * problematic for reading the text of background tabs when they're in the
 * titlebar. We side-step this issue by layering our own background underneath
 * the tabs. Unfortunately, this requires a bunch of positioning in order to get
 * text and icons to not appear fuzzy.
 */
@media (-moz-windows-classic) {
  /**
   * We need to bump up the z-index of the tabbrowser-tabs so that they appear
   * over top of the fog we're applying for classic themes, as well as the nav-bar.
   */
  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #tabbrowser-tabs {
    position: relative;
    z-index: 2;
  }

  #main-window[tabsintitlebar] #TabsToolbar:not(:-moz-lwtheme) {
    position: relative;
  }

  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar:not(:-moz-lwtheme)::after {
    /* Because we use placeholders for window controls etc. in the tabstrip,
     * and position those with ordinal attributes, and because our layout code
     * expects :before/:after nodes to come first/last in the frame list,
     * we have to reorder this element to come last, hence the
     * ordinal group value (see bug 853415). */
    -moz-box-ordinal-group: 1001;
    box-shadow: 0 0 50px 8px ActiveCaption;
    content: "";
    display: -moz-box;
    height: 0;
    margin: 0 50px;
    position: absolute;
    pointer-events: none;
    top: 100%;
    width: -moz-available;
  }

  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive::after {
    box-shadow: 0 0 50px 8px InactiveCaption;
  }

  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) toolbar[customindex]:not(:-moz-lwtheme),
  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #PersonalToolbar:not(:-moz-lwtheme) {
    position: relative;
  }

  /* Need to constrain the box shadow fade to avoid overlapping layers, see bug 886281. */
  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #navigator-toolbox:not(:-moz-lwtheme) {
    overflow: clip;
  }

  /**
   * When the tabstrip is overflowed, pinned tab separators get position: absolute,
   * which makes the pinned tab separators leak over the nav-bar highlight. Forcing
   * the element to snap to the bottom of the client rect works around the issue.
   */
  #main-window[tabsintitlebar] #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned]::before {
    bottom: 0px;
  }

  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar .toolbarbutton-1 {
    position: relative;
    z-index: 1;
  }

  /**
   * With the tabbrowser-tabs element z-index'd above the nav-bar, we now get the
   * scrollbox button borders leaking over the nav-bar highlight. This transparent bottom
   * border forces the scrollbox button borders to terminate a pixel early, working
   * around the issue.
   */
  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-up,
  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-down {
    border-bottom: 1px solid transparent;
  }

  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
    /* Render a window top border: */
    background-image: linear-gradient(to bottom,
          ThreeDLightShadow 0, ThreeDLightShadow 1px,
          ThreeDHighlight 1px, ThreeDHighlight 2px,
          ActiveBorder 2px, ActiveBorder 4px, transparent 4px);
  }

  /* End classic titlebar gradient */

  #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) toolbarbutton:not(:-moz-lwtheme) {
    color: inherit;
  }
}

/* Render a window top border for lwthemes on WinXP modern themes: */
@media (-moz-windows-theme: luna-blue) {
  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
    background-image: linear-gradient(to bottom,
        rgb(8, 49, 216) 0, rgb(8, 49, 216) 1px,
        rgb(15, 77, 227) 1px, rgb(15, 77, 227) 2px,
        rgb(22, 106, 238) 2px, rgb(22, 106, 238) 3px,
        rgb(8, 85, 221) 3px, rgb(8, 85, 221) 4px,
        transparent 4px);
  }

  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
    background-image: linear-gradient(to bottom,
        rgb(91, 104, 205) 0, rgb(91, 104, 205) 1px,
        rgb(116, 128, 220) 1px, rgb(116, 128, 220) 2px,
        rgb(117, 140, 221) 2px, rgb(117, 140, 221) 4px,
        transparent 4px);
  }
}

@media (-moz-windows-theme: luna-silver) {
  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
    background-image: linear-gradient(to bottom,
        rgb(102,102,126) 0, rgb(102,102,126) 1px,
        rgb(168,167,191) 1px, rgb(168,167,191) 2px,
        white 2px, white 3px,
        rgb(188,188,207) 3px, rgb(188,188,207) 4px,
        transparent 4px);
  }

  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
    background-image: linear-gradient(to bottom,
        rgb(186,186,197) 0, rgb(186,186,197) 1px,
        rgb(236,238,245) 1px, rgb(236,238,245) 2px,
        white 2px, white 3px,
        rgb(215,215,227) 3px, rgb(215,215,227) 4px,
        transparent 4px);
  }
}

@media (-moz-windows-theme: luna-olive) {
  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
    background-image: linear-gradient(to bottom,
        rgb(139,161,105) 0, rgb(139,161,105) 1px,
        rgb(171, 189, 133) 1px, rgb(171, 189, 133) 2px,
        rgb(164,178,127) 2px, rgb(164,178,127) 3px,
        transparent 3px);
  }

  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
    background-image: linear-gradient(to bottom,
        rgb(207, 214, 188) 0, rgb(207, 214, 188) 1px,
        rgb(224, 226, 200) 1px, rgb(224, 226, 200) 2px,
        rgb(214, 216, 190) 2px, rgb(214, 216, 190) 3px,
        transparent 3px);
  }
}

#TabsToolbar:not([collapsed="true"]) + #nav-bar {
  /* Move up into the TabsToolbar for the inner highlight at the top of the nav-bar */
  margin-top: calc(-1 * var(--navbar-tab-toolbar-highlight-overlap));
  /* Position the toolbar above the bottom of background tabs */
  position: relative;
  z-index: 1;
}

#nav-bar {
  border-top: 1px solid hsla(209,67%,12%,0.35) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
}
@media not all and (-moz-windows-compositor) {
  #TabsToolbar[collapsed="true"] + #nav-bar {
    border-top-style: none !important;
  }
}

#personal-bookmarks {
  min-height: 24px;
}

#print-preview-toolbar:not(:-moz-lwtheme) {
  -moz-appearance: toolbox;
}

#browser-bottombox:not(:-moz-lwtheme) {
  background-color: -moz-dialog;
}

@media (-moz-os-version: windows-xp) and (-moz-windows-default-theme) {
  #main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar {
    margin-top: 4px;
  }
}

/* ::::: titlebar ::::: */

#main-window[sizemode="normal"] > #titlebar {
  -moz-appearance: -moz-window-titlebar;
}

#main-window[sizemode="maximized"] > #titlebar {
  -moz-appearance: -moz-window-titlebar-maximized;
}

@media (-moz-windows-classic) {
  #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar {
    margin-top: 4px;
  }
}

/* The button box must appear on top of the navigator-toolbox in order for
 * click and hover mouse events to work properly for the button in the restored
 * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
 * can swallow those events. It will also place the buttons above the fog on
 * themes with Aero Glass.
 */
#titlebar-buttonbox {
  z-index: 1;
}

.titlebar-placeholder[type="caption-buttons"] {
  margin-left: 22px; /* space needed for Aero Snap */
}

@media (-moz-os-version: windows-xp) {
  .titlebar-placeholder[type="caption-buttons"] {
    margin-left: 10px; /* less space needed on XP because there's no Aero Snap */
  }
}

/* titlebar command buttons */

#titlebar-min {
  -moz-appearance: -moz-window-button-minimize;
}

#titlebar-max {
  -moz-appearance: -moz-window-button-maximize;
}

#main-window[sizemode="maximized"] #titlebar-max {
  -moz-appearance: -moz-window-button-restore;
}

#titlebar-close {
  -moz-appearance: -moz-window-button-close;
}

@media not all and (-moz-windows-classic) {
  #titlebar-min {
    margin-inline-end: 2px;
  }
}

/* ::::: bookmark buttons ::::: */

toolbarbutton.bookmark-item:not(.subviewbutton),
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
  margin: 0;
  padding: 2px 3px;
  -moz-appearance: none;
  border: 1px solid transparent;
  border-radius: 1px;
  background-origin: padding-box !important;
  background-clip: padding-box !important;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 150ms;
}

toolbarbutton.bookmark-item:not(.subviewbutton):hover:not([disabled="true"]):not([open]) {
  border-color: var(--toolbarbutton-hover-bordercolor);
  background: var(--toolbarbutton-hover-background);
}

toolbarbutton.bookmark-item:not(.subviewbutton):hover:active:not([disabled="true"]),
toolbarbutton.bookmark-item[open="true"] {
  border-color: var(--toolbarbutton-active-bordercolor);
  box-shadow: var(--toolbarbutton-active-boxshadow);
  background: var(--toolbarbutton-active-background);
}

.bookmark-item > .toolbarbutton-icon,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

/* Force the display of the label for bookmarks */
.bookmark-item > .toolbarbutton-text,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text {
  display: -moz-box !important;
}

.bookmark-item > .toolbarbutton-menu-dropmarker {
  display: none;
}

#bookmarks-toolbar-placeholder {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
}

toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
#personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important;
}

/* ----- BOOKMARK STAR ANIMATION ----- */

@keyframes animation-bookmarkAdded {
  from { transform: rotate(0deg) translateX(-16px) rotate(0deg) scale(1); opacity: 0; }
  60%  { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(2.2); opacity: 1; }
  80%  { opacity: 1; }
  to   { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(1); opacity: 0; }
}

@keyframes animation-bookmarkPulse {
  from { transform: scale(1); }
  50%  { transform: scale(1.3); }
  to   { transform: scale(1); }
}

#bookmarked-notification-container {
  min-height: 1px;
  min-width: 1px;
  height: 1px;
  margin-bottom: -1px;
  z-index: 5;
  position: relative;
}

#bookmarked-notification {
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  opacity: 0;
}

#bookmarked-notification-dropmarker-anchor {
  z-index: -1;
  position: relative;
}

#bookmarked-notification-dropmarker-icon {
  width: 18px;
  height: 18px;
  visibility: hidden;
}

#bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
  background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png");
  animation: animation-bookmarkAdded 800ms;
  animation-timing-function: ease, ease, ease;
}

#bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: none !important;
}

#bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon {
  visibility: visible;
  animation: animation-bookmarkPulse 300ms;
  animation-delay: 600ms;
  animation-timing-function: ease-out;
}

/* ::::: bookmark menus ::::: */

menu.bookmark-item,
menuitem.bookmark-item {
  min-width: 0;
  max-width: 32em;
}

.bookmark-item:not(.subviewbutton) > .menu-iconic-left {
  margin-top: 0;
  margin-bottom: 0;
}

.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
  padding-inline-start: 0px;
}

/* ::::: bookmark items ::::: */

.bookmark-item  {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.bookmark-item[container] {
  list-style-image: url("chrome://global/skin/icons/folder-item.png");
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

.bookmark-item[container][open] {
  -moz-image-region: rect(16px, 32px, 32px, 16px);
}

.bookmark-item[container][livemark] {
  list-style-image: url("chrome://browser/skin/livemark-folder.png");
  -moz-image-region: auto;
}

.bookmark-item[container][livemark] .bookmark-item {
  list-style-image: url("chrome://browser/skin/places/livemark-item.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

.bookmark-item[container][livemark] .bookmark-item[visited] {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

.bookmark-item[container][query] {
  list-style-image: url("chrome://browser/skin/places/query.png");
  -moz-image-region: auto;
}

.bookmark-item[query][tagContainer] {
  list-style-image: url("chrome://browser/skin/places/tag.png");
  -moz-image-region: auto;
}

.bookmark-item[query][dayContainer] {
  list-style-image: url("chrome://browser/skin/places/calendar.png");
  -moz-image-region: auto;
}

.bookmark-item[query][hostContainer] {
  list-style-image: url("chrome://global/skin/icons/folder-item.png");
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

.bookmark-item[query][hostContainer][open] {
  list-style-image: url("chrome://global/skin/icons/folder-item.png");
  -moz-image-region: rect(16px, 32px, 32px, 16px);
}

.bookmark-item[cutting] > .toolbarbutton-icon,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
  opacity: 0.5;
}

.bookmark-item[cutting] > .toolbarbutton-text,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
  opacity: 0.7;
}

/* ::::: primary toolbar buttons ::::: */

:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
#bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: url("chrome://browser/skin/Toolbar.png");
}

toolbar[brighttext] :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
toolbar[brighttext] #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: url(chrome://browser/skin/Toolbar-inverted.png);
}

#back-button {
  -moz-image-region: rect(0, 36px, 18px, 18px);
}

#forward-button {
  -moz-image-region: rect(0, 72px, 18px, 54px);
}

#home-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 126px, 18px, 108px);
}

#bookmarks-menu-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 144px, 18px, 126px);
}

#bookmarks-menu-button[cui-areatype="toolbar"][starred] {
  -moz-image-region: rect(0, 162px, 18px, 144px);
}

#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  -moz-image-region: rect(0, 630px, 18px, 612px);
}

#history-panelmenu[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 180px, 18px, 162px);
}

#downloads-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 198px, 18px, 180px);
}

#add-ons-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 216px, 18px, 198px);
}

#open-file-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 234px, 18px, 216px);
}

#save-page-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 252px, 18px, 234px);
}

#sync-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 270px, 18px, 252px);
}

#sync-button[cui-areatype="toolbar"][status="active"] {
  list-style-image: url("chrome://browser/skin/syncProgress-toolbar.png");
  -moz-image-region: rect(0, 18px, 18px, 0);
}

@media (-moz-os-version: windows-win7) {
  #sync-button[cui-areatype="toolbar"][status="active"] {
    list-style-image: url("chrome://browser/skin/syncProgress-toolbar-win7.png");
    -moz-image-region: rect(0, 18px, 18px, 0);
  }
}

toolbar[brighttext] #sync-button[cui-areatype="toolbar"][status="active"] {
  list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
  -moz-image-region: rect(0, 18px, 18px, 0);
}

#sync-tabs-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 792px, 18px, 774px);
}

#containers-panelmenu[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 810px, 18px, 792px);
}

#feed-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 288px, 18px, 270px);
}

#characterencoding-button[cui-areatype="toolbar"]{
  -moz-image-region: rect(0, 324px, 18px, 306px);
}

#new-window-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 342px, 18px, 324px);
}

#e10s-button > .toolbarbutton-icon {
  transform: scaleY(-1);
}

#new-tab-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 360px, 18px, 342px);
}

#privatebrowsing-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 378px, 18px, 360px);
}

#find-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 396px, 18px, 378px);
}

#print-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 414px, 18px, 396px);
}

#fullscreen-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 432px, 18px, 414px);
}

#developer-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 450px, 18px, 432px);
}

#preferences-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 468px, 18px, 450px);
}

#PanelUI-menu-button {
  -moz-image-region: rect(0, 486px, 18px, 468px);
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button {
  -moz-image-region: rect(0, 504px, 18px, 486px);
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button {
  -moz-image-region: rect(0, 522px, 18px, 504px);
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button {
  -moz-image-region: rect(0, 540px, 18px, 522px);
}

#zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button {
  -moz-image-region: rect(0, 558px, 18px, 540px);
}

#zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button {
  -moz-image-region: rect(0, 576px, 18px, 558px);
}

#nav-bar-overflow-button {
  -moz-image-region: rect(0, 612px, 18px, 594px);
}

#nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#email-link-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 666px, 18px, 648px);
}

#sidebar-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 684px, 18px, 666px);
}

#panic-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 702px, 18px, 684px);
}

#panic-button[cui-areatype="toolbar"][open] {
  -moz-image-region: rect(18px, 702px, 36px, 684px);
}

#panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#webide-button[cui-areatype="toolbar"] {
  -moz-image-region: rect(0, 738px, 18px, 720px);
}

@media (min-resolution: 1.1dppx) {
  :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
  #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    list-style-image: url("chrome://browser/skin/Toolbar@2x.png");
  }

  toolbar[brighttext] :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
  toolbar[brighttext] #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    list-style-image: url("chrome://browser/skin/Toolbar-inverted@2x.png");
  }

  #back-button {
    -moz-image-region: rect(0, 72px, 36px, 36px);
  }

  #forward-button {
    -moz-image-region: rect(0, 144px, 36px, 108px);
  }

  #home-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 252px, 36px, 216px);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 288px, 36px, 252px);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"][starred] {
    -moz-image-region: rect(0, 324px, 36px, 288px);
  }

  #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    -moz-image-region: rect(0px, 1260px, 36px, 1224px);
  }

  #history-panelmenu[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 360px, 36px, 324px);
  }

  #downloads-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 396px, 36px, 360px);
  }

  #add-ons-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 432px, 36px, 396px);
  }

  #open-file-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 468px, 36px, 432px);
  }

  #save-page-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 504px, 36px, 468px);
  }

  #sync-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 540px, 36px, 504px);
  }

  #sync-button[cui-areatype="toolbar"][status="active"] {
    list-style-image: url("chrome://browser/skin/syncProgress-toolbar@2x.png");
    -moz-image-region: rect(0, 36px, 36px, 0);
  }

  @media (-moz-os-version: windows-win7) {
    #sync-button[cui-areatype="toolbar"][status="active"] {
      list-style-image: url("chrome://browser/skin/syncProgress-toolbar-win7@2x.png");
      -moz-image-region: rect(0, 36px, 36px, 0);
    }
  }
  
  toolbar[brighttext] #sync-button[cui-areatype="toolbar"][status="active"] {
      list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted@2x.png");
      -moz-image-region: rect(0, 36px, 36px, 0);
  }

  #sync-tabs-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1584px, 36px, 1548px);
  }

  #containers-panelmenu[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1620px, 36px, 1584px);
  }

  #feed-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 576px, 36px, 540px);
  }

  #characterencoding-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 648px, 36px, 612px);
  }

  #new-window-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 684px, 36px, 648px);
  }

  #e10s-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 684px, 36px, 648px);
  }

  #e10s-button > .toolbarbutton-icon {
    transform: scaleY(-1);
  }

  #new-tab-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 720px, 36px, 684px);
  }

  #privatebrowsing-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 756px, 36px, 720px);
  }

  #find-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 792px, 36px, 756px);
  }

  #print-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 828px, 36px, 792px);
  }

  #fullscreen-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 864px, 36px, 828px);
  }

  #developer-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 900px, 36px, 864px);
  }

  #preferences-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 936px, 36px, 900px);
  }

  #PanelUI-menu-button {
    -moz-image-region: rect(0, 972px, 36px, 936px);
  }

  #edit-controls[cui-areatype="toolbar"] > #cut-button {
    -moz-image-region: rect(0, 1008px, 36px, 972px);
  }

  #edit-controls[cui-areatype="toolbar"] > #copy-button {
    -moz-image-region: rect(0, 1044px, 36px, 1008px);
  }

  #edit-controls[cui-areatype="toolbar"] > #paste-button {
    -moz-image-region: rect(0, 1080px, 36px, 1044px);
  }

  #zoom-controls[cui-areatype="toolbar"] > #zoom-out-button {
    -moz-image-region: rect(0, 1116px, 36px, 1080px);
  }

  #zoom-controls[cui-areatype="toolbar"] > #zoom-in-button {
    -moz-image-region: rect(0, 1152px, 36px, 1116px);
  }

  #nav-bar-overflow-button {
    -moz-image-region: rect(0, 1224px, 36px, 1188px);
  }

  #email-link-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1332px, 36px, 1296px);
  }

  #sidebar-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1368px, 36px, 1332px);
  }

  #panic-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1404px, 36px, 1368px);
  }

  #panic-button[cui-areatype="toolbar"][open] {
    -moz-image-region: rect(36px, 1404px, 72px, 1368px);
  }

  #webide-button[cui-areatype="toolbar"] {
    -moz-image-region: rect(0, 1476px, 36px, 1440px);
  }
}

@media (-moz-windows-theme: luna-silver) and (max-resolution: 1dppx) {
  :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu),
  #bookmarks-menu-button.toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
    list-style-image: url("chrome://browser/skin/Toolbar-lunaSilver.png");
  }
}

#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon,
#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menu-dropmarker,
#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-dropmarker,
#main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled=true] > .toolbarbutton-icon {
  opacity: .4;
}

.toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
.toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png");
}

toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
  list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow-inverted.png");
}

.toolbarbutton-1 > .toolbarbutton-icon,
.toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  margin-inline-end: 0;
}

:-moz-any(toolbar, .widget-overflow-list) .toolbarbutton-1 > .toolbarbutton-icon,
:-moz-any(toolbar, .widget-overflow-list) .toolbarbutton-1 > :-moz-any(.toolbarbutton-menubutton-button, .toolbarbutton-badge-stack) > .toolbarbutton-icon {
  max-width: 16px;
}

:-moz-any(toolbar, .widget-overflow-list) .toolbarbutton-1:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu, .toolbarbutton-legacy-addon) > .toolbarbutton-icon,
:-moz-any(toolbar, .widget-overflow-list) .toolbarbutton-1:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu, .toolbarbutton-legacy-addon) > :-moz-any(.toolbarbutton-menubutton-button, .toolbarbutton-badge-stack) > .toolbarbutton-icon,
#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  max-width: 18px;
}

/* Menu panel and palette styles */

toolbaritem[sdkstylewidget="true"] > toolbarbutton,
:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu) {
  list-style-image: url(chrome://browser/skin/menuPanel.svg);
}

:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-icon,
:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-badge-stack > .toolbarbutton-icon,
:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu)[cui-areatype="menu-panel"][panel-multiview-anchor=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/filters.svg#fill);
  fill: currentColor;
}

#home-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #home-button {
  -moz-image-region: rect(0px, 128px, 32px, 96px);
}

#bookmarks-menu-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
  -moz-image-region: rect(0px, 192px, 32px, 160px);
}

#history-panelmenu[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #history-panelmenu {
  -moz-image-region: rect(0px, 224px, 32px, 192px);
}

#downloads-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #downloads-button {
  -moz-image-region: rect(0px, 256px, 32px, 224px);
}

#add-ons-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #add-ons-button {
  -moz-image-region: rect(0px, 288px, 32px, 256px);
}

#open-file-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #open-file-button {
  -moz-image-region: rect(0px, 320px, 32px, 288px);
}

#save-page-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #save-page-button {
  -moz-image-region: rect(0px, 352px, 32px, 320px);
}

#sync-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #sync-button {
  -moz-image-region: rect(0px, 384px, 32px, 352px)
}

#sync-button[cui-areatype="menu-panel"][status="active"] {
  list-style-image: url("chrome://browser/skin/syncProgress-menuPanel.png");
  -moz-image-region: rect(0, 32px, 32px, 0);
}

@media (min-resolution: 1.1dppx) {
  #sync-button[cui-areatype="menu-panel"][status="active"] {
    list-style-image: url("chrome://browser/skin/syncProgress-menuPanel@2x.png");
    -moz-image-region: rect(0, 64px, 64px, 0);
  }
}

#sync-tabs-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #sync-tabs-button {
  -moz-image-region: rect(0px, 1024px, 32px, 992px);
}

#containers-panelmenu[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #containers-panelmenu {
  -moz-image-region: rect(0px, 1056px, 32px, 1024px);
}

#feed-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #feed-button {
  -moz-image-region: rect(0px, 416px, 32px, 384px);
}

#characterencoding-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #characterencoding-button {
  -moz-image-region: rect(0px, 480px, 32px, 448px);
}

#new-window-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #new-window-button {
  -moz-image-region: rect(0px, 512px, 32px, 480px);
}

#e10s-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #e10s-button {
  -moz-image-region: rect(0px, 512px, 32px, 480px);
}

#new-tab-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #new-tab-button {
  -moz-image-region: rect(0px, 544px, 32px, 512px);
}

#privatebrowsing-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
  -moz-image-region: rect(0px, 576px, 32px, 544px);
}

#find-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #find-button {
  -moz-image-region: rect(0px, 640px, 32px, 608px);
}

#print-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #print-button {
  -moz-image-region: rect(0px, 672px, 32px, 640px);
}

#fullscreen-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #fullscreen-button {
  -moz-image-region: rect(0px, 704px, 32px, 672px);
}

#developer-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #developer-button {
  -moz-image-region: rect(0px, 736px, 32px, 704px);
}

#preferences-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #preferences-button {
  -moz-image-region: rect(0px, 768px, 32px, 736px);
}

#email-link-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #email-link-button {
  -moz-image-region: rect(0, 800px, 32px, 768px);
}

#sidebar-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #sidebar-button {
  -moz-image-region: rect(0, 864px, 32px, 832px);
}

#panic-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #panic-button {
  -moz-image-region: rect(0, 896px, 32px, 864px);
}

#webide-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #webide-button {
  -moz-image-region: rect(0px, 960px, 32px, 928px);
}

toolbaritem[sdkstylewidget="true"] > toolbarbutton {
  -moz-image-region: rect(0, 832px, 32px, 800px);
}

/* Wide panel control icons */

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
  list-style-image: url(chrome://browser/skin/menuPanel-small.svg);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}

#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button,
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
  -moz-image-region: rect(0px, 80px, 16px, 64px);
}

#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button,
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
  -moz-image-region: rect(0px, 96px, 16px, 80px);
}


.findbar-button,
#nav-bar .toolbarbutton-1,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
  -moz-appearance: none;
  border: none;
  padding: 0;
  background: none;
}

#nav-bar .toolbarbutton-1:not([type=menu-button]),
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
  padding: var(--toolbarbutton-vertical-outer-padding) 2px;
  -moz-box-pack: center;
}

#nav-bar #PanelUI-menu-button {
  padding-inline-start: 5px;
  padding-inline-end: 5px;
}

#nav-bar .toolbarbutton-1[type=panel],
#nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#PanelUI-menu-button) {
  padding-left: 5px;
  padding-right: 5px;
}

#nav-bar .toolbarbutton-1 > menupopup {
  margin-top: -3px;
}

#nav-bar .toolbarbutton-1 > menupopup.cui-widget-panel {
  margin-top: -8px;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
  padding-inline-end: 0;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
  padding-inline-start: 0;
  -moz-box-align: center;
}

.findbar-button > .toolbarbutton-text,
#nav-bar .toolbarbutton-1 > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1 > .toolbarbutton-text,
#nav-bar .toolbarbutton-1 > .toolbarbutton-badge-stack,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
window:not([chromehidden~="toolbar"]) #urlbar-wrapper > .toolbarbutton-1:-moz-any([disabled],:not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon {
  padding: var(--toolbarbutton-vertical-inner-padding) 6px;
  background-origin: padding-box !important;
  background-clip: padding-box !important;
  border: 1px solid transparent;
  border-radius: 1px;
  transition-property: background-color, border-color, box-shadow;
  transition-duration: 150ms;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#nav-bar #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  /* horizontal padding + border + actual icon width */
  max-width: 32px;
}

@media (-moz-os-version: windows-xp),
       (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  /* < Win8 */
  :root {
    --toolbarbutton-hover-background: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
    --toolbarbutton-hover-bordercolor: hsla(210,54%,20%,.15) hsla(210,54%,20%,.2) hsla(210,54%,20%,.25);
    --toolbarbutton-hover-boxshadow: 0 1px hsla(0,0%,100%,.3) inset,
                                     0 1px hsla(210,54%,20%,.03),
                                     0 0 2px hsla(210,54%,20%,.1);

    --toolbarbutton-active-background: hsla(210,54%,20%,.15) linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
    --toolbarbutton-active-bordercolor: hsla(210,54%,20%,.3) hsla(210,54%,20%,.35) hsla(210,54%,20%,.4);
    --toolbarbutton-active-boxshadow: 0 1px 1px hsla(210,54%,20%,.1) inset,
                                      0 0 1px hsla(210,54%,20%,.2) inset,
/* allows keyhole-forward-clip-path to be used for non-hover as well as hover: */
                                      0 1px 0 hsla(210,54%,20%,0),
                                      0 0 2px hsla(210,54%,20%,0);

    --toolbarbutton-checkedhover-backgroundcolor: rgba(90%,90%,90%,.4);
  }
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon:-moz-locale-dir(ltr),
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-locale-dir(rtl) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon:-moz-locale-dir(rtl),
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-locale-dir(ltr) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  border-inline-end-style: none;
}

#nav-bar .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu, .toolbarbutton-legacy-addon)) > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu, .toolbarbutton-legacy-addon)) > .toolbarbutton-badge-stack,
#nav-bar .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #sync-tabs-button, #feed-button, #open-file-button, #find-button, #developer-button, #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #webide-button, #containers-panelmenu, .toolbarbutton-legacy-addon)) > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  padding: calc(var(--toolbarbutton-vertical-inner-padding) + 1px) 7px;
}

#nav-bar .toolbarbutton-1[type=panel] > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1[type=panel] > .toolbarbutton-badge-stack,
#nav-bar .toolbarbutton-1[type=menu]:not(#PanelUI-menu-button):not(#back-button):not(#forward-button):not(#new-tab-button) > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1[type=menu]:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack,
#nav-bar .toolbarbutton-1[type=menu] > .toolbarbutton-text /* hack for add-ons that forcefully display the label */ {
  padding-inline-end: 17px;
}

#nav-bar .toolbarbutton-1[type=panel] > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1[type=menu]:not(#PanelUI-menu-button):not(#back-button):not(#forward-button):not(#new-tab-button) > .toolbarbutton-icon {
  /* horizontal padding + border + icon width */
  max-width: 43px;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker {
  margin-inline-start: -15px;
}

#nav-bar #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  /* horizontal padding + border + actual icon width */
  max-width: 31px;
}

#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  padding-top: calc(var(--toolbarbutton-vertical-inner-padding) + 6px);
  padding-bottom: calc(var(--toolbarbutton-vertical-inner-padding) + 6px);
}

#nav-bar .toolbaritem-combined-buttons {
  margin-left: 2px;
  margin-right: 2px;
}

#nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 {
  padding-left: 0;
  padding-right: 0;
}

#nav-bar .toolbaritem-combined-buttons:not(:hover) > separator,
#nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before {
  content: "";
  display: -moz-box;
  width: 1px;
  height: 16px;
  margin-inline-end: -1px;
  background-image: linear-gradient(currentColor 0, currentColor 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1px 16px;
  opacity: .2;
}

#nav-bar[brighttext] .toolbaritem-combined-buttons > separator,
#nav-bar[brighttext] .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before {
  opacity: .3;
}

.findbar-button:not(:-moz-any([checked="true"],[disabled="true"])):hover > .toolbarbutton-text,
#nav-bar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text,
#nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack,
window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button:not([open]):not(:active):not([disabled]):hover > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon {
  background: var(--toolbarbutton-hover-background);
  border-color: var(--toolbarbutton-hover-bordercolor);
  box-shadow: var(--toolbarbutton-hover-boxshadow);
}

.findbar-button:not([disabled=true]):-moz-any([checked="true"],:hover:active) > .toolbarbutton-text,
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):-moz-any(:hover:active, [open]) > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon,
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text,
#nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-stack {
  background: var(--toolbarbutton-active-background);
  border-color: var(--toolbarbutton-active-bordercolor);
  box-shadow: var(--toolbarbutton-active-boxshadow);
  transition-duration: 10ms;
}

#nav-bar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon {
  background-color: var(--toolbarbutton-checkedhover-backgroundcolor);
  transition: background-color .4s;
}

#TabsToolbar .toolbarbutton-1,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox > .scrollbutton-down {
  -moz-appearance: none;
  border-style: none;
  padding: 0 3px;
}

#TabsToolbar .toolbarbutton-1 {
  margin-bottom: var(--tab-toolbar-navbar-overlap);
}

#TabsToolbar .toolbarbutton-1:not([disabled=true]):hover,
#TabsToolbar .toolbarbutton-1[open],
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover,
.tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled=true]):hover,
.tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled=true]):hover {
  background-image: linear-gradient(transparent, rgba(255,255,255,.5)),
                    linear-gradient(transparent, rgba(0,0,0,.25) 30%),
                    linear-gradient(transparent, rgba(0,0,0,.25) 30%);
  background-position: 1px -1px, 0 -1px, 100% -1px;
  background-size: calc(100% - 2px) 100%, 1px 100%, 1px 100%;
  background-repeat: no-repeat;
}

/* unified back/forward button */

:-moz-any(#back-button, #forward-button) > .toolbarbutton-icon {
  border-color: var(--urlbar-border-color-hover) !important;
}

:-moz-any(#back-button, #forward-button):not(:hover):not(:active):not([open=true]) > .toolbarbutton-icon,
:-moz-any(#back-button, #forward-button)[disabled=true] > .toolbarbutton-icon {
  background-color: rgba(255,255,255,.15) !important;
}

#forward-button {
  -moz-box-align: stretch; /* let the button shape grow vertically with the location bar */
  padding: 0 !important;
}

#forward-button > menupopup {
  margin-top: 1px !important;
}

#forward-button > .toolbarbutton-icon {
  border-left-style: none !important;
  border-radius: 0 !important;
  padding-left: calc(var(--backbutton-urlbar-overlap) + 3px) !important;
  padding-right: 3px !important;
  max-width: calc(var(--forwardbutton-width) + var(--backbutton-urlbar-overlap)) !important;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not([switchingtabs]) > #forward-button {
  transition: margin-left 150ms ease-out;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] {
  margin-left: calc(0px - var(--forwardbutton-width) - var(--backbutton-urlbar-overlap));
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] {
  /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
  transition-delay: 100s;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] {
  /* when not hovered anymore, trigger a new transition to hide the forward button immediately */
  margin-left: calc(-0.01px - var(--forwardbutton-width) - var(--backbutton-urlbar-overlap));
}

#back-button {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  padding-inline-start: 5px !important;
  padding-inline-end: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  border-radius: 0 10000px 10000px 0 !important;
}

#back-button:-moz-locale-dir(rtl) {
  border-radius: 10000px 0 0 10000px !important;
}

#back-button > menupopup {
  margin-top: -1px !important;
}

#back-button > .toolbarbutton-icon {
  border-radius: 10000px !important;
  padding: 6px !important;
  max-width: 32px !important; /* icon width + horizontal padding + border */
}

#back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

.unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://browser/skin/menu-back.png") !important;
}

.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
.unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
}

/* undo close tab menu item */
#alltabs_undoCloseTab {
  list-style-image: url(chrome://browser/skin/undoCloseTab.png);
}

@media (min-resolution: 1.1dppx) {
  #alltabs_undoCloseTab {
    list-style-image: url(chrome://browser/skin/undoCloseTab@2x.png);
  }
  #alltabs_undoCloseTab > .toolbarbutton-icon {
    width: 16px;
  }
}

/* zoom control text (reset) button special case: */

#nav-bar #zoom-reset-button > .toolbarbutton-text {
  /* To make this line up with the icons, it needs the same height (18px) +
   * padding (2 * 2px) + border (2 * 1px), but as a minimum because otherwise
   * increase in text sizes would break things...
   */
  min-height: 24px;
}

/* ::::: fullscreen window controls ::::: */

#minimize-button,
#restore-button,
#close-button {
  -moz-appearance: none;
  border: none;
  margin: 0 !important;
  padding: 6px 12px;
}

#minimize-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize);
}

#restore-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore);
}

#minimize-button:hover,
#restore-button:hover {
  background-color: hsla(0, 0%, 0%, .12);
}

#minimize-button:hover:active,
#restore-button:hover:active {
  background-color: hsla(0, 0%, 0%, .22);
}

#close-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#close);
}

#close-button:hover {
  background-color: hsl(355, 86%, 49%);
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-white);
}

#close-button:hover:active {
  background-color: hsl(355, 82%, 69%);
}

toolbar[brighttext] #minimize-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-white);
}

toolbar[brighttext] #restore-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-white);
}

toolbar[brighttext] #close-button {
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-white);
}

@media (-moz-os-version: windows-xp),
       (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  #window-controls {
    margin-inline-start: 4px;
  }

  #minimize-button,
  #restore-button,
  #close-button {
    /* Important to ensure this applies even on toolbar[brighttext] */
    list-style-image: url("chrome://global/skin/icons/windowControls.png") !important;
    /* Also override background color to a avoid hover background styling
     * leaking through around the image. */
    background-color: transparent !important;
    padding: 0;
  }

  #minimize-button {
    -moz-image-region: rect(0, 16px, 16px, 0);
  }

  #minimize-button:hover {
    -moz-image-region: rect(16px, 16px, 32px, 0);
  }

  #minimize-button:hover:active {
    -moz-image-region: rect(32px, 16px, 48px, 0);
  }

  #restore-button {
    -moz-image-region: rect(0, 32px, 16px, 16px);
  }

  #restore-button:hover {
    -moz-image-region: rect(16px, 32px, 32px, 16px);
  }

  #restore-button:hover:active {
    -moz-image-region: rect(32px, 32px, 48px, 16px);
  }

  #close-button {
    -moz-image-region: rect(0, 48px, 16px, 32px);
    -moz-appearance: none;
    border-style: none;
    margin: 2px;
  }

  #close-button:hover {
    -moz-image-region: rect(16px, 48px, 32px, 32px);
  }

  #close-button:hover:active {
    -moz-image-region: rect(32px, 48px, 48px, 32px);
  }
}

@media (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  #window-controls {
    -moz-box-align: start;
  }

  #minimize-button,
  #restore-button,
  #close-button {
    -moz-appearance: none;
    border-style: none;
    margin: 0;
  }

  #close-button {
    -moz-image-region: rect(0, 49px, 16px, 32px);
  }

  #close-button:hover {
    -moz-image-region: rect(16px, 49px, 32px, 32px);
  }

  #close-button:hover:active {
    -moz-image-region: rect(32px, 49px, 48px, 32px);
  }

  #minimize-button:-moz-locale-dir(rtl),
  #restore-button:-moz-locale-dir(rtl),
  #close-button:-moz-locale-dir(rtl) {
    transform: scaleX(-1);
  }
}

/* ::::: Location Bar ::::: */

#main-window {
  --urlbar-border-color: ThreeDShadow;
  --urlbar-border-color-hover: var(--urlbar-border-color);
}

#navigator-toolbox:-moz-lwtheme {
  --urlbar-border-color: var(--toolbarbutton-hover-bordercolor);
}

@media (-moz-windows-default-theme) {
  @media (-moz-os-version: windows-vista),
         (-moz-os-version: windows-win7),
         (-moz-os-version: windows-win8) {
    #main-window:not(:-moz-lwtheme) {
      --urlbar-border-color: hsla(210,54%,20%,.25) hsla(210,54%,20%,.27) hsla(210,54%,20%,.3);
      --urlbar-border-color-hover: hsla(210,54%,20%,.35) hsla(210,54%,20%,.37) hsla(210,54%,20%,.4);
    }
  }

  @media (-moz-os-version: windows-win10) {
    #main-window:not(:-moz-lwtheme) {
      --urlbar-border-color: hsl(0,0%,90%);
      --urlbar-border-color-hover: hsl(0,0%,80%);
    }
  }
}

#urlbar,
.searchbar-textbox {
  -moz-appearance: none;
  margin: 0 3px;
  padding: 0;
  background-clip: padding-box;
  border: 1px solid;
  border-color: var(--urlbar-border-color);
}
#urlbar:hover,
.searchbar-textbox:hover {
  border-color: var(--urlbar-border-color-hover);
}

@media (-moz-windows-default-theme) {
  #urlbar,
  .searchbar-textbox {
    border-radius: 1px;
  }

  @media (-moz-os-version: windows-vista),
         (-moz-os-version: windows-win7),
         (-moz-os-version: windows-win8) {
    #urlbar:not(:-moz-lwtheme),
    .searchbar-textbox:not(:-moz-lwtheme) {
      box-shadow: 0 1px 0 hsla(0,0%,0%,.01) inset,
                  0 1px 0 hsla(0,0%,100%,.1);
    }
  }

  @media (-moz-os-version: windows-win10) {
    #urlbar:not(:-moz-lwtheme),
    .searchbar-textbox:not(:-moz-lwtheme) {
      padding: 1px;
      transition-property: border-color, box-shadow;
      transition-duration: .1s;
    }

    #urlbar:not(:-moz-lwtheme)[focused],
    .searchbar-textbox:not(:-moz-lwtheme)[focused] {
      box-shadow: 0 0 0 1px Highlight inset;
    }
  }

  @media not all and (-moz-os-version: windows-xp) {
    #urlbar:not(:-moz-lwtheme)[focused],
    .searchbar-textbox:not(:-moz-lwtheme)[focused] {
      border-color: Highlight;
    }
  }
}

@media (-moz-os-version: windows-win10) {
  #urlbar,
  .searchbar-textbox {
    font-size: 1.15em;
    min-height: 28px;
  }

  :root {
    /* let toolbar buttons match the location and search bar's minimum height */
    --toolbarbutton-vertical-inner-padding: 4px;
    --toolbarbutton-vertical-outer-padding: 5px;
  }
}

#urlbar:-moz-lwtheme,
.searchbar-textbox:-moz-lwtheme {
  background-color: rgba(255,255,255,.8);
  color: black;
}

#urlbar:-moz-lwtheme:hover:not([readonly]),
.searchbar-textbox:-moz-lwtheme:hover {
  background-color: rgba(255,255,255,.9);
}

#urlbar:-moz-lwtheme[focused]:not([readonly]),
.searchbar-textbox:-moz-lwtheme[focused] {
  background-color: white;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar {
  border-inline-start: none;
  padding-inline-start: 0;
  margin-left: 0;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(ltr) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
  clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");
  margin-inline-start: calc(-1 * var(--backbutton-urlbar-overlap));
}

@media (-moz-os-version: windows-win10) {
  window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
    clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path-win10");
  }

  :root {
    --backbutton-urlbar-overlap: 9px;
  }
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl),
window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
  /* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
  transform: scaleX(-1);
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl) {
  -moz-box-direction: reverse;
}

html|*.urlbar-input:-moz-lwtheme::placeholder,
.searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::placeholder {
  opacity: 1.0;
  color: #777;
}

#urlbar-container {
  -moz-box-align: center;
}

.urlbar-textbox-container {
  -moz-box-align: stretch;
}

.urlbar-input-box {
  margin-inline-start: 0;
}

.urlbar-input-box,
#urlbar-display-box {
  padding-inline-start: 4px;
  border-inline-start: 1px solid var(--urlbar-separator-color);
  border-image: linear-gradient(transparent 15%, var(--urlbar-separator-color) 15%, var(--urlbar-separator-color) 85%, transparent 85%);
  border-image-slice: 1;
}

#urlbar-icons {
  -moz-box-align: center;
}

.urlbar-icon {
  padding: 0 3px;
  /* 16x16 icon with border-box sizing */
  width: 22px;
  height: 16px;
}

/* ::::: URL Bar Zoom Reset Button ::::: */
@keyframes urlbar-zoom-reset-pulse {
  0% {
    transform: scale(0);
  }
  75% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1.0);
  }
}

#urlbar-zoom-button {
  -moz-appearance: none;
  margin: 0 3px;
  font-size: .8em;
  padding: 0 8px;
  border-radius: 1em;
  background-color: hsla(0,0%,0%,.05);
  color: inherit;
  border: 1px solid ThreeDLightShadow;
}

#urlbar-zoom-button[animate="true"] {
  animation-name: urlbar-zoom-reset-pulse;
  animation-duration: 250ms;
}

#urlbar-zoom-button:hover {
  background-color: hsla(0,0%,0%,.1);
}

#urlbar-zoom-button:hover:active {
  background-color: hsla(0,0%,0%,.15);
}

#urlbar-zoom-button > .toolbarbutton-text {
  display: -moz-box;
}

#urlbar-zoom-button > .toolbarbutton-icon {
  display: none;
}

.search-go-container {
  padding: 2px 2px;
}

#urlbar-search-footer {
  border-top: 1px solid var(--panel-separator-color);
  background-color: var(--arrowpanel-dimmed);
}

#urlbar-search-settings {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  color: GrayText;
  margin: 0;
  border: 0;
  padding: 8px 20px;
  background: transparent;
}

#urlbar-search-settings:hover {
  background-color: var(--arrowpanel-dimmed);
}

#urlbar-search-settings:hover:active {
  background-color: var(--arrowpanel-dimmed-further);
}

#urlbar-search-splitter {
  min-width: 6px;
  margin-inline-start: -3px;
  border: none;
  background: transparent;
}

#urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
  margin-inline-start: 0;
}

.urlbar-display {
  margin-top: 0;
  margin-bottom: 0;
  margin-inline-start: 0;
  color: GrayText;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] {
  border-bottom: 1px solid var(--panel-separator-color);
  background-color: hsla(210, 4%, 10%, 0.07);
  padding: 6px 0;
  padding-inline-start: 44px;
  padding-inline-end: 6px;
  background-image: url("chrome://browser/skin/info.svg");
  background-clip: padding-box;
  background-position: 20px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"]:-moz-locale-dir(rtl) {
  background-position: right 20px center;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description {
  margin: 0;
  padding: 0;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description > label.text-link {
  margin-inline-start: 0;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button {
  -moz-appearance: none;
  min-width: 80px;
  border-radius: 3px;
  padding: 4px 16px;
  margin: 0;
  margin-inline-start: 10px;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"] {
  color: hsl(210, 0%, 38%);
  background-color: hsl(210, 0%, 88%);
  border: 1px solid hsl(210, 0%, 82%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"]:hover {
  background-color: hsl(210, 0%, 84%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"] {
  color: white;
  background-color: hsl(93, 82%, 44%);
  border: 1px solid hsl(93, 82%, 44%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"]:hover {
  background-color: hsl(93, 82%, 40%);
}

#search-container {
  min-width: calc(54px + 11ch);
}

/* identity box */

#identity-box:-moz-focusring {
  outline: 1px dotted;
  outline-offset: -3px;
}

#urlbar-wrapper[switchingtabs] > #urlbar > .urlbar-textbox-container > .urlbar-history-dropmarker {
  transition: none;
}

#navigator-toolbox:not(:hover) #nav-bar:not([customizing="true"]) #urlbar:not([focused]) > .urlbar-textbox-container > .urlbar-history-dropmarker {
  opacity: 0;
}

.urlbar-history-dropmarker:hover {
  -moz-image-region: var(--urlbar-dropmarker-hover-region);
}

.urlbar-history-dropmarker:hover:active,
.urlbar-history-dropmarker[open="true"] {
  -moz-image-region: var(--urlbar-dropmarker-active-region);
}

@media (min-resolution: 1.1dppx) {
  .urlbar-history-dropmarker {
    list-style-image: var(--urlbar-dropmarker-2x-url);
    -moz-image-region: var(--urlbar-dropmarker-2x-region);
  }

  .urlbar-history-dropmarker:hover {
    -moz-image-region: var(--urlbar-dropmarker-hover-2x-region);
  }

  .urlbar-history-dropmarker[open="true"],
  .urlbar-history-dropmarker:hover:active {
    -moz-image-region: var(--urlbar-dropmarker-active-2x-region);
  }

  .urlbar-history-dropmarker > .dropmarker-icon {
    width: 11px;
    filter: var(--chrome-icon-filter);
  }
}

/* page proxy icon */




#identity-icon {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#normal);
}

#identity-box:hover > #identity-icon:not(.no-hover),
#identity-box[open=true] > #identity-icon {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#hover);
}

#identity-box.grantedPermissions > #identity-icon {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#notice);
}

#identity-box.grantedPermissions:hover > #identity-icon:not(.no-hover),
#identity-box.grantedPermissions[open=true] > #identity-icon {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#notice-hover);
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon {
  list-style-image: url(chrome://branding/content/identity-icons-brand.svg);
}


#tracking-protection-icon {
  list-style-image: url(chrome://browser/skin/tracking-protection-16.svg#enabled);
}

#tracking-protection-icon[state="loaded-tracking-content"] {
  list-style-image: url(chrome://browser/skin/tracking-protection-16.svg#disabled);
}


#urlbar[pageproxystate="valid"] > #identity-box.verifiedDomain > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedActiveBlocked > #connection-icon {
  list-style-image: url(chrome://browser/skin/connection-secure.svg);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.certUserOverridden > #connection-icon {
  list-style-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.insecureLoginForms > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedActiveContent > #connection-icon {
  list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg#icon);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #connection-icon,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContentLoadedActiveBlocked > #connection-icon {
  list-style-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon);
  visibility: visible;
}


#identity-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#normal-black);
}

#identity-box:hover > #identity-icon:not(.no-hover):-moz-lwtheme,
#identity-box[open=true] > #identity-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#hover-black);
}

#identity-box.grantedPermissions > #identity-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#notice-black);
}

#identity-box.grantedPermissions:hover > #identity-icon:not(.no-hover):-moz-lwtheme,
#identity-box.grantedPermissions[open=true] > #identity-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/identity-icon.svg#notice-hover-black);
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon:-moz-lwtheme {
  list-style-image: url(chrome://branding/content/identity-icons-brand.svg);
}


#tracking-protection-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/tracking-protection-16.svg#enabled-black);
}

#tracking-protection-icon[state="loaded-tracking-content"]:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/tracking-protection-16.svg#disabled-black);
}


#urlbar[pageproxystate="valid"] > #identity-box.verifiedDomain > #connection-icon:-moz-lwtheme,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #connection-icon:-moz-lwtheme,
#urlbar[pageproxystate="valid"] > #identity-box.mixedActiveBlocked > #connection-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/connection-secure.svg);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.certUserOverridden > #connection-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon-black);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.insecureLoginForms > #connection-icon:-moz-lwtheme,
#urlbar[pageproxystate="valid"] > #identity-box.mixedActiveContent > #connection-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg#icon-black);
  visibility: visible;
}

#urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #connection-icon:-moz-lwtheme,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #connection-icon:-moz-lwtheme,
#urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContentLoadedActiveBlocked > #connection-icon:-moz-lwtheme {
  list-style-image: url(chrome://browser/skin/connection-mixed-passive-loaded.svg#icon-black);
  visibility: visible;
}

#identity-box {
  font-size: .9em;
  padding: 3px 5px;
  overflow: hidden;
  /* The padding-left and padding-right transitions handle the delayed hiding of
     the forward button when hovered. */
  transition: padding-left, padding-right;
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #identity-icon-labels {
  color: hsl(92,100%,30%);
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon-labels {
  color: inherit;
}

#identity-icon-labels:-moz-locale-dir(ltr) {
  padding-left: 2px;
}

#identity-icon-labels:-moz-locale-dir(rtl) {
  padding-right: 2px;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar > #identity-box {
  padding-inline-start: calc(var(--backbutton-urlbar-overlap) + 5px);
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar > #identity-box {
  /* Forward button hiding is delayed when hovered, so we should use the same
     delay for the identity box. We handle both horizontal paddings (for LTR and
     RTL), the latter two delays here are for padding-left and padding-right. */
  transition-delay: 100s, 100s;
}

window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] + #urlbar > #identity-box {
  /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
  padding-inline-start: calc(var(--backbutton-urlbar-overlap) + 5.01px);
}

/* MAIN IDENTITY ICON */

#identity-icon {
  width: 16px;
  height: 16px;
}

#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon {
  opacity: .3;
}

#urlbar[actiontype="searchengine"] > #identity-box > #identity-icon {
  -moz-image-region: inherit;
  list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon);
  width: 16px;
  height: 16px;
}

#urlbar[actiontype="extension"] > #identity-box > #identity-icon {
  -moz-image-region: inherit;
  list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg);
  width: 16px;
  height: 16px;
}

/* SHARING ICON */

#sharing-icon {
  width: 16px;
  height: 16px;
  margin-inline-start: -16px;
  position: relative;
  display: none;
}

#identity-box[sharing="camera"] > #sharing-icon {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#camera-sharing");
}

#identity-box[sharing="microphone"] > #sharing-icon {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#microphone-sharing");
}

#identity-box[sharing="screen"] > #sharing-icon {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#screen-sharing");
}

#identity-box[sharing] > #sharing-icon {
  display: -moz-box;
  animation-delay: -1.5s;
}

#identity-box[sharing] > #identity-icon,
#sharing-icon {
  animation: 3s linear pulse infinite;
}

@keyframes pulse {
  0%, 16.66%, 83.33%, 100% {
    opacity: 0;
  }
  33.33%, 66.66% {
    opacity: 1;
  }
}

/* TRACKING PROTECTION ICON */

#tracking-protection-icon {
  width: 16px;
  height: 16px;
  margin-inline-start: 2px;
  margin-inline-end: 0;
}

#tracking-protection-icon[animate] {
  transition: margin-left 200ms ease-out, margin-right 200ms ease-out;
}

#tracking-protection-icon:not([state]) {
  margin-inline-end: -18px;
  pointer-events: none;
  opacity: 0;
  /* Only animate the shield in, when it disappears hide it immediately. */
  transition: none;
}

#urlbar[pageproxystate="invalid"] > #identity-box > #tracking-protection-icon {
  visibility: collapse;
}

/* CONNECTION ICON */

#connection-icon {
  width: 16px;
  height: 16px;
  margin-inline-start: 2px;
  visibility: collapse;
}


/* autocomplete */


#PopupAutoComplete > richlistbox > richlistitem {
  height: 20px;
  min-height: 20px;
  border: 0;
  border-radius: 0;
  padding: 0px 1px 0px 1px;
}

#PopupAutoComplete > richlistbox > richlistitem > .ac-site-icon {
  margin-inline-start: 4px;
  margin-inline-end: 0;
}

#PopupAutoComplete > richlistbox > richlistitem > .ac-title {
  font: icon;
  margin-inline-start: 4px;
}

#PopupAutoComplete > richlistbox {
  padding: 0;
}


/* Login form autocompletion */
#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon {
  display: initial;
  list-style-image: url(chrome://browser/skin/notification-icons.svg#login);
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="login"] > .ac-site-icon[selected] {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#login-highlighted);
}


/* Insecure field warning */
#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] {
  background-color: var(--arrowpanel-dimmed);
  border-bottom: 1px solid var(--panel-separator-color);
  padding-bottom: 4px;
  padding-top: 4px;
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] {
  background-color: var(--arrowpanel-dimmed-further);
  color: -moz-DialogText;
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-title {
  color: GrayText;
  font-size: 1em;
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"][selected] > .ac-title {
  color: inherit;
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype="insecureWarning"] > .ac-site-icon {
  list-style-image: url(chrome://browser/skin/connection-mixed-active-loaded.svg#icon);
}

#PopupAutoComplete > richlistbox > richlistitem[originaltype~="datalist-first"] {
  border-top: 1px solid ThreeDShadow;
}

#treecolAutoCompleteImage {
  max-width: 36px;
}

.autocomplete-richlistbox {
  padding: 4px;
}

.autocomplete-richlistitem {
  height: 30px;
  min-height: 30px;
  font: message-box;
  border-radius: 2px;
  border: 1px solid transparent;
}

.autocomplete-richlistitem[selected=true] {
  background-color: hsl(210, 80%, 52%);
}

.ac-title {
  font-size: 14px;
  color: hsl(0, 0%, 0%);
}

.ac-tags {
  font-size: 12px;
}

html|span.ac-tag {
  background-color: hsl(216, 0%, 88%);
  color: hsl(0, 0%, 0%);
  border-radius: 2px;
  border: 1px solid transparent;
  padding: 0 1px;
}

.ac-separator,
.ac-url,
.ac-action {
  font-size: 12px;
}

.ac-separator {
  color: hsl(0, 0%, 50%);
}

.ac-url {
  color: hsl(210, 77%, 47%);
}

.ac-action {
  color: hsl(178, 100%, 28%);
}

.ac-title[selected=true],
.ac-separator[selected],
.ac-url[selected=true],
.ac-action[selected=true] {
  color: hsl(0, 0%, 100%);
}

.ac-tags-text[selected] > html|span.ac-tag {
  background-color: hsl(0, 0%, 100%);
  color: hsl(210, 80%, 40%);
}

:root[data-theme="dark"] #PopupAutoComplete,
:root[data-theme="dark"] #PopupAutoCompleteRichResult,
:root[data-theme="dark"] #PopupSearchAutoComplete,
#main-window[lwtheme-brighttext] #PopupAutoComplete,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete,
toolbar[brighttext] #PopupAutoComplete,
toolbar[brighttext] #PopupAutoCompleteRichResult,
toolbar[brighttext] #PopupSearchAutoComplete {
  background-color: #2b2b2b !important;
  color: #f3f3f3 !important;
  border-color: #5a5a5a !important;
}

:root[data-theme="dark"] #PopupAutoComplete .autocomplete-richlistbox,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .autocomplete-richlistbox,
:root[data-theme="dark"] #PopupSearchAutoComplete .autocomplete-richlistbox,
#main-window[lwtheme-brighttext] #PopupAutoComplete .autocomplete-richlistbox,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .autocomplete-richlistbox,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .autocomplete-richlistbox,
toolbar[brighttext] #PopupAutoComplete .autocomplete-richlistbox,
toolbar[brighttext] #PopupAutoCompleteRichResult .autocomplete-richlistbox,
toolbar[brighttext] #PopupSearchAutoComplete .autocomplete-richlistbox {
  background-color: #2b2b2b !important;
  color: #f3f3f3 !important;
}

:root[data-theme="dark"] #PopupAutoComplete .autocomplete-richlistitem,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .autocomplete-richlistitem,
:root[data-theme="dark"] #PopupSearchAutoComplete .autocomplete-richlistitem,
#main-window[lwtheme-brighttext] #PopupAutoComplete .autocomplete-richlistitem,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .autocomplete-richlistitem,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .autocomplete-richlistitem,
toolbar[brighttext] #PopupAutoComplete .autocomplete-richlistitem,
toolbar[brighttext] #PopupAutoCompleteRichResult .autocomplete-richlistitem,
toolbar[brighttext] #PopupSearchAutoComplete .autocomplete-richlistitem {
  background-color: #2b2b2b !important;
  color: #f3f3f3 !important;
}

:root[data-theme="dark"] #PopupAutoComplete .ac-title,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .ac-title,
:root[data-theme="dark"] #PopupSearchAutoComplete .ac-title,
#main-window[lwtheme-brighttext] #PopupAutoComplete .ac-title,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .ac-title,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .ac-title,
toolbar[brighttext] #PopupAutoComplete .ac-title,
toolbar[brighttext] #PopupAutoCompleteRichResult .ac-title,
toolbar[brighttext] #PopupSearchAutoComplete .ac-title {
  color: #f3f3f3 !important;
}

:root[data-theme="dark"] #PopupAutoComplete .ac-separator,
:root[data-theme="dark"] #PopupAutoComplete .ac-url,
:root[data-theme="dark"] #PopupAutoComplete .ac-action,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .ac-separator,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .ac-url,
:root[data-theme="dark"] #PopupAutoCompleteRichResult .ac-action,
:root[data-theme="dark"] #PopupSearchAutoComplete .ac-separator,
:root[data-theme="dark"] #PopupSearchAutoComplete .ac-url,
:root[data-theme="dark"] #PopupSearchAutoComplete .ac-action,
#main-window[lwtheme-brighttext] #PopupAutoComplete .ac-separator,
#main-window[lwtheme-brighttext] #PopupAutoComplete .ac-url,
#main-window[lwtheme-brighttext] #PopupAutoComplete .ac-action,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .ac-separator,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .ac-url,
#main-window[lwtheme-brighttext] #PopupAutoCompleteRichResult .ac-action,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .ac-separator,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .ac-url,
#main-window[lwtheme-brighttext] #PopupSearchAutoComplete .ac-action,
toolbar[brighttext] #PopupAutoComplete .ac-separator,
toolbar[brighttext] #PopupAutoComplete .ac-url,
toolbar[brighttext] #PopupAutoComplete .ac-action,
toolbar[brighttext] #PopupAutoCompleteRichResult .ac-separator,
toolbar[brighttext] #PopupAutoCompleteRichResult .ac-url,
toolbar[brighttext] #PopupAutoCompleteRichResult .ac-action,
toolbar[brighttext] #PopupSearchAutoComplete .ac-separator,
toolbar[brighttext] #PopupSearchAutoComplete .ac-url,
toolbar[brighttext] #PopupSearchAutoComplete .ac-action {
  color: #a9d0ff !important;
}

html|span.ac-emphasize-text-title,
html|span.ac-emphasize-text-tag,
html|span.ac-emphasize-text-url {
  font-weight: 600;
}

@media not all and (-moz-windows-default-theme) {
  .autocomplete-richlistitem[selected=true] {
    background-color: Highlight;
  }

  .ac-title {
    color: inherit;
  }

  html|span.ac-tag {
    background-color: -moz-FieldText;
    color: -moz-Field;
  }

  .ac-separator,
  .ac-url,
  .ac-action {
    color: -moz-nativehyperlinktext;
  }

  .ac-tags-text[selected] > html|span.ac-tag {
    background-color: HighlightText;
    color: Highlight;
  }
}

.ac-type-icon[type=bookmark] {
  list-style-image: url("chrome://browser/skin/urlbar-star.svg#star");
}

.ac-type-icon[type=bookmark][selected][current] {
  list-style-image: url("chrome://browser/skin/urlbar-star.svg#star-inverted");
}

.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
  list-style-image: url("chrome://browser/skin/places/autocomplete-star.png");
  -moz-image-region: rect(0 16px 16px 0);
  width: 16px;
  height: 16px;
}

@media (min-resolution: 1.1dppx) {
  .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
    list-style-image: url("chrome://browser/skin/places/autocomplete-star@2x.png");
    -moz-image-region: rect(0 32px 32px 0);
  }
}

@media not all and (-moz-os-version: windows-vista) and (-moz-windows-default-theme) {
  @media not all and (-moz-os-version: windows-win7) and (-moz-windows-default-theme) {
    .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
      -moz-image-region: rect(0 32px 16px 16px);
    }

    @media (min-resolution: 1.1dppx) {
      .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
        -moz-image-region: rect(0 64px 32px 32px);
      }
    }

    .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage, selected) {
      list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon-inverted);
    }
  }
}

.ac-type-icon[type=keyword],
.ac-site-icon[type=searchengine],
.autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
  list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon);
}

.ac-type-icon[type=keyword][selected],
.ac-site-icon[type=searchengine][selected],
.autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage, selected) {
  list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon-inverted);
}

.autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
  list-style-image: url("chrome://browser/skin/places/tag.png");
  width: 16px;
  height: 16px;
}

.ac-type-icon[type=switchtab],
.ac-type-icon[type=remotetab] {
  list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab");
}

.ac-type-icon[type=switchtab][selected],
.ac-type-icon[type=remotetab][selected] {
  list-style-image: url("chrome://browser/skin/urlbar-tab.svg#tab-inverted");
}

.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
  color: GrayText;
}

.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment)
{
  color: GrayText;
  font-size: smaller;
}

.autocomplete-treebody::-moz-tree-cell(suggesthint) {
  border-top: 1px solid GrayText;
}

/* combined go/reload/stop button in location bar */

#urlbar-reload-button {
  -moz-image-region: rect(0, 14px, 14px, 0);
}

#urlbar-reload-button:not([disabled]):hover {
  -moz-image-region: rect(14px, 14px, 28px, 0);
}

#urlbar-reload-button:not([disabled]):hover:active {
  -moz-image-region: rect(28px, 14px, 42px, 0);
}

#urlbar-reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#urlbar-go-button {
  -moz-image-region: rect(0, 42px, 14px, 28px);
}

#urlbar-go-button:hover {
  -moz-image-region: rect(14px, 42px, 28px, 28px);
}

#urlbar-go-button:hover:active {
  -moz-image-region: rect(28px, 42px, 42px, 28px);
}

#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#urlbar-stop-button {
  -moz-image-region: rect(0, 28px, 14px, 14px);
}

#urlbar-stop-button:not([disabled]):hover {
  -moz-image-region: rect(14px, 28px, 28px, 14px);
}

#urlbar-stop-button:hover:active {
  -moz-image-region: rect(28px, 28px, 42px, 14px);
}

@media (min-resolution: 1.1dppx) {
  #urlbar-go-button,
  #urlbar-reload-button,
  #urlbar-stop-button {
    list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
  }

  #urlbar-go-button > .toolbarbutton-icon,
  #urlbar-reload-button > .toolbarbutton-icon,
  #urlbar-stop-button > .toolbarbutton-icon {
    width: 14px;
  }

  #urlbar-go-button {
    -moz-image-region: rect(0, 84px, 28px, 56px);
  }

  #urlbar-go-button:hover {
    -moz-image-region: rect(28px, 84px, 56px, 56px);
  }

  #urlbar-go-button:hover:active {
    -moz-image-region: rect(56px, 84px, 84px, 56px);
  }

  #urlbar-reload-button {
    -moz-image-region: rect(0, 28px, 28px, 0);
  }

  #urlbar-reload-button:not([disabled]):hover {
    -moz-image-region: rect(28px, 28px, 56px, 0);
  }

  #urlbar-reload-button:not([disabled]):hover:active {
    -moz-image-region: rect(56px, 28px, 84px, 0);
  }

  #urlbar-stop-button {
    -moz-image-region: rect(0, 56px, 28px, 28px);
  }

  #urlbar-stop-button:not([disabled]):hover {
    -moz-image-region: rect(28px, 56px, 56px, 28px);
  }

  #urlbar-stop-button:hover:active {
    -moz-image-region: rect(56px, 56px, 84px, 28px);
  }
}

/* popup blocker button */

#page-report-button {
  list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
  -moz-image-region: rect(0, 16px, 16px, 0);
}

#page-report-button:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

#page-report-button:hover:active,
#page-report-button[open="true"] {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

/* Reader mode button */

#reader-mode-button {
  list-style-image: url("chrome://browser/skin/readerMode.svg");
  -moz-image-region: rect(0, 16px, 16px, 0);
}

#reader-mode-button:hover,
#reader-mode-button[readeractive]:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

#reader-mode-button:hover:active,
#reader-mode-button[readeractive] {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

/* bookmarks menu-button */

#nav-bar #bookmarks-menu-button[cui-areatype="toolbar"]:not([overflowedItem=true]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  padding-top: var(--toolbarbutton-vertical-inner-padding);
  padding-bottom: var(--toolbarbutton-vertical-inner-padding);
}

#BMB_bookmarksPopup[side="top"],
#BMB_bookmarksPopup[side="bottom"] {
  margin-left: -20px;
  margin-right: -20px;
}

#BMB_bookmarksPopup[side="left"],
#BMB_bookmarksPopup[side="right"] {
  margin-top: -20px;
  margin-bottom: -20px;
}

#editBookmarkPanelTitle {
  font-size: 130%;
}

#editBookmarkPanelHeader,
#editBookmarkPanelContent {
  margin-bottom: .5em;
}

/* Implements editBookmarkPanel resizing on folderTree un-collapse. */
#editBMPanel_folderTree {
  min-width: 27em;
}

/* ::::: content area ::::: */

#sidebar {
  background-color: Window;
}

#sidebar-title {
  padding-inline-start: 0px;
}

#sidebar-header > .close-icon {
  -moz-appearance: none;
  padding: 2px;
  margin: 0;
  border: none;
}

@media not all and (min-resolution: 1.1dppx) {
  #sidebar-header > .close-icon:-moz-lwtheme-brighttext {
    list-style-image: url("chrome://global/skin/icons/close-inverted.png");
  }
}

@media (min-resolution: 1.1dppx) {
  #sidebar-header > .close-icon:-moz-lwtheme-brighttext {
    list-style-image: url("chrome://global/skin/icons/close-inverted@2x.png");
  }
}

@media (-moz-os-version: windows-xp),
       (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  #sidebar-header > .close-icon {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.browserContainer > findbar {
  background-color: -moz-dialog;
  color: -moz-DialogText;
  text-shadow: none;
}

/* Tabstrip */

#TabsToolbar {
  min-height: 0;
  padding: 0;
  margin-bottom: calc(-1 * var(--tab-toolbar-navbar-overlap)); /* overlap the nav-bar's top border */
}

@media (-moz-os-version: windows-xp) and (-moz-windows-default-theme) {
  #main-window[sizemode=normal] #TabsToolbar {
    padding-left: 2px;
    padding-right: 2px;
  }
}


:root {
  --tab-toolbar-navbar-overlap: 1px;
  --navbar-tab-toolbar-highlight-overlap: 1px;
  --tab-min-height: 31px;
}
#TabsToolbar {
  --tab-stroke-background-size: auto 100%;
}


/* image preloading hack */
#tabbrowser-tabs::before {
  /* Because of bug 853415, we need to ordinal this to the first position: */
  -moz-box-ordinal-group: 0;
  content: '';
  display: block;
  background-image:
    url(chrome://browser/skin/tabbrowser/tab-background-end.png),
    url(chrome://browser/skin/tabbrowser/tab-background-middle.png),
    url(chrome://browser/skin/tabbrowser/tab-background-start.png);
}

#tabbrowser-tabs {
  min-height: var(--tab-min-height);
}

.tabbrowser-tab,
.tabs-newtab-button {
  -moz-appearance: none;
  background-color: transparent;
  border-radius: 0;
  border-width: 0;
  margin: 0;
  padding: 0;
}

.tabbrowser-tab {
  -moz-box-align: stretch;
}

/* The selected tab should appear above adjacent tabs, .tabs-newtab-button and the highlight of #nav-bar */
.tabbrowser-tab[visuallyselected=true] {
  position: relative;
  z-index: 2;
}

.tab-background-middle {
  -moz-box-flex: 1;
  background-clip: padding-box;
  /* Deliberately create a 1px overlap left/right to cover rounding gaps */
  border-left: calc(15px - 1px) solid transparent;
  border-right: calc(15px - 1px) solid transparent;
  margin: 0 -15px;
}

.tab-content {
  padding-inline-end: 9px;
  padding-inline-start: 9px;
}

.tab-content[pinned] {
  padding-inline-end: 3px;
}

.tab-throbber,
.tab-icon-image,
.tab-sharing-icon-overlay,
.tab-icon-sound,
.tab-close-button {
  margin-top: 1px;
}

.tab-throbber,
.tab-sharing-icon-overlay,
.tab-icon-image {
  height: 16px;
  width: 16px;
  margin-inline-end: 6px;
}

.tab-icon-image {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.tab-icon-image[sharing]:not([selected]),
.tab-sharing-icon-overlay {
  animation: 3s linear pulse infinite;
}

@keyframes pulse {
  0%, 16.66%, 83.33%, 100% {
    opacity: 0;
  }
  33.33%, 66.66% {
    opacity: 1;
  }
}

.tab-icon-image[sharing]:not([selected]) {
  animation-delay: -1.5s;
}

.tab-sharing-icon-overlay {
  /* 16px of the icon + 6px of margin-inline-end of .tab-icon-image */
  margin-inline-start: -22px;
  position: relative;
}

.tab-sharing-icon-overlay[sharing="camera"] {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#camera-sharing");
}

.tab-sharing-icon-overlay[sharing="microphone"] {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#microphone-sharing");
}

.tab-sharing-icon-overlay[sharing="screen"] {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#screen-sharing");
}

.tab-icon-overlay {
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-inline-start: -15px;
  margin-inline-end: -1px;
  position: relative;
}

.tab-icon-overlay[crashed] {
  list-style-image: url("chrome://browser/skin/tabbrowser/crashed.svg");
}

.tab-icon-overlay[soundplaying],
.tab-icon-overlay[muted]:not([crashed]),
.tab-icon-overlay[blocked]:not([crashed]) {
  border-radius: 10px;
}

.tab-icon-overlay[soundplaying]:hover,
.tab-icon-overlay[muted]:not([crashed]):hover,
.tab-icon-overlay[blocked]:not([crashed]):hover {
  background-color: white;
}

.tab-icon-overlay[soundplaying] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio");
}

.tab-icon-overlay[muted]:not([crashed]) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted");
}

.tab-icon-overlay[blocked]:not([crashed]) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-blocked");
}

#TabsToolbar[brighttext] .tab-icon-overlay[soundplaying]:not([selected]):not(:hover),
.tab-icon-overlay[soundplaying][selected]:-moz-lwtheme-brighttext:not(:hover) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white");
}

#TabsToolbar[brighttext] .tab-icon-overlay[muted]:not([crashed]):not([selected]):not(:hover),
.tab-icon-overlay[muted][selected]:-moz-lwtheme-brighttext:not(:hover) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white-muted");
}

#TabsToolbar[brighttext] .tab-icon-overlay[blocked]:not([crashed]):not([selected]):not(:hover),
.tab-icon-overlay[blocked][selected]:-moz-lwtheme-brighttext:not(:hover) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white-blocked");
}

.tab-throbber[busy] {
  list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
}

.tab-throbber[progress] {
  list-style-image: url("chrome://global/skin/icons/loading.png");
}

.tab-label {
  margin-inline-end: 0;
  margin-inline-start: 0;
}

.tab-close-button {
  margin-inline-start: 4px;
  margin-inline-end: -2px;
  padding: 0;
}

.tab-icon-sound {
  margin-inline-start: 4px;
  width: 16px;
  height: 16px;
  padding: 0;
}

.tab-icon-sound[soundplaying],
.tab-icon-sound[muted],
.tab-icon-sound[blocked] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio);
  filter: url(chrome://browser/skin/filters.svg#fill);
  fill: currentColor;
}

.tab-icon-sound[muted] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted);
}

.tab-icon-sound[blocked] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-blocked);
}

.tab-icon-sound:-moz-lwtheme-darktext[soundplaying],
.tab-icon-sound:-moz-lwtheme-darktext[muted],
.tab-icon-sound:-moz-lwtheme-darktext[blocked] {
  filter: url(chrome://browser/skin/filters.svg#fill) drop-shadow(1px 1px 1px white);
}

.tab-icon-sound:-moz-lwtheme-brighttext[soundplaying],
.tab-icon-sound:-moz-lwtheme-brighttext[muted],
.tab-icon-sound:-moz-lwtheme-brighttext[blocked] {
  filter: url(chrome://browser/skin/filters.svg#fill) drop-shadow(1px 1px 1px black);
}

.tab-icon-sound[soundplaying]:not(:hover),
.tab-icon-sound[muted]:not(:hover),
.tab-icon-sound[blocked]:not(:hover) {
  opacity: .8;
}

.tab-icon-sound[soundplaying-scheduledremoval]:not([muted]):not(:hover),
.tab-icon-overlay[soundplaying-scheduledremoval]:not([muted]):not(:hover) {
  transition: opacity .3s linear var(--soundplaying-removal-delay);
  opacity: 0;
}

.tab-background,
.tabs-newtab-button {
  /* overlap the tab curves */
  margin-inline-end: -15px;
  margin-inline-start: -15px;
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
  padding-inline-end: 15px;
  padding-inline-start: 15px;
}

/* Tab Overflow */
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]),
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
  background-image: url(chrome://browser/skin/tabbrowser/tab-overflow-indicator.png);
  background-size: 100% 100%;
  width: 14px;
  margin-bottom: var(--navbar-tab-toolbar-highlight-overlap);
  pointer-events: none;
  position: relative;
  z-index: 3; /* the selected tab's z-index + 1 */
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:-moz-locale-dir(rtl),
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:-moz-locale-dir(ltr) {
  transform: scaleX(-1);
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]) {
  margin-inline-start: -2px;
  margin-inline-end: -12px;
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
  margin-inline-start: -12px;
  margin-inline-end: -2px;
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator[collapsed],
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator[collapsed] {
  opacity: 0;
}

.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator,
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator {
  transition: opacity 150ms ease;
}

.tab-background-start[selected=true]::after,
.tab-background-start[selected=true]::before,
.tab-background-start,
.tab-background-end,
.tab-background-end[selected=true]::after,
.tab-background-end[selected=true]::before {
  min-height: var(--tab-min-height);
  width: 30px;
}

.tabbrowser-tab:not([visuallyselected=true]),
.tabbrowser-tab:-moz-lwtheme {
  color: inherit;
}

/* Selected tab */

/*
 Tab background pseudo-elements which are positioned above .tab-background-start/end:
   - ::before - provides the fill of the tab curve and is clipped to the tab shape. This is where
                pointer events go for the curve.
   - ::after  - provides the border/stroke of the tab curve and is overlayed above ::before.  Pointer
                events go through to ::before to get the proper shape.
 */


.tab-background-start[selected=true]::after,
.tab-background-end[selected=true]::after {
  /* position ::after on top of its parent */
  margin-inline-start: -30px;
  background-size: 100% 100%;
  content: "";
  display: -moz-box;
  position: relative;
}

.tab-background-start[selected=true]::before,
.tab-background-end[selected=true]::before {
  /* all ::before pseudo elements */
  content: "";
  display: -moz-box;
}

.tab-background-start[selected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
.tab-background-end[selected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
  background-image: url(chrome://browser/skin/tabbrowser/tab-selected-start.svg);
  background-size: 100% 100%;
}

.tab-background-end[selected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
.tab-background-start[selected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
  background-image: url(chrome://browser/skin/tabbrowser/tab-selected-end.svg);
  background-size: 100% 100%;
}

/* For lightweight themes, clip the header image on start, middle, and end. */
.tab-background-start[selected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
.tab-background-end[selected=true]:-moz-locale-dir(rtl):-moz-lwtheme::before {
  clip-path: url(chrome://browser/content/browser.xul#tab-curve-clip-path-start);
}

.tab-background-end[selected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
.tab-background-start[selected=true]:-moz-locale-dir(rtl):-moz-lwtheme::before {
  clip-path: url(chrome://browser/content/browser.xul#tab-curve-clip-path-end);
}

.tab-background-start[selected=true]:-moz-locale-dir(ltr)::after,
.tab-background-end[selected=true]:-moz-locale-dir(rtl)::after {
  background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-start.png);
}

.tab-background-end[selected=true]:-moz-locale-dir(ltr)::after,
.tab-background-start[selected=true]:-moz-locale-dir(rtl)::after {
  background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-end.png);
}

.tab-background-middle[selected=true] {
  background-clip: padding-box, padding-box, content-box;
  background-color: -moz-dialog;
  background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle.png),
                    linear-gradient(transparent 2px, rgba(255,255,255,.4) 2px, rgba(255,255,255,.4)),
                    none;
  background-repeat: repeat-x;
  background-size: var(--tab-stroke-background-size), auto 100%;
  /* The padding-top combined with background-clip: content-box (the bottom-most) ensure the
     background-color doesn't extend above the top border. */
  padding-top: 2px;
}

/* Selected tab lightweight theme styles.
   See browser-lightweightTheme.css for information about run-time changes to LWT styles. */
.tab-background-middle[selected=true]:-moz-lwtheme {
  background-color: transparent;
  background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle.png),
                    linear-gradient(transparent 2px, rgba(255,255,255,.4) 2px, rgba(255,255,255,.4));/*,
                    lwtHeader;*/
  /* Don't stretch the LWT header images */
  background-size: var(--tab-stroke-background-size), auto 100%, auto auto;
}

/* These LWT styles are normally overridden by browser-lightweightTheme.css */
.tab-background-start[selected=true]:-moz-lwtheme::before,
.tab-background-end[selected=true]:-moz-lwtheme::before {
  background-image: linear-gradient(transparent 2px, rgba(255,255,255,.4) 2px, rgba(255,255,255,.4));
}

.tab-background-start[selected=true]:-moz-lwtheme::before,
.tab-background-end[selected=true]:-moz-lwtheme::before,
.tab-background-middle[selected=true]:-moz-lwtheme {
  background-color: transparent;
}

/* End selected tab */

/* new tab button border and gradient on hover */
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]),
.tabs-newtab-button:hover {
  background-image: url(chrome://browser/skin/tabbrowser/tab-background-start.png),
                    url(chrome://browser/skin/tabbrowser/tab-background-middle.png),
                    url(chrome://browser/skin/tabbrowser/tab-background-end.png);
  background-position: left bottom, 30px bottom, right bottom;
  background-repeat: no-repeat;
  background-size: 30px 100%, calc(100% - (2 * 30px)) 100%, 30px 100%;
}

/* Tab pointer-events */
.tabbrowser-tab {
  pointer-events: none;
}

.tab-background-middle,
.tabs-newtab-button,
.tab-icon-overlay[soundplaying],
.tab-icon-overlay[muted]:not([crashed]),
.tab-icon-overlay[blocked]:not([crashed]),
.tab-icon-sound,
.tab-close-button {
  pointer-events: auto;
}

/* Pinned tabs */

/* Pinned tab separators need position: absolute when positioned (during overflow). */
#tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned]::before {
  height: 100%;
  position: absolute;
}

.tabbrowser-tab:-moz-any([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]),
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]) {
  background-image: radial-gradient(farthest-corner at center bottom, rgb(255,255,255) 3%, rgba(186,221,251,0.75) 20%, rgba(127,179,255,0.25) 40%, transparent 70%);
  background-position: center bottom var(--tab-toolbar-navbar-overlap);
  background-repeat: no-repeat;
  background-size: 85% 100%;
}

.tabbrowser-tab[image] > .tab-stack > .tab-content[attention]:not([pinned]):not([selected="true"]) {
  background-position: left bottom var(--tab-toolbar-navbar-overlap);
  background-size: 34px 100%;
}

.tab-label[attention]:not([selected="true"]) {
  font-weight: bold;
}

/* Tab separators */

.tabbrowser-tab::after,
.tabbrowser-tab::before {
  margin-inline-start: -1px;
  /* Vertical margin doesn't work here for positioned pinned tabs, see
     bug 1198236 and bug 1300410. We're using linear-gradient instead
     to cut off the border at the top and at the bottom. */
  border-left: 1px solid;
  border-image: linear-gradient(transparent 6px,
                                currentColor 6px,
                                currentColor calc(100% - 5px),
                                transparent calc(100% - 5px));
  border-image-slice: 1;
  /* The 1px border and negative margin may amount to a different number of
     device pixels (bug 477157), so we also set a width to match the margin. */
  width: 1px;
  box-sizing: border-box;
  opacity: 0.2;
}

#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::before,
#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::after {
  opacity: 0.4;
}

/* Also show separators beside the selected tab when dragging it. */
#tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
.tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
  content: "";
  display: -moz-box;
}

/* New tab button */

.tabs-newtab-button {
  width: calc(36px + 30px);
}

@media (min-resolution: 1.1dppx) {
  /* image preloading hack from like lowdpi styles */
  #tabbrowser-tabs::before {
    background-image:
      url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png),
      url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png),
      url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png);
  }

  .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]),
  .tabs-newtab-button:hover {
    background-image: url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png),
                      url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png),
                      url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png);
  }

  .tab-background-middle[selected=true] {
    background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle@2x.png),
                      linear-gradient(transparent 2px, rgba(255,255,255,.4) 2px, rgba(255,255,255,.4)),
                      none;
  }

  .tab-background-start[selected=true]:-moz-locale-dir(ltr)::after,
  .tab-background-end[selected=true]:-moz-locale-dir(rtl)::after {
    background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-start@2x.png);
  }

  .tab-background-end[selected=true]:-moz-locale-dir(ltr)::after,
  .tab-background-start[selected=true]:-moz-locale-dir(rtl)::after {
    background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-end@2x.png);
  }

  .tab-throbber[busy] {
    list-style-image: url("chrome://browser/skin/tabbrowser/connecting@2x.png");
  }

  .tab-icon-image {
    list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
  }

  .tab-throbber[progress] {
    list-style-image: url("chrome://global/skin/icons/loading@2x.png");
  }
}

/* All tabs menupopup */

.alltabs-item[tabIsVisible] {
  /* box-shadow instead of background-color to work around native styling */
  box-shadow: inset -5px 0 ThreeDShadow;
}

.alltabs-endimage[soundplaying],
.alltabs-endimage[muted],
.alltabs-endimage[blocked] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio);
  filter: url(chrome://browser/skin/filters.svg#fill);
  fill: currentColor;
}

.alltabs-endimage[muted] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted);
}

.alltabs-endimage[blocked] {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-blocked);
}

/* Remove border between tab strip and navigation toolbar on Windows 10+ */
@media not all and (-moz-os-version: windows-xp) {
  @media not all and (-moz-os-version: windows-vista) {
    @media not all and (-moz-os-version: windows-win7) {
      @media not all and (-moz-os-version: windows-win8) {
        @media (-moz-windows-default-theme) {
          .tab-background-end[selected=true]::after,
          .tab-background-start[selected=true]::after {
            content: none;
          }

          #TabsToolbar {
            --tab-stroke-background-size: 0 0;
          }

          :root {
            --tab-toolbar-navbar-overlap: 0px;
          }

          #nav-bar {
            border-top-style: none !important;
            box-shadow: none;
          }
        }
      }
    }
  }
}

/* Invert the unhovered close tab icons on bright-text tabs */
@media not all and (min-resolution: 1.1dppx) {
  .tab-close-button:-moz-lwtheme-brighttext,
  #TabsToolbar[brighttext] .tab-close-button:not([selected="true"]) {
    list-style-image: url("chrome://global/skin/icons/close-inverted.png");
  }
}

@media (min-resolution: 1.1dppx) {
  .tab-close-button:-moz-lwtheme-brighttext,
  #TabsToolbar[brighttext] .tab-close-button:not([selected="true"]) {
    list-style-image: url("chrome://global/skin/icons/close-inverted@2x.png");
  }
}

/* tabbrowser-tab focus ring */
.tabbrowser-tab:focus > .tab-stack > .tab-content {
  outline: 1px dotted;
  outline-offset: -6px;
}

/* Tab DnD indicator */
.tab-drop-indicator {
  list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png);
  margin-bottom: -9px;
  z-index: 3;
}

/* Tab close button */
.tab-close-button {
  -moz-appearance: none;
  border: none;
}

/* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */

.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox > .scrollbutton-down {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left.svg");
  margin: 0 0 var(--tab-toolbar-navbar-overlap);
}

#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-up,
#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-down {
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-arrow-left-inverted.svg);
}

.tabbrowser-arrowscrollbox > .scrollbutton-up[disabled],
.tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] {
  opacity: .4;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl),
.tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr) {
  transform: scaleX(-1);
}

.tabbrowser-arrowscrollbox > .scrollbutton-down {
  transition: 1s background-color ease-out;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
  background-color: Highlight;
  transition: none;
}

.tabs-newtab-button > .toolbarbutton-icon {
  margin-top: -1px;
  margin-bottom: -1px;
}

.tabs-newtab-button,
#TabsToolbar > #new-tab-button,
#TabsToolbar > toolbarpaletteitem > #new-tab-button {
  list-style-image: url(chrome://browser/skin/tabbrowser/newtab.svg);
  -moz-image-region: auto;
}

#TabsToolbar[brighttext] .tabs-newtab-button,
#TabsToolbar[brighttext] > #new-tab-button,
#TabsToolbar[brighttext] > toolbarpaletteitem > #new-tab-button {
  list-style-image: url(chrome://browser/skin/tabbrowser/newtab-inverted.svg);
}

.tabs-newtab-button > .toolbarbutton-icon,
#TabsToolbar > #new-tab-button > .toolbarbutton-icon,
#TabsToolbar > toolbarpaletteitem > #new-tab-button > .toolbarbutton-icon {
  width: 16px;
}

#TabsToolbar > #new-tab-button {
  width: 26px;
}

#alltabs-button {
  list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png");
}

#TabsToolbar[brighttext] > #alltabs-button,
#TabsToolbar[brighttext] > toolbarpaletteitem > #alltabs-button {
  list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow-inverted.png");
}

#alltabs-button > .toolbarbutton-icon {
  margin: 0 2px;
}

#alltabs-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

/* All tabs menupopup */
.alltabs-item > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.alltabs-item[selected="true"] {
  font-weight: bold;
}

.alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://global/skin/icons/loading.png");
}

@media (min-resolution: 1.1dppx) {
  .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
    list-style-image: url("chrome://global/skin/icons/loading@2x.png");
  }
}

toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
}

toolbar[brighttext] toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/toolbar/chevron-inverted.png") !important;
}

toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

toolbarbutton.chevron > .toolbarbutton-text,
toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
  display: none;
}

toolbarbutton.chevron > .toolbarbutton-icon {
  margin: 0;
}

#sidebar-throbber[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading.png");
  margin-inline-end: 4px;
}

@media (min-resolution: 1.1dppx) {
  #sidebar-throbber[loading="true"] {
    list-style-image: url("chrome://global/skin/icons/loading@2x.png");
    width: 16px;
  }
}

/* Bookmarks toolbar */
#PlacesToolbarDropIndicator {
  list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png);
}

toolbarbutton.bookmark-item[dragover="true"][open="true"] {
  -moz-appearance: none;
  background: Highlight !important;
  color: HighlightText !important;
}

/* rules for menupopup drop indicators */
.menupopup-drop-indicator-bar {
  position: relative;
  /* these two margins must together compensate the indicator's height */
  margin-top: -1px;
  margin-bottom: -1px;
}

.menupopup-drop-indicator {
  list-style-image: none;
  height: 2px;
  margin-inline-end: -4em;
  background-color: Highlight;
}


#notification-popup-box {
  padding: 5px 0px;
  margin: -5px 0px;
  margin-inline-end: -5px;
  padding-inline-end: 5px;
}

.notification-anchor-icon,
#blocked-permissions-container > .blocked-permission-icon {
  width: 16px;
  height: 16px;
  margin-inline-start: 2px;
}

/* This class can be used alone or in combination with the class defining the
   type of icon displayed. This rule must be defined before the others in order
   for its list-style-image to be overridden. */
.notification-anchor-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#default-info);
}

.popup-notification-icon {
  width: 64px;
  height: 64px;
  margin-inline-end: 10px;
}

.notification-anchor-icon:not(.plugin-blocked):-moz-lwtheme,
#blocked-permissions-container > .blocked-permission-icon:-moz-lwtheme {
  filter: url(chrome://browser/skin/filters.svg#fill);
  fill: currentColor;
}

.notification-anchor-icon:not(.plugin-blocked):not(:hover) {
  opacity: .8;
}

/* INDIVIDUAL NOTIFICATIONS */

.popup-notification-icon[popupid="web-notifications"],
.desktop-notification-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#desktop-notification);
}

.desktop-notification-icon.blocked-permission-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#desktop-notification-blocked);
}

.geo-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows);
}

.geo-icon.blocked-permission-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows-blocked);
}

.popup-notification-icon[popupid="geolocation"] {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows-detailed);
}

.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
.indexedDB-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#indexedDB);
}

.login-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#login);
}

.popup-notification-icon[popupid="password"] {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#login-detailed);
}

.camera-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#camera);
}

.camera-icon.in-use {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#camera-sharing);
}

.camera-icon.blocked-permission-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#camera-blocked);
}

.microphone-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone);
}

.microphone-icon.in-use {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone-sharing);
}

.microphone-icon.blocked-permission-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone-blocked);
}

.popup-notification-icon.microphone-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone-detailed);
}

.screen-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#screen);
}

.screen-icon.in-use {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#screen-sharing);
}

.screen-icon.blocked-permission-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#screen-blocked);
}

#webRTC-preview:not([hidden]) {
  display: -moz-stack;
  border-radius: 4px;
  border: 1px solid GrayText;
  overflow: hidden;
  min-width: 300px;
  min-height: 10em;
}

html|*#webRTC-previewVideo {
  width: 300px;
  /* If we don't set the min-width, width is ignored. */
  min-width: 300px;
  max-height: 200px;
}

#webRTC-previewWarning {
  background: rgba(255, 217, 99, .8) url("chrome://browser/skin/warning-white.svg") no-repeat .75em .75em;
  margin: 0;
  padding: .5em;
  padding-inline-start: calc(1.5em + 16px);
  border-top: 1px solid GrayText;
}

#webRTC-previewWarning > .text-link {
  margin-inline-start: 0;
}

/* This icon has a block sign in it, so we don't need a blocked version. */
.popup-icon {
  list-style-image: url("chrome://browser/skin/notification-icons.svg#popup");
}

/* EME */

.popup-notification-icon[popupid="drmContentPlaying"],
.drm-icon {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
}

.drm-icon:hover:active {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains-pressed");
}

#eme-notification-icon[firstplay=true] {
  animation: emeTeachingMoment 0.2s linear 0s 5 normal;
}

@keyframes emeTeachingMoment {
  0% {transform: translateX(0); }
  25% {transform: translateX(3px) }
  75% {transform: translateX(-3px) }
  100% { transform: translateX(0); }
}

/* INSTALL ADDONS */

.install-icon {
  list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg);
}

.popup-notification-icon[popupid="xpinstall-disabled"],
.popup-notification-icon[popupid="addon-install-blocked"],
.popup-notification-icon[popupid="addon-install-origin-blocked"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-blocked.svg);
}

.popup-notification-icon[popupid="addon-progress"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-downloading.svg);
}

.popup-notification-icon[popupid="addon-install-failed"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-error.svg);
}

.popup-notification-icon[popupid="addon-install-confirmation"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-confirm.svg);
}

#addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-warning.svg);
}

.popup-notification-icon[popupid="addon-install-complete"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-installed.svg);
}

.popup-notification-icon[popupid="addon-install-restart"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-restart.svg);
}

.popup-notification-icon[popupid="click-to-play-plugins"] {
  list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png);
}

/* OFFLINE APPS */

.popup-notification-icon[popupid*="offline-app-requested"],
.popup-notification-icon[popupid="offline-app-usage"] {
  list-style-image: url(chrome://global/skin/icons/question-64.png);
}

/* PLUGINS */

.plugin-icon {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin);
}

.plugin-icon.plugin-blocked {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin-blocked);
}

#notification-popup-box[hidden] {
  /* Override display:none to make the pluginBlockedNotification animation work
     when showing the notification repeatedly. */
  display: -moz-box;
  visibility: collapse;
}

#plugins-notification-icon.plugin-blocked[showing] {
  animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
}

@keyframes pluginBlockedNotification {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-notification-body[popupid="addon-progress"],
.popup-notification-body[popupid="addon-install-confirmation"] {
  width: 28em;
  max-width: 28em;
}

.addon-install-confirmation-name {
  font-weight: bold;
}

/* Notification icon box */

.notification-anchor-icon:-moz-focusring {
  outline: 1px dotted -moz-DialogText;
}

/* Status panel */

.statuspanel-label {
  margin: 0;
  padding: 2px 4px;
  background: -moz-dialog;
  border: 1px none ThreeDShadow;
  border-top-style: solid;
  color: -moz-dialogText;
  text-shadow: none;
}

@media (-moz-windows-default-theme) {
  .statuspanel-label {
    background: linear-gradient(#fff, #ddd);
    border-color: #ccc;
    color: #333;
  }
}

:root[data-theme="dark"] .statuspanel-label,
#main-window[lwtheme-brighttext] .statuspanel-label,
toolbar[brighttext] .statuspanel-label {
  background: #2b2b2b !important;
  border-color: #5a5a5a !important;
  color: #f3f3f3 !important;
  text-shadow: none !important;
}

.statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
.statuspanel-label:-moz-locale-dir(rtl)[mirror] {
  border-right-style: solid;
  /* disabled for triggering grayscale AA (bug 659213)
  border-top-right-radius: .3em;
  */
  margin-right: 1em;
}

.statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
.statuspanel-label:-moz-locale-dir(ltr)[mirror] {
  border-left-style: solid;
  /* disabled for triggering grayscale AA (bug 659213)
  border-top-left-radius: .3em;
  */
  margin-left: 1em;
}


html|*.pointerlockfswarning {
  align-items: center;
  background: rgba(45, 62, 72, 0.9);
  border: 2px solid #fafafa;
  box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 24px 16px;
  font: message-box;
}

html|*.pointerlockfswarning::before {
  margin: 0;
  width: 24px; height: 24px;
}

html|*.pointerlockfswarning[data-identity="verifiedIdentity"]::before,
html|*.pointerlockfswarning[data-identity="verifiedDomain"]::before {
  content: url("chrome://browser/skin/fullscreen/secure.svg");
}

html|*.pointerlockfswarning[data-identity="unknownIdentity"]::before {
  content: url("chrome://browser/skin/fullscreen/insecure.svg");
}

html|*.pointerlockfswarning-domain-text,
html|*.pointerlockfswarning-generic-text {
  font-size: 21px;
  font-weight: lighter;
  color: #fafafa;
  margin: 0 16px;
}

html|*.pointerlockfswarning-domain {
  font-weight: bold;
  margin: 0;
}

html|*.pointerlockfswarning-exit-button {
  padding: 5px 30px;
  font: message-box;
  font-size: 14px;
  font-weight: lighter;
  margin: 0;
  box-sizing: content-box;
}
/* Ctrl-Tab */

#ctrlTab-panel {
  -moz-appearance: none;
  background: hsla(0,0%,33%,.85);
  color: white;
  border-style: none;
  padding: 20px 10px 10px;
  font-weight: bold;
  text-shadow: 0 0 1px hsl(0,0%,12%), 0 0 2px hsl(0,0%,12%);
}

.ctrlTab-favicon[src] {
  background-color: white;
  width: 20px;
  height: 20px;
  padding: 2px;
}

.ctrlTab-preview-inner > .tabPreview-canvas {
  box-shadow: 1px 1px 2px hsl(0,0%,12%);
}

.ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
  margin-bottom: 2px;
}

.ctrlTab-preview-inner {
  padding: 8px;
  border: 2px solid transparent;
  border-radius: .5em;
}

@supports -moz-bool-pref("browser.tabs.fadeLabels") {
  .ctrlTab-preview-inner label[_is_cropped] {
    mask-image: linear-gradient(to left, transparent, black 2em);
  }

  .ctrlTab-preview-inner label[_is_cropped]:-moz-locale-dir(rtl) {
    mask-image: linear-gradient(to right, transparent, black 2em);
  }
}

.ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner {
  margin: -10px -10px 0;
}

#ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
  background-color: rgba(255,255,255,.2);
}

.ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
  color: white;
  background-color: rgba(0,0,0,.6);
  text-shadow: none;
  border-color: white;
}

#ctrlTab-showAll {
  margin-top: .5em;
}


/* Responsive Mode */

.browserContainer[responsivemode] {
  background-color: #222;
  padding: 0 20px 20px 20px;
}

.browserStack[responsivemode] {
  box-shadow: 0 0 7px black;
}

.devtools-responsiveui-toolbar {
  -moz-appearance: none;
  background: transparent;
  /* text color is textColor from dark theme, since no theme is applied to
   * the responsive toolbar.
   */
  color: hsl(210,30%,85%);
  margin: 10px 0;
  padding: 0;
  box-shadow: none;
  border-bottom-width: 0;
}

.devtools-responsiveui-textinput {
  -moz-appearance: none;
  background: #333;
  color: #fff;
  border: 1px solid #111;
  border-radius: 2px;
  padding: 0 5px;
  width: 200px;
  margin: 0;
}

.devtools-responsiveui-textinput[attention] {
  border-color: #38ace6;
  background: rgba(56,172,230,0.4);
}

.devtools-responsiveui-menulist,
.devtools-responsiveui-toolbarbutton {
  -moz-appearance: none;
  -moz-box-align: center;
  min-width: 32px;
  min-height: 22px;
  text-shadow: 0 -1px 0 hsla(210,8%,5%,.45);
  border: 1px solid hsla(210,8%,5%,.45);
  border-radius: 0;
  background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box;
  box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset, 0 0 0 1px hsla(210,16%,76%,.15) inset, 0 1px 0 hsla(210,16%,76%,.15);
  margin: 0 3px;
  color: inherit;
}

.devtools-responsiveui-menulist .menulist-editable-box {
  -moz-appearance: none;
  background-color: transparent;
}

.devtools-responsiveui-menulist html|*.menulist-editable-input {
  -moz-appearance: none;
  color: inherit;
  text-align: center;
}

.devtools-responsiveui-menulist html|*.menulist-editable-input::-moz-selection {
  background: hsla(212,7%,57%,.35);
}

.devtools-responsiveui-toolbarbutton > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

.devtools-responsiveui-toolbarbutton > .toolbarbutton-menubutton-button {
  -moz-box-orient: horizontal;
}

.devtools-responsiveui-menulist:-moz-focusring,
.devtools-responsiveui-toolbarbutton:-moz-focusring {
  outline: 1px dotted hsla(210,30%,85%,0.7);
  outline-offset: -4px;
}

.devtools-responsiveui-toolbarbutton:not([label]) > .toolbarbutton-text {
  display: none;
}

.devtools-responsiveui-toolbarbutton:not([checked=true]):hover:active {
  border-color: hsla(210,8%,5%,.6);
  background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
  box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-menulist[open=true],
.devtools-responsiveui-toolbarbutton[open=true],
.devtools-responsiveui-toolbarbutton[checked=true] {
  border-color: hsla(210,8%,5%,.6) !important;
  background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
  box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[checked=true] {
  color: hsl(208,100%,60%);
}

.devtools-responsiveui-toolbarbutton[checked=true]:hover {
  background-color: transparent !important;
}

.devtools-responsiveui-toolbarbutton[checked=true]:hover:active {
  background-color: hsla(210,8%,5%,.2) !important;
}

.devtools-responsiveui-menulist > .menulist-label-box {
  text-align: center;
}

.devtools-responsiveui-menulist > .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  background-color: transparent;
  list-style-image: url("chrome://devtools/skin/images/dropmarker.svg");
  -moz-box-align: center;
  border-width: 0;
  min-width: 16px;
}

.devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
  -moz-appearance: none;
  color: inherit;
  border-width: 0;
  border-inline-end: 1px solid hsla(210,8%,5%,.45);
  box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
  box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[type=menu-button] {
  padding: 0 1px;
  -moz-box-align: stretch;
}

.devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
.devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
  -moz-appearance: none !important;
  list-style-image: url("chrome://devtools/skin/images/dropmarker.svg");
  -moz-box-align: center;
  padding: 0 3px;
}

.devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
.devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
  margin-left: 0;
}

.devtools-responsiveui-close {
  list-style-image: url("chrome://devtools/skin/images/close.svg");
}

.devtools-responsiveui-close > image {
  filter: invert(1);
}

.devtools-responsiveui-rotate {
  list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-rotate.png");
}

@media (min-resolution: 1.1dppx) {
  .devtools-responsiveui-rotate {
    list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-rotate@2x.png");
  }
}

.devtools-responsiveui-touch {
  list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-touch.png");
  -moz-image-region: rect(0px,16px,16px,0px);
}

.devtools-responsiveui-touch[checked] {
  -moz-image-region: rect(0px,32px,16px,16px);
}

@media (min-resolution: 1.1dppx) {
  .devtools-responsiveui-touch {
    list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-touch@2x.png");
    -moz-image-region: rect(0px,32px,32px,0px);
  }

  .devtools-responsiveui-touch[checked] {
    -moz-image-region: rect(0px,64px,32px,32px);
  }
}

.devtools-responsiveui-screenshot {
  list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-screenshot.png");
}

@media (min-resolution: 1.1dppx) {
  .devtools-responsiveui-screenshot {
    list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-screenshot@2x.png");
  }
}

.devtools-responsiveui-resizebarV {
  width: 7px;
  height: 24px;
  cursor: ew-resize;
  transform: translate(12px, -12px);
  background-size: cover;
  background-image: url("chrome://devtools/skin/images/responsivemode/responsive-vertical-resizer.png");
}

.devtools-responsiveui-resizebarH {
  width: 24px;
  height: 7px;
  cursor: ns-resize;
  transform: translate(-12px, 12px);
  background-size: cover;
  background-image: url("chrome://devtools/skin/images/responsivemode/responsive-horizontal-resizer.png");
}

.devtools-responsiveui-resizehandle {
  width: 16px;
  height: 16px;
  cursor: se-resize;
  transform: translate(12px, 12px);
  background-size: cover;
  background-image: url("chrome://devtools/skin/images/responsivemode/responsive-se-resizer.png");
}

/* FxOS custom mode with additional buttons and phone look'n feel */

/* Hide devtools manual resizer */
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizehandle,
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarH,
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarV {
  display: none;
}

/* Gives responsive mode a phone look'n feel */
.browserStack[responsivemode].fxos-mode {
  padding: 60px 15px 0;

  border-radius: 25px / 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border: 1px solid #FFFFFF;
  border-bottom-width: 0;

  background-color: #353535;

  box-shadow: 0 3px 0.7px 1px #777777, 0 5px rgba(0, 0, 0, 0.4) inset;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
  min-width: 320px;
}

.devtools-responsiveui-hardware-buttons {
  -moz-appearance: none;
  padding: 20px;

  border: 1px solid #FFFFFF;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  border-top-width: 0;

  box-shadow: 0 3px 0.7px 1px #777777, 0 -7px rgba(0, 0, 0, 0.4) inset;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
}

.devtools-responsiveui-home-button {
  -moz-user-focus: ignore;
  width: 40px;
  height: 30px;
  list-style-image: url("chrome://devtools/skin/images/responsivemode/responsiveui-home.png");
}

.devtools-responsiveui-sleep-button {
  -moz-user-focus: ignore;
  -moz-appearance: none;
  /* compensate browserStack top padding */
  margin-top: -67px;
  margin-right: 10px;

  min-width: 10px;
  width: 50px;
  height: 5px;

  border: 1px solid #444;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  border-bottom-color: transparent;

  background-image: linear-gradient(to top, #111 11%, #333 56%);
}

.devtools-responsiveui-sleep-button:hover:active {
  background-image: linear-gradient(to top, #aaa 11%, #ddd 56%);
}

.devtools-responsiveui-volume-buttons {
  margin-left: -29px;
}

.devtools-responsiveui-volume-up-button,
.devtools-responsiveui-volume-down-button {
  -moz-user-focus: ignore;
  -moz-appearance: none;
  border: 1px solid red;
  min-width: 8px;
  height: 40px;

  border: 1px solid #444;
  border-right-color: transparent;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
}

.devtools-responsiveui-volume-up-button:hover:active,
.devtools-responsiveui-volume-down-button:hover:active {
  background-image: linear-gradient(to right, #aaa 11%, #ddd 56%);
}

.devtools-responsiveui-volume-up-button {
  border-top-left-radius: 12px;
}

.devtools-responsiveui-volume-down-button {
  border-bottom-left-radius: 12px;
}

@media (min-resolution: 1.1dppx) {
  .devtools-responsiveui-resizebarV {
    background-image: url("chrome://devtools/skin/images/responsivemode/responsive-vertical-resizer@2x.png");
  }

  .devtools-responsiveui-resizebarH {
    background-image: url("chrome://devtools/skin/images/responsivemode/responsive-horizontal-resizer@2x.png");
  }

  .devtools-responsiveui-resizehandle {
    background-image: url("chrome://devtools/skin/images/responsivemode/responsive-se-resizer@2x.png");
  }
}

/* Developer toolbar */

/* NOTE: THESE NEED TO STAY IN SYNC WITH LIGHT-THEME.CSS AND DARK-THEME.CSS.
   We are copy/pasting variables from light-theme and dark-theme,
   since they aren't loaded in this context (within browser.css). */
:root[devtoolstheme="light"] #developer-toolbar {
  --gcli-background-color: #fcfcfc; /* --theme-tab-toolbar-background */
  --gcli-input-background: #fcfcfc; /* --theme-toolbar-background */
  --gcli-input-focused-background: #ffffff; /* --theme-sidebar-background */
  --gcli-input-color: #393f4c; /* --theme-body-color */
  --gcli-border-color: #dde1e4; /* --theme-splitter-color */
  --selection-background: #4c9ed9; /* --theme-selection-background */
  --selection-color: #f5f7fa; /* --theme-selection-color */
  --command-line-image: url(chrome://devtools/skin/images/commandline-icon.svg#light-theme); /* --theme-command-line-image */
  --command-line-image-focus: url(chrome://devtools/skin/images/commandline-icon.svg#light-theme-focus); /* --theme-command-line-image-focus */
}

:root[devtoolstheme="dark"] #developer-toolbar {
  --gcli-background-color: #272b35; /* --theme-toolbar-background */
  --gcli-input-background: #272b35; /* --theme-tab-toolbar-background */
  --gcli-input-focused-background: #272b35; /* --theme-tab-toolbar-background */
  --gcli-input-color: #b6babf; /* --theme-body-color-alt */
  --gcli-border-color: #454d5d; /* --theme-splitter-color */
  --selection-background: #5675b9; /* --theme-selection-background */
  --selection-color: #f5f7fa; /* --theme-selection-color */
  --command-line-image: url(chrome://devtools/skin/images/commandline-icon.svg#dark-theme); /* --theme-command-line-image */
  --command-line-image-focus: url(chrome://devtools/skin/images/commandline-icon.svg#dark-theme-focus); /* --theme-command-line-image-focus */
}

#developer-toolbar {
  -moz-appearance: none;
  padding: 0;
  min-height: 32px;
  background-color: var(--gcli-background-color);
  border-top: 1px solid var(--gcli-border-color);
}

#developer-toolbar > toolbarbutton {
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  margin: 0;
  padding: 0 10px;
  width: 32px;
}

.developer-toolbar-button > image {
  margin: auto 10px;
}

:root[devtoolstheme="light"] #developer-toolbar > .developer-toolbar-button:not([checked=true]) > image,
:root[devtoolstheme="light"] .gclitoolbar-input-node:not([focused=true])::before  {
  filter: invert(1);
}

.developer-toolbar-button > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

/* The toolkit close button is low contrast in the dark theme so invert it. */
:root[devtoolstheme="dark"] #developer-toolbar > .close-icon:not(:hover) > image {
  filter: invert(1);
}

#developer-toolbar-toolbox-button {
  list-style-image: url("chrome://devtools/skin/images/toggle-tools.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

#developer-toolbar-toolbox-button > label {
  display: none;
}

#developer-toolbar-toolbox-button:hover {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

#developer-toolbar-toolbox-button:hover:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

#developer-toolbar-toolbox-button[checked=true] {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}

@media (min-resolution: 1.1dppx) {
  #developer-toolbar-toolbox-button {
    list-style-image: url("chrome://devtools/skin/images/toggle-tools@2x.png");
    -moz-image-region: rect(0px, 32px, 32px, 0px);
  }

  #developer-toolbar-toolbox-button:hover {
    -moz-image-region: rect(0px, 64px, 32px, 32px);
  }

  #developer-toolbar-toolbox-button:hover:active {
    -moz-image-region: rect(0px, 96px, 32px, 64px);
  }

  #developer-toolbar-toolbox-button[checked=true] {
    -moz-image-region: rect(0px, 128px, 32px, 96px);
  }
}

/* GCLI */

html|*#gcli-tooltip-frame,
html|*#gcli-output-frame {
  padding: 0;
  border-width: 0;
  background-color: transparent;
}

#gcli-output,
#gcli-tooltip {
  border-width: 0;
  background-color: transparent;
  -moz-appearance: none;
}

.gclitoolbar-input-node,
.gclitoolbar-complete-node {
  margin: 0;
  -moz-box-align: center;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 8px;
  text-shadow: none;
  box-shadow: none;
  border-width: 0;
  background-color: transparent;
  border-radius: 0;
}

.gclitoolbar-input-node {
  -moz-appearance: none;
  color: var(--gcli-input-color);
  background-color: var(--gcli-input-background);
  background-repeat: no-repeat;
  background-position: 4px center;
  box-shadow: 1px 0 0 var(--gcli-border-color) inset,
              -1px 0 0 var(--gcli-border-color) inset;

  line-height: 32px;
  outline-style: none;
  padding: 0;
}

.gclitoolbar-input-node[focused="true"] {
  background-color: var(--gcli-input-focused-background);
}

.gclitoolbar-input-node::before {
  content: "";
  display: inline-block;
  -moz-box-ordinal-group: 0;
  width: 16px;
  height: 16px;
  margin: 0 2px;
  background-image: var(--command-line-image);
}

.gclitoolbar-input-node[focused="true"]::before {
  background-image: var(--command-line-image-focus);
}

.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
  background-color: var(--selection-background);
  color: var(--selection-color);
  text-shadow: none;
}

.gclitoolbar-complete-node {
  padding-left: 21px;
  background-color: transparent;
  color: transparent;
  z-index: 100;
  pointer-events: none;
}

.gcli-in-incomplete,
.gcli-in-error,
.gcli-in-ontab,
.gcli-in-todo,
.gcli-in-closebrace,
.gcli-in-param,
.gcli-in-valid {
  margin: 0;
  padding: 0;
}

.gcli-in-incomplete {
  border-bottom: 2px dotted #999;
}

.gcli-in-error {
  border-bottom: 2px dotted #F00;
}

.gcli-in-ontab {
  color: hsl(210,0%,35%);
}

.gcli-in-todo {
  color: hsl(210,50%,35%);
}

.gcli-in-closebrace {
  color: hsl(0,0%,80%);
}
#notification-popup[popupid="click-to-play-plugins"] > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0px;
}

.click-to-play-plugins-notification-center-box {
  border: 1px solid ThreeDShadow;
  margin: 10px;
}

.plugin-popupnotification-centeritem:nth-child(odd) {
  background-color: rgba(0,0,0,0.1);
}

.center-item-label {
  margin-inline-start: 6px;
  margin-bottom: 0;
  text-overflow: ellipsis;
}

.center-item-warning-icon {
  background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.svg");
  background-repeat: no-repeat;
  width: 16px;
  height: 15px;
  margin-inline-start: 6px;
}

.click-to-play-plugins-notification-button-container {
  background-color: var(--arrowpanel-dimmed);
  border-top: 1px solid var(--panel-separator-color);
  padding: 10px;
  margin-top: 5px;
}

.click-to-play-popup-button {
  width: 50%;
}

.click-to-play-plugins-notification-description-box {
  padding: 10px;
}

.click-to-play-plugins-outer-description {
  margin-top: 8px;
}

.click-to-play-plugins-notification-link,
.center-item-link {
  margin: 0;
}

.messageImage[value="plugin-hidden"] {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin);
}

/* Keep any changes to this style in sync with pluginProblem.css */
notification.pluginVulnerable {
  background-color: rgb(72,72,72);
  background-image: url(chrome://mozapps/skin/plugins/contentPluginStripe.png);
  color: white;
}

notification.pluginVulnerable .messageImage {
  list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin-blocked);
}

notification.pluginVulnerable > .notification-inner > .messageCloseButton {
  list-style-image: url("chrome://global/skin/icons/close-inverted.png");
}

@media (min-resolution: 1.1dppx) {
  notification.pluginVulnerable > .notification-inner > .messageCloseButton {
    list-style-image: url("chrome://global/skin/icons/close-inverted@2x.png");
  }
}


/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*** Status and progress indicator ***/

#downloads-animation-container {
  min-height: 1px;
  min-width: 1px;
  height: 1px;
  margin-bottom: -1px;
  /* Makes the outermost animation container element positioned, so that its
     contents are rendered over the main browser window in the Z order.
     This is required by the animated event notification. */
  position: relative;
  /* The selected tab may overlap #downloads-indicator-notification */
  z-index: 5;
}

/*** Main indicator icon ***/

@media not all and (min-resolution: 1.1dppx) {
  #downloads-button {
    --downloads-indicator-icon: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), 0, 198, 18, 180);
    --downloads-indicator-icon-attention: -moz-image-rect(url("chrome://browser/skin/Toolbar.png"), 18, 198, 36, 180);
    --downloads-indicator-icon-inverted: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"), 0, 198, 18, 180);
    --downloads-indicator-icon-attention-inverted: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted.png"), 18, 198, 36, 180);
  }
}

@media (min-resolution: 1.1dppx) {
  #downloads-button {
    --downloads-indicator-icon: -moz-image-rect(url("chrome://browser/skin/Toolbar@2x.png"), 0, 396, 36, 360);
    --downloads-indicator-icon-attention: -moz-image-rect(url("chrome://browser/skin/Toolbar@2x.png"), 36, 396, 72, 360);
    --downloads-indicator-icon-inverted: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted@2x.png"), 0, 396, 36, 360);
    --downloads-indicator-icon-attention-inverted: -moz-image-rect(url("chrome://browser/skin/Toolbar-inverted@2x.png"), 36, 396, 72, 360);
  }
}

#downloads-indicator-icon {
  background: var(--downloads-indicator-icon) center no-repeat;
  width: 18px;
  height: 18px;
  background-size: 18px;
}

toolbar[brighttext] #downloads-button:not([attention="success"]) > #downloads-indicator-anchor > #downloads-indicator-icon {
  background-image: var(--downloads-indicator-icon-inverted);
}

#downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
#downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
  display: -moz-box;
  height: 8px;
  width: 8px;
  min-width: 0;
  border-radius: 50%;
  /* "!important" is necessary to override the rule in toolbarbutton.css */
  margin-top: -1px !important;
  margin-right: -2px !important;
}

#downloads-button[cui-areatype="toolbar"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
  height: 7px;
  width: 7px;
}

#downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
  background: #D90000;
}

#downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
  background: #FFBF00;
}

#downloads-button[attention="severe"] > .toolbarbutton-badge-stack > .toolbarbutton-badge:-moz-window-inactive,
#downloads-button[attention="warning"] > .toolbarbutton-badge-stack > .toolbarbutton-badge:-moz-window-inactive {
  filter: none;
}

#downloads-button[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-icon {
  background-image: var(--downloads-indicator-icon-attention);
}

toolbar[brighttext] #downloads-button[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-icon {
  background-image: var(--downloads-indicator-icon-attention-inverted);
}

#downloads-button[cui-areatype="menu-panel"][attention="success"] {
  list-style-image: url("chrome://browser/skin/downloads/download-glow-menuPanel.png");
  -moz-image-region: auto;
}

/* In the next few rules, we use :not([counter]) as a shortcut that is
   equivalent to -moz-any([progress], [paused]). */

#downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  background: var(--downloads-indicator-icon) center no-repeat;
  background-size: 12px;
}

toolbar[brighttext] #downloads-button:not([counter]):not([attention="success"]) > #downloads-indicator-anchor > #downloads-button-progress-area > #downloads-indicator-counter {
  background-image: var(--downloads-indicator-icon-inverted);
}

#downloads-button:not([counter])[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  background-image: var(--downloads-indicator-icon-attention);
}

toolbar[brighttext] #downloads-button:not([counter])[attention="success"] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  background-image: var(--downloads-indicator-icon-attention-inverted);
}

/*** Download notifications ***/

#downloads-indicator-notification {
  opacity: 0;
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}

@keyframes downloadsIndicatorNotificationStartRight {
  from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
  20%  { opacity: .85; animation-timing-function: ease-out; }
  to   { opacity: 0; transform: translate(0) scale(1); }
}

@keyframes downloadsIndicatorNotificationStartLeft {
  from { opacity: 0; transform: translate(128px, 128px) scale(8); }
  20%  { opacity: .85; animation-timing-function: ease-out; }
  to   { opacity: 0; transform: translate(0) scale(1); }
}

#downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {
  background-image: url("chrome://browser/skin/downloads/download-notification-start.png");
  animation-name: downloadsIndicatorNotificationStartRight;
  animation-duration: 1s;
}

#downloads-notification-anchor[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-notification {
  animation-name: downloadsIndicatorNotificationStartLeft;
}

@keyframes downloadsIndicatorNotificationFinish {
  from { opacity: 0; transform: scale(1); }
  20%  { opacity: .65; animation-timing-function: ease-in; }
  to   { opacity: 0; transform: scale(8); }
}

#downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification {
  background-image: url("chrome://browser/skin/downloads/download-notification-finish.png");
  animation-name: downloadsIndicatorNotificationFinish;
  animation-duration: 1s;
}

/*** Progress bar and text ***/

#downloads-indicator-counter {
  height: 9px;
  margin: -3px 0px 0px 0px;
  color: hsl(0,0%,30%);
  text-shadow: hsla(0,0%,100%,.5) 0 1px;
  font-size: 9px;
  line-height: 9px;
  text-align: center;
}

@media not all and (-moz-os-version: windows-xp) {
  #downloads-indicator-counter {
    /* Bug 812345 added this... */
    margin-bottom: -1px;
  }
}

toolbar[brighttext] #downloads-indicator-counter {
  color: white;
  text-shadow: 0 0 1px rgba(0,0,0,.7),
               0 1px 1.5px rgba(0,0,0,.5);
}

#downloads-indicator-progress {
  width: 16px;
  height: 5px;
  min-width: 0;
  min-height: 0;
  margin-top: 1px;
  margin-bottom: 2px;
  border-radius: 2px;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.4);
}

#downloads-indicator-progress > .progress-bar {
  -moz-appearance: none;
  min-width: 0;
  min-height: 0;
  /* The background-clip: border-box; and background-image: none; are there to expand the background-color behind the border */
  background-clip: padding-box, border-box;
  background-color: rgb(90, 201, 66);
  background-image: linear-gradient(transparent 1px, rgba(255, 255, 255, 0.4) 1px, rgba(255, 255, 255, 0.4) 2px, transparent 2px), none;
  border: 1px solid;
  border-color: rgba(0,43,86,.6) rgba(0,43,86,.4) rgba(0,43,86,.4);
  border-radius: 2px 0 0 2px;
}

#downloads-indicator-progress > .progress-remainder {
  -moz-appearance: none;
  min-width: 0;
  min-height: 0;
  background-image: linear-gradient(#505050, #575757);
  border: 1px solid;
  border-color: hsla(0,0%,0%,.6) hsla(0,0%,0%,.4) hsla(0,0%,0%,.4);
  border-inline-start: none;
  border-radius: 0 2px 2px 0;
}

#downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
  background-color: rgb(220, 230, 81);
}

#downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
  background-image: linear-gradient(#4b5000, #515700);
}

/* Error counter */

#developer-toolbar-toolbox-button[error-count]:before {
  color: #FDF3DE;
  min-width: 16px;
  text-shadow: none;
  background-image: linear-gradient(#B4211B, #8A1915);
  border-radius: 1px;
  margin-inline-end: 5px;
}

/* Customization mode */

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Customization mode */

:root {
  --drag-drop-transition-duration: .3s;
}

#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox {
  margin-bottom: 2em;
}

#main-window:-moz-any([customize-entering],[customize-entered]) #content-deck,
#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
#main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
  margin-left: 2em;
  margin-right: 2em;
}

#main-window:-moz-any([customize-entering],[customize-exiting]) #tab-view-deck {
  pointer-events: none;
}

#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
#PanelUI-contents > .panel-customization-placeholder {
  -moz-outline-radius: 2.5px;
  outline: 1px dashed transparent;
}

#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before {
  /* Prevent jumping of tabs when switching a window between inactive and active (bug 853415). */
  -moz-box-ordinal-group: 0;
  content: "";
  display: -moz-box;
  height: 100%;
  left: 0;
  outline-offset: -2px;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Shift the TabsToolbar outline up 2px since the #nav-bar is shifted up by 1px and the
   #TabsToolbar::after is a pixel higher to draw the bottom border of the tabstrip so this makes the
   offset from the bottom effectively the same as other targets (-2px). */
#main-window[customize-entered] #TabsToolbar.customization-target::before {
  top: -2px;
}

/* The parents of the outline pseudo-elements need to be positioned so that the outline is positioned relative to it. */
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover,
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)),
#main-window[customize-entered] #nav-bar-customization-target.customization-target {
  position: relative;
}

/* Most target outlines are shown on hover and drag over but the panel menu uses
   placeholders instead. */
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover::before,
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
/* nav-bar and panel outlines are always shown */
#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
  outline-color: currentColor;
}

#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
  transition: outline-color 250ms linear;
}

#PanelUI-contents[showoutline=true] > .panel-customization-placeholder {
  transition: outline-color 250ms linear;
  outline-color: var(--panel-separator-color);
}

#PanelUI-contents > .panel-customization-placeholder {
  cursor: auto;
  outline-offset: -5px;
}

#main-window[customizing] .customization-target:not(#PanelUI-contents) {
  min-width: 100px;
  padding-left: 10px;
  padding-right: 10px;
}

#customization-container {
  background-color: -moz-field;
  color: -moz-fieldText;
  text-shadow: none;
}

#customization-palette,
#customization-empty {
  padding: 5px 25px 25px;
}

#customization-header {
  font-size: 1.75em;
  line-height: 1.75em;
  color: GrayText;
  font-weight: 200;
  margin: 25px 25px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid ThreeDLightShadow;
}

#customization-panel-container {
  padding: 15px 25px 25px;
  background-image: linear-gradient(to bottom, #3e86ce, #3878ba);
}

#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
#customization-footer {
  background-color: -moz-dialog;
}

#customization-footer {
  border-top: 1px solid ThreeDLightShadow;
  padding: 10px;
}

@media (-moz-windows-default-theme) {

.customizationmode-button {
  border: 1px solid rgb(192,192,192);
  border-radius: 3px;
  margin: 5px;
  padding: 2px 10px;
  background-color: rgb(251,251,251);
  color: rgb(71,71,71);
  box-shadow: 0 1px rgba(255, 255, 255, 0.5),
              inset 0 1px rgba(255, 255, 255, 0.5);
  -moz-appearance: none;
}

.customizationmode-button > .box-inherit {
  border-width: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
}

.customizationmode-button > .button-icon {
  margin-inline-start: 0;
}

.customizationmode-button:not([type=menu]) > .button-text {
  margin-inline-end: 0;
}

.customizationmode-button > .button-menu-dropmarker {
  margin-inline-end: 0;
  padding-inline-end: 0;
}

.customizationmode-button:hover:active:not([disabled]),
.customizationmode-button[open],
.customizationmode-button[checked] {
  background-color: rgb(218, 218, 218);
  border-color: rgb(168, 168, 168);
  text-shadow: 0 1px rgb(236, 236, 236);
  box-shadow: 0 1px rgba(255, 255, 255, 0.5),
              inset 0 1px rgb(196, 196, 196);
}

.customizationmode-button[disabled="true"] {
  opacity: .5;
}

} /* @media (-moz-windows-default-theme) */

.customizationmode-button > .box-inherit > .box-inherit > .button-icon,
.customizationmode-button > .button-box > .button-icon {
  height: 24px;
}

#customization-titlebar-visibility-button > .button-box > .button-text,
#customization-lwtheme-button > .box-inherit > .box-inherit > .button-text {
  /* Sadly, button.css thinks its margins are perfect for everyone. */
  margin-inline-start: 6px !important;
}

#customization-lwtheme-button > .box-inherit > .box-inherit > .button-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background-image: url("chrome://browser/skin/theme-switcher-icon.png");
  background-size: contain;
}

#customization-titlebar-visibility-button {
  list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle.png");
  -moz-image-region: rect(0, 24px, 24px, 0);
}

#customization-titlebar-visibility-button > .button-box > .button-icon {
  vertical-align: middle;
}

#customization-titlebar-visibility-button[checked] {
  -moz-image-region: rect(0, 48px, 24px, 24px);
}

@media (min-resolution: 1.1dppx) {
  #customization-titlebar-visibility-button {
    list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
    -moz-image-region: rect(0, 48px, 48px, 0);
  }

  #customization-titlebar-visibility-button[checked] {
    -moz-image-region: rect(0, 96px, 48px, 48px);
  }
}

#main-window[customize-entered] #customization-panel-container {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-separatorHorizontal.png"),
                    url("chrome://browser/skin/customizableui/customizeMode-separatorVertical.png"),
                    url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
                    url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
                    linear-gradient(to bottom, #3e86ce, #3878ba);
  background-position: center top, left center, left top, left top, left top;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto 12px, 12px 100%, auto, auto, auto;
  background-attachment: scroll, scroll, fixed, fixed, scroll;
}

toolbarpaletteitem[place="toolbar"] {
  transition: border-width 250ms ease-in-out;
}

toolbarpaletteitem[mousedown] {
  cursor: -moz-grabbing;
}

.panel-customization-placeholder,
toolbarpaletteitem[place="palette"],
toolbarpaletteitem[place="panel"] {
  transition: transform var(--drag-drop-transition-duration) ease-in-out;
}

#customization-palette {
  transition: opacity .3s ease-in-out;
  opacity: 0;
}

#customization-palette[showing="true"] {
  opacity: 1;
}

toolbarpaletteitem toolbarbutton[disabled] {
  color: inherit !important;
}

toolbarpaletteitem[notransition].panel-customization-placeholder,
toolbarpaletteitem[notransition][place="toolbar"],
toolbarpaletteitem[notransition][place="palette"],
toolbarpaletteitem[notransition][place="panel"] {
  transition: none;
}

toolbarpaletteitem > toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon,
toolbarpaletteitem > toolbaritem.panel-wide-item,
toolbarpaletteitem > toolbarbutton[type="menu-button"] {
  transition: transform var(--drag-drop-transition-duration) cubic-bezier(.6, 2, .75, 1.5) !important;
}

toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon {
  transform: scale(1.3);
}

toolbarpaletteitem[mousedown] > toolbaritem.panel-wide-item,
toolbarpaletteitem[mousedown] > toolbarbutton[type="menu-button"] {
  transform: scale(1.1);
}

/* Override the toolkit styling for items being dragged over. */
toolbarpaletteitem[place="toolbar"] {
  border-left-width: 0;
  border-right-width: 0;
  margin-right: 0;
  margin-left: 0;
}

#customization-palette:not([hidden]) {
  margin-bottom: 25px;
}

toolbarpaletteitem[place="palette"]:-moz-focusring,
toolbarpaletteitem[place="panel"]:-moz-focusring,
toolbarpaletteitem[place="toolbar"]:-moz-focusring {
  outline-width: 0;
}

toolbarpaletteitem[place="palette"]:not([mousedown="true"]):-moz-focusring,
toolbarpaletteitem[place="panel"]:not([mousedown="true"]):-moz-focusring,
toolbarpaletteitem[place="toolbar"]:not([mousedown="true"]):-moz-focusring {
  /* Delay adding the focusring back until after the transform transition completes. */
  transition: outline-width .01s linear var(--drag-drop-transition-duration);
  outline: 1px dotted;
  -moz-outline-radius: 2.5px;
}

toolbarpaletteitem[place="toolbar"]:not([mousedown="true"]):-moz-focusring {
  outline-offset: -5px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
#wrapper-edit-controls[place="palette"] > #edit-controls > separator,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > separator {
  margin-top: 20px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton {
  margin-left: 0;
  margin-right: 0;
  max-width: 24px;
  min-width: 24px;
  max-height: 24px;
  min-height: 24px;
  padding: 4px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton > .toolbarbutton-icon,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton > .toolbarbutton-icon {
  width: 16px;
}

#wrapper-edit-controls > #edit-controls > toolbarbutton > .toolbarbutton-icon {
  opacity: 1; /* To ensure these buttons always look enabled in customize mode */
}

#wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button + separator {
  display: none;
}

#wrapper-personal-bookmarks:not([place="toolbar"]) > #personal-bookmarks {
  -moz-box-pack: center;
  min-height: 48px;
}

#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
  margin-inline-end: 5px;
}

#customization-palette > toolbarpaletteitem > label {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

#customization-lwtheme-menu > .panel-arrowcontainer > .panel-arrowcontent {
  -moz-box-orient: vertical;
  /* Make the panel padding uniform across all platforms due to the
     styling of the section headers and footer. */
  padding: 10px;
}

.customization-lwtheme-menu-theme > .toolbarbutton-icon {
  width: 32px;
  height: 32px;
}

.customization-lwtheme-menu-theme {
  -moz-appearance: none;
  border: 1px solid transparent;
  margin: 0 -5px 5px;
  padding-top: 0;
  padding-inline-end: 5px;
  padding-bottom: 0;
  padding-inline-start: 0;
}

.customization-lwtheme-menu-theme[defaulttheme] {
  list-style-image: url(chrome://browser/skin/theme-switcher-icon.png);
}

.customization-lwtheme-menu-theme[active="true"],
.customization-lwtheme-menu-theme:hover {
  background-color: var(--arrowpanel-dimmed);
  border-color: var(--panel-separator-color);
}

.customization-lwtheme-menu-theme[active="true"],
.customization-lwtheme-menu-theme:hover:active {
  background-color: var(--arrowpanel-dimmed-further);
}

.customization-lwtheme-menu-theme > .toolbarbutton-icon {
  margin: 5px;
}

.customization-lwtheme-menu-theme > .toolbarbutton-text {
  text-align: start;
}

#customization-lwtheme-menu-header,
#customization-lwtheme-menu-recommended {
  padding: 10px;
  margin-bottom: 5px;
}

#customization-lwtheme-menu-header,
#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer {
  background-color: var(--arrowpanel-dimmed);
  margin-right: -10px;
  margin-left: -10px;
}

#customization-lwtheme-menu-header {
  margin-top: -10px;
  border-bottom: 1px solid var(--arrowpanel-dimmed);
}

#customization-lwtheme-menu-recommended {
  border-top: 1px solid var(--arrowpanel-dimmed);
  border-bottom: 1px solid var(--arrowpanel-dimmed);
}

#customization-lwtheme-menu-footer {
  background: linear-gradient(var(--arrowpanel-dimmed) 60%, transparent) border-box;
  border-top: 1px solid var(--arrowpanel-dimmed);
  margin-bottom: -10px;
}

.customization-lwtheme-menu-footeritem {
  -moz-appearance: none;
  -moz-box-flex: 1;
  color: inherit;
  border-style: none;
  padding: 10px;
  margin-left: 0;
  margin-right: 0;
}

.customization-lwtheme-menu-footeritem:hover {
  background: linear-gradient(var(--arrowpanel-dimmed) 40%, transparent) padding-box;
}

.customization-lwtheme-menu-footeritem:first-child {
  border-inline-end: 1px solid var(--panel-separator-color);
}

/**
 * This next rule is a hack to disable subpixel anti-aliasing on all
 * labels during the customize mode transition. Subpixel anti-aliasing
 * on Windows with Direct2D layers acceleration is particularly slow to
 * paint, so this hack is how we sidestep that performance bottleneck.
 */
#main-window:-moz-any([customize-entering],[customize-exiting]) label {
  transform: perspective(0.01px);
}

#main-window[customize-entered] > #tab-view-deck {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
  background-attachment: fixed;
}

#main-window[customization-lwtheme] > #tab-view-deck:-moz-lwtheme {
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
  /* The image will get set from CustomizeMode.jsm */
  background-image: none;
  background-color: transparent;
}

#main-window[customization-lwtheme]:-moz-lwtheme {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: left top;
}

#main-window[customize-entered] #browser-bottombox,
#main-window[customize-entered] #customization-container {
  border-left: 1px solid hsla(209,67%,12%,0.35);
  border-right: 1px solid hsla(209,67%,12%,0.35);
  background-clip: padding-box;
}

#main-window[customize-entered] #browser-bottombox {
  border-bottom: 1px solid hsla(209,67%,12%,0.35);
}

/* End customization mode */

/* Private browsing indicators */

/**
 * Currently, we have two places where we put private browsing indicators on
 * Windows. When tabsintitlebar is enabled, we draw the indicator in the titlebar.
 * When tabsintitlebar is disabled, we draw the indicator at the end of the
 * tabstrip. The titlebar indicator is the fiddliest of the bunch, since we
 * want the bottom border of the image to line up with the bottom of the window
 * caption buttons. That's why there's so much special-casing going on in here.
 */
.private-browsing-indicator {
  display: none;
  pointer-events: none;
}

#private-browsing-indicator-titlebar {
  display: block;
  position: absolute;
}

#main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator {
  display: block;
}

#main-window[privatebrowsingmode=temporary]:-moz-any([inFullscreen],:not([tabsintitlebar])) #TabsToolbar > .private-browsing-indicator {
  display: -moz-box;
}

#TabsToolbar > .private-browsing-indicator {
  background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") no-repeat center -3px;
  margin-inline-start: 4px;
  width: 48px;
}

/* Bug 1008183: We're intentionally using the titlebar asset here for fullscreen
 * mode, since the tabstrip "mimics" the titlebar in that case with its own
 * min/max/close window buttons.
 */
#private-browsing-indicator-titlebar > .private-browsing-indicator,
#main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator {
  background: url("chrome://browser/skin/privatebrowsing-mask-titlebar.png") no-repeat center 0px;
  margin-inline-end: 4px;
  width: 40px;
  height: 20px;
  position: relative;
}

@media (-moz-os-version: windows-xp) {
  @media not all and (-moz-windows-classic) {
    #private-browsing-indicator-titlebar > .private-browsing-indicator {
      background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-XPVista7-tall.png");
      height: 28px;
    }

    #main-window[sizemode="maximized"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
      top: -5px;
    }
    #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
      top: -1px;
    }
  }
}

@media (-moz-windows-classic) {
  /**
   * We have to use top instead of background-position in this case, otherwise
   * the bottom of the indicator would get cut off by the bounds of the
   * private-browsing-indicator element.
   */
  #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
    top: 4px;
  }
}

@media (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  @media (-moz-windows-glass) {
    #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
      top: 1px;
    }
    #main-window[sizemode="maximized"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
      top: -1px;
    }
  }

  /**
   * This next block targets Aero Basic, which has different positioning for the
   * window caption buttons, and therefore needs to be special-cased.
   */
  @media (-moz-windows-default-theme) {
    @media not all and (-moz-windows-compositor) {
      #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator {
        background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-XPVista7-tall.png");
        height: 28px;
      }
    }
  }
}

/* End private browsing indicators */

#context-navigation > .menuitem-iconic {
  -moz-box-flex: 1;
  -moz-box-pack: center;
  -moz-box-align: center;
}

#context-navigation > .menuitem-iconic > .menu-iconic-left {
  -moz-appearance: none;
}

#context-navigation > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
  width: 16px;
  height: 16px;
  margin: 7px;
  filter: url(chrome://browser/skin/filters.svg#fill);
  fill: currentColor;
}

#context-back {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back");
}

#context-forward {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward");
}

#context-reload {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload");
}

#context-stop {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop");
}

#context-bookmarkpage {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark");
}

#context-bookmarkpage[starred=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked");
}

#context-back:-moz-locale-dir(rtl),
#context-forward:-moz-locale-dir(rtl),
#context-reload:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

#context-media-eme-learnmore {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
}

#context-navigation {
  background-color: menu;
  padding-bottom: 4px;
}

#context-sep-navigation {
  margin-inline-start: -28px;
  margin-top: -4px;
}


@media not all and (-moz-os-version: windows-xp) {
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


@media not all and (-moz-windows-classic) {
  #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar {
    margin-top: 1px;
  }
}

@media (-moz-windows-default-theme) {
  .sidebar-header,
  #sidebar-header {
    -moz-appearance: none;
    border-bottom: none;
    text-shadow: none;
  }

  .sidebar-title,
  #sidebar-title {
    font-weight: bold;
  }

  .sidebar-splitter {
    border: 0;
    border-inline-end: 1px solid ThreeDLightShadow;
    min-width: 0;
    width: 3px;
    background-color: transparent;
    margin-inline-start: -3px;
    position: relative;
  }

  #appcontent ~ .sidebar-splitter {
    border-inline-start: 1px solid ThreeDLightShadow;
    border-inline-end: none;
    margin-inline-start: 0;
    margin-inline-end: -3px;
  }

  .menu-accel,
  .menu-iconic-accel {
    color: graytext;
  }

  @media (-moz-os-version: windows-win7) {
    .sidebar-header:not(:-moz-lwtheme),
    #sidebar-header:not(:-moz-lwtheme) {
      background-color: #EEF3FA;
    }

    .sidebar-splitter,
    #appcontent ~ .sidebar-splitter {
      border-color: #A9B7C9;
    }

    #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(:-moz-lwtheme),
    #browser-bottombox:not(:-moz-lwtheme),
    .browserContainer > findbar {
      background-color: hsl(210,75%,92%);
    }

    .tab-background-middle[selected=true]:not(:-moz-lwtheme) {
      background-color: hsl(210,75%,92%);
    }
  }
}

@media (-moz-windows-compositor) {
  #main-window {
    -moz-appearance: -moz-win-glass;
  }


  /* On win10, if we don't set this on the entire browser container including
   * the sidebar, if the sidebar is open the accent color bleeds through in
   * the titlebar */
  #browser {
    -moz-appearance: -moz-win-exclude-glass;
  }

  @media (-moz-os-version: windows-win10) {
    /* Draw XUL caption buttons and background on Windows 10 */
    @media (-moz-windows-default-theme) {
      #main-window {
        background-color: hsl(0, 0%, 78%);
      }

      :root[tabsintitlebar] .tab-label:-moz-window-inactive {
        /* Calculated to match the opacity change of Windows Explorer
           titlebar text change for inactive windows. */
        opacity: .6;
      }
    }

    @media not all and (-moz-windows-accent-color-applies) {
      /* Default styling for when no accent color is applied */
      #main-window:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        background-color: hsl(235, 33%, 19%);
      }
      
      :root:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        --titlebar-text-color: white;
      }
      
      #titlebar-min:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-highlight);
      }

      #titlebar-max:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize-highlight);
      }

      #main-window[sizemode="maximized"] #titlebar-max:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-highlight);
      }
      
      #titlebar-close:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-highlight);
      }

      .titlebar-button:not(#titlebar-close):not(:-moz-window-inactive):not(:-moz-lwtheme):hover {
        background-color: hsla(0, 0%, 100%, .17);
      }

      .titlebar-button:not(#titlebar-close):not(:-moz-window-inactive):not(:-moz-lwtheme):hover:active	{
        background-color: hsla(0, 0%, 100%, .27);
        transition: none;
      }
      
      #titlebar-close:not(:-moz-window-inactive):not(:-moz-lwtheme):hover {
        background-color: hsla(0, 86%, 49%, 1);
      }

      #titlebar-close:not(:-moz-window-inactive):not(:-moz-lwtheme):hover:active	{
        background-color: hsla(0, 60%, 39%, 1);
        transition: none;
      }
    }

    @media (-moz-windows-accent-color-applies) { 
      /* Styling for when an accent color is applied to the titlebar */
      #main-window:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        background-color: -moz-win-accentcolor;
      }
      
      :root:not(:-moz-window-inactive):not(:-moz-lwtheme) {
        --titlebar-text-color: -moz-win-accentcolortext;
      }
      
      #titlebar-min {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize);
      }

      #titlebar-max {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize);
      }

      #main-window[sizemode="maximized"] #titlebar-max {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore);
      }

      #titlebar-close {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#close);
      }
      
      .titlebar-button:hover {
        background-color: hsla(0, 0%, 0%, .17);
      }

      .titlebar-button:hover:active {
        background-color: hsla(0, 0%, 0%, .27);
        transition: none;
      }
      
      @media (-moz-windows-accent-color-is-dark) {
        /* dark accent color */
        #titlebar-min {
          list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-highlight);
        }

        #titlebar-max {
          list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize-highlight);
        }

        #main-window[sizemode="maximized"] #titlebar-max {
          list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-highlight);
        }

        #titlebar-close {
          list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-highlight);
        }
      
        .titlebar-button:not(#titlebar-close):not(:-moz-window-inactive):not(:-moz-lwtheme):hover {
          background-color: hsla(0, 0%, 100%, .17);
        }
        .titlebar-button:not(#titlebar-close):not(:-moz-window-inactive):not(:-moz-lwtheme):hover:active	{
          background-color: hsla(0, 0%, 100%, .27);
          transition: none;
        }
      
        #titlebar-close:not(:-moz-window-inactive):not(:-moz-lwtheme):hover {
          background-color: hsla(0, 86%, 49%, 1);
        }

        #titlebar-close:not(:-moz-window-inactive):not(:-moz-lwtheme):hover:active	{
          background-color: hsla(0, 60%, 39%, 1);
          transition: none;
        }
      }
    } /* Windows 10 accent color applies */

    @media not all and (-moz-windows-default-theme) {
      #main-window {
        background-color: transparent;
      }
    }

    #titlebar-buttonbox,
    .titlebar-button {
      -moz-appearance: none !important;
    }

    .titlebar-button {
      border: none;
      margin: 0 !important;
      padding: 9px 17px;
      transition: background-color linear 120ms;
    }
        
    #main-window[sizemode="maximized"][tabsontop=true] #tabbrowser-tabs {
      min-height: 28px;
    }

    #main-window[sizemode=maximized] .titlebar-button {
      padding-top: 8px;
      padding-bottom: 8px;
    }

    .titlebar-button > .toolbarbutton-icon {
      width: 12px;
      height: 12px;
    }

    .titlebar-button:not(:hover) > .toolbarbutton-icon:-moz-window-inactive {
      opacity: 0.5;
    }

    #main-window[chromemargin^="0,"][sizemode=normal] #navigator-toolbox {
      margin-top: -4px;
    }

    #main-window[sizemode="maximized"] #titlebar-close {
      padding-right: 19px;
    }
    
    #titlebar-close:hover {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-highlight);
      background-color: hsla(0, 86%, 49%, 1);
    }

    #titlebar-close:hover:active {
      background-color: hsla(0, 86%, 49%, 0.6);
      transition: none;
    }
    
    /* inactive window */

    #titlebar-min:-moz-window-inactive:not(:-moz-lwtheme) {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize);
    }

    #titlebar-max:-moz-window-inactive:not(:-moz-lwtheme) {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize);
    }

    #main-window[sizemode="maximized"] #titlebar-max:-moz-window-inactive:not(:-moz-lwtheme) {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore);
    }

    #titlebar-close:-moz-window-inactive:not(:-moz-lwtheme):not(:hover) {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close);
    }
    
    .titlebar-button:-moz-window-inactive:not(:-moz-lwtheme):hover {
      background-color: hsla(0, 0%, 0%, .17);
    }

    .titlebar-button:-moz-window-inactive:not(:-moz-lwtheme):hover:active {
      background-color: hsla(0, 0%, 0%, .27);
      transition: none;
    }
    
    /* light persona */
    
    .titlebar-button:-moz-lwtheme-darktext:hover {
      background-color: hsla(0, 0%, 0%, .17);
    }

   .titlebar-button:-moz-lwtheme-darktext:hover:active {
      background-color: hsla(0, 0%, 0%, .27);
      transition: none;
    }
    
    #titlebar-min:-moz-lwtheme-darktext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-outline);
    }

    #titlebar-max:-moz-lwtheme-darktext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize-outline);
    }

    #main-window[sizemode="maximized"]:-moz-lwtheme-darktext #titlebar-max:-moz-lwtheme-darktext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-outline);
    }

    #titlebar-close:-moz-lwtheme-darktext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outline);
    }
    #titlebar-close:hover:-moz-lwtheme-darktext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outline);
    }
        
    /* dark persona */
    
    .titlebar-button:-moz-lwtheme-brighttext:hover {
      background-color: hsla(0, 0%, 100%, .27);
    }

    .titlebar-button:-moz-lwtheme-brighttext:hover:active {
      background-color: hsla(0, 0%, 100%, .37);
      transition: none;
    }
    
    #titlebar-min:-moz-lwtheme-brighttext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-outline-inverted);
    }

    #titlebar-max:-moz-lwtheme-brighttext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize-outline-inverted);
    }

    #main-window[sizemode="maximized"]:-moz-lwtheme-brighttext #titlebar-max:-moz-lwtheme-brighttext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-outline-inverted);
    }

    #titlebar-close:-moz-lwtheme-brighttext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outline-inverted);
    }
    #titlebar-close:hover:-moz-lwtheme-brighttext {
      list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outline-inverted);
    }

    /* the 12px image renders a 10px icon, and the 10px upscaled gets rounded to 12.5, which
     * rounds up to 13px, which makes the icon one pixel too big on 1.25dppx. Fix: */
    @media (min-resolution: 1.20dppx) and (max-resolution: 1.45dppx) {
      .titlebar-button > .toolbarbutton-icon {
        width: 11.5px;
        height: 11.5px;
      }
    }
     
    /* 175% dpi should result in the same device pixel sizes as 150% dpi. */
    @media (min-resolution: 1.70dppx) and (max-resolution: 1.95dppx) {
      .titlebar-button {
        padding-left: 14.1px;
        padding-right: 14.1px;
      }
      .titlebar-button > .toolbarbutton-icon {
        width: 10.8px;
        height: 10.8px;
      }
    }

    /* 225% dpi should result in the same device pixel sizes as 200% dpi. */
    @media (min-resolution: 2.20dppx) and (max-resolution: 2.45dppx) {
      .titlebar-button {
        padding-left: 15.3333px;
        padding-right: 15.3333px;
      }
      .titlebar-button > .toolbarbutton-icon {
        width: 10.8px;
        height: 10.8px;
      }
    }

    /* 275% dpi should result in the same device pixel sizes as 250% dpi. */
    @media (min-resolution: 2.70dppx) and (max-resolution: 2.95dppx) {
      /* NB: todo: this should also change padding on the buttons
       * themselves, but without a device to test this on, it's
       * impossible to know by how much. */
      .titlebar-button > .toolbarbutton-icon {
        width: 10.8px;
        height: 10.8px;
      }
    }
    
     
    @media not all and (-moz-windows-default-theme) {
      .titlebar-button {
        background-color: -moz-field;
      }
      .titlebar-button:hover {
        background-color: Highlight;
      }

      #titlebar-min {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#minimize-outine-inverted);
      }

      #titlebar-max {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#maximize-outine-inverted);
      }

      #main-window[sizemode="maximized"] #titlebar-max {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#restore-outine-inverted);
      }

      #titlebar-close {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outine-inverted);
      }
      #titlebar-close:hover {
        list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-outine-inverted);
      }
    }
  } /* Win 10 styling */

  @media (-moz-os-version: windows-win7),
         (-moz-os-version: windows-win8) {
    #main-window[sizemode="maximized"] #titlebar-buttonbox {
      margin-inline-end: 3px;
    }

    #main-window {
      background-color: transparent;
      -moz-appearance: -moz-win-borderless-glass;
    }

    /* These should be hidden w/ glass enabled. Windows draws its own buttons. */
    .titlebar-button {
      display: none;
    }

    /* The borders on the glass frame are ours, and inside #browser, and on
     * vista and win7 we want to make sure they are "glassy", so we can't use
     * #browser as the exclude-glass container. We use #appcontent instead. */
    #browser {
      -moz-appearance: none;
    }

    #appcontent {
      -moz-appearance: -moz-win-exclude-glass;
    }
  }

  @media (-moz-os-version: windows-win8) {
    /* Artificially draw window borders that are covered by lwtheme, see bug 591930.
     * Borders for vista/win7 are below, win10 doesn't need them. */
    #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
      border-top: 1px solid hsla(209,67%,12%,0.35);
    }
  }

  @media (-moz-windows-default-theme) {
    #main-menubar > menu:not(:-moz-lwtheme) {
      color: inherit;
    }

    /* Use a different color only on Windows 8 and higher for inactive windows.
     * On aero, the menubar fog disappears for inactive windows, and renders gray
     * illegible.
     */
    @media not all and (-moz-os-version: windows-vista) {
      @media not all and (-moz-os-version: windows-win7) {
        #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive {
          color: ThreeDShadow;
        }
      }
    }
  }

  #main-window[darkwindowframe="true"] #toolbar-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive),
  #main-window[darkwindowframe="true"] #TabsToolbar:not(:-moz-lwtheme):not(:-moz-window-inactive) {
    color: white;
  }

  /* Show borders on vista through win8, but not on win10 and later: */
  @media (-moz-os-version: windows-vista),
         (-moz-os-version: windows-win7),
         (-moz-os-version: windows-win8) {
    /* Vertical toolbar border */
    #main-window:not([customizing])[sizemode=normal] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(:-moz-lwtheme),
    #main-window:not([customizing])[sizemode=normal] #navigator-toolbox:-moz-lwtheme,
    #main-window[customizing] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
      border-left: 1px solid hsla(209,67%,12%,0.35);
      border-right: 1px solid hsla(209,67%,12%,0.35);
      background-clip: padding-box;
    }

    #main-window:not([customizing])[sizemode=normal] #navigator-toolbox:not(:-moz-lwtheme)::after,
    #main-window[customizing] #navigator-toolbox::after {
      box-shadow: 1px 0 0 hsla(209,67%,12%,0.35), -1px 0 0 hsla(209,67%,12%,0.35);
      margin-left: 1px;
      margin-right: 1px;
    }

    #main-window[sizemode=normal] #browser-border-start,
    #main-window[sizemode=normal] #browser-border-end {
      display: -moz-box;
      background-color: hsla(209,67%,12%,0.35);
      width: 1px;
    }

    #main-window[sizemode=normal] #browser-bottombox {
      border: 1px solid hsla(209,67%,12%,0.35);
      border-top-style: none;
      background-clip: padding-box;
    }
  }

  #main-window[sizemode=normal] #TabsToolbar {
    padding-left: 1px;
    padding-right: 1px;
  }

  #appcontent:not(:-moz-lwtheme) {
    background-color: -moz-dialog;
  }
}

@media (-moz-windows-glass) {
  #main-window[sizemode=normal] #nav-bar {
    border-top-left-radius: 2.5px;
    border-top-right-radius: 2.5px;
  }

  #main-window[sizemode=fullscreen]:not(:-moz-lwtheme) {
    -moz-appearance: none;
    background-color: #556;
  }

  #toolbar-menubar:not(:-moz-lwtheme) {
    text-shadow: 0 0 .5em white, 0 0 .5em white, 0 1px 0 rgba(255,255,255,.4);
  }

  #main-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive) {
    background-color: rgba(255,255,255,.5);
    color: black;
    border-radius: 4px;
  }

  /* Artificially draw window borders that are covered by lwtheme, see bug 591930.
   * We use a different border for win8, and this is not necessary on win10+ */
  #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
    border-top: 2px solid;
    -moz-border-top-colors: rgb(37, 44, 51) rgba(255,255,255,.6);
  }

  #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
    -moz-border-top-colors: rgb(102, 102, 102) rgba(255,255,255,.6);
  }

  /* Glass Fog */

  #TabsToolbar:not(:-moz-lwtheme) {
    position: relative;
  }

  #TabsToolbar:not(:-moz-lwtheme)::after {
    /* Because we use placeholders for window controls etc. in the tabstrip,
     * and position those with ordinal attributes, and because our layout code
     * expects :before/:after nodes to come first/last in the frame list,
     * we have to reorder this element to come last, hence the
     * ordinal group value (see bug 853415). */
    -moz-box-ordinal-group: 1001;
    box-shadow: 0 0 30px 30px rgba(174,189,204,0.85);
    content: "";
    display: -moz-box;
    height: 0;
    margin: 0 60px; /* (30px + 30px) from box-shadow */
    position: absolute;
    pointer-events: none;
    top: 50%;
    width: -moz-available;
    z-index: -1;
  }

  /* Need to constrain the glass fog to avoid overlapping layers, see bug 886281. */
  #navigator-toolbox:not(:-moz-lwtheme) {
    overflow: clip;
  }

  #main-window[sizemode=normal] .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox > .scrollbox-innerbox:not(:-moz-lwtheme) {
    position: relative;
  }

  /* End Glass Fog */
}

/* Aero Basic */
@media not all and (-moz-windows-compositor) {
  @media (-moz-windows-default-theme) {
    #main-window {
      background-color: rgb(185,209,234);
    }
    #main-window:-moz-window-inactive {
      background-color: rgb(215,228,242);
    }

    /* Render a window top border for lwthemes: */
    #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme {
      background-image: linear-gradient(to bottom,
            rgb(37, 44, 51) 0, rgb(37, 44, 51) 1px,
            rgba(255,255,255,.6) 1px, rgba(255,255,255,.6) 2px, transparent 2px);
    }

    #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel:-moz-lwtheme:-moz-window-inactive {
      background-image: linear-gradient(to bottom,
            rgb(102, 102, 102) 0, rgb(102, 102, 102) 1px,
            rgba(255,255,255,.6) 1px, rgba(255,255,255,.6) 2px, transparent 2px);
    }
  }

  #print-preview-toolbar:not(:-moz-lwtheme) {
    -moz-appearance: -moz-win-browsertabbar-toolbox;
  }
}
}

.browser-extension-panel > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0;
  overflow: hidden;
}

@media (-moz-os-version: windows-xp),
       (-moz-os-version: windows-vista),
       (-moz-os-version: windows-win7) {
  .cui-widget-panelview[id^=PanelUI-webext-] {
    border-radius: 4px;
  }
}

.webextension-popup-browser {
  border-radius: inherit;
}

.contentSelectDropdown-ingroup > .menu-iconic-text {
  padding-inline-start: 20px;
}

#ContentSelectDropdown > menupopup {
  background-color: -moz-field;
  -moz-border-top-colors: GrayText;
  -moz-border-right-colors: GrayText;
  -moz-border-bottom-colors: GrayText;
  -moz-border-left-colors: GrayText;
}

#ContentSelectDropdown > menupopup > menucaption,
#ContentSelectDropdown > menupopup > menuitem {
  padding: 0 6px;
  border-width: 0;
  font: -moz-list;
}

#ContentSelectDropdown > menupopup > menucaption > .menu-iconic-text,
#ContentSelectDropdown > menupopup > menuitem > .menu-iconic-text {
  /* Padding should follow the 4/12 ratio, where 12px is the default font-size
     with 4px being the preferred padding size. */
  padding-top: .3333em;
  padding-bottom: .3333em;
}

#ContentSelectDropdown > menupopup > menucaption > .menu-iconic-text {
  font-weight: bold;
}

#ContentSelectDropdown > menupopup > menuitem[_moz-menuactive="true"][disabled="true"] {
  color: GrayText;
  background-color: unset;
}

#ContentSelectDropdown > menupopup > menucaption {
  background-color: buttonface;
}

#ContentSelectDropdown > menupopup > menucaption[disabled="true"] {
  color: GrayText;
}

#ContentSelectDropdown > .isOpenedViaTouch > menucaption > .menu-iconic-text,
#ContentSelectDropdown > .isOpenedViaTouch > menuitem > .menu-iconic-text {
  /* Touch padding should follow the 11/12 ratio, where 12px is the default
     font-size with 11px being the preferred padding size. */
  padding-top: .9167em;
  padding-bottom: .9167em;
}

/* Minimal dark-mode tail overrides: URL bar readability + close-hover color only. */
:root[data-theme="dark"] #urlbar,
:root[data-theme="dark"] #urlbar:hover,
:root[data-theme="dark"] #urlbar[focused],
:root[data-theme="dark"] #urlbar:-moz-lwtheme,
:root[data-theme="dark"] #urlbar:-moz-lwtheme:hover:not([readonly]),
:root[data-theme="dark"] #urlbar:-moz-lwtheme[focused]:not([readonly]),
#main-window[lwtheme-brighttext] #urlbar,
#main-window[lwtheme-brighttext] #urlbar:hover,
#main-window[lwtheme-brighttext] #urlbar[focused],
#main-window[lwtheme-brighttext] #urlbar:-moz-lwtheme,
#main-window[lwtheme-brighttext] #urlbar:-moz-lwtheme:hover:not([readonly]),
#main-window[lwtheme-brighttext] #urlbar:-moz-lwtheme[focused]:not([readonly]),
toolbar[brighttext] #urlbar,
toolbar[brighttext] #urlbar:hover,
toolbar[brighttext] #urlbar[focused],
toolbar[brighttext] #urlbar:-moz-lwtheme,
toolbar[brighttext] #urlbar:-moz-lwtheme:hover:not([readonly]),
toolbar[brighttext] #urlbar:-moz-lwtheme[focused]:not([readonly]) {
  -moz-appearance: none !important;
  background-color: #2f2f2f !important;
  color: #ffffff !important;
  border-color: #5a5a5a !important;
}

:root[data-theme="dark"] #urlbar .autocomplete-textbox-container,
:root[data-theme="dark"] #urlbar .textbox-input-box,
:root[data-theme="dark"] #urlbar .textbox-input-box > html|*.textbox-input,
:root[data-theme="dark"] #urlbar html|*.textbox-input,
:root[data-theme="dark"] #urlbar html|*.urlbar-input,
:root[data-theme="dark"] #urlbar .urlbar-input,
:root[data-theme="dark"] #urlbar .urlbar-display,
#main-window[lwtheme-brighttext] #urlbar .autocomplete-textbox-container,
#main-window[lwtheme-brighttext] #urlbar .textbox-input-box,
#main-window[lwtheme-brighttext] #urlbar .textbox-input-box > html|*.textbox-input,
#main-window[lwtheme-brighttext] #urlbar html|*.textbox-input,
#main-window[lwtheme-brighttext] #urlbar html|*.urlbar-input,
#main-window[lwtheme-brighttext] #urlbar .urlbar-input,
#main-window[lwtheme-brighttext] #urlbar .urlbar-display,
toolbar[brighttext] #urlbar .autocomplete-textbox-container,
toolbar[brighttext] #urlbar .textbox-input-box,
toolbar[brighttext] #urlbar .textbox-input-box > html|*.textbox-input,
toolbar[brighttext] #urlbar html|*.textbox-input,
toolbar[brighttext] #urlbar html|*.urlbar-input,
toolbar[brighttext] #urlbar .urlbar-input,
toolbar[brighttext] #urlbar .urlbar-display {
  -moz-appearance: none !important;
  background-color: #2f2f2f !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] #TabsToolbar .tabbrowser-tab .close-icon,
:root[data-theme="dark"] #TabsToolbar .tab-close-button,
#main-window[lwtheme-brighttext] #TabsToolbar .tabbrowser-tab .close-icon,
#main-window[lwtheme-brighttext] #TabsToolbar .tab-close-button,
toolbar[brighttext] #TabsToolbar .tabbrowser-tab .close-icon,
toolbar[brighttext] #TabsToolbar .tab-close-button {
  list-style-image: url("chrome://global/skin/icons/close-inverted.png") !important;
  -moz-image-region: rect(0, 20px, 20px, 0px) !important;
}

@media (min-resolution: 1.1dppx) {
  :root[data-theme="dark"] #TabsToolbar .tabbrowser-tab .close-icon,
  :root[data-theme="dark"] #TabsToolbar .tab-close-button,
  #main-window[lwtheme-brighttext] #TabsToolbar .tabbrowser-tab .close-icon,
  #main-window[lwtheme-brighttext] #TabsToolbar .tab-close-button,
  toolbar[brighttext] #TabsToolbar .tabbrowser-tab .close-icon,
  toolbar[brighttext] #TabsToolbar .tab-close-button {
    list-style-image: url("chrome://global/skin/icons/close-inverted@2x.png") !important;
  }
}

:root[data-theme="dark"] #TabsToolbar .tabbrowser-tab .close-icon:hover,
:root[data-theme="dark"] #TabsToolbar .tab-close-button:hover,
#main-window[lwtheme-brighttext] #TabsToolbar .tabbrowser-tab .close-icon:hover,
#main-window[lwtheme-brighttext] #TabsToolbar .tab-close-button:hover,
toolbar[brighttext] #TabsToolbar .tabbrowser-tab .close-icon:hover,
toolbar[brighttext] #TabsToolbar .tab-close-button:hover {
  -moz-image-region: rect(0, 40px, 20px, 20px) !important;
}

:root[data-theme="dark"] #TabsToolbar .tabbrowser-tab .close-icon:hover:active,
:root[data-theme="dark"] #TabsToolbar .tab-close-button:hover:active,
#main-window[lwtheme-brighttext] #TabsToolbar .tabbrowser-tab .close-icon:hover:active,
#main-window[lwtheme-brighttext] #TabsToolbar .tab-close-button:hover:active,
toolbar[brighttext] #TabsToolbar .tabbrowser-tab .close-icon:hover:active,
toolbar[brighttext] #TabsToolbar .tab-close-button:hover:active {
  -moz-image-region: rect(0, 60px, 20px, 40px) !important;
}

#titlebar-close:hover,
#close-button:hover {
  background: #c42b1c !important;
}

#titlebar-close:hover:active,
#close-button:hover:active {
  background: #a62518 !important;
}

:root[data-theme="dark"] .urlbar-textbox-container,
:root[data-theme="dark"] .urlbar-input-box,
:root[data-theme="dark"] #urlbar-display-box,
#main-window[lwtheme-brighttext] .urlbar-textbox-container,
#main-window[lwtheme-brighttext] .urlbar-input-box,
#main-window[lwtheme-brighttext] #urlbar-display-box,
toolbar[brighttext] .urlbar-textbox-container,
toolbar[brighttext] .urlbar-input-box,
toolbar[brighttext] #urlbar-display-box {
  background-color: #2f2f2f !important;
  border-left-color: #5a5a5a !important;
}

:root[data-theme="dark"] #titlebar-close:hover,
:root[data-theme="dark"] #close-button:hover,
#main-window[lwtheme-brighttext] #titlebar-close:hover,
#main-window[lwtheme-brighttext] #close-button:hover,
toolbar[brighttext] #titlebar-close:hover,
toolbar[brighttext] #close-button:hover {
  -moz-appearance: none !important;
  background-color: #c42b1c !important;
  background-image: none !important;
  list-style-image: url(chrome://browser/skin/caption-buttons.svg#close-white) !important;
}

:root[data-theme="dark"] #titlebar-close:hover:active,
:root[data-theme="dark"] #close-button:hover:active,
#main-window[lwtheme-brighttext] #titlebar-close:hover:active,
#main-window[lwtheme-brighttext] #close-button:hover:active,
toolbar[brighttext] #titlebar-close:hover:active,
toolbar[brighttext] #close-button:hover:active {
  -moz-appearance: none !important;
  background-color: #a62518 !important;
}

:root[data-theme="dark"] #PanelUI-popup toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup #zoom-controls > toolbarbutton > .toolbarbutton-icon,
:root[data-theme="dark"] #widget-overflow toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
:root[data-theme="dark"] #widget-overflow toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
:root[data-theme="dark"] #widget-overflow #zoom-controls > toolbarbutton > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup #PanelUI-fxa-icon > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup #PanelUI-customize > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup #PanelUI-help > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-popup #PanelUI-quit > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup #zoom-controls > toolbarbutton > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #widget-overflow toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #widget-overflow toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #widget-overflow #zoom-controls > toolbarbutton > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup #PanelUI-fxa-icon > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup #PanelUI-customize > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup #PanelUI-help > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-popup #PanelUI-quit > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup #zoom-controls > toolbarbutton > .toolbarbutton-icon,
toolbar[brighttext] #widget-overflow toolbarbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbar[brighttext] #widget-overflow toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-icon,
toolbar[brighttext] #widget-overflow #zoom-controls > toolbarbutton > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup #PanelUI-fxa-icon > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup #PanelUI-customize > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup #PanelUI-help > .toolbarbutton-icon,
toolbar[brighttext] #PanelUI-popup #PanelUI-quit > .toolbarbutton-icon {
  filter: invert(100%) brightness(1.12) !important;
}

:root[data-theme="dark"] #tab-view-deck,
:root[data-theme="dark"] #browser-panel,
:root[data-theme="dark"] #browser-bottombox,
:root[data-theme="dark"] #browser,
:root[data-theme="dark"] browser,
:root[data-theme="dark"] .browserContainer,
:root[data-theme="dark"] #appcontent,
:root[data-theme="dark"] #content,
:root[data-theme="dark"] .browserStack,
:root[data-theme="dark"] #high-priority-global-notificationbox,
:root[data-theme="dark"] #global-notificationbox,
:root[data-theme="dark"] #main-window,
#main-window[lwtheme-brighttext] #tab-view-deck,
#main-window[lwtheme-brighttext] #browser-panel,
#main-window[lwtheme-brighttext] #browser-bottombox,
#main-window[lwtheme-brighttext] #browser,
#main-window[lwtheme-brighttext] browser,
#main-window[lwtheme-brighttext] .browserContainer,
#main-window[lwtheme-brighttext] #appcontent,
#main-window[lwtheme-brighttext] #content,
#main-window[lwtheme-brighttext] .browserStack,
#main-window[lwtheme-brighttext] #high-priority-global-notificationbox,
#main-window[lwtheme-brighttext] #global-notificationbox,
#main-window[lwtheme-brighttext],
toolbar[brighttext] #tab-view-deck,
toolbar[brighttext] #browser-panel,
toolbar[brighttext] #browser-bottombox,
toolbar[brighttext] #browser,
toolbar[brighttext] browser,
toolbar[brighttext] .browserContainer,
toolbar[brighttext] #appcontent,
toolbar[brighttext] #content,
toolbar[brighttext] .browserStack,
toolbar[brighttext] #high-priority-global-notificationbox,
toolbar[brighttext] #global-notificationbox,
#main-window.firefox toolbar[brighttext] {
  background: #2b2b2b !important;
  background-color: #2b2b2b !important;
  background-image: none !important;
  border: none !important;
  border-color: #2b2b2b !important;
  box-shadow: none !important;
}

/* Restore icon legibility in dark chrome without touching the rest of the theme. */
:root[data-theme="dark"] #nav-bar .toolbarbutton-icon,
:root[data-theme="dark"] #nav-bar .toolbarbutton-menubutton-button > .toolbarbutton-icon,
:root[data-theme="dark"] #nav-bar .toolbarbutton-badge-stack > .toolbarbutton-icon,
:root[data-theme="dark"] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-icon,
:root[data-theme="dark"] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
:root[data-theme="dark"] #back-button > .toolbarbutton-icon,
:root[data-theme="dark"] #forward-button > .toolbarbutton-icon,
:root[data-theme="dark"] #urlbar-reload-button > .toolbarbutton-icon,
:root[data-theme="dark"] #urlbar-stop-button > .toolbarbutton-icon,
:root[data-theme="dark"] #PanelUI-menu-button > .toolbarbutton-icon,
:root[data-theme="dark"] #nav-bar-overflow-button > .toolbarbutton-icon,
:root[data-theme="dark"] #identity-icon,
:root[data-theme="dark"] #tracking-protection-icon,
:root[data-theme="dark"] #connection-icon,
:root[data-theme="dark"] #default-notification-icon,
:root[data-theme="dark"] #notification-popup-box .notification-anchor-icon,
:root[data-theme="dark"] .tabs-newtab-button > .toolbarbutton-icon,
:root[data-theme="dark"] #new-tab-button > .toolbarbutton-icon,
:root[data-theme="dark"] #titlebar-min,
:root[data-theme="dark"] #titlebar-max,
:root[data-theme="dark"] #titlebar-restore,
:root[data-theme="dark"] #titlebar-close,
:root[data-theme="dark"] #minimize-button,
:root[data-theme="dark"] #restore-button,
:root[data-theme="dark"] #close-button {
  filter: invert(100%) brightness(1.12) !important;
}

#main-window[lwtheme-brighttext] #nav-bar .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #nav-bar .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #nav-bar .toolbarbutton-badge-stack > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-icon,
#main-window[lwtheme-brighttext] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter,
#main-window[lwtheme-brighttext] #back-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #forward-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #urlbar-reload-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #urlbar-stop-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #PanelUI-menu-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #nav-bar-overflow-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #identity-icon,
#main-window[lwtheme-brighttext] #tracking-protection-icon,
#main-window[lwtheme-brighttext] #connection-icon,
#main-window[lwtheme-brighttext] #default-notification-icon,
#main-window[lwtheme-brighttext] #notification-popup-box .notification-anchor-icon,
#main-window[lwtheme-brighttext] .tabs-newtab-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #new-tab-button > .toolbarbutton-icon,
#main-window[lwtheme-brighttext] #titlebar-min,
#main-window[lwtheme-brighttext] #titlebar-max,
#main-window[lwtheme-brighttext] #titlebar-restore,
#main-window[lwtheme-brighttext] #titlebar-close,
#main-window[lwtheme-brighttext] #minimize-button,
#main-window[lwtheme-brighttext] #restore-button,
#main-window[lwtheme-brighttext] #close-button {
  filter: invert(100%) brightness(1.12) !important;
}

toolbar[brighttext] #identity-icon,
toolbar[brighttext] #tracking-protection-icon,
toolbar[brighttext] #connection-icon,
toolbar[brighttext] #default-notification-icon,
toolbar[brighttext] #notification-popup-box .notification-anchor-icon,
toolbar[brighttext] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-icon,
toolbar[brighttext] #downloads-button > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  filter: invert(100%) brightness(1.12) !important;
}

/* Remove content perimeter lines around webpages/internal pages. */
#main-window #browser-border-start,
#main-window #browser-border-end {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
}

#main-window .tabbrowser-tabpanels,
#main-window #content tabpanels,
#main-window #appcontent browser,
#main-window #content browser {
  -moz-appearance: none !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Keep native scrollbar metrics, only hint dark colors. */
:root[data-theme="dark"],
#main-window[lwtheme-brighttext],
toolbar[brighttext] {
  scrollbar-color: #5a5a5a #2b2b2b;
}

:root[data-theme="dark"] scrollbar,
:root[data-theme="dark"] slider,
:root[data-theme="dark"] scrollcorner,
#main-window[lwtheme-brighttext] scrollbar,
#main-window[lwtheme-brighttext] slider,
#main-window[lwtheme-brighttext] scrollcorner,
toolbar[brighttext] scrollbar,
toolbar[brighttext] slider,
toolbar[brighttext] scrollcorner {
  background-image: none !important;
  background-color: #2b2b2b !important;
}

:root[data-theme="dark"] thumb,
:root[data-theme="dark"] scrollbarbutton,
#main-window[lwtheme-brighttext] thumb,
#main-window[lwtheme-brighttext] scrollbarbutton,
toolbar[brighttext] thumb,
toolbar[brighttext] scrollbarbutton {
  background-color: #5a5a5a !important;
  border-color: #3f454c !important;
  -moz-border-top-colors: #4a5058 #3f454c !important;
  -moz-border-right-colors: #2f343a #262b30 !important;
  -moz-border-bottom-colors: #2f343a #262b30 !important;
  -moz-border-left-colors: #4a5058 #3f454c !important;
}

:root[data-theme="dark"] thumb:hover,
:root[data-theme="dark"] scrollbarbutton:hover,
#main-window[lwtheme-brighttext] thumb:hover,
#main-window[lwtheme-brighttext] scrollbarbutton:hover,
toolbar[brighttext] thumb:hover,
toolbar[brighttext] scrollbarbutton:hover {
  background-color: #6a6a6a !important;
}


}
