@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

  /* Move the "Firefox-button" slightly to the right */
  #appmenu-button-container {
    margin-left: 5px;
  }

  /* Small offset for the "Firefox" button */
  #appmenu-button {
    margin-left:  2px  !important;
    margin-top:   2px  !important;
  }


  /**
   * Move sidebar to the right
   */
  #browser {
     -moz-box-direction: reverse;
  }


  /**
   * Web Console
   */
  /* Search box */
  #hud_panel12849984942303 .compact.hud-filter-box {
   -moz-appearance:     none !important;
   -moz-border-radius:  25%  !important;
    min-width:  35ex  !important;
    padding:    0.25ex 1.5ex   !important;
    border:     solid 1px #ccc !important;
  }


  /**
   * Close buttons with solid background
   * /
  #tabbrowser-tabs .tabs-closebutton .toolbarbutton-icon {
    background-color: -moz-dialog  !important;
    background-image: -moz-linear-gradient(transparent, transparent 50%, rgba(0,0,0,.05) 90%, rgba(0,0,0,.05));
  }
/**/


  /**
   * Remove status-bar icons in favor of tool-bar items (in the status-bar)
   */
  #fbStatusBar,
  #stylish-panel {
    display:  none  !important;
  }

  /**
   * Tune the new addon-toolbar (status-bar)
   */
  #browser-bottombox {
    border-bottom:  none  !important;
    border-top:     none  !important;
  }
  #browser-bottombox > #addon-bar {
    min-height: 19px  !important;
    max-height: 24px  !important;
  }
  #browser-bottombox > #addon-bar > * {
    margin-bottom:  0px  !important;
    margin-top:     0px  !important;
  }
  #browser-bottombox > #addon-bar > toolbarbutton {
   -moz-appearance: toolbarbutton  !important;
  }


  /**
   * Change Go/Stop/Reload buttons' colors for some more 'soft'
   */
  #urlbar-go-button:not(:hover) {
    background-image: -moz-linear-gradient(rgb(205, 253, 205),     rgb(186, 230, 186) 49%,
                                           rgb(162, 214, 162) 51%, rgb(159, 195, 149))   !important;
  }
  #urlbar-reload-button:not([disabled]):hover {
    background-image: -moz-linear-gradient(rgb(222, 247, 255),     rgb(181, 228, 255) 49%,
                                           rgb(171, 219, 247) 51%, rgb(142, 198, 230))   !important;
  }
  #urlbar-stop-button:not(:hover) {
    background-image: -moz-linear-gradient(rgb(251, 202, 190),     rgb(229, 179, 160) 49%,
                                           rgb(213, 152, 148) 51%, rgb(193, 132, 128))   !important;
  }


  .tabbrowser-tab[selected] {
/*  background-image: -moz-linear-gradient(rgba(127, 127, 127, 0.1), rgba( 94,  94,  94, 0.1) 50%);
    background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5) 30%),
                      -moz-linear-gradient(-moz-dialog, -moz-dialog);
*/
    background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5) 30%)  !important;
  }

  /**
   * Fine-tune the address-bar when it's moved to the tab-bar
   */
  #TabsToolbar > #urlbar-container {
    min-width: 240px  !important;
    max-width: 320px  !important;
    width:     auto   !important;
  }
  #TabsToolbar .urlbar-over-link-box[overlinkstate] {
    max-width:  250px  !important;  /*~ <#urlbar-container's width> - 70px */
  }
  #TabsToolbar .urlbar-input-box:not(:hover) ~ .urlbar-textbox-container-children {
    display:  none;
  }

  #TabsToolbar > #urlbar-container ~ #tabbrowser-tabs tab[selected],
  #TabsToolbar > #urlbar-container ~ #tabbrowser-tabs tab[pinned] {
    height:  26px  !important;
  }
  #TabsToolbar > #urlbar-container ~ #tabbrowser-tabs tab[pinned][selected] {
    height:  27px  !important;
  }


  /* All toolbars can be visible in pop-up windows */
  window[chromehidden*=' '] toolbar:not(.chromeclass-menubar),
  window[chromehidden*=' '] toolbar:not(.toolbar-primary) {
    display:  inherit  !important;
  }
