.task-mail:is(.action-show, .action-preview) #layout-content > .header {
  min-height: 60px;
  padding: 8px 16px;
  background: #fff;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar {
  display: flex !important;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding: 3px 7px;
  border: 1px solid #d8e3eb;
  border-radius: 6px;
  background: #f8fafb;
  scrollbar-width: thin;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar > * {
  flex: none;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar > a,
.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton > a:not(.dropdown) {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: 32px;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 8px !important;
  border-radius: 4px;
  color: #10253b;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar a .inner {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton {
  display: inline-flex;
  align-items: center;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton > a.dropdown {
  display: inline-flex;
  width: 14px !important;
  min-width: 14px;
  height: 34px;
  align-items: center;
  padding: 0 !important;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton > a.dropdown .inner {
  display: none !important;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar a.disabled {
  color: #617184;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar a:not(.disabled):hover,
.task-mail:is(.action-show, .action-preview) #mailtoolbar a:not(.disabled):focus-visible {
  background: #e8f4f3;
  color: #075d57;
}

.task-mail:is(.action-show, .action-preview) #mailtoolbar .spacer {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  background: #d8e3eb;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #layout-content,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #layout-content > .header,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-content {
  background: #17283d;
  color: #f1f7fb;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #layout-content > .header {
  border-color: #34485d;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar {
  border-color: #3b5368;
  background: #20354a;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar > a,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton > a:not(.dropdown),
html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar .dropbutton > a.dropdown {
  color: #e8f2f7 !important;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar a.disabled {
  color: #a4b8c5 !important;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar a:not(.disabled):hover,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar a:not(.disabled):focus-visible {
  background: #315069;
  color: #fff !important;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #mailtoolbar .spacer {
  background: #496176;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header > .header,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header .header-content {
  background: transparent;
  color: #dbe8f0;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header a {
  color: #71ddd0;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header a:hover,
html.dark-mode body.task-mail:is(.action-show, .action-preview) #message-header a:focus-visible {
  color: #a5f3e9;
}

html.dark-mode body.task-mail:is(.action-show, .action-preview) #attachment-list {
  border-color: #34485d;
  background: #20354a;
  color: #e8f2f7;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu {
  border-color: #405b72 !important;
  background: #20354a !important;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu > li > a,
html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu .dropbutton > a {
  color: #e8f2f7 !important;
  opacity: 1 !important;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu a.disabled {
  color: #a9bdc9 !important;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu a .inner {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #layout-content #toolbar-menu > li.spacer {
  background: #496176;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #messagelist-content,
html.dark-mode body.bh-pilot-desktop.task-mail.action-none #messagelist,
html.dark-mode body.bh-pilot-desktop.task-mail.action-none #messagelist tbody,
html.dark-mode body.bh-pilot-desktop.task-mail.action-none #messagelist tr {
  background: #17283d !important;
}

html.dark-mode body.bh-pilot-desktop.task-mail.action-none #messagelist td {
  border-bottom-color: #34485d !important;
}

body.bh-pilot-desktop.task-mail.action-none #messagelist td.subject {
  display: table-cell !important;
  vertical-align: middle;
}
