.button,
.button.flat:hover,
.dialog-action-area.linked .button:first-child,
.dialog-action-area.linked .button:hover:first-child,
.dialog-action-area.linked .button,
.dialog-action-area.linked .button:hover,
.dialog-action-area.linked .button:last-child,
.dialog-action-area.linked .button:hover:last-child,
.inline-toolbar GtkToolButton > .button,
.inline-toolbar.toolbar .button {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

.button.flat,
.button.flat:insensitive {
    border-color: transparent;
    border-image: none;
    box-shadow: none;
}

.button:active,
.button:checked,
.button.flat:checked,
.button.flat:active,
.button.flat:checked:hover,
.button.flat:active:hover,
.inline-toolbar GtkToolButton > .button:active,
.inline-toolbar GtkToolButton > .button:checked,
.inline-toolbar.toolbar .button:active,
.inline-toolbar.toolbar .button:active:checked,
.dialog-action-area.linked .button:active:first-child,
.dialog-action-area.linked .button:active:hover:first-child,
.dialog-action-area.linked .button:checked:first-child,
.dialog-action-area.linked .button:checked:hover:first-child,
.dialog-action-area.linked .button:active,
.dialog-action-area.linked .button:active:hover,
.dialog-action-area.linked .button:checked,
.dialog-action-area.linked .button:checked:hover,
.dialog-action-area.linked .button:active:last-child,
.dialog-action-area.linked .button:active:hover:last-child,
.dialog-action-area.linked .button:checked:last-child,
.dialog-action-area.linked .button:checked:hover:last-child {
    box-shadow: inset 0 1px alpha(@button_border, 0.3),
                inset 1px 0 alpha(@button_border, 0.15),
                inset -1px 0 alpha(@button_border, 0.15),
                inset 0 -1px alpha(@button_border, 0.06);
}

.button:insensitive,
.inline-toolbar GtkToolButton > .button:insensitive,
.inline-toolbar.toolbar .button:insensitive,
.dialog-action-area.linked .button:insensitive:first-child,
.dialog-action-area.linked .button:insensitive,
.dialog-action-area.linked .button:insensitive:last-child {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.button:insensitive:active,
.button:insensitive:checked,
.inline-toolbar GtkToolButton > .button:insensitive:active,
.inline-toolbar GtkToolButton > .button:insensitive:checked,
.inline-toolbar.toolbar .button:insensitive:active,
.inline-toolbar.toolbar .button:insensitive:active:checked {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.button.default,
.dialog-action-area.linked .button.default:first-child,
.dialog-action-area.linked .button.default,
.dialog-action-area.linked .button.default:last-child {
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

.button.default:active,
.button.default:checked,
.dialog-action-area.linked .button.default:active:first-child,
.dialog-action-area.linked .button.default:checked:first-child,
.dialog-action-area.linked .button.default:active,
.dialog-action-area.linked .button.default:checked,
.dialog-action-area.linked .button.default:active:last-child,
.dialog-action-area.linked .button.default:checked:last-child {
    box-shadow: inset 0 1px alpha(@button_border, 0.3),
                inset 1px 0 alpha(@button_border, 0.15),
                inset -1px 0 alpha(@button_border, 0.15),
                inset 0 -1px alpha(@button_border, 0.06);
}

.header-bar .titlebutton.button,
.titlebar .titlebutton.flat,
.titlebar .titlebutton.button,
.titlebar .titlebutton.button:checked,
.titlebar .titlebutton.button:backdrop {
    border-color: transparent;
    border-width: 1px;
    box-shadow: none;
}

.titlebar .titlebutton.button:hover
{
    border-style: solid;
    border-radius: 3px;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

.titlebar .titlebutton.button:active,
.titlebar .titlebutton.button:active:hover {
    box-shadow: inset 0 1px alpha(@button_border, 0.3),
                inset 1px 0 alpha(@button_border, 0.15),
                inset -1px 0 alpha(@button_border, 0.15),
                inset 0 -1px alpha(@button_border, 0.06);
}

.header-bar .button.flat,
.header-bar.titlebar GtkMenuButton.button.titlebutton,
.primary-toolbar .button.flat,
.primary-toolbar .button.flat:insensitive {
    border-style: solid;
    border-width: 2px;
    border-radius: 3px;
    border-color: transparent;
    border-image: none;
    box-shadow: none;
}

.header-bar .button,
.header-bar .button.flat:hover,
.header-bar.titlebar GtkMenuButton.button.titlebutton:hover,
.primary-toolbar .button,
.primary-toolbar .button:hover,
.primary-toolbar .button.flat:hover,
.primary-toolbar .button.raised,
.primary-toolbar .button.raised:hover,
.primary-toolbar .raised .button,
.primary-toolbar .raised .button:hover {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

.header-bar .button:checked,
.header-bar .button:checked:hover,
.header-bar .button:active,
.header-bar .button:active:hover,
.header-bar.titlebar GtkMenuButton.button.titlebutton:checked,
.header-bar.titlebar GtkMenuButton.button.titlebutton:checked:hover,
.header-bar.titlebar GtkMenuButton.button.titlebutton:active,
.header-bar.titlebar GtkMenuButton.button.titlebutton:active:hover,
.primary-toolbar .button:checked,
.primary-toolbar .button:checked:hover,
.primary-toolbar .button:active,
.primary-toolbar .button:active:hover,
.primary-toolbar .button.flat:checked,
.primary-toolbar .button.flat:checked:hover,
.primary-toolbar .button.flat:active,
.primary-toolbar .button.flat:active:hover,
.primary-toolbar .button.raised:checked,
.primary-toolbar .button.raised:checked:hover,
.primary-toolbar .raised .button:checked,
.primary-toolbar .raised .button:checked:hover,
.primary-toolbar .button.raised:active,
.primary-toolbar .button.raised:active:hover,
.primary-toolbar .raised .button:active,
.primary-toolbar .raised .button:active:hover {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_border, 0.3),
                inset 1px 0 alpha(@button_border, 0.15),
                inset -1px 0 alpha(@button_border, 0.15),
                inset 0 -1px alpha(@button_border, 0.06);
}

.header-bar .button:insensitive,
.primary-toolbar .button:insensitive,
.primary-toolbar .button.raised:insensitive,
.primary-toolbar .raised .button:insensitive {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.primary-toolbar .button,
.primary-toolbar .button:insensitive {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: transparent;
    border-image: none;
    box-shadow: none;
}

.primary-toolbar .button:hover {
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

.primary-toolbar .button:insensitive:active,
.primary-toolbar .button.raised:insensitive:active,
.primary-toolbar .raised .button:insensitive:active {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

column-header.button,
column-header .button,
column-header.button:active,
column-header .button:active,
column-header.button:hover,
column-header .button:hover,
column-header.button:insensitive,
column-header .button:insensitive {
    border-style: solid;
    border-width: 0 1px 1px 0;
    border-radius: 0;
    border-color: @border;
    box-shadow: none;
}

column-header.button:last-child,
column-header:last-child .button,
column-header.button:last-child:active,
column-header:last-child .button:active,
column-header.button:last-child:active:hover,
column-header:last-child .button:active:hover {
    border-right-width: 0;
}

.entry,
GtkComboBox.combobox-entry .button {
    border-radius: 3px;
    border-width: 1px;
    border-style: solid;
    border-color: @button_border;
    box-shadow: inset 0 1px alpha(@button_border, 0.3),
                inset 1px 0 alpha(@button_border, 0.15),
                inset -1px 0 alpha(@button_border, 0.15),
                inset 0 -1px alpha(@button_border, 0.06);
}

.entry:insensitive {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.scale.trough {
    border-bottom: 1px solid @button_shadow;
    border-right: 1px solid @button_shadow;
    border-top: 1px solid @theme_bg_color;
    border-left: 1px solid @theme_bg_color;
    border-radius: 3px;
    box-shadow: inset 0 1px alpha(@button_border, 0.8),
                inset 1px 0 alpha(@button_border, 0.8),
                inset -1px 0 alpha(@button_border, 0.8),
                inset 0 -1px alpha(@button_border, 0.8);
}

.scale.trough.vertical {
   border-bottom: 1px solid @button_shadow;
    border-right: 1px solid @button_shadow;
    border-top: 1px solid @theme_bg_color;
    border-left: 1px solid @theme_bg_color;
    border-radius: 3px;
    box-shadow: inset 0 1px alpha(@button_border, 0.8),
                inset 1px 0 alpha(@button_border, 0.8),
                inset -1px 0 alpha(@button_border, 0.8),
                inset 0 -1px alpha(@button_border, 0.8);
}

.scale.trough:insensitive {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.scale.trough.vertical:insensitive {
    border-color: alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

GtkSwitch.trough {
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: inset 0 1px @button_border,
                inset 1px 0 @button_border,
                inset -1px 0 @button_border,
                inset 0 -1px @button_border,
    			inset 1px 2px alpha(@button_border, 0.3),
                inset 2px 1px alpha(@button_border, 0.15),
                inset -2px -1px alpha(@button_border, 0.15),
                inset -1px -2px alpha(@button_border, 0.06);
}
GtkSwitch.trough:active {
    box-shadow: inset 0 1px @button_border,
                inset 1px 0 @button_border,
                inset -1px 0 @button_border,
                inset 0 -1px @button_border,
    			inset 1px 2px alpha(@scale_fill_shadow, 0.7),
                inset 2px 1px alpha(@scale_fill_shadow, 0.35),
                inset -2px -1px alpha(@scale_fill_shadow, 0.35),
                inset -1px -2px alpha(@scale_fill_shadow, 0.12);
}

GtkSwitch.trough:insensitive,
GtkSwitch.trough:insensitive:active {
    box-shadow: inset 0 1px alpha(@button_border, 0.7),
                inset 1px 0 alpha(@button_border, 0.7),
                inset -1px 0 alpha(@button_border, 0.7),
                inset 0 -1px alpha(@button_border, 0.7);
}

GtkSwitch.slider {
    border: 1px solid @button_border;
    border-radius: 3px;
    box-shadow: inset 0 1px alpha(@button_shadow, 1),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.6),
                inset -1px 0 alpha(@button_shadow, 0.6);
}

GtkSwitch.slider:insensitive {
    border: 1px solid alpha(@button_border, 0.7);
    box-shadow: inset 0 1px alpha(@button_shadow, .5),
                inset 0 -1px alpha(@button_shadow, 0.0),
                inset 1px 0 alpha(@button_shadow, 0.3),
                inset -1px 0 alpha(@button_shadow, 0.3);
}

.linked .entry {
    box-shadow: inset -1px 0 @border;   
}

.linked .entry,
.primary-toolbar .linked .entry {
    border-right-width: 0;
    border-left-width: 0;
    border-radius: 0;
    border-image-width: 3px 0 4px 0;
}

.linked .entry:first-child,
.primary-toolbar .linked .entry:first-child {
    border-right-width: 0;
    border-radius: 3px 0 0 3px;
    border-image-width: 3px 0 4px 3px;
}

.linked .entry:last-child,
.primary-toolbar .linked .entry:last-child {
    border-left-width: 0;
    border-radius: 0 3px 3px 0;
    border-image-width: 3px 3px 4px 0;
}

.linked .entry:only-child,
.primary-toolbar .linked .entry:only-child {
    border-right-width: 1px;
    border-left-width: 1px;
    border-radius: 3px;
    border-image-width: 3px 3px 4px 3px;
}

.linked .button,
.linked .button:hover,
.linked > GtkComboBox > .button:dir(ltr),
.linked > GtkComboBox > .button:hover:dir(ltr),
.inline-toolbar.toolbar .button,
.inline-toolbar.toolbar .button:hover,
.inline-toolbar.toolbar .button:insensitive,
.inline-toolbar.toolbar GtkToolButton > .button,
.inline-toolbar.toolbar GtkToolButton > .button:hover,
.inline-toolbar.toolbar GtkToolButton > .button:insensitive,
.path-bar .button,
.path-bar .button:hover {
    border-width: 1px 0 1px 0;
    border-radius: 0px;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset -1px 0 alpha(@linked_button_border, 0.2),
                inset 1px 0 alpha(@linked_button_shadow, 0.2);
}

.linked .button:first-child,
.linked .button:first-child:hover,
.linked > GtkComboBox:first-child > .button:dir(ltr),
.linked > GtkComboBox:first-child > .button:hover:dir(ltr),
.inline-toolbar.toolbar .button:first-child,
.inline-toolbar.toolbar .button:first-child:hover,
.inline-toolbar.toolbar GtkToolButton:first-child > .button,
.inline-toolbar.toolbar GtkToolButton:first-child > .button:hover,
.path-bar .button:first-child,
.path-bar .button:first-child:hover {
    border-width: 1px 0 1px 1px;
    border-radius: 3px 0 0 3px;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.2);
}

.linked .button:last-child,
.linked .button:last-child:hover,
.linked > GtkComboBox:last-child > .button:dir(ltr),
.linked > GtkComboBox:last-child > .button:hover:dir(ltr),
.inline-toolbar.toolbar .button:last-child,
.inline-toolbar.toolbar .button:hover:last-child,
.inline-toolbar.toolbar GtkToolButton:last-child > .button,
.inline-toolbar.toolbar GtkToolButton:last-child > .button:hover,
.path-bar .button:last-child,
.path-bar .button:last-child:hover {
    border-width: 1px 1px 1px 0;
    border-radius: 0 3px 3px 0;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_shadow, 0.2);
}

.linked .button:only-child,
.linked .button:only-child:hover,
.inline-toolbar.toolbar .button:only-child,
.inline-toolbar.toolbar .button:only-child:hover,
.inline-toolbar.toolbar GtkToolButton:only-child > .button,
.inline-toolbar.toolbar GtkToolButton:only-child > .button:hover,
.path-bar .button:only-child,
.path-bar .button:only-child:hover {
    border-width: 1px;
    border-radius: 3px;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_shadow, 0.2);
}

.linked .button:active,
.linked .button:checked,
.linked .button:active:hover,
.linked .button:checked:hover,
.inline-toolbar.toolbar .button:active,
.inline-toolbar.toolbar .button:active:hover,
.inline-toolbar.toolbar GtkToolButton > .button:active,
.inline-toolbar.toolbar GtkToolButton > .button:active:hover,
.path-bar .button:active,
.path-bar .button:checked,
.path-bar .button:active:hover,
.path-bar .button:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 0 -1px alpha(@linked_button_border, .06),
                inset 1px 0 alpha(@linked_button_border, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.2); 
}

.linked .button:first-child:active,
.linked .button:first-child:checked,
.linked .button:first-child:active:hover,
.linked .button:first-child:checked:hover,
.inline-toolbar.toolbar .button:first-child:active,
.inline-toolbar.toolbar .button:first-child:active:hover,
.inline-toolbar.toolbar GtkToolButton:first-child > .button:active,
.inline-toolbar.toolbar GtkToolButton:first-child > .button:active:hover,
.path-bar .button:first-child:active,
.path-bar .button:first-child:checked,
.path-bar .button:first-child:active:hover,
.path-bar .button:first-child:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 0 -1px alpha(@linked_button_border, 0.06),
                inset 1px 0 alpha(@linked_button_border, 0.08),
                inset -1px 0 alpha(@linked_button_border, 0.2);   
}

.linked .button:last-child:active,
.linked .button:last-child:checked,
.linked .button:last-child:active:hover,
.linked .button:last-child:checked:hover,
.inline-toolbar.toolbar .button:last-child:active,
.inline-toolbar.toolbar .button:last-child:active:hover,
.inline-toolbar.toolbar GtkToolButton:last-child > .button:active,
.inline-toolbar.toolbar GtkToolButton:last-child > .button:active:hover,
.path-bar .button:last-child:active,
.path-bar .button:last-child:checked,
.path-bar .button:last-child:active:hover,
.path-bar .button:last-child:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 0 -1px alpha(@linked_button_border, 0.06),
                inset 1px 0 alpha(@linked_button_border, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.08);
}

.linked .button:insensitive,
.inline-toolbar.toolbar .button:insensitive,
.inline-toolbar.toolbar GtkToolButton > .button:insensitive,
.path-bar .button:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset 0 -1px alpha(@linked_button_shadow, 0.06),
                inset -1px 0 alpha(@linked_button_border, 0.2),
                inset 1px 0 alpha(@linked_button_shadow, 0.15);
}

.linked .button:first-child:insensitive,
.inline-toolbar.toolbar .button:first-child:insensitive,
.inline-toolbar.toolbar GtkToolButton:first-child > .button:insensitive,
.path-bar .button:first-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset 0 -1px alpha(@linked_button_shadow, 0.06),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset -1px 0 alpha(@linked_button_border, 0.2);
}

.linked .button:last-child:insensitive,
.inline-toolbar.toolbar .button:last-child:insensitive,
.inline-toolbar.toolbar GtkToolButton:last-child > .button:insensitive,
.path-bar .button:last-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset 0 -1px alpha(@linked_button_shadow, 0.06),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset -1px 0 alpha(@linked_button_shadow, 0.15);
}

.header-bar .linked .button,
.header-bar .linked .button:hover,
.primary-toolbar .linked .button,
.primary-toolbar .linked .button:hover,
.primary-toolbar .button.raised.linked,
.primary-toolbar .raised.linked .button,
.primary-toolbar .button.raised.linked:hover,
.primary-toolbar .raised.linked .button:hover {
    border-right-width: 0;
    border-left-width: 0;
    border-radius: 0;
    border-image-width: 4px 0 4px 0;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.2);
}

