/* Label assignment controls: multiple labels per email, clear add/remove states. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
html.iframe body.task-mail.action-show .cybrense-message-labels,
html.iframe body.action-show .cybrense-message-labels {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow: visible !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-top,
html.iframe body.task-mail.action-show .cybrense-message-labels-top,
html.iframe body.action-show .cybrense-message-labels-top {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-list,
html.iframe body.task-mail.action-show .cybrense-message-labels-list,
html.iframe body.action-show .cybrense-message-labels-list {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 9px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button.is-status,
html.iframe body.task-mail.action-show .cybrense-label-assign-button.is-status,
html.iframe body.action-show .cybrense-label-assign-button.is-status {
  cursor: default !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels .cybrense-message-labels-list,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels:not(.is-open) .cybrense-message-labels-list,
html.iframe body.task-mail.action-show .cybrense-message-labels .cybrense-message-labels-list,
html.iframe body.task-mail.action-show .cybrense-message-labels:not(.is-open) .cybrense-message-labels-list,
html.iframe body.action-show .cybrense-message-labels .cybrense-message-labels-list,
html.iframe body.action-show .cybrense-message-labels:not(.is-open) .cybrense-message-labels-list {
  display: flex !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip,
html.iframe body.task-mail.action-show .cybrense-message-label-chip,
html.iframe body.action-show .cybrense-message-label-chip {
  position: relative !important;
  height: 30px !important;
  min-height: 30px !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 8px 0 11px !important;
  overflow: hidden !important;
  border: 1px solid #d5e3f4 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #12213a !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.84) inset !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip:after,
html.iframe body.task-mail.action-show .cybrense-message-label-chip:after,
html.iframe body.action-show .cybrense-message-label-chip:after {
  content: "+" !important;
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 1px !important;
  border-radius: 50% !important;
  background: #edf4ff !important;
  color: #0969ff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip:hover,
html.iframe body.task-mail.action-show .cybrense-message-label-chip:hover,
html.iframe body.action-show .cybrense-message-label-chip:hover {
  border-color: #b9d5ff !important;
  background: #f4f9ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip.active,
html.iframe body.task-mail.action-show .cybrense-message-label-chip.active,
html.iframe body.action-show .cybrense-message-label-chip.active {
  border-color: #96c2ff !important;
  background: #eaf4ff !important;
  color: #0969ff !important;
  box-shadow: 0 10px 20px rgba(9, 105, 255, 0.1) !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip.active:after,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip[data-label-state="assigned"]:after,
html.iframe body.task-mail.action-show .cybrense-message-label-chip.active:after,
html.iframe body.task-mail.action-show .cybrense-message-label-chip[data-label-state="assigned"]:after,
html.iframe body.action-show .cybrense-message-label-chip.active:after,
html.iframe body.action-show .cybrense-message-label-chip[data-label-state="assigned"]:after {
  content: "\00d7" !important;
  background: #ffffff !important;
  color: #e11d48 !important;
  font-size: 15px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip.active:hover,
html.iframe body.task-mail.action-show .cybrense-message-label-chip.active:hover,
html.iframe body.action-show .cybrense-message-label-chip.active:hover {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip[data-color="green"].active,
html.iframe body.task-mail.action-show .cybrense-message-label-chip[data-color="green"].active,
html.iframe body.action-show .cybrense-message-label-chip[data-color="green"].active {
  border-color: rgba(20, 184, 117, 0.34) !important;
  background: rgba(20, 184, 117, 0.13) !important;
  color: #087a4e !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip[data-color="purple"].active,
html.iframe body.task-mail.action-show .cybrense-message-label-chip[data-color="purple"].active,
html.iframe body.action-show .cybrense-message-label-chip[data-color="purple"].active {
  border-color: rgba(143, 73, 232, 0.32) !important;
  background: rgba(143, 73, 232, 0.13) !important;
  color: #7034c5 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip[data-color="yellow"].active,
html.iframe body.task-mail.action-show .cybrense-message-label-chip[data-color="yellow"].active,
html.iframe body.action-show .cybrense-message-label-chip[data-color="yellow"].active {
  border-color: rgba(255, 183, 67, 0.42) !important;
  background: rgba(255, 183, 67, 0.18) !important;
  color: #8a5a0b !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip[data-color="gray"].active,
html.iframe body.task-mail.action-show .cybrense-message-label-chip[data-color="gray"].active,
html.iframe body.action-show .cybrense-message-label-chip[data-color="gray"].active {
  border-color: #d6e0ee !important;
  background: #eef3fa !important;
  color: #617086 !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-top,
  html.iframe body.task-mail.action-show .cybrense-message-labels-top,
  html.iframe body.action-show .cybrense-message-labels-top {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button,
  html.iframe body.task-mail.action-show .cybrense-label-assign-button,
  html.iframe body.action-show .cybrense-label-assign-button {
    width: 100% !important;
  }
}

/* Final message-view placement: labels should feel like a compact mail control, not a separate big panel. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
html.iframe body.task-mail.action-show .cybrense-message-labels,
html.iframe body.action-show .cybrense-message-labels {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  margin: 10px 0 0 !important;
  padding: 10px 12px 12px !important;
  border: 1px solid #dbe8f7 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 8px 22px rgba(31, 56, 91, 0.06) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-top,
html.iframe body.task-mail.action-show .cybrense-message-labels-top,
html.iframe body.action-show .cybrense-message-labels-top {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-title,
html.iframe body.task-mail.action-show .cybrense-message-labels-title,
html.iframe body.action-show .cybrense-message-labels-title {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #50617a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  user-select: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button.is-status,
html.iframe body.task-mail.action-show .cybrense-label-assign-button.is-status,
html.iframe body.action-show .cybrense-label-assign-button.is-status,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button,
html.iframe body.task-mail.action-show .cybrense-label-assign-button,
html.iframe body.action-show .cybrense-label-assign-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: 160px !important;
  height: 28px !important;
  min-height: 28px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0969ff !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 20px rgba(9, 105, 255, 0.18) !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button:before,
html.iframe body.task-mail.action-show .cybrense-label-assign-button:before,
html.iframe body.action-show .cybrense-label-assign-button:before {
  font-size: 12px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-list,
html.iframe body.task-mail.action-show .cybrense-message-labels-list,
html.iframe body.action-show .cybrense-message-labels-list {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-label-chip,
html.iframe body.task-mail.action-show .cybrense-message-label-chip,
html.iframe body.action-show .cybrense-message-label-chip {
  height: 28px !important;
  min-height: 28px !important;
  max-width: 100% !important;
  padding: 0 7px 0 10px !important;
  font-size: 11.5px !important;
  box-shadow: none !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
  html.iframe body.task-mail.action-show .cybrense-message-labels,
  html.iframe body.action-show .cybrense-message-labels {
    margin-top: 10px !important;
    padding: 10px !important;
    border-radius: 13px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels-top,
  html.iframe body.task-mail.action-show .cybrense-message-labels-top,
  html.iframe body.action-show .cybrense-message-labels-top {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button.is-status,
  html.iframe body.task-mail.action-show .cybrense-label-assign-button.is-status,
  html.iframe body.action-show .cybrense-label-assign-button.is-status,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-label-assign-button,
  html.iframe body.task-mail.action-show .cybrense-label-assign-button,
  html.iframe body.action-show .cybrense-label-assign-button {
    width: auto !important;
    max-width: 150px !important;
  }
}

/* Message body card: keep the actual email content visually aligned with header and labels. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-content,
html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  width: min(100%, 940px) !important;
  max-width: 940px !important;
  min-width: 0 !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody,
html.iframe body.task-mail.action-show #messagebody,
html.iframe body.action-show #messagebody {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 180px !important;
  margin: 0 auto !important;
  padding: 22px 24px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
  color: #10223d !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.72 !important;
  box-shadow: 0 18px 42px rgba(29, 51, 84, 0.065) !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody > .message-part,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody > .message-htmlpart,
html.iframe body.task-mail.action-show #messagebody > .message-part,
html.iframe body.task-mail.action-show #messagebody > .message-htmlpart,
html.iframe body.action-show #messagebody > .message-part,
html.iframe body.action-show #messagebody > .message-htmlpart {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody p:first-child,
html.iframe body.task-mail.action-show #messagebody p:first-child,
html.iframe body.action-show #messagebody p:first-child {
  margin-top: 0 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody p:last-child,
html.iframe body.task-mail.action-show #messagebody p:last-child,
html.iframe body.action-show #messagebody p:last-child {
  margin-bottom: 0 !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-content,
  html.iframe body.task-mail.action-show #message-content,
  html.iframe body.action-show #message-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 10px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody,
  html.iframe body.task-mail.action-show #messagebody,
  html.iframe body.action-show #messagebody {
    min-height: 150px !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }
}

/* Mail list date must stay visible in normal, hover, selected and action-menu states. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.cybrense-row-date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .listing-hover-menu + span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:hover td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:hover td.cybrense-subject-cell > span.cybrense-row-date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected td.cybrense-subject-cell > span.cybrense-row-date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused td.cybrense-subject-cell > span.cybrense-row-date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-action-active td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-action-active td.cybrense-subject-cell > span.cybrense-row-date {
  position: static !important;
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 62px !important;
  max-width: 82px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #30425c !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  line-height: 18px !important;
  text-align: right !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

@media screen and (max-width: 560px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.date,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.cybrense-row-date,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .listing-hover-menu + span.date {
    min-width: 58px !important;
    max-width: 66px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 11px !important;
  }
}

/* Final message action toolbar polish: stable icons, clean spacing, no cramped arrows. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dce7f3 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a.back-list-button {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #425a78 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 52px) !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 4px 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #dce7f5 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px rgba(36, 57, 91, 0.08) !important;
  scrollbar-width: none !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar::-webkit-scrollbar {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu > li,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar > li,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar a {
  position: relative !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 34px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #405674 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button:before {
  position: static !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  color: currentColor !important;
  font-size: 17px !important;
  line-height: 20px !important;
  text-align: center !important;
  text-indent: 0 !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-basis: 16px !important;
  margin-left: -3px !important;
  opacity: 0.72 !important;
  color: #526783 !important;
  overflow: visible !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown:before {
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button .inner,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:hover:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button:hover:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .dropbutton:hover > a:not(.disabled) {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.more,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.toolbar-menu-button,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.options {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .disabled {
  color: #a8b4c3 !important;
  opacity: 0.38 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready:is(.cybrense-content-tight, .cybrense-content-tiny, .cybrense-content-nano) #layout-content > .header a.dropdown {
  display: none !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a.back-list-button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex-basis: 38px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar {
    max-width: calc(100% - 46px) !important;
    gap: 4px !important;
    padding: 4px 6px !important;
  }
}

/* Final global app sidebar: keep Contacts/Settings/Mail on the same branded rail. */
@media screen and (min-width: 981px) {
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) {
    --cybrense-app-sidebar: clamp(204px, 17vw, 248px);
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu {
    position: relative !important;
    inset: auto !important;
    width: var(--cybrense-app-sidebar) !important;
    min-width: var(--cybrense-app-sidebar) !important;
    max-width: var(--cybrense-app-sidebar) !important;
    flex: 0 0 var(--cybrense-app-sidebar) !important;
    display: block !important;
    overflow: hidden !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: linear-gradient(180deg, #061d3d 0%, #04172f 52%, #031126 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu .popover-header {
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 18px 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu #logo {
    width: 190px !important;
    max-width: calc(100% - 24px) !important;
    height: 48px !important;
    min-height: 48px !important;
    display: block !important;
    margin: 0 auto !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    filter: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu {
    position: relative !important;
    height: calc(100% - 88px) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 12px 18px 86px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .action-buttons,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu > div:not(.special-buttons) {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.88) !important;
    box-shadow: none !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a:before {
    position: static !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 19px !important;
    line-height: 24px !important;
    text-indent: 0 !important;
    transform: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a .inner,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a > span {
    min-width: 0 !important;
    display: block !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    opacity: 1 !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.compose {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 18px !important;
    background: #1476ff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(20, 118, 255, 0.24) !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.compose .inner,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.compose > span {
    flex: 0 1 auto !important;
    font-size: 15px !important;
    text-align: center !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.selected,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a:hover {
    background: rgba(20, 118, 255, 0.18) !important;
    border-color: rgba(74, 151, 255, 0.34) !important;
    color: #ffffff !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.selected:after {
    content: "" !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    width: 7px !important;
    height: 7px !important;
    margin: -3.5px 0 0 !important;
    border-radius: 999px !important;
    background: #1677ff !important;
    box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.1) !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .cybrense-sidebar-extras,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .cybrense-security-card,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .cybrense-usage-card,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.about,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.help,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.theme,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.support,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .special-buttons a:not(.logout) {
    display: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .special-buttons {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    width: auto !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.logout {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    background: linear-gradient(135deg, #a45261 0%, #833c4c 100%) !important;
    border: 1px solid rgba(255, 126, 143, 0.4) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(76, 24, 38, 0.22) !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.logout .inner,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.logout > span {
    flex: 0 1 auto !important;
    display: block !important;
    max-width: 150px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media screen and (min-width: 981px) and (max-width: 1120px) {
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) {
    --cybrense-app-sidebar: 196px;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu .popover-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu #logo {
    width: 166px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .special-buttons {
    left: 14px !important;
    right: 14px !important;
  }
}

/* Final global mobile drawer: the branded app menu must work outside Mail too. */
@media screen and (max-width: 980px) {
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(286px, 86vw) !important;
    min-width: min(286px, 86vw) !important;
    max-width: min(286px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    display: block !important;
    overflow: hidden !important;
    transform: translateX(-104%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1001 !important;
    background: linear-gradient(180deg, #061d3d 0%, #04172f 52%, #031126 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 24px 0 58px rgba(3, 18, 39, 0.28) !important;
    transition: transform 0.22s ease, opacity 0.22s ease !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login).cybrense-mobile-menu-open #layout-menu,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu.cybrense-mobile-drawer-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu .popover-header {
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 18px 10px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout-menu #logo {
    width: 184px !important;
    max-width: calc(100% - 24px) !important;
    height: 48px !important;
    display: block !important;
    margin: 0 auto !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    filter: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu {
    position: relative !important;
    height: calc(100% - 86px) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px 18px 86px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a:before {
    position: static !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 24px !important;
    color: currentColor !important;
    transform: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a .inner,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a > span {
    min-width: 0 !important;
    display: block !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    opacity: 1 !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.compose {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    justify-content: center !important;
    background: #1476ff !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(20, 118, 255, 0.24) !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu .special-buttons {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    width: auto !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #taskmenu a.logout {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #a45261 0%, #833c4c 100%) !important;
    border: 1px solid rgba(255, 126, 143, 0.4) !important;
    color: #ffffff !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login) .cybrense-mobile-backdrop {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    background: rgba(3, 15, 32, 0.46) !important;
    transition: opacity 0.2s ease !important;
  }

  html:not(.iframe) body.cybrense-ui-ready:not(.task-login).cybrense-mobile-menu-open .cybrense-mobile-backdrop,
  html:not(.iframe) body.cybrense-ui-ready:not(.task-login).cybrense-mobile-sidebar-open .cybrense-mobile-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Final message toolbar alignment: every action icon is centered and clean. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dce7f3 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a.back-list-button {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 52px) !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 4px 9px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #dce7f5 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 14px 34px rgba(36, 57, 91, 0.08) !important;
  scrollbar-width: none !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu::-webkit-scrollbar,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar::-webkit-scrollbar {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu > li,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar > li,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar .dropbutton,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex: 0 0 36px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar a {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex: 0 0 36px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #405674 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button:before {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  color: currentColor !important;
  font-size: 18px !important;
  line-height: 22px !important;
  text-align: center !important;
  text-indent: 0 !important;
  transform: translate(-50%, -50%) !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a#replyallmenulink,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a#forwardmenulink,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.icon.dropdown,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.button.dropdown {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> a.reply.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> a.reply-all.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> a.forward.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> .dropbutton > a.reply.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> .dropbutton > a.reply-all.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header li:has(> .dropbutton > a.forward.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:has(> a.reply.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:has(> a.reply-all.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:has(> a.forward.disabled) {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.reply.disabled,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.reply-all.disabled,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.forward.disabled {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button .inner,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .disabled,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .dropbutton:has(a.disabled) {
  color: #9aacc2 !important;
  opacity: 0.46 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:hover:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button:hover:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .dropbutton:hover > a:not(.disabled) {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.more,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.toolbar-menu-button,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.options {
  background: #edf5ff !important;
  color: #0969ff !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar {
    gap: 5px !important;
    padding: 4px 7px !important;
    max-width: calc(100% - 46px) !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu > li,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar > li,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .button {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px !important;
  }
}
