diff --git a/core/modules/overlay/css/overlay-child-rtl.css b/core/modules/overlay/css/overlay-child-rtl.css
index 0751b56..4d88052 100644
--- a/core/modules/overlay/css/overlay-child-rtl.css
+++ b/core/modules/overlay/css/overlay-child-rtl.css
@@ -12,13 +12,9 @@ html {
   left: auto;
 }
 #overlay-close-wrapper {
-  left: 0;
+  left: 31px;
   right: auto;
 }
-#overlay-close,
-#overlay-close:hover {
-  border-radius: 12px 0 0 12px;
-}
 
 /**
  * Tabs on the overlay.
diff --git a/core/modules/overlay/css/overlay-child.css b/core/modules/overlay/css/overlay-child.css
index 4610749..57b0c1a 100644
--- a/core/modules/overlay/css/overlay-child.css
+++ b/core/modules/overlay/css/overlay-child.css
@@ -26,7 +26,9 @@
   width: 100%;
 }
 #overlay-titlebar {
-  padding: 0 20px;
+  background: hsla(0, 0%, 42%, 0.65);
+  border-top-left-radius: 5px;
+  border-top-right-radius: 5px;
   position: relative;
   white-space: nowrap;
   z-index: 100;
@@ -35,12 +37,17 @@
   background: #fff;
   clear: both;
   color: #000;
-  padding: .5em 1em;
   position: relative;
+  border-bottom-left-radius: 5px;
+  border-bottom-right-radius: 5px;
+}
+#overlay #page {
+  background: transparent;
 }
 
 #overlay-title-wrapper {
   overflow: hidden;
+  padding: 15px;
 }
 #overlay-title {
   color: #fff;
@@ -59,74 +66,25 @@
 
 #overlay-close-wrapper {
   position: absolute;
-  right: 0; /* LTR */
+  right: 31px; /* LTR */
+  top: 23px;
 }
 #overlay-close,
 #overlay-close:hover {
-  background: #ffffff url(../images/close.png) no-repeat;
-  border-radius: 0 12px 12px 0; /* LTR */
+  background: transparent url(../images/close.png) no-repeat;
   display: block;
-  height: 26px;
+  height: 16px;
   margin: 0;
   padding: 0;
-  /* Replace with position:fixed to get a scrolling close button. */
-  position: absolute;
-  width: 26px;
-}
-
-/**
- * Tabs on the overlay.
- */
-#overlay-tabs {
-  line-height: 26px;
-  margin: -28px 0 0 0;
   position: absolute;
-  right: 20px; /* LTR */
-  text-transform: uppercase;
-}
-#overlay-tabs li {
-  display: inline-block;
-  list-style: none;
-  margin: 0;
-  padding: 0;
-}
-#overlay-tabs li a,
-#overlay-tabs li a:active,
-#overlay-tabs li a:visited,
-#overlay-tabs li a:hover {
-  background-color: #a6a7a2;
-  border-radius: 8px 8px 0 0;
-  color: #000;
-  display: inline-block;
-  font-size: 11px;
-  font-weight: bold;
-  margin: 0 1px;
-  outline: 0;
-  padding: 0 14px;
-  text-decoration: none;
-}
-#overlay-tabs li.active a,
-#overlay-tabs li.active a.active,
-#overlay-tabs li.active a:active,
-#overlay-tabs li.active a:visited {
-  background-color: #fff;
-  margin-bottom: 0;
-  padding-bottom: 2px;
-}
-#overlay-tabs li a:focus,
-#overlay-tabs li a:hover {
-  color: #fff;
-}
-#overlay-tabs li.active a:focus,
-#overlay-tabs li.active a:hover {
-  color: #000;
+  width: 16px;
 }
 
 /**
  * Add to shortcuts link
  */
 #overlay-titlebar .add-or-remove-shortcuts {
-  padding-top: 0.6em;
+  padding-top: 0.4em;
 }
 #overlay-titlebar .add-or-remove-shortcuts .icon {
   margin-top: 4px;
@@ -153,3 +111,111 @@
 .overlay-disable-message-focused #overlay-dismiss-message {
   float: right;
 }