.header-bar .linked .button:first-child,
.header-bar .linked .button:hover:first-child,
.primary-toolbar .linked .button:first-child,
.primary-toolbar .linked .button:first-child:hover,
.primary-toolbar .button.raised.linked:first-child,
.primary-toolbar .raised.linked .button:first-child,
.primary-toolbar .button.raised.linked:first-child:hover,
.primary-toolbar .raised.linked .button:first-child:hover {
    border-width: 1px 0 1px 1px;
    border-radius: 3px 0 0 3px;
    border-image-width: 4px 0 4px 4px;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.2);
}

.header-bar .linked .button:last-child,
.header-bar .linked .button:last-child:hover,
.primary-toolbar .linked .button:last-child,
.primary-toolbar .linked .button:last-child:hover,
.primary-toolbar .button.raised.linked:last-child,
.primary-toolbar .raised.linked .button:last-child,
.primary-toolbar .button.raised.linked:last-child:hover,
.primary-toolbar .raised.linked .button:last-child:hover {
    border-width: 1px 1px 1px 0;
    border-radius: 0 3px 3px 0;
    border-image-width: 4px 4px 4px 0;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_shadow, 0.2);
}

.header-bar .linked .button:only-child,
.header-bar .linked .button:only-child:hover,
.primary-toolbar .linked .button:only-child,
.primary-toolbar .linked .button:only-child:hover,
.primary-toolbar .button.raised.linked:only-child,
.primary-toolbar .raised.linked .button:only-child,
.primary-toolbar .button.raised.linked:only-child:hover,
.primary-toolbar .raised.linked .button:only-child:hover {
    border-width: 1px;
    border-radius: 3px;
    border-image-width: 4px;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 0 -1px alpha(@linked_button_shadow, 0.1),
                inset 1px 0 alpha(@linked_button_shadow, 0.2),
                inset -1px 0 alpha(@linked_button_shadow, 0.2);
}
 
