@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* AGENT_SHEET */

#main-window[sizemode="normal"]:not([inFullscreen]) #titlebar-buttonbox {
  margin-top: -4px!important;
  margin-bottom: 4px!important;
}

#main-window[tabsintitlebar]:not([inFullscreen]) #appmenu-button {
  margin-bottom: -2px!important;
}

#main-window[sizemode="normal"]:not([inFullscreen]) #appmenu-button {
  margin-bottom: 1px!important;
}

#main-window:not([inFullscreen]) #titlebar-min,
#main-window:not([inFullscreen]) #titlebar-max,
#main-window:not([inFullscreen]) #restore-button,
#main-window:not([inFullscreen]) #titlebar-close {
  list-style-image: none!important;
  margin: 0px!important;
  width: 26px!important;
  height: 21px!important;
  background-image: -moz-linear-gradient(hsla(210,30%,85%,.65), hsla(209,13%,54%,.65))!important;
  background-repeat: no-repeat!important;
  background-position: center 2px, top left!important;
  background-clip: border-box!important;
  background-origin: border-box!important;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset,
              0 0 0 1px rgba(255,255,255,.35) inset!important;
  border: 1px solid hsla(211,34%,23%,.75)!important;
  border-top: none!important;
  border-right: none!important;
  -moz-transition-property: background-color, box-shadow!important;
  -moz-transition-duration: 100ms!important;
  -moz-transition-timing-function: ease!important;
  -moz-box-orient: horizontal!important;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.25)!important;
  padding: 0!important;
  -moz-border-image: none !important;
}

#main-window:not([inFullscreen]) #titlebar-max {
  -moz-appearance: none !important;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABvSURBVChTvZJLDoAgDAV7MM/T05v4I4iAPG0iLKokuFCSWQ2vtADRH6s7D+FGZC9xSkALV1HiGHe0UAKbDxBqbSlPvDoPIVdQF3fzbKyDUAtoz5OxEGotKU88zAZCiPGR7MvQ/bighRx4/XDf/qYDVNPwPXOIj5oAAAAASUVORK5CYII="),
                    -moz-linear-gradient(hsla(210,30%,85%,.65), hsla(209,13%,54%,.65))!important;
  border-radius: 0!important;
}
#main-window:not([inFullscreen]) #titlebar-min {
  -moz-appearance: none !important;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAuSURBVChTY2AYBTQKARuguWlEYpBahrT/RAKooWRp+Ae0gzCG2UCyH2gUllBjAaE4gsv4y81VAAAAAElFTkSuQmCC"),
                    -moz-linear-gradient(hsla(210,30%,85%,.65), hsla(209,13%,54%,.65))!important;
  border-radius: 0 0 0 3.5px!important;
}
#main-window[sizemode="maximized"]:not([inFullscreen]) #titlebar-max {
  -moz-appearance: none !important;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACjSURBVChTpZJrCoMwEIQ9WM+Tw/ijD6HNAfZ6hZZWrNXUqRPcsIpWpIGPhA2TmWSTZX+OXa93P+D+aLiuA5YYDhoLQvhgCRXYGHK+eJB+Uwbyd9OCqGAthrzqBiQJVmJIWdUgSWAs5XAqQLTmvcftUUaSwFjK9f7E/ljECIRr1kgSGMtcL2tqvLz2JvbBqWUbApRpDPv4Ti3n5rlmbf4Om77fF6t2KGod/yWrAAAAAElFTkSuQmCC"),
                    -moz-linear-gradient(hsla(210,30%,85%,.65), hsla(209,13%,54%,.65))!important;
  border-radius: 0!important;
}

#main-window:not([inFullscreen]) #titlebar-max:hover,
#main-window:not([inFullscreen]) #titlebar-min:hover,
#main-window:not([inFullscreen]) window[sizemode="maximized"] #titlebar-max:hover {
  background-color: hsla(0,0%,100%,.65)!important;
}

#main-window:not([inFullscreen]) #titlebar-max:hover:active,
#main-window:not([inFullscreen]) #titlebar-min:hover:active,
#main-window[sizemode="maximized"]:not([inFullscreen])  #titlebar-max:hover:active {
  background-color: hsla(205,11%,45%,.65)!important;
  box-shadow: 0 1px 1px hsla(0,0%,0%,.5) inset!important;
}

#main-window:not([inFullscreen]) #titlebar-close {
  -moz-appearance: none !important;
  width: 46px!important;
  background-color: #b23636!important;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAErSURBVChTY2CgN1ACWugDxGlAHA3EhlAHgGgQHyQeAsRaMIcxsrOzZzx4cO/6/////n/+/Om9iYlJCVBSTU9PrxjEB4m/evXyiaioaDZQnAWmUQkI8t++ffMCpODp0yf3QXwQDTPIysqqDNkmmEYdLy+vmu/fv30BKYTRP358/xYREdGI5GSMoDMtKyvr+/Pn92+Qxr9///xtbW2eClRlhi+QzUGKQIpBmkB42rQp84AarHBpMgA54+fPHz9Ait+/f/cSRINsLSoq6gFqMkHXqAoKqU+fPr4FKbxx4/oFPj6+rDt3bl0B8b99+/oJ5F+gJj2YRiaQgidPHt+FhRw0aOVBIQgKapjNID5QExtMoyqQ4Q+NxABQHEElQJEJilRQ5EYg24QvYKgnBwChybtZ/BL6JwAAAABJRU5ErkJggg=="),
                    -moz-radial-gradient(hsla(0,100%,87%,.35), hsla(0,100%,75%,0)),
                    -moz-linear-gradient(top, hsla(0,100%,80%,.65), hsla(0,100%,80%,0))!important;
  background-repeat: no-repeat!important;
  background-position: 15px 2px, center center, top left!important;
  box-shadow: 0 1px 0 hsla(9,100%,90%,.25) inset,
              0 0 0 1px hsla(9,100%,90%,.35) inset!important;
  border-color: #4c0f0f!important;
  border-radius: 0 3.5px 0 0!important;
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.25)!important;
}
#main-window:not([inFullscreen]) #titlebar-close:hover {
  background-color: #e52e2e!important;
}
#main-window:not([inFullscreen]) #titlebar-close:hover:active {
  background-color: #8c0e0e!important;
  box-shadow: 0 1px 1px hsla(0,0%,0%,.5) inset!important;
}