+
+/**
+ * Primary and secondary tabs.
+ */
+#overlay-tabs {
+  background-color: transparent;
+  border-radius: 5px 5px 0 0 ;
+  font-size: 13px;
+  font-size: 0.8125rem;
+  line-height: 1;
+}
+#overlay-tabs ul.primary,
+#overlay-tabs ul.secondary {
+  list-style-type: none;
+  margin: 0;
+  padding: 0;
+  position: relative;
+  display: block;
+  float: none;
+}
+#overlay-tabs ul.secondary {
+  background-color: #ffffff;
+}
+#overlay-tabs ul.primary:after,
+#overlay-tabs ul.secondary:after {
+  content: "";
+  display: table;
+  clear: both;
+}
+#overlay-tabs ul.primary li,
+#overlay-tabs ul.secondary li {
+  float: left;
+  position: relative;
+}
+#overlay-tabs a {
+  display: block;
+}
+#overlay-tabs ul.primary {
+  font-size: 12px;
+  font-size: 0.75rem;
+}
+#overlay-tabs ul.primary:before,
+#overlay-tabs ul.secondary:before {
+  content: ' ';
+  bottom: 0;
+  display: block;
+  height: 0;
+  position: absolute;
+  width: 100%;
+}
+#overlay-tabs ul.primary:before {
+  border-bottom: 1px solid #b3b3b3;
+}
+#overlay-tabs ul.secondary:before {
+  border-bottom: 1px solid #d9d8d4;
+}
+#overlay-tabs ul.primary li {
+  margin-bottom: -1px;
+  top: -1px;
+}
+#overlay-tabs ul.primary .active{
+  z-index: 1;
+}
+#overlay-tabs ul.primary a {
+  border-top-left-radius: 5px;
+  color: #8dd2ff;
+  font-weight: bold;
+  padding: 0.6667em 1.25em;
+  text-decoration: none;
+  text-transform: uppercase;
+}
+#overlay-tabs ul.primary a:hover {
+  background: transparent;
+  color: #8dd2ff;
+  text-decoration: none;
+  color: #ffffff;
+  -webkit-transition: all 1s;
+}
+#overlay-tabs ul.primary a:active {
+  color: #004f80;
+}
+#overlay-tabs ul.primary .active a {
+  background-color: #ffffff;
+  border-top-right-radius: 5px;
+  color: #004f80;
+}
+
+#overlay-tabs ul.secondary a {
+  border-bottom: 2px solid transparent;
+  background: transparent;
+  color: #0074bd;
+  margin-left: 1.1538em;
+  padding: 0.75em 0 0.333em;
+}
+#overlay-tabs ul.secondary .active a {
+  border-bottom-color: #004f80;
+  color: #004f80;
+  background-color: #ffffff;
+}
+#overlay-tabs ul.secondary a:focus,
+#overlay-tabs ul.secondary a:hover {
+  color: #008ee6 !important;
+  background-color: #ffffff;
+  border-bottom-color: #008ee6 !important;
+}
+#overlay-tabs ul.secondary a:hover {
+  text-decoration: none;
+}
diff --git a/core/modules/overlay/images/close.png b/core/modules/overlay/images/close.png
index 44d2b6b..d39edae 100644
--- a/core/modules/overlay/images/close.png
+++ b/core/modules/overlay/images/close.png
@@ -1,14 +1,27 @@
 PNG
 