.header-bar .linked .button:active,
.header-bar .linked .button:active:hover,
.header-bar .linked .button:checked,
.header-bar .linked .button:checked:hover,
.primary-toolbar .linked .button:active,
.primary-toolbar .linked .button:active:hover,
.primary-toolbar .linked .button:checked,
.primary-toolbar .linked .button:checked:hover,
.primary-toolbar .button.raised.linked:active,
.primary-toolbar .raised.linked .button:active,
.primary-toolbar .button.raised.linked:active:hover,
.primary-toolbar .raised.linked .button:active:hover,
.primary-toolbar .button.raised.linked:checked,
.primary-toolbar .raised.linked .button:checked,
.primary-toolbar .button.raised.linked:checked:hover,
.primary-toolbar .raised.linked .button:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 1px 0 alpha(@linked_button_border, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.2),
                inset 0 -1px alpha(@linked_button_border, 0.06);
}

.header-bar .linked .button:first-child:active,
.header-bar .linked .button:first-child:active:hover,
.header-bar .linked .button:first-child:checked,
.header-bar .linked .button:first-child:checked:hover,
.primary-toolbar .linked .button:first-child:active,
.primary-toolbar .linked .button:first-child:active:hover,
.primary-toolbar .linked .button:first-child:checked,
.primary-toolbar .linked .button:first-child:checked:hover,
.primary-toolbar .button.raised.linked:first-child:active,
.primary-toolbar .raised.linked .button:first-child:active,
.primary-toolbar .button.raised.linked:first-child:active:hover,
.primary-toolbar .raised.linked .button:first-child:active:hover,
.primary-toolbar .button.raised.linked:first-child:checked,
.primary-toolbar .raised.linked .button:first-child:checked,
.primary-toolbar .button.raised.linked:first-child:checked:hover,
.primary-toolbar .raised.linked .button:first-child:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 1px 0 alpha(@linked_button_border, 0.08),
                inset -1px 0 alpha(@linked_button_border, 0.2),
                inset 0 -1px alpha(@linked_button_border, 0.06);
}

.header-bar .linked .button:last-child:active,
.header-bar .linked .button:last-child:active:hover,
.header-bar .linked .button:last-child:checked,
.header-bar .linked .button:last-child:checked:hover,
.primary-toolbar .linked .button:last-child:active,
.primary-toolbar .linked .button:last-child:active:hover,
.primary-toolbar .linked .button:last-child:checked,
.primary-toolbar .linked .button:last-child:checked:hover,
.primary-toolbar .button.raised.linked:last-child:active,
.primary-toolbar .raised.linked .button:last-child:active,
.primary-toolbar .button.raised.linked:last-child:active:hover,
.primary-toolbar .raised.linked .button:last-child:active:hover,
.primary-toolbar .button.raised.linked:last-child:checked,
.primary-toolbar .raised.linked .button:last-child:checked,
.primary-toolbar .button.raised.linked:last-child:checked:hover,
.primary-toolbar .raised.linked .button:last-child:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 1px 0 alpha(@linked_button_border, 0.2),
                inset -1px 0 alpha(@linked_button_border, 0.08),
                inset 0 -1px alpha(@linked_button_border, 0.06);
}

.header-bar .linked .button:only-child:active,
.header-bar .linked .button:only-child:active:hover,
.header-bar .linked .button:only-child:checked,
.header-bar .linked .button:only-child:checked:hover,
.primary-toolbar .linked .button:only-child:active,
.primary-toolbar .linked .button:only-child:active:hover,
.primary-toolbar .linked .button:only-child:checked,
.primary-toolbar .linked .button:only-child:checked:hover,
.primary-toolbar .button.raised.linked:only-child:active,
.primary-toolbar .raised.linked .button:only-child:active,
.primary-toolbar .button.raised.linked:only-child:active:hover,
.primary-toolbar .raised.linked .button:only-child:active:hover,
.primary-toolbar .button.raised.linked:only-child:checked,
.primary-toolbar .raised.linked .button:only-child:checked,
.primary-toolbar .button.raised.linked:only-child:checked:hover,
.primary-toolbar .raised.linked .button:only-child:checked:hover {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.1),
                inset 1px 0 alpha(@linked_button_border, 0.08),
                inset -1px 0 alpha(@linked_button_border, 0.08),
                inset 0 -1px alpha(@linked_button_border, 0.06);
}