-   IHDR         JL   	pHYs       
-OiCCPPhotoshop ICC profile  xڝSgTS=BKKoR RB&*!	J!QEEȠQ,
-!{kּ>H3Q5B.@
-$p d!s# ~<<+"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g/jBFS[b[O>zG4<YyJTiӓgό}~.`ۢ{cjotE;;\tWW:_mt<Oǻ\kz{f7y՞9=ݽzo~r'˻w'O_@AC݇?[jwGCˆ8>99?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3-    cHRM  z%        u0  `  :  o_F   IDATx	0D5FN;H8\bbIZL(806q:" 4B03Df,3|3HU"4ݛBVbf6,.)^6fyafhV~&y]u?аqzG`~A=gU݌	UM3y&J hۻg    IENDB`
\ No newline at end of file
+   IHDR         a   	pHYs       iTXtXML:com.adobe.xmp     <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
+   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+      <rdf:Description rdf:about=""
+            xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+         <xmp:CreatorTool>Pixelmator  1.6.7</xmp:CreatorTool>
+      </rdf:Description>
+      <rdf:Description rdf:about=""
+            xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
+         <tiff:Orientation>1</tiff:Orientation>
+         <tiff:YResolution>72</tiff:YResolution>
+         <tiff:ResolutionUnit>1</tiff:ResolutionUnit>
+         <tiff:Compression>5</tiff:Compression>
+         <tiff:XResolution>72</tiff:XResolution>
+      </rdf:Description>
+      <rdf:Description rdf:about=""
+            xmlns:exif="http://ns.adobe.com/exif/1.0/">
+         <exif:PixelXDimension>16</exif:PixelXDimension>
+         <exif:ColorSpace>65535</exif:ColorSpace>
+         <exif:PixelYDimension>16</exif:PixelYDimension>
+      </rdf:Description>
+   </rdf:RDF>
+</x:xmpmeta>
+6   IDAT8M
+@"nz x.<V1_HlFA&0ޣiZkMm`Ř>%x&ﲮЇCM9<EΆ>~319cSn^fWTJo&22||`'>npD|
+ϩ^Zx30&k<1&]INV?/;xʀSO~ެ*f    IENDB`
\ No newline at end of file
diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module
index 180ea97..89da4d9 100644
--- a/core/modules/overlay/overlay.module
+++ b/core/modules/overlay/overlay.module
@@ -427,7 +427,7 @@ function overlay_preprocess_maintenance_page(&$variables) {
  * @see overlay.tpl.php
  */
 function template_preprocess_overlay(&$variables) {
-  $variables['tabs'] = menu_primary_local_tasks();
+  $variables['tabs'] = menu_local_tabs();
   $variables['title'] = drupal_get_title();
   $variables['disable_overlay'] = overlay_disable_message();
 
@@ -450,7 +450,7 @@ function template_preprocess_overlay(&$variables) {
  */
 function overlay_preprocess_page(&$variables) {
   if (overlay_get_mode() == 'child') {
-    unset($variables['tabs']['#primary']);
+    unset($variables['tabs']);
   }
 }
 
diff --git a/core/modules/overlay/templates/overlay.html.twig b/core/modules/overlay/templates/overlay.html.twig
index 732bc33..a12fee5 100644
--- a/core/modules/overlay/templates/overlay.html.twig
+++ b/core/modules/overlay/templates/overlay.html.twig
@@ -21,15 +21,13 @@
 {{ disable_overlay }}
 <div{{ attributes }}>
   <div id="overlay-titlebar" class="clearfix">
-    <div id="overlay-title-wrapper" class="clearfix">
-      <h1{{ title_attributes }}>{{ title }}</h1>
-    </div>
     <div id="overlay-close-wrapper">
       <a id="overlay-close" href="#" class="overlay-close" role="button" aria-controls="overlay-content"><span class="visually-hidden">{{ 'Close overlay'|t }}</span></a>
     </div>
-    {% if tabs %}
-      <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2><ul id="overlay-tabs">{{ tabs }}</ul>
-    {% endif %}
+    <div id="overlay-title-wrapper" class="clearfix">
+      <h1{{ title_attributes }}>{{ title }}</h1>
+    </div>
+    {% if tabs %}<div id="overlay-tabs">{{ tabs }}</div>{% endif %}
   </div>
   <div{{ content_attributes }}>
     {{ page }}
diff --git a/core/modules/shortcut/css/shortcut.module.css b/core/modules/shortcut/css/shortcut.module.css
index 8575904..4dd7767 100644
--- a/core/modules/shortcut/css/shortcut.module.css
+++ b/core/modules/shortcut/css/shortcut.module.css
@@ -9,7 +9,6 @@
 .add-or-remove-shortcuts .icon {
   display: block;
   float: left; /* LTR */
-  margin-top: 5px;
 }
 .add-or-remove-shortcuts .text {
   display: none;
diff --git a/core/modules/shortcut/css/shortcut.theme-rtl.css b/core/modules/shortcut/css/shortcut.theme-rtl.css
index 8a687d9..4cb350c 100644
--- a/core/modules/shortcut/css/shortcut.theme-rtl.css
+++ b/core/modules/shortcut/css/shortcut.theme-rtl.css
@@ -11,21 +11,9 @@
   margin-left: 0;
   margin-right: 8px;
 }
-.add-shortcut a:focus .icon,
-.add-shortcut a:hover .icon {
-  background-position: 0 -24px;
-}
-.remove-shortcut a:focus .icon,
-.remove-shortcut a:hover .icon {
-  background-position: -12px -24px;
-}
 .add-or-remove-shortcuts .text {
   padding: 0 10px 0 6px;
 }
-.add-or-remove-shortcuts a:focus .text,
-.add-or-remove-shortcuts a:hover .text {
-  border-radius: 5px 0 0 5px;
-}
 
 /**
  * Toolbar.
diff --git a/core/modules/shortcut/css/shortcut.theme.css b/core/modules/shortcut/css/shortcut.theme.css
index a9525a7..55f99c2 100644
--- a/core/modules/shortcut/css/shortcut.theme.css
+++ b/core/modules/shortcut/css/shortcut.theme.css
@@ -32,21 +32,21 @@
  */
 .add-or-remove-shortcuts .icon {
   background: transparent url(../images/shortcut-add.png) no-repeat;
-  height: 12px;
+  height: 16px;
   margin-left: 8px; /* LTR */
   overflow: hidden;
-  text-indent: 12px;
-  width: 12px;
+  text-indent: 16px;
+  width: 16px;
 }
 .add-shortcut a:focus .icon,
 .add-shortcut a:hover .icon {
-  background-position: 0 -12px; /* LTR */
+  background-position: -16px 0;
 }
 .remove-shortcut .icon {
   margin-top: 4px;
-  background-position: -12px 0;
+  background-position: -16px 0;
 }
 .remove-shortcut a:focus .icon,
 .remove-shortcut a:hover .icon {
-  background-position: -12px -12px; /* LTR */
+  background-position: 0 0;
 }
diff --git a/core/modules/shortcut/images/shortcut-add.png b/core/modules/shortcut/images/shortcut-add.png
index 2924557..67bc0cb 100644
--- a/core/modules/shortcut/images/shortcut-add.png
+++ b/core/modules/shortcut/images/shortcut-add.png
@@ -1,5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Y)Σ-rqr.d._xpUەZM׍vm=+KGǔ^WWbj>:>>>v}/avO8	
+FV>2	u/_$\BCv<	5]s.,4&yUx~xw-bEDCĻHGKwFGEGME{EEKX,YFZ ={$vrK
+.3\rϮ_Yq*©L_wד+]eD]cIIIOAu_䩔)3ѩiB%a+]3='/40CiU@ёL(sYfLH$%YjgGeQn~5f5wugv5k֮\۹Nw]m mHFˍenQQ`hBBQ-[lllfjۗ"^bO%ܒY}WwvwXbY^Ю]WVa[q`id2JjGէ{׿m>PkAma꺿g_DHGGu;776ƱqoC{P38!9<y}'ZZ։6i{L{ӝ-?|gKϑ9w~Bƅ:Wt>ҝˁ^r۽Ug9];}}_~imp㭎}]/}.{^=}^?z8hc'
+O*?f`ϳgC/Oϩ+FFGGόzˌㅿ)ѫ~wgbk?Jި9mdwi獵ޫ?cǑOO?w|	x&mf2:Y~   	pHYs       iTXtXML:com.adobe.xmp     <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
+   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+      <rdf:Description rdf:about=""
+            xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
+         <tiff:ResolutionUnit>1</tiff:ResolutionUnit>
+         <tiff:Compression>5</tiff:Compression>
+         <tiff:XResolution>72</tiff:XResolution>
+         <tiff:Orientation>1</tiff:Orientation>
+         <tiff:YResolution>72</tiff:YResolution>
+      </rdf:Description>
+      <rdf:Description rdf:about=""
+            xmlns:exif="http://ns.adobe.com/exif/1.0/">
+         <exif:PixelXDimension>32</exif:PixelXDimension>
+         <exif:ColorSpace>1</exif:ColorSpace>
+         <exif:PixelYDimension>16</exif:PixelYDimension>
+      </rdf:Description>
+      <rdf:Description rdf:about=""
+            xmlns:dc="http://purl.org/dc/elements/1.1/">
+         <dc:subject>
+            <rdf:Bag/>
+         </dc:subject>
+      </rdf:Description>
+      <rdf:Description rdf:about=""
+            xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+         <xmp:CreatorTool>Pixelmator  1.6.7</xmp:CreatorTool>
+      </rdf:Description>
+   </rdf:RDF>
+</x:xmpmeta>
+sQl  IDATHUmLSg~mo{[2EXP1"K.!l~l1KaBHi[l	`&S\R~wZĲys>眷cҥKL&SvmmL>+<m#ݞxJ
+祕2 bE	Ui&[kS&Lcר&皗koˈj~__N(@[WW=a7IbGֺzd%Y˝ՌrEy{]Y.0#`4C]H`źͅb&o}}7*'Ȉ}wZg]Je{iY,_jltlXSfqbt&0(~
+EV}ّGf8`3,VS#)juwFF;JJKPPP UBH'4$]eʡiش'x{$그Kx!h/Q'LCX\#8W*%A:q쫣Und(R1(T*Ié10cS;ҞγZKV`6wH% xn EpçCoq1#*RJfAޣ<1 cvf#W5	p<%\8vyV1%3d5
+]Nȑ#ɩݡdʸy"4ecc!LNN7??yĭ~,"MJ K&n`Rh<76䉇vۨHhPNMUU\g}iJ%;L{.!zhcȆ7:] e*vJ@Q!ʧFibAsjApߧVZZ9Y;rAUYw5j)`Gi/\ؠDc!px5''7,v$
+RKݾVOIm%{=gcڟM-[4<h$9|'@V]no$䫐&	K5^BHhpOҎ_%v~ix^zK9usIݤT%uzHΞ=*EO+:#fCVϟU#)r+9?`p7K}'Ǭ=    IENDB`
\ No newline at end of file
diff --git a/core/themes/bartik/css/style.css b/core/themes/bartik/css/style.css
index a7a36a8..f67c1ee 100644
--- a/core/themes/bartik/css/style.css
+++ b/core/themes/bartik/css/style.css
@@ -1519,6 +1519,11 @@ div.admin-panel .description {
 .overlay #messages {
   width: auto;
 }
+.overlay-open #page {
+  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
+  filter: gray; /* IE6-9 */
+  -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
+}
 
 /* ---------- book ----------- */
 .book-navigation .menu {
diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme
index 3b11032..07fa209 100644
--- a/core/themes/seven/seven.theme
+++ b/core/themes/seven/seven.theme
@@ -28,12 +28,14 @@ function seven_preprocess_html(&$vars) {
  * Implements hook_preprocess_HOOK() for page.tpl.php.
  */
 function seven_preprocess_page(&$vars) {
-  $vars['primary_local_tasks'] = $vars['tabs'];
-  unset($vars['primary_local_tasks']['#secondary']);
-  $vars['secondary_local_tasks'] = array(
-    '#theme' => 'menu_local_tasks',
-    '#secondary' => isset($vars['tabs']['#secondary']) ? $vars['tabs']['#secondary'] : '',
-  );
+  if (isset($vars['tabs'])) {
+    $vars['primary_local_tasks'] = $vars['tabs'];
+    unset($vars['primary_local_tasks']['#secondary']);
+    $vars['secondary_local_tasks'] = array(
+      '#theme' => 'menu_local_tasks',
+      '#secondary' => isset($vars['tabs']['#secondary']) ? $vars['tabs']['#secondary'] : '',
+    );
+  }
 }
 
 /**
diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css
index 86ac064..68df877 100644
--- a/core/themes/seven/style.css
+++ b/core/themes/seven/style.css
@@ -229,7 +229,7 @@ pre {
 /**
  * Tabs.
  */
-ul.primary {
+div[role=tab] ul.primary {
   float: right; /* LTR */
   border-bottom: none;
   text-transform: uppercase;
@@ -237,18 +237,18 @@ ul.primary {
   margin: 0;
   padding-top: 0;
 }
-ul.primary li {
+div[role=tab] ul.primary li {
   float: left; /* LTR */
   list-style: none;
   height: 2.60em;
   margin: 0 2px;
 }
-ul.primary li a:link,
-ul.primary li a.active,
-ul.primary li a:active,
-ul.primary li a:visited,
-ul.primary li a:hover,
-ul.primary li.active a {
+div[role=tab] ul.primary li a:link,
+div[role=tab] ul.primary li a.active,
+div[role=tab] ul.primary li a:active,
+div[role=tab] ul.primary li a:visited,
+div[role=tab] ul.primary li a:hover,
+div[role=tab] ul.primary li.active a {
   display: block;
   float: left; /* LTR */
   padding: 0.615em 18px;
@@ -260,23 +260,23 @@ ul.primary li.active a {
   border-color: #a6a7a2;
   border-radius: 8px 8px 0 0;
 }
-ul.primary li.active a,
-ul.primary li.active a.active,
-ul.primary li.active a:active,
-ul.primary li.active a:visited {
+div[role=tab] ul.primary li.active a,
+div[role=tab] ul.primary li.active a.active,
+div[role=tab] ul.primary li.active a:active,
+div[role=tab] ul.primary li.active a:visited {
   background-color: #fff;
   border-color: #c9cac4;
 }
-ul.primary li a:hover {
+div[role=tab] ul.primary li a:hover {
   color: #fff;
 }
-ul.primary li.active a:hover {
+div[role=tab] ul.primary li.active a:hover {
   color: #000;
 }
 .tabs-secondary {
   clear: both;
 }
-ul.secondary {
+.tabs-secondary ul.secondary {
   float: right; /* LTR */
   font-size: 0.923em;
   padding: 0 3px 5px;
@@ -284,25 +284,25 @@ ul.secondary {
   overflow: hidden;
   background-color: #fff;
 }
-ul.secondary li {
+.tabs-secondary ul.secondary li {
   margin: 0 5px;
   float: none; /* LTR */
 }
-ul.secondary li a {
+.tabs-secondary ul.secondary li a {
   background-color: #ddd;
   color: #000;
   display: inline-block;
 }
-ul.secondary li a,
-ul.secondary li a:hover,
-ul.secondary li.active a,
-ul.secondary li.active a.active {
+.tabs-secondary ul.secondary li a,
+.tabs-secondary ul.secondary li a:hover,
+.tabs-secondary ul.secondary li.active a,
+.tabs-secondary ul.secondary li.active a.active {
   padding: 2px 10px;
   border-radius: 7px;
 }
-ul.secondary li a:hover,
-ul.secondary li.active a,
-ul.secondary li.active a.active {
+.tabs-secondary ul.secondary li a:hover,
+.tabs-secondary ul.secondary li.active a,
+.tabs-secondary ul.secondary li.active a.active {
   color: #fff;
   background: #666;
 }
@@ -990,35 +990,14 @@ body.in-maintenance #branding .step-indicator {
 }
 
 /* Overlay theming */
-.overlay #branding {
-  background-color: #fff;
-  padding-top: 15px;
-  padding-bottom: 15px;
-}
-.overlay #branding h1.page-title,
+.overlay #branding,
 .overlay #left,
 .overlay #footer {
   display: none;
 }
 .overlay #page {
   margin: 0;
-  padding: 0 20px;
-}
-.overlay #branding .breadcrumb {
-  float: left; /* LTR */
-  position: relative;
-  z-index: 10;
-}
-#overlay-tabs {
-  bottom: -1px;
-  font-size: 1.54em;
-  line-height: 1.54em;
-  margin: 0;
-}
-.overlay ul.secondary {
-  background: transparent none;
-  margin: -1.4em 0 0.3em 0; /* LTR */
-  overflow: visible;
+  padding: 15px;
 }
 .overlay #content {
   padding: 0;
@@ -1032,7 +1011,7 @@ h1#overlay-title {
 .add-or-remove-shortcuts a:hover span.text {
   color: #fff;
   background-color: #5f605b;
-  padding: 0 6px;
+  padding: 2px 6px;
   border-radius: 5px;
 }
 