.header-bar .linked .button:insensitive,
.primary-toolbar .linked .button:insensitive,
.primary-toolbar .button.raised.linked:insensitive,
.primary-toolbar .raised.linked .button:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset -1px 0 alpha(@linked_button_border, 0.15),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset 0 -1px alpha(@linked_button_shadow, 0.06);
}

.header-bar .linked .button:first-child:insensitive,
.primary-toolbar .linked .button:first-child:insensitive,
.primary-toolbar .button.raised.linked:first-child:insensitive,
.primary-toolbar .raised.linked .button:first-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset -1px 0 alpha(@linked_button_border, 0.15),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset 0 -1px alpha(@linked_button_shadow, 0.06);
}

.header-bar .linked .button:last-child:insensitive,
.primary-toolbar .linked .button:last-child:insensitive,
.primary-toolbar .button.raised.linked:last-child:insensitive,
.primary-toolbar .raised.linked .button:last-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset -1px 0 alpha(@linked_button_shadow, 0.15),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset 0 -1px alpha(@linked_button_shadow, 0.06);
}

.header-bar .linked .button:only-child:insensitive,
.primary-toolbar .linked .button:only-child:insensitive,
.primary-toolbar .button.raised.linked:only-child:insensitive,
.primary-toolbar .raised.linked .button:only-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.3),
                inset -1px 0 alpha(@linked_button_shadow, 0.15),
                inset 1px 0 alpha(@linked_button_shadow, 0.15),
                inset 0 -1px alpha(@linked_button_shadow, 0.06);
}

.header-bar .linked .button:insensitive:checked,
.primary-toolbar .linked .button:checked:insensitive,
.primary-toolbar .button.raised.linked:checked:insensitive,
.primary-toolbar .raised.linked .button:checked:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.05),
                inset -1px 0 alpha(@linked_button_border, 0.15),
                inset 1px 0 alpha(@linked_button_border, 0.05),
                inset 0 -1px alpha(@linked_button_border, 0.02);
}

.header-bar .linked .button:first-child:insensitive,
.primary-toolbar .linked .button:first-child:insensitive,
.primary-toolbar .button.raised.linked:first-child:insensitive,
.primary-toolbar .raised.linked .button:first-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.05),
                inset -1px 0 alpha(@linked_button_border, 0.15),
                inset 1px 0 alpha(@linked_button_border, 0.05),
                inset 0 -1px alpha(@linked_button_border, 0.02);
}

.header-bar .linked .button:last-child:insensitive,
.primary-toolbar .linked .button:last-child:insensitive,
.primary-toolbar .button.raised.linked:last-child:insensitive,
.primary-toolbar .raised.linked .button:last-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.05),
                inset -1px 0 alpha(@linked_button_border, 0.05),
                inset 1px 0 alpha(@linked_button_border, 0.05),
                inset 0 -1px alpha(@linked_button_border, 0.02);
}

.header-bar .linked .button:only-child:insensitive,
.primary-toolbar .linked .button:only-child:insensitive,
.primary-toolbar .button.raised.linked:only-child:insensitive,
.primary-toolbar .raised.linked .button:only-child:insensitive {
    box-shadow: inset 0 1px alpha(@linked_button_border, 0.05),
                inset 1px 0 alpha(@linked_button_border, 0.02),
                inset -1px 0 alpha(@linked_button_border, 0.02),
                inset 0 -1px alpha(@linked_button_border, 0.01);
}
