/* Cybrense Mail - Roundcube Elastic visual override */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --cbs-frame: #03152d;
  --cbs-menu: #04162e;
  --cbs-menu-2: #061f42;
  --cbs-panel: #f8fbff;
  --cbs-surface: #ffffff;
  --cbs-soft: #f2f6fb;
  --cbs-border: #e4ebf5;
  --cbs-border-strong: #d2deee;
  --cbs-text: #12213a;
  --cbs-muted: #68758a;
  --cbs-faint: #9aa8ba;
  --cbs-blue: #0969ff;
  --cbs-blue-2: #0b58d4;
  --cbs-green: #14b875;
  --cbs-red: #e54d5a;
  --cbs-purple: #8f49e8;
  --cbs-yellow: #ffb743;
  --cbs-radius: 14px;
  --cbs-radius-sm: 10px;
  --cbs-shadow: 0 18px 50px rgba(24, 42, 74, 0.12);
  --cbs-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Final message-view toolbar: match the clean standalone list toolbar. */
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;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 18px !important;
  overflow: visible !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 > #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;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !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: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: 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 {
  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: visible !important;
  list-style: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .button:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
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 {
  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: #425a78 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
}

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: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton > a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 14px !important;
  margin: 0 0 0 -8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #50647f !important;
  opacity: 0.9 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:before {
  position: static !important;
  width: 21px !important;
  min-width: 21px !important;
  height: 21px !important;
  min-height: 21px !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: 18px !important;
  line-height: 21px !important;
  text-align: center !important;
  text-indent: 0 !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 {
  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 {
  color: #a8b4c3 !important;
  opacity: 0.42 !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 .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 #toolbar-menu > li:last-child > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .toolbar > li:last-child > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header #mailtoolbar > a.more {
  background: #edf5ff !important;
  color: #0969ff !important;
  border-radius: 11px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a.back-list-button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    gap: 12px !important;
    padding: 0 14px !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: 10px !important;
    max-width: calc(100vw - 72px) !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 > #mailtoolbar > a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton > a {
    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;
  }
}

/* Absolute final login screen override: app entry, dark brand shell, no blank landing. */
html:not(.iframe) body.task-login,
html:not(.iframe) body.task-login.cybrense-ui-ready {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #08264c 0%, #031226 48%, #020b18 100%) !important;
  color: #0a1930 !important;
}

html:not(.iframe) body.task-login:before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  opacity: 0.32 !important;
}

html:not(.iframe) body.task-login #layout,
html:not(.iframe) body.task-login.cybrense-ui-ready #layout {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 32px 16px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-login #layout-content,
html:not(.iframe) body.task-login.cybrense-ui-ready #layout-content {
  width: min(430px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 430px !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-login #logo {
  width: min(250px, 72vw) !important;
  min-width: 0 !important;
  max-width: min(250px, 72vw) !important;
  height: auto !important;
  max-height: 76px !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 auto 4px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24)) !important;
}

html:not(.iframe) body.task-login #login-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 430px !important;
  margin: 0 !important;
  padding: 30px !important;
  overflow: hidden !important;
  border: 1px solid rgba(217, 230, 248, 0.86) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 78px rgba(0, 10, 26, 0.34) !important;
}

html:not(.iframe) body.task-login #login-form table,
html:not(.iframe) body.task-login #login-form tbody,
html:not(.iframe) body.task-login #login-form tr,
html:not(.iframe) body.task-login #login-form td {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-login #login-form td.title {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 7px !important;
  color: #51627a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

html:not(.iframe) body.task-login #login-form td.title:before,
html:not(.iframe) body.task-login #login-form td.title:after,
html:not(.iframe) body.task-login #login-form td.input:before,
html:not(.iframe) body.task-login #login-form td.input:after,
html:not(.iframe) body.task-login #login-form td.title label:before,
html:not(.iframe) body.task-login #login-form td.title label:after {
  display: none !important;
  content: none !important;
}

html:not(.iframe) body.task-login #login-form td.title label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #51627a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html:not(.iframe) body.task-login #login-form td.input {
  position: relative !important;
  padding: 0 0 16px !important;
}

html:not(.iframe) body.task-login #login-form .input-group-prepend,
html:not(.iframe) body.task-login #login-form .input-group-append,
html:not(.iframe) body.task-login #login-form .input-group-text {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-login #login-form .form-control,
html:not(.iframe) body.task-login #login-form input[type="text"],
html:not(.iframe) body.task-login #login-form input[type="password"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid #d9e5f4 !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: #f6f9fd !important;
  color: #071b36 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 48px !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-login #login-form .form-control:focus,
html:not(.iframe) body.task-login #login-form input[type="text"]:focus,
html:not(.iframe) body.task-login #login-form input[type="password"]:focus {
  border-color: #5ea4ff !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.12) !important;
}

html:not(.iframe) body.task-login #login-form p.formbuttons {
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-login #rcmloginsubmit {
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #1678ff 0%, #0969ff 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 16px 32px rgba(9, 105, 255, 0.28) !important;
}

html:not(.iframe) body.task-login #login-footer {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  color: #66758a !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

html:not(.iframe) body.task-login #messagestack {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  z-index: 20 !important;
  max-width: min(360px, calc(100vw - 36px)) !important;
}

@media screen and (max-width: 560px) {
  html:not(.iframe) body.task-login {
    overflow-y: auto !important;
  }

  html:not(.iframe) body.task-login #layout {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    align-items: center !important;
    padding: 24px 14px !important;
    overflow-y: auto !important;
  }

  html:not(.iframe) body.task-login #layout-content {
    width: 100% !important;
    max-width: 390px !important;
    gap: 18px !important;
  }

  html:not(.iframe) body.task-login #logo {
    width: min(226px, 76vw) !important;
    max-width: min(226px, 76vw) !important;
  }

  html:not(.iframe) body.task-login #login-form {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }

  html:not(.iframe) body.task-login #messagestack {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Final login screen: branded app entry, not a blank landing page. */
html:not(.iframe) body.task-login {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(8, 38, 76, 0.94) 0%, rgba(3, 18, 38, 0.98) 48%, #020b18 100%) !important;
  color: #0a1930 !important;
  -webkit-font-smoothing: antialiased !important;
}

html:not(.iframe) body.task-login:before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  opacity: 0.34 !important;
}

html:not(.iframe) body.task-login #layout {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 32px 16px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-login #layout-content {
  width: min(430px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 430px !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-login #logo {
  width: min(250px, 72vw) !important;
  min-width: 0 !important;
  max-width: min(250px, 72vw) !important;
  height: auto !important;
  max-height: 76px !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 auto 4px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24)) !important;
}

html:not(.iframe) body.task-login #login-form {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 430px !important;
  margin: 0 !important;
  padding: 30px !important;
  overflow: hidden !important;
  border: 1px solid rgba(217, 230, 248, 0.86) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 78px rgba(0, 10, 26, 0.34) !important;
}

html:not(.iframe) body.task-login #login-form table,
html:not(.iframe) body.task-login #login-form tbody,
html:not(.iframe) body.task-login #login-form tr,
html:not(.iframe) body.task-login #login-form td {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-login #login-form td.title {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 7px !important;
  color: #51627a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

html:not(.iframe) body.task-login #login-form td.title:before,
html:not(.iframe) body.task-login #login-form td.title:after,
html:not(.iframe) body.task-login #login-form td.input:before,
html:not(.iframe) body.task-login #login-form td.input:after,
html:not(.iframe) body.task-login #login-form td.title label:before,
html:not(.iframe) body.task-login #login-form td.title label:after {
  display: none !important;
  content: none !important;
}

html:not(.iframe) body.task-login #login-form td.title label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #51627a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

html:not(.iframe) body.task-login #login-form td.input {
  position: relative !important;
  padding: 0 0 16px !important;
}

html:not(.iframe) body.task-login #login-form .form-control,
html:not(.iframe) body.task-login #login-form input[type="text"],
html:not(.iframe) body.task-login #login-form input[type="password"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid #d9e5f4 !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: #f6f9fd !important;
  color: #071b36 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 48px !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

html:not(.iframe) body.task-login #login-form .form-control:focus,
html:not(.iframe) body.task-login #login-form input[type="text"]:focus,
html:not(.iframe) body.task-login #login-form input[type="password"]:focus {
  border-color: #5ea4ff !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.12) !important;
}

html:not(.iframe) body.task-login #login-form p.formbuttons {
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-login #rcmloginsubmit {
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, #1678ff 0%, #0969ff 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 16px 32px rgba(9, 105, 255, 0.28) !important;
}

html:not(.iframe) body.task-login #rcmloginsubmit:hover {
  background: linear-gradient(180deg, #2383ff 0%, #0b58d4 100%) !important;
}

html:not(.iframe) body.task-login #login-footer {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  color: #66758a !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

html:not(.iframe) body.task-login #messagestack {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  z-index: 20 !important;
  max-width: min(360px, calc(100vw - 36px)) !important;
}

@media screen and (max-width: 560px) {
  html:not(.iframe) body.task-login {
    overflow-y: auto !important;
  }

  html:not(.iframe) body.task-login #layout {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    align-items: center !important;
    padding: 24px 14px !important;
    overflow-y: auto !important;
  }

  html:not(.iframe) body.task-login #layout-content {
    width: 100% !important;
    max-width: 390px !important;
    gap: 18px !important;
  }

  html:not(.iframe) body.task-login #logo {
    width: min(226px, 76vw) !important;
    max-width: min(226px, 76vw) !important;
  }

  html:not(.iframe) body.task-login #login-form {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }

  html:not(.iframe) body.task-login #messagestack {
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Final sidebar footer: pin Deconnexion to the bottom of the dark menu. */
html:not(.iframe) body.cybrense-ui-ready #layout-menu {
  position: relative !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu {
  height: 100% !important;
  min-height: 0 !important;
  padding-bottom: 88px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 18px !important;
  z-index: 4 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a.logout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.cybrense-ui-ready #taskmenu {
    padding-bottom: 86px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

/* Final sidebar footer: pin Deconnexion to the bottom of the dark menu. */
html:not(.iframe) body.cybrense-ui-ready #layout-menu {
  position: relative !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu {
  height: 100% !important;
  min-height: 0 !important;
  padding-bottom: 88px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 18px !important;
  z-index: 4 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a.logout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.cybrense-ui-ready #taskmenu {
    padding-bottom: 86px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
.popover,
button,
input,
select,
textarea {
  font-family: var(--cbs-font) !important;
}

html {
  background: var(--cbs-frame);
}

html.dark-mode {
  color-scheme: light !important;
}

html.dark-mode body:not(.task-login),
html.dark-mode #layout,
html.dark-mode #layout-content,
html.dark-mode #layout-list,
html.dark-mode #layout-sidebar {
  color: var(--cbs-text) !important;
}

html:not(.iframe) body:not(.task-login) {
  height: 100%;
  padding: 10px;
  background: var(--cbs-frame) !important;
  color: var(--cbs-text);
  -webkit-font-smoothing: antialiased;
}

html.iframe,
html.iframe body {
  background: var(--cbs-surface) !important;
}

html:not(.iframe) body:not(.task-login) #layout {
  height: calc(100vh - 20px);
  width: 100%;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(132, 166, 211, 0.28);
  border-radius: 15px;
  background: var(--cbs-surface) !important;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

/* Login */
body.task-login {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 15%, rgba(9, 105, 255, 0.28), transparent 34%),
    radial-gradient(circle at 84% 78%, rgba(20, 184, 117, 0.12), transparent 30%),
    var(--cbs-frame) !important;
  color: #fff;
}

body.task-login #layout {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

body.task-login #layout-content {
  width: min(430px, calc(100vw - 32px));
  background: transparent !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.task-login #logo {
  width: 230px;
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
}

body.task-login #login-form {
  width: 100%;
  max-width: 430px !important;
  margin: 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px !important;
  box-shadow: var(--cbs-shadow);
}

body.task-login #login-form table,
body.task-login #login-form tbody,
body.task-login #login-form tr,
body.task-login #login-form td {
  display: block;
  width: 100%;
}

body.task-login #login-form td.title {
  color: var(--cbs-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0 0 7px;
}

body.task-login #login-form td.input {
  position: relative !important;
  padding: 0 0 16px;
}

body.task-login #login-form td.input:before {
  display: none !important;
}

body.task-login #login-form .form-control {
  width: 100% !important;
  max-width: none !important;
  height: 46px;
  padding-left: 16px !important;
  border-radius: 12px !important;
  border: 1px solid var(--cbs-border) !important;
  background: var(--cbs-soft) !important;
  color: var(--cbs-text) !important;
  font-size: 14px !important;
}

body.task-login #rcmloginsubmit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 22px rgba(9, 105, 255, 0.28);
}

body.task-login #login-footer {
  margin-top: 18px;
  color: var(--cbs-muted) !important;
  font-size: 12px;
  text-align: center;
}

/* Left application rail */
html:not(.iframe) #layout-menu {
  flex: 0 0 224px !important;
  width: 224px !important;
  min-width: 224px !important;
  max-width: 224px !important;
  display: flex !important;
  flex-direction: column !important;
  background:
    linear-gradient(180deg, rgba(10, 41, 83, 0.62), transparent 36%),
    var(--cbs-menu) !important;
  border: 0 !important;
  color: #fff !important;
  overflow: hidden;
}

html:not(.iframe) #layout-menu .popover-header {
  height: 88px;
  min-height: 88px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 14px 12px !important;
  background: transparent !important;
  border: 0 !important;
}

html:not(.iframe) #layout-menu .popover-header .button.cancel {
  display: none !important;
}

html:not(.iframe) #layout-menu #logo {
  width: 176px;
  max-width: 176px;
  max-height: 52px;
  padding: 0 !important;
  object-fit: contain;
  object-position: left center;
}

html:not(.iframe) #taskmenu {
  flex: 1;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 7px;
  padding: 0 14px 18px !important;
}

html:not(.iframe) #taskmenu .action-buttons {
  display: block;
  width: 100%;
  margin-bottom: 14px;
}

html:not(.iframe) #taskmenu a {
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  color: rgba(238, 246, 255, 0.76) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

html:not(.iframe) #taskmenu a:before {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: currentColor !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

html:not(.iframe) #taskmenu a .inner {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  display: inline !important;
  margin: 0 !important;
  overflow: hidden;
  color: currentColor !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not(.iframe) #taskmenu a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

html:not(.iframe) #taskmenu a.selected,
html:not(.iframe) #taskmenu a.mail.selected,
html:not(.iframe) #taskmenu a.contacts.selected,
html:not(.iframe) #taskmenu a.settings.selected {
  background: rgba(9, 105, 255, 0.18) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(53, 143, 255, 0.22);
}

html:not(.iframe) #taskmenu a.compose {
  height: 48px !important;
  justify-content: center !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(9, 105, 255, 0.36);
}

html:not(.iframe) #taskmenu a.compose:hover {
  background: var(--cbs-blue-2) !important;
  transform: translateY(-1px);
}

html:not(.iframe) #taskmenu .special-buttons {
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
}

html:not(.iframe) #taskmenu .cybrense-sidebar-extras {
  width: 100%;
  max-width: 196px;
  margin-top: auto;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  position: static !important;
  inset: auto !important;
  overflow: hidden;
}

html:not(.iframe) #taskmenu a.about,
html:not(.iframe) #taskmenu a.theme {
  display: none !important;
}

html:not(.iframe) #taskmenu a.logout {
  height: 46px !important;
  min-height: 46px !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 2px !important;
  border: 1px solid rgba(229, 77, 90, 0.32) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(229, 77, 90, 0.24), rgba(229, 77, 90, 0.13)),
    rgba(255, 255, 255, 0.04) !important;
  color: #ffe7ea !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(229, 77, 90, 0.12);
}

html:not(.iframe) #taskmenu a.logout:hover {
  color: #fff !important;
  border-color: rgba(255, 120, 132, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(229, 77, 90, 0.34), rgba(229, 77, 90, 0.2)),
    rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-1px);
}

html:not(.iframe) #taskmenu a.logout:before {
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
  font-size: 16px !important;
}

html:not(.iframe) #taskmenu a.logout .inner {
  flex: 0 1 auto !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.cybrense-security-card,
.cybrense-usage-card {
  display: none;
  width: 100%;
  max-width: 100%;
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
  border: 1px solid rgba(126, 169, 230, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  padding: 14px 16px;
}

html:not(.iframe) #layout-menu .cybrense-sidebar-extras > .cybrense-security-card,
html:not(.iframe) #layout-menu .cybrense-sidebar-extras > .cybrense-usage-card {
  display: block !important;
}

.cybrense-security-card {
  min-height: 112px;
}

.cybrense-security-card strong,
.cybrense-usage-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.cybrense-security-card span,
.cybrense-usage-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  white-space: normal;
}

.cybrense-security-orb {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(9, 105, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(83, 160, 255, 0.34), 0 0 24px rgba(9, 105, 255, 0.32);
}

.cybrense-security-orb:before {
  content: "\f3ed";
  font-family: Icons;
  font-weight: 900;
  color: #66b3ff;
  font-size: 23px;
}

.cybrense-security-card strong:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cbs-green);
}

.cybrense-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cybrense-usage-head span {
  margin: 0;
}

.cybrense-usage-bar {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.cybrense-usage-bar i {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: var(--cbs-blue);
}

/* Folder pane */
html:not(.iframe) body.task-mail #layout-sidebar,
html:not(.iframe) body.task-addressbook #layout-sidebar,
html:not(.iframe) body.task-settings #layout-sidebar {
  flex: 0 0 268px !important;
  width: 268px !important;
  min-width: 268px !important;
  max-width: 268px !important;
  background: var(--cbs-panel) !important;
  border-right: 1px solid var(--cbs-border) !important;
}

html:not(.iframe) #layout-sidebar > .header {
  height: 76px;
  min-height: 76px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px 0 18px !important;
  background: var(--cbs-surface) !important;
  border-bottom: 1px solid var(--cbs-border) !important;
  color: var(--cbs-text) !important;
  line-height: 1 !important;
}

html:not(.iframe) #layout-sidebar > .header .header-title,
html:not(.iframe) #layout-sidebar > .header .username {
  flex: 1;
  margin: 0 !important;
  text-align: left !important;
  color: var(--cbs-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
}

html:not(.iframe) #layout-sidebar > .header .button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 11px !important;
  color: var(--cbs-muted) !important;
  background: transparent !important;
}

html:not(.iframe) #layout-sidebar > .header .button:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) #layout-sidebar .scroller {
  padding: 12px 10px;
  background: var(--cbs-panel) !important;
}

html:not(.iframe) #layout-sidebar .treelist,
html:not(.iframe) #layout-sidebar .folderlist,
html:not(.iframe) #layout-sidebar .listing {
  background: transparent !important;
}

html:not(.iframe) #layout-sidebar .treelist li,
html:not(.iframe) #layout-sidebar .folderlist li {
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) #layout-sidebar .treelist li a,
html:not(.iframe) #layout-sidebar .folderlist li a,
html:not(.iframe) #layout-sidebar .listing li a {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  margin: 3px 4px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--cbs-text) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.1;
}

html:not(.iframe) #layout-sidebar .treelist li a:before,
html:not(.iframe) #layout-sidebar .folderlist li a:before,
html:not(.iframe) #layout-sidebar .listing li a:before {
  width: 22px !important;
  margin-right: 12px !important;
  color: #526176 !important;
}

html:not(.iframe) #layout-sidebar .treelist li a:hover,
html:not(.iframe) #layout-sidebar .folderlist li a:hover,
html:not(.iframe) #layout-sidebar .listing li a:hover {
  background: #edf5ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) #layout-sidebar .treelist li.selected > a,
html:not(.iframe) #layout-sidebar .folderlist li.selected > a,
html:not(.iframe) #layout-sidebar .listing li.selected > a {
  background: #eaf3ff !important;
  color: var(--cbs-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(9, 105, 255, 0.13);
}

html:not(.iframe) #layout-sidebar .unreadcount {
  min-width: 24px;
  height: 22px;
  margin-left: auto !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.cybrense-labels {
  margin: 24px 4px 8px;
  padding: 0 0 6px;
}

.cybrense-labels-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 7px;
  color: #6d7a8e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cybrense-labels-head button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #526176;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cybrense-labels-head button:hover {
  background: #edf5ff;
  color: var(--cbs-blue);
}

.cybrense-label-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cybrense-label-actions button[data-label-action="delete"] {
  font-size: 20px;
}

.cybrense-label-list {
  display: grid;
  gap: 2px;
}

.cybrense-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
}

.cybrense-label-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #34435a;
  padding: 0 12px;
  font-family: var(--cbs-font);
  font-size: 13px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
}

.cybrense-label-inline-delete {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #9aa7b8;
  font-family: var(--cbs-font);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.cybrense-label-inline-delete:hover {
  border-color: rgba(255, 93, 108, 0.22);
  background: #fff0f2;
  color: #c93245;
}

.cybrense-label-item:hover {
  background: #edf5ff;
  color: var(--cbs-blue);
}

.cybrense-label-item.active {
  background: #eaf3ff;
  color: var(--cbs-blue);
  box-shadow: inset 0 0 0 1px rgba(9, 105, 255, 0.14);
}

body.task-mail.cybrense-label-filter-active .cybrense-labels-head span:after {
  content: " actif";
  margin-left: 6px;
  color: var(--cbs-blue);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.cybrense-label-item i {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--label-color, #b8c3d2);
  box-shadow: 0 0 0 3px rgba(82, 97, 118, 0.05);
}

.cybrense-label-item[data-color="blue"] {
  --label-color: var(--cbs-blue);
}

.cybrense-label-item[data-color="green"] {
  --label-color: var(--cbs-green);
}

.cybrense-label-item[data-color="purple"] {
  --label-color: var(--cbs-purple);
}

.cybrense-label-item[data-color="yellow"] {
  --label-color: var(--cbs-yellow);
}

.cybrense-label-item[data-color="gray"] {
  --label-color: #b8c3d2;
}

.cybrense-label-count {
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef3fa;
  color: #6f7d91;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.cybrense-label-count:empty {
  display: none;
}

.cybrense-filter-empty {
  width: calc(100% - 32px);
  max-width: 282px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px dashed #d9e5f5;
  border-radius: 14px;
  background: #fbfdff;
  color: #6d7a8e;
  text-align: center;
}

.cybrense-filter-empty-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #edf5ff;
  color: var(--cbs-blue);
}

.cybrense-filter-empty-icon:before {
  content: "\f02c";
  font-family: Icons;
  font-size: 17px;
  font-weight: 900;
}

.cybrense-filter-empty strong {
  color: #40506a;
  font-size: 13px;
  font-weight: 850;
}

.cybrense-filter-empty span {
  color: #8794a8;
  font-size: 12px;
  font-weight: 700;
}

.cybrense-label-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 21, 45, 0.46);
  backdrop-filter: blur(10px);
}

.cybrense-label-dialog-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(214, 226, 244, 0.85);
  border-radius: 18px;
  background: #fff;
  color: var(--cbs-text);
  box-shadow: 0 28px 80px rgba(3, 21, 45, 0.28);
}

.cybrense-label-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.cybrense-label-dialog-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--cbs-blue);
}

.cybrense-label-dialog-icon:before {
  content: "\f02c";
  font-family: Icons;
  font-size: 17px;
  font-weight: 900;
}

.cybrense-label-dialog-card strong {
  display: block;
  color: #071a33;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.cybrense-label-dialog-card p {
  margin: 5px 0 0;
  color: #68758a;
  font-size: 13px;
  line-height: 1.4;
}

.cybrense-label-dialog-card label {
  display: block;
  margin: 0 0 8px;
  color: #40506a;
  font-size: 12px;
  font-weight: 850;
}

.cybrense-label-dialog-card input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d6e2f4;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--cbs-text);
  font-family: var(--cbs-font);
  font-size: 14px;
  font-weight: 650;
  outline: none;
}

.cybrense-label-dialog-card input:focus {
  border-color: rgba(9, 105, 255, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.11);
}

.cybrense-label-dialog-card input.is-invalid {
  border-color: rgba(229, 77, 90, 0.65);
  box-shadow: 0 0 0 4px rgba(229, 77, 90, 0.1);
}

.cybrense-label-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cybrense-label-dialog-actions button {
  height: 38px;
  min-width: 96px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  font-family: var(--cbs-font);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.cybrense-label-cancel {
  background: #edf3fb;
  color: #4f5f76;
}

.cybrense-label-cancel:hover {
  background: #e1ebf8;
}

.cybrense-label-save {
  background: var(--cbs-blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(9, 105, 255, 0.22);
}

.cybrense-label-save:hover {
  background: var(--cbs-blue-2);
}

html:not(.iframe) #layout-sidebar > .footer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: var(--cbs-panel) !important;
  border-top: 0 !important;
}

html:not(.iframe) #layout-sidebar .quota-widget {
  display: none !important;
}

html:not(.iframe) #layout-sidebar .quota-widget {
  width: 100%;
  max-width: none;
  min-height: 106px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 16px !important;
  border: 1px solid var(--cbs-border);
  border-radius: 14px;
  background: var(--cbs-surface);
  color: var(--cbs-muted) !important;
}

html:not(.iframe) #layout-sidebar .quota-widget:before {
  content: "Stockage" !important;
  width: 100%;
  margin: 0 0 8px;
  font-family: var(--cbs-font) !important;
  font-size: 13px;
  font-weight: 800;
  color: var(--cbs-text);
}

html:not(.iframe) #layout-sidebar .quota-widget .bar {
  order: 3;
  width: 100%;
  flex: 0 0 100%;
  height: 8px;
  margin: 12px 0 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: #e8eef7 !important;
}

html:not(.iframe) #layout-sidebar .quota-widget .value {
  border-radius: inherit;
  background: var(--cbs-blue) !important;
}

html:not(.iframe) #layout-sidebar .quota-widget .cybrense-storage-action {
  order: 4;
  width: 100%;
  height: 34px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cbs-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cbs-blue) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

html:not(.iframe) #layout-sidebar .quota-widget .cybrense-storage-action:hover {
  background: #edf5ff;
  border-color: rgba(9, 105, 255, 0.22);
}

/* Message list */
html:not(.iframe) body.task-mail #layout-list {
  flex: 0 0 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  background: var(--cbs-surface) !important;
  border-right: 1px solid var(--cbs-border) !important;
}

html:not(.iframe) body.task-addressbook #layout-list,
html:not(.iframe) body.task-settings #layout-list {
  flex: 0 0 360px !important;
  width: 360px !important;
  min-width: 340px !important;
  max-width: 390px !important;
  background: var(--cbs-surface) !important;
  border-right: 1px solid var(--cbs-border) !important;
}

html:not(.iframe) #layout-list > .header,
html:not(.iframe) #messagelist-header {
  height: 76px;
  min-height: 76px;
  padding: 0 16px !important;
  justify-content: flex-start;
  background: var(--cbs-surface) !important;
  border-bottom: 1px solid var(--cbs-border) !important;
  color: var(--cbs-text);
  line-height: 1 !important;
}

html:not(.iframe) #messagelist-header .toolbar {
  width: 100%;
  gap: 8px;
}

html:not(.iframe) .searchbar {
  height: 48px;
  margin: 14px 16px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center;
  border: 1px solid var(--cbs-border) !important;
  border-radius: 14px !important;
  background: var(--cbs-soft) !important;
  box-shadow: none !important;
}

html:not(.iframe) .searchbar:before {
  color: var(--cbs-muted) !important;
  margin-right: 8px !important;
}

html:not(.iframe) .searchbar input {
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cbs-text) !important;
  font-size: 14px !important;
}

html:not(.iframe) .searchbar input::placeholder {
  color: var(--cbs-faint) !important;
}

html:not(.iframe) #messagelist-content {
  padding: 0 8px 8px;
  background: var(--cbs-surface);
}

html:not(.iframe) #messagelist {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 7px !important;
  background: transparent !important;
}

html:not(.iframe) #messagelist tr {
  background: var(--cbs-surface) !important;
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

html:not(.iframe) #messagelist tr td {
  height: 70px;
  padding: 10px 8px !important;
  border-top: 1px solid var(--cbs-border) !important;
  border-bottom: 1px solid var(--cbs-border) !important;
  color: var(--cbs-text) !important;
  font-size: 13px !important;
  vertical-align: middle;
}

html:not(.iframe) #messagelist tr td:first-child {
  border-left: 1px solid var(--cbs-border) !important;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

html:not(.iframe) #messagelist tr td:last-child {
  border-right: 1px solid var(--cbs-border) !important;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

html:not(.iframe) #messagelist tr:hover td {
  background: #fbfdff !important;
  box-shadow: 0 12px 28px rgba(31, 56, 91, 0.08);
}

html:not(.iframe) #messagelist tr.selected td,
html:not(.iframe) #messagelist tr.focused td {
  background: #edf5ff !important;
  border-color: rgba(9, 105, 255, 0.44) !important;
  box-shadow: 0 12px 28px rgba(9, 105, 255, 0.12);
}

html:not(.iframe) #messagelist tr.unread td {
  font-weight: 750 !important;
}

html:not(.iframe) #messagelist tr.cybrense-label-hidden {
  display: none !important;
}

html:not(.iframe) body.task-mail #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative;
  padding-left: 62px !important;
}

.cybrense-mail-avatar {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  overflow: hidden;
  border-radius: 50%;
  background: #eef4fb;
  color: #516177;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(210, 222, 238, 0.8);
}

.cybrense-mail-avatar.service-mattermost {
  background: #082363;
  color: #fff;
  box-shadow: 0 10px 22px rgba(9, 105, 255, 0.24), inset 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.cybrense-mail-avatar.service-mattermost:before {
  content: "\f011";
  font-family: Icons;
  font-size: 22px;
  font-weight: 900;
}

.cybrense-mail-avatar.service-slack {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(210, 222, 238, 0.95), 0 8px 20px rgba(31, 56, 91, 0.08);
}

.cybrense-mail-avatar.service-slack .slack-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 4px;
}

.cybrense-mail-avatar.service-slack .slack-dot.red {
  left: 11px;
  top: 10px;
  background: #e01e5a;
}

.cybrense-mail-avatar.service-slack .slack-dot.yellow {
  right: 10px;
  top: 11px;
  background: #ecb22e;
}

.cybrense-mail-avatar.service-slack .slack-dot.green {
  left: 11px;
  bottom: 10px;
  background: #2eb67d;
}

.cybrense-mail-avatar.service-slack .slack-dot.blue {
  right: 10px;
  bottom: 11px;
  background: #36c5f0;
}

.cybrense-row-status {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cbs-blue);
  vertical-align: middle;
}

html:not(.iframe) #messagelist tr:not(.unread) .cybrense-row-status {
  background: #b8c3d2;
}

.cybrense-mail-tag {
  max-width: 92px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(143, 73, 232, 0.1);
  color: var(--cbs-purple);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.cybrense-assigned-labels {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  padding-right: 4px;
}

.cybrense-assigned-label {
  max-width: 122px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(9, 105, 255, 0.1);
  color: var(--cbs-blue);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cybrense-assigned-label[data-color="green"] {
  background: rgba(20, 184, 117, 0.12);
  color: #0d8b59;
}

.cybrense-assigned-label[data-color="purple"] {
  background: rgba(143, 73, 232, 0.12);
  color: var(--cbs-purple);
}

.cybrense-assigned-label[data-color="yellow"] {
  background: rgba(255, 183, 67, 0.18);
  color: #9c6811;
}

.cybrense-assigned-label[data-color="gray"] {
  background: #eef3fa;
  color: #6f7d91;
}

.cybrense-message-labels {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  margin: 10px 0 0;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(213, 225, 241, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 22px rgba(37, 59, 92, 0.045);
}

.cybrense-message-labels-title {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  color: #52627a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cybrense-message-labels-title:before {
  content: "\f02c";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--cbs-blue);
  font-family: Icons;
  font-size: 11px;
  font-weight: 900;
}

.cybrense-message-labels-list {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cybrense-message-label-chip {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  background: #fff;
  color: #34435a;
  font-family: var(--cbs-font);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.cybrense-message-label-chip:before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--cbs-blue);
}

.cybrense-message-label-chip[data-color="green"]:before {
  background: var(--cbs-green);
}

.cybrense-message-label-chip[data-color="purple"]:before {
  background: var(--cbs-purple);
}

.cybrense-message-label-chip[data-color="yellow"]:before {
  background: var(--cbs-yellow);
}

.cybrense-message-label-chip[data-color="gray"]:before {
  background: #b8c3d2;
}

.cybrense-message-label-chip:hover {
  border-color: rgba(9, 105, 255, 0.28);
  background: #eef6ff;
  color: var(--cbs-blue);
}

.cybrense-message-label-chip.active {
  border-color: rgba(9, 105, 255, 0.3);
  background: #eaf3ff;
  color: var(--cbs-blue);
  box-shadow: 0 6px 14px rgba(9, 105, 255, 0.08);
}

.cybrense-message-label-chip.active[data-color="green"] {
  border-color: rgba(20, 184, 117, 0.28);
  background: rgba(20, 184, 117, 0.12);
  color: #0d8b59;
}

.cybrense-message-label-chip.active[data-color="purple"] {
  border-color: rgba(143, 73, 232, 0.28);
  background: rgba(143, 73, 232, 0.12);
  color: var(--cbs-purple);
}

.cybrense-message-label-chip.active[data-color="yellow"] {
  border-color: rgba(255, 183, 67, 0.34);
  background: rgba(255, 183, 67, 0.18);
  color: #9c6811;
}

.cybrense-message-label-chip.active[data-color="gray"] {
  border-color: #d6e0ee;
  background: #eef3fa;
  color: #6f7d91;
}

@media (max-width: 760px) {
  .cybrense-message-labels {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .cybrense-message-labels-list {
    gap: 6px;
  }

  .cybrense-message-label-chip {
    height: 28px;
  }
}

html:not(.iframe) #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.fromto,
html:not(.iframe) #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.sender {
  display: inline-flex;
  max-width: calc(100% - 68px);
  align-items: center;
  overflow: hidden;
  color: var(--cbs-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

html:not(.iframe) #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.subject,
html:not(.iframe) #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.msgbody {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not(.iframe) #messagelist td.subject span.subject,
html:not(.iframe) #messagelist td.subject a {
  color: var(--cbs-text) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

html:not(.iframe) #messagelist td.subject span.fromto,
html:not(.iframe) #messagelist td.subject span.msgbody,
html:not(.iframe) #messagelist td.subject span.date,
html:not(.iframe) #messagelist td.date {
  color: var(--cbs-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html:not(.iframe) #messagelist .unreadcount,
html:not(.iframe) #messagelist span.attachment,
html:not(.iframe) #messagelist span.flagged {
  color: var(--cbs-blue) !important;
}

html:not(.iframe) #layout-list .footer,
html:not(.iframe) #layout-list .pagenav {
  height: 54px;
  min-height: 54px;
  background: var(--cbs-surface) !important;
  border-top: 1px solid var(--cbs-border) !important;
  color: var(--cbs-muted);
}

/* Reading pane */
html:not(.iframe) body.task-mail #layout-content,
html:not(.iframe) body.task-addressbook #layout-content,
html:not(.iframe) body.task-settings #layout-content {
  flex: 1 1 auto !important;
  min-width: 0;
  background: var(--cbs-surface) !important;
}

html:not(.iframe) #layout-content > .header {
  height: 76px;
  min-height: 76px;
  padding: 0 18px !important;
  background: var(--cbs-surface) !important;
  border-bottom: 1px solid var(--cbs-border) !important;
  color: var(--cbs-text) !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail #layout-content > .header:after {
  content: "Securise  TLS 1.3";
  margin-left: auto;
  height: 44px;
  min-width: 122px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #e3f8ef;
  color: #0b8b59;
  font-size: 12px;
  font-weight: 800;
  line-height: 1 !important;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 117, 0.12);
}

html:not(.iframe) #layout-content .iframe-wrapper {
  background: var(--cbs-surface) !important;
}

html:not(.iframe) #layout-content .iframe-wrapper iframe {
  background: var(--cbs-surface) !important;
  color-scheme: light !important;
}

html:not(.iframe) body.task-addressbook #layout-list .scroller,
html:not(.iframe) body.task-settings #layout-list .scroller,
html:not(.iframe) body.task-addressbook #layout-content .scroller,
html:not(.iframe) body.task-settings #layout-content .scroller,
html:not(.iframe) body.task-addressbook #layout-content .content,
html:not(.iframe) body.task-settings #layout-content .content,
html:not(.iframe) body.task-addressbook #layout-content .formcontent,
html:not(.iframe) body.task-settings #layout-content .formcontent {
  background: var(--cbs-surface) !important;
}

html:not(.iframe) body.task-addressbook #layout-content .formcontent,
html:not(.iframe) body.task-settings #layout-content .formcontent,
html:not(.iframe) body.task-addressbook .contact-header,
html:not(.iframe) body.task-settings fieldset {
  margin: 18px !important;
  padding: 18px !important;
  border: 1px solid var(--cbs-border) !important;
  border-radius: 14px !important;
  background: var(--cbs-surface) !important;
  box-shadow: 0 12px 32px rgba(37, 59, 92, 0.06);
}

html:not(.iframe) body.task-addressbook .listing li,
html:not(.iframe) body.task-settings .listing li,
html:not(.iframe) body.task-addressbook .listing tbody td,
html:not(.iframe) body.task-settings .listing tbody td {
  border-color: var(--cbs-border) !important;
  background: var(--cbs-surface) !important;
  color: var(--cbs-text) !important;
}

html:not(.iframe) body.task-addressbook .listing li.selected,
html:not(.iframe) body.task-settings .listing li.selected,
html:not(.iframe) body.task-addressbook .listing tr.selected td,
html:not(.iframe) body.task-settings .listing tr.selected td {
  background: #eaf3ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-addressbook .listing li a,
html:not(.iframe) body.task-settings .listing li a,
html:not(.iframe) body.task-addressbook .listing tbody td a,
html:not(.iframe) body.task-settings .listing tbody td a {
  color: inherit !important;
}

html:not(.iframe) body.task-addressbook table.table,
html:not(.iframe) body.task-settings table.table {
  overflow: hidden;
  border: 1px solid var(--cbs-border) !important;
  border-radius: 14px;
  background: var(--cbs-surface) !important;
}

html:not(.iframe) body.task-addressbook table.table th,
html:not(.iframe) body.task-settings table.table th,
html:not(.iframe) body.task-addressbook table.table td,
html:not(.iframe) body.task-settings table.table td {
  border-color: var(--cbs-border) !important;
  color: var(--cbs-text) !important;
}

.toolbar.menu,
.header .toolbar {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.toolbar a.button,
.toolbar.menu a,
.header a.button,
a.button.icon {
  min-width: 54px;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column;
  gap: 4px;
  margin: 0 1px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--cbs-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toolbar a.button:hover,
.toolbar.menu a:hover,
.header a.button:hover,
a.button.icon:hover {
  background: #f1f7ff !important;
  color: var(--cbs-blue) !important;
}

.toolbar a.button:before,
.toolbar.menu a:before,
.header a.button:before {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  color: currentColor !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.toolbar a.button .inner,
.toolbar.menu a .inner,
.header a.button .inner {
  max-width: 78px;
  display: block !important;
  overflow: hidden;
  color: currentColor !important;
  font-size: 11px !important;
  line-height: 1.05 !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar a.button.disabled,
.toolbar.menu a.disabled,
.header a.button.disabled,
a.button.icon.disabled {
  opacity: 0.42 !important;
  color: #9aa8ba !important;
  background: transparent !important;
  box-shadow: none !important;
}

.toolbar a.button.selected,
.toolbar.menu a.selected,
.header a.button.selected,
a.button.icon.selected {
  background: #eaf3ff !important;
  color: var(--cbs-blue) !important;
  box-shadow: inset 0 -2px 0 rgba(9, 105, 255, 0.45);
}

html:not(.iframe) #layout-list > .header .toolbar a.button,
html:not(.iframe) #messagelist-header .toolbar a.button {
  flex: 1 1 0;
  min-width: 56px;
  max-width: 86px;
}

html:not(.iframe) #layout-content > .header .toolbar a.button,
html:not(.iframe) #layout-content > .header .toolbar.menu a {
  min-width: 62px;
  max-width: 96px;
}

html:not(.iframe) #layout-content > .header .toolbar,
html:not(.iframe) #layout-content > .header .toolbar.menu {
  flex: 0 1 auto;
  max-width: calc(100% - 150px);
  overflow: hidden;
}

/* Opened message template and framed previews */
#message-header {
  margin: 28px 34px 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#message-header h2.subject {
  margin: 0 0 20px !important;
  color: var(--cbs-text) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

#message-header > .header {
  min-height: 78px;
  height: auto;
  display: flex;
  align-items: center;
  padding: 14px 18px !important;
  border: 1px solid var(--cbs-border) !important;
  border-radius: 14px;
  background: var(--cbs-surface) !important;
  box-shadow: 0 12px 32px rgba(37, 59, 92, 0.06);
}

#message-header .contactphoto,
#message-header .contactphoto img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  border-radius: 50% !important;
}

#message-header .header-content {
  padding-left: 14px !important;
}

#message-header .header-summary,
#message-header .header-headers,
#message-header .header-title {
  color: var(--cbs-text) !important;
  font-size: 13px !important;
}

#message-header .header-links a {
  color: var(--cbs-blue) !important;
}

#message-content {
  margin: 22px 34px 34px !important;
  padding: 0 !important;
}

#message-content .rightcol,
#messagebody,
.message-part,
.message-htmlpart {
  color: var(--cbs-text) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

#messagebody {
  padding: 0 !important;
}

#messagebody table {
  max-width: 100%;
}

.attachmentslist li {
  border-radius: 12px !important;
  border-color: var(--cbs-border) !important;
}

/* Forms, dialogs and general controls */
.btn-primary,
button.btn-primary,
.button.mainaction,
input.button.mainaction {
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 20px rgba(9, 105, 255, 0.2);
}

.btn-primary:hover,
button.btn-primary:hover,
.button.mainaction:hover,
input.button.mainaction:hover {
  background: var(--cbs-blue-2) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select,
.custom-select,
.form-control {
  border-radius: 11px !important;
  border: 1px solid var(--cbs-border) !important;
  color: var(--cbs-text) !important;
  font-family: var(--cbs-font) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: rgba(9, 105, 255, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(9, 105, 255, 0.12) !important;
  outline: 0 !important;
}

.popupmenu,
.popover,
.ui-dialog {
  border: 1px solid var(--cbs-border) !important;
  border-radius: 14px !important;
  background: var(--cbs-surface) !important;
  box-shadow: var(--cbs-shadow) !important;
}

.popupmenu .menu li a,
.popover .menu li a {
  border-radius: 10px !important;
  color: var(--cbs-text) !important;
}

.popupmenu .menu li a:hover,
.popover .menu li a:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

/* Notifications */
html:not(.iframe) #messagestack {
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  max-width: min(420px, calc(100vw - 32px));
  z-index: 10000 !important;
}

html:not(.iframe) #messagestack div,
html:not(.iframe) #notification-container .notification,
html:not(.iframe) .alert,
html:not(.iframe) .ui.alert,
html.dark-mode #messagestack div,
html.dark-mode #notification-container .notification,
html.dark-mode .alert,
html.dark-mode .ui.alert {
  min-height: 62px;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 14px 18px 14px 16px !important;
  border: 1px solid rgba(9, 105, 255, 0.18) !important;
  border-left: 4px solid var(--cbs-blue) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--cbs-text) !important;
  font-family: var(--cbs-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  box-shadow: 0 18px 45px rgba(11, 29, 58, 0.18) !important;
  backdrop-filter: blur(12px);
}

html:not(.iframe) #messagestack div i.icon,
html:not(.iframe) .ui.alert > i.icon,
html.dark-mode #messagestack div i.icon,
html.dark-mode .ui.alert > i.icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  border-radius: 50%;
  background: rgba(9, 105, 255, 0.1) !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) #messagestack div i.icon:before,
html:not(.iframe) .ui.alert > i.icon:before,
html.dark-mode #messagestack div i.icon:before,
html.dark-mode .ui.alert > i.icon:before {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

html:not(.iframe) #messagestack .alert-success,
html:not(.iframe) #messagestack .boxconfirmation,
html:not(.iframe) #notification-container .notification.confirm,
html:not(.iframe) .alert-success,
html:not(.iframe) .ui.alert.boxconfirmation,
html.dark-mode #messagestack .alert-success,
html.dark-mode #messagestack .boxconfirmation,
html.dark-mode #notification-container .notification.confirm,
html.dark-mode .alert-success,
html.dark-mode .ui.alert.boxconfirmation {
  border-color: rgba(20, 184, 117, 0.2) !important;
  border-left-color: var(--cbs-green) !important;
}

html:not(.iframe) #messagestack .alert-success i.icon,
html:not(.iframe) #messagestack .boxconfirmation i.icon,
html:not(.iframe) .ui.alert.boxconfirmation > i.icon,
html.dark-mode #messagestack .alert-success i.icon,
html.dark-mode #messagestack .boxconfirmation i.icon,
html.dark-mode .ui.alert.boxconfirmation > i.icon {
  background: rgba(20, 184, 117, 0.12) !important;
  color: #0b8b59 !important;
}

html:not(.iframe) #messagestack .alert-danger,
html:not(.iframe) #messagestack .boxerror,
html:not(.iframe) #notification-container .notification.error,
html:not(.iframe) .alert-danger,
html:not(.iframe) .ui.alert.boxerror,
html.dark-mode #messagestack .alert-danger,
html.dark-mode #messagestack .boxerror,
html.dark-mode #notification-container .notification.error,
html.dark-mode .alert-danger,
html.dark-mode .ui.alert.boxerror {
  border-color: rgba(229, 77, 90, 0.2) !important;
  border-left-color: var(--cbs-red) !important;
}

html:not(.iframe) #messagestack .alert-danger i.icon,
html:not(.iframe) #messagestack .boxerror i.icon,
html:not(.iframe) .ui.alert.boxerror > i.icon,
html.dark-mode #messagestack .alert-danger i.icon,
html.dark-mode #messagestack .boxerror i.icon,
html.dark-mode .ui.alert.boxerror > i.icon {
  background: rgba(229, 77, 90, 0.12) !important;
  color: var(--cbs-red) !important;
}

html:not(.iframe) #messagestack .alert-warning,
html:not(.iframe) #messagestack .boxwarning,
html:not(.iframe) .alert-warning,
html:not(.iframe) .ui.alert.boxwarning,
html.dark-mode #messagestack .alert-warning,
html.dark-mode #messagestack .boxwarning,
html.dark-mode .alert-warning,
html.dark-mode .ui.alert.boxwarning {
  border-color: rgba(255, 183, 67, 0.28) !important;
  border-left-color: var(--cbs-yellow) !important;
}

html:not(.iframe) #messagestack .alert-warning i.icon,
html:not(.iframe) #messagestack .boxwarning i.icon,
html:not(.iframe) .ui.alert.boxwarning > i.icon,
html.dark-mode #messagestack .alert-warning i.icon,
html.dark-mode #messagestack .boxwarning i.icon,
html.dark-mode .ui.alert.boxwarning > i.icon {
  background: rgba(255, 183, 67, 0.16) !important;
  color: #9c6811 !important;
}

html:not(.iframe) #messagestack .loading,
html.dark-mode #messagestack .loading {
  border-color: rgba(9, 105, 255, 0.18) !important;
  border-left-color: var(--cbs-blue) !important;
}

html:not(.iframe) #messagestack a,
html:not(.iframe) .ui.alert a,
html.dark-mode #messagestack a,
html.dark-mode .ui.alert a {
  color: var(--cbs-blue) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html:not(.iframe) #messagestack a:hover,
html:not(.iframe) .ui.alert a:hover,
html.dark-mode #messagestack a:hover,
html.dark-mode .ui.alert a:hover {
  text-decoration: underline !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #bfccdc;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #9dadc1;
  background-clip: padding-box;
}

@media screen and (max-width: 700px) {
  html:not(.iframe) body:not(.task-login) {
    padding: 0;
  }

  html:not(.iframe) body:not(.task-login) #layout {
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  html:not(.iframe) #layout-menu {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }

  html:not(.iframe) #layout-menu .popover-header {
    justify-content: center;
    padding: 12px 8px !important;
  }

  html:not(.iframe) #layout-menu #logo {
    width: 46px;
    max-width: 46px;
    object-fit: cover;
    object-position: left center;
  }

  html:not(.iframe) #taskmenu {
    padding: 0 10px 12px !important;
  }

  html:not(.iframe) #taskmenu a {
    justify-content: center !important;
    padding: 0 !important;
  }

  html:not(.iframe) #taskmenu a .inner,
  html:not(.iframe) #taskmenu .cybrense-sidebar-extras {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar,
  html:not(.iframe) body.task-mail #layout-list {
    min-width: 280px !important;
  }
}

@media screen and (max-height: 780px) {
  html:not(.iframe) #taskmenu .cybrense-sidebar-extras {
    display: none !important;
  }
}

@media screen and (max-width: 640px) {
  body.task-login #login-form {
    padding: 24px;
  }

  body.task-login #logo {
    width: 200px;
  }
}

/* Final density pass: keep the full app crisp instead of oversized. */
html:not(.iframe) body:not(.task-login) {
  padding: 6px !important;
  font-size: 13px;
}

html:not(.iframe) body:not(.task-login) #layout {
  height: calc(100vh - 12px) !important;
  border-radius: 12px !important;
}

html:not(.iframe) #layout-menu {
  flex-basis: 212px !important;
  width: 212px !important;
  min-width: 212px !important;
  max-width: 212px !important;
}

html:not(.iframe) #layout-menu .popover-header {
  height: 78px !important;
  min-height: 78px !important;
  padding: 14px 14px 10px !important;
}

html:not(.iframe) #layout-menu #logo {
  width: 170px !important;
  max-width: 170px !important;
  max-height: 48px !important;
}

html:not(.iframe) #taskmenu {
  gap: 6px !important;
  padding: 0 12px 14px !important;
}

html:not(.iframe) #taskmenu a {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
}

html:not(.iframe) #taskmenu .cybrense-sidebar-extras {
  max-width: 188px !important;
  gap: 10px !important;
}

.cybrense-security-card,
.cybrense-usage-card {
  padding: 12px 14px !important;
}

.cybrense-security-card {
  min-height: 104px !important;
}

.cybrense-security-orb {
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 10px !important;
}

html:not(.iframe) #layout-sidebar > .header,
html:not(.iframe) #layout-list > .header,
html:not(.iframe) #messagelist-header,
html:not(.iframe) #layout-content > .header {
  height: 68px !important;
  min-height: 68px !important;
}

html:not(.iframe) #layout-sidebar > .header {
  padding: 0 14px !important;
}

html:not(.iframe) #layout-sidebar .scroller {
  padding: 10px 10px !important;
}

html:not(.iframe) #layout-sidebar .treelist li a,
html:not(.iframe) #layout-sidebar .folderlist li a,
html:not(.iframe) #layout-sidebar .listing li a {
  min-height: 38px !important;
  margin: 2px 4px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

.cybrense-labels {
  margin: 18px 4px 8px !important;
}

.cybrense-label-item {
  min-height: 34px !important;
  font-size: 12.5px !important;
}

html:not(.iframe) body.task-mail #layout-list {
  flex-basis: 380px !important;
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
}

html:not(.iframe) #layout-list > .header,
html:not(.iframe) #messagelist-header,
html:not(.iframe) #layout-content > .header {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.toolbar a.button,
.toolbar.menu a,
.header a.button,
a.button.icon {
  min-width: 48px !important;
  height: 44px !important;
  gap: 3px !important;
  padding: 4px 6px !important;
  font-size: 10.5px !important;
}

.toolbar a.button:before,
.toolbar.menu a:before,
.header a.button:before {
  width: 20px !important;
  height: 20px !important;
  font-size: 15px !important;
}

.toolbar a.button .inner,
.toolbar.menu a .inner,
.header a.button .inner {
  max-width: 74px !important;
  font-size: 10.5px !important;
}

html:not(.iframe) #layout-content > .header .toolbar,
html:not(.iframe) #layout-content > .header .toolbar.menu {
  max-width: calc(100% - 136px) !important;
}

html:not(.iframe) body.task-mail #layout-content > .header:after {
  height: 40px !important;
  min-width: 116px !important;
  padding: 0 14px !important;
  font-size: 11.5px !important;
}

html:not(.iframe) .searchbar {
  height: 44px !important;
  margin: 12px 14px !important;
  border-radius: 13px !important;
}

html:not(.iframe) #messagelist-content {
  position: relative;
  padding: 0 8px 8px !important;
}

html:not(.iframe) #messagelist tr td {
  height: 66px !important;
}

html:not(.iframe) #layout-list .footer,
html:not(.iframe) #layout-list .pagenav {
  height: 48px !important;
  min-height: 48px !important;
}

html:not(.iframe) #messagelist-content .listing-info,
html:not(.iframe) #messagelist-content .listempty,
html:not(.iframe) #messagelist-content .empty,
html:not(.iframe) #messagelist-content > p {
  width: calc(100% - 32px) !important;
  max-width: 280px;
  min-height: 132px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column;
  gap: 10px;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px dashed #d9e5f5;
  border-radius: 14px;
  background: #fbfdff;
  color: #6d7a8e !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-align: center !important;
}

html:not(.iframe) #messagelist-content .listing-info:before,
html:not(.iframe) #messagelist-content .listempty:before,
html:not(.iframe) #messagelist-content .empty:before,
html:not(.iframe) #messagelist-content > p:before {
  content: "\f0e0";
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #edf5ff;
  color: var(--cbs-blue);
  font-family: Icons;
  font-size: 18px;
  font-weight: 900;
}

html:not(.iframe) #messagecontframe {
  background: #fff !important;
}

html:not(.iframe) #layout-sidebar > .footer,
html:not(.iframe) #layout-sidebar .quota-widget {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Desktop polish: remove responsive/mobile chrome that Roundcube keeps in the DOM. */
@media screen and (min-width: 1025px) {
  html:not(.iframe) a.back-sidebar-button,
  html:not(.iframe) a.back-list-button,
  html:not(.iframe) a.back-content-button,
  html:not(.iframe) a.toolbar-list-button,
  html:not(.iframe) a.toolbar-menu-button,
  html:not(.iframe) #layout-list > .header > .header-title:not(.all-sizes),
  html:not(.iframe) #layout-content > .header > .header-title {
    display: none !important;
  }
}

html:not(.iframe) #layout-list > .header,
html:not(.iframe) #layout-content > .header {
  align-items: center !important;
  overflow: hidden !important;
}

html:not(.iframe) #layout-list > .header .toolbar,
html:not(.iframe) #layout-content > .header .toolbar,
html:not(.iframe) #layout-content > .header .toolbar.menu {
  height: 100%;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}

html:not(.iframe) #layout-list > .header .toolbar a.button,
html:not(.iframe) #layout-content > .header .toolbar a.button,
html:not(.iframe) #layout-content > .header .toolbar.menu a,
html:not(.iframe) #messagelist-header .toolbar a.button {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
  border-radius: 11px !important;
}

html:not(.iframe) #layout-list > .header .toolbar a.button .inner,
html:not(.iframe) #layout-content > .header .toolbar a.button .inner,
html:not(.iframe) #layout-content > .header .toolbar.menu a .inner,
html:not(.iframe) #messagelist-header .toolbar a.button .inner {
  display: none !important;
}

html:not(.iframe) #layout-list > .header .toolbar a.button:before,
html:not(.iframe) #layout-content > .header .toolbar a.button:before,
html:not(.iframe) #layout-content > .header .toolbar.menu a:before,
html:not(.iframe) #messagelist-header .toolbar a.button:before {
  width: 20px !important;
  height: 20px !important;
  font-size: 16px !important;
}

html:not(.iframe) #layout-list > .header .toolbar a.button.selected,
html:not(.iframe) #layout-content > .header .toolbar a.button.selected,
html:not(.iframe) #layout-content > .header .toolbar.menu a.selected,
html:not(.iframe) #messagelist-header .toolbar a.button.selected {
  background: #eef6ff !important;
  box-shadow: inset 0 0 0 1px rgba(9, 105, 255, 0.16) !important;
}

html:not(.iframe) #layout-content > .header .toolbar,
html:not(.iframe) #layout-content > .header .toolbar.menu {
  max-width: calc(100% - 132px) !important;
}

html:not(.iframe) body.task-mail #layout-content > .header:after {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

html:not(.iframe) .searchbar {
  width: calc(100% - 28px) !important;
  max-width: none !important;
}

html:not(.iframe) #layout-sidebar > .header .username,
html:not(.iframe) #layout-sidebar > .header .header-title {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html:not(.iframe) #layout-sidebar > .header .button.toolbar-menu-button,
html:not(.iframe) #layout-sidebar > .header .button.sidebar-menu {
  flex: 0 0 34px !important;
}

/* Mail top bar cleanup */
html:not(.iframe) body.task-mail #layout-sidebar > .header > a.back-list-button,
html:not(.iframe) body.task-mail #messagelist-header > a.task-menu-button,
html:not(.iframe) body.task-mail #messagelist-header > a.back-sidebar-button,
html:not(.iframe) body.task-mail #messagelist-header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail #layout-content > .header > a.back-list-button {
  display: none !important;
}

html:not(.iframe) body.task-mail #layout-sidebar > .header,
html:not(.iframe) body.task-mail #messagelist-header,
html:not(.iframe) body.task-mail #layout-content > .header {
  height: 62px !important;
  min-height: 62px !important;
}

html:not(.iframe) body.task-mail #messagelist-header {
  gap: 8px !important;
}

html:not(.iframe) body.task-mail #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail #layout-content > .header > .toolbar.menu {
  height: 44px !important;
  padding: 0 !important;
  gap: 5px !important;
  border: 0 !important;
}

html:not(.iframe) body.task-mail #messagelist-header > .toolbar.menu {
  flex: 1 1 auto !important;
  max-width: calc(100% - 48px) !important;
}

html:not(.iframe) body.task-mail #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail #layout-content > .header > .toolbar.menu {
  flex: 0 1 auto !important;
  max-width: calc(100% - 130px) !important;
}

html:not(.iframe) body.task-mail #messagelist-header a,
html:not(.iframe) body.task-mail #layout-content > .header a {
  text-decoration: none !important;
}

html:not(.iframe) body.task-mail #messagelist-header a.button,
html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a,
html:not(.iframe) body.task-mail #layout-content > .header a.button,
html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: 0 0 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 10px !important;
  color: #5b6980 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail #messagelist-header a.button:hover,
html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a:hover,
html:not(.iframe) body.task-mail #layout-content > .header a.button:hover,
html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a:hover {
  color: var(--cbs-blue) !important;
  background: #eef6ff !important;
}

html:not(.iframe) body.task-mail #messagelist-header a.button:before,
html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a:before,
html:not(.iframe) body.task-mail #layout-content > .header a.button:before,
html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a:before {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail #messagelist-header a .inner,
html:not(.iframe) body.task-mail #layout-content > .header a .inner {
  display: none !important;
}

html:not(.iframe) body.task-mail #messagelist-header a.disabled,
html:not(.iframe) body.task-mail #layout-content > .header a.disabled {
  opacity: 0.35 !important;
  color: #a8b4c4 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a.options.active,
html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a.options.active {
  color: var(--cbs-blue) !important;
  background: #eaf3ff !important;
}

html:not(.iframe) body.task-mail #layout-content > .header:after {
  height: 36px !important;
  min-width: 112px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
}

/* Remote-content privacy banner inside the message view */
#remote-objects-message,
html.iframe #remote-objects-message,
.remote-objects-message,
html.iframe .remote-objects-message {
  width: calc(100% - 48px) !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 16px 24px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(255, 183, 67, 0.34) !important;
  border-left: 4px solid var(--cbs-yellow) !important;
  border-radius: 12px !important;
  background: #fffaf0 !important;
  color: var(--cbs-text) !important;
  box-shadow: 0 10px 28px rgba(31, 56, 91, 0.08) !important;
}

#remote-objects-message:before,
html.iframe #remote-objects-message:before,
.remote-objects-message:before,
html.iframe .remote-objects-message:before {
  content: "\f071";
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 183, 67, 0.18);
  color: #a56f13;
  font-family: Icons;
  font-size: 15px;
  font-weight: 900;
}

#remote-objects-message > i.icon,
html.iframe #remote-objects-message > i.icon,
.remote-objects-message > i.icon,
html.iframe .remote-objects-message > i.icon {
  display: none !important;
}

#remote-objects-message i.icon,
html.iframe #remote-objects-message i.icon,
.remote-objects-message i.icon,
html.iframe .remote-objects-message i.icon {
  display: none !important;
}

#remote-objects-message span,
html.iframe #remote-objects-message span,
.remote-objects-message span,
html.iframe .remote-objects-message span {
  flex: 1 1 420px;
  min-width: 220px;
  color: var(--cbs-text) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
}

#remote-objects-message a,
html.iframe #remote-objects-message a,
.remote-objects-message a,
html.iframe .remote-objects-message a {
  width: auto !important;
  min-width: 104px !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(9, 105, 255, 0.22) !important;
}

#remote-objects-message a:first-of-type,
html.iframe #remote-objects-message a:first-of-type {
  flex: 0 0 104px !important;
}

#remote-objects-message a:hover,
html.iframe #remote-objects-message a:hover,
.remote-objects-message a:hover,
html.iframe .remote-objects-message a:hover {
  background: var(--cbs-blue-2) !important;
  color: #fff !important;
  text-decoration: none !important;
}

#remote-objects-message a[href="#loadremotealways"],
html.iframe #remote-objects-message a[href="#loadremotealways"],
#remote-objects-message a.cybrense-remote-always,
html.iframe #remote-objects-message a.cybrense-remote-always,
.remote-objects-message a.cybrense-remote-always,
html.iframe .remote-objects-message a.cybrense-remote-always {
  min-width: 260px !important;
  max-width: min(420px, 100%) !important;
  flex: 0 1 auto !important;
  justify-content: center !important;
  background: #12213a !important;
  box-shadow: 0 8px 18px rgba(18, 33, 58, 0.16) !important;
}

#remote-objects-message a[href="#loadremotealways"]:hover,
html.iframe #remote-objects-message a[href="#loadremotealways"]:hover,
#remote-objects-message a.cybrense-remote-always:hover,
html.iframe #remote-objects-message a.cybrense-remote-always:hover,
.remote-objects-message a.cybrense-remote-always:hover,
html.iframe .remote-objects-message a.cybrense-remote-always:hover {
  background: #24334f !important;
}

/* Opened message window polish */
html:not(.iframe) body.task-mail.action-show {
  padding: 8px !important;
  background: var(--cbs-frame) !important;
}

html:not(.iframe) body.task-mail.action-show #layout {
  height: calc(100vh - 16px) !important;
  border-radius: 14px !important;
  background: #f7faff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
}

html:not(.iframe) body.task-mail.action-show #layout-content {
  background: #f7faff !important;
}

html:not(.iframe) body.task-mail.action-show #layout-content > .header {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--cbs-border) !important;
}

html:not(.iframe) body.task-mail.action-show #layout-content > .header a.button,
html:not(.iframe) body.task-mail.action-show #layout-content > .header .toolbar.menu a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 10px !important;
}

html:not(.iframe) body.task-mail.action-show #layout-content > .header:after {
  height: 34px !important;
  min-width: 112px !important;
  font-size: 11px !important;
}

html:not(.iframe) body.task-mail.action-show #layout-content > .content.frame-content {
  width: 100% !important;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 28px 36px 40px !important;
  background: #f7faff !important;
}

html:not(.iframe) body.task-mail.action-show #message-header {
  max-width: 100%;
  margin: 0 0 18px !important;
}

html:not(.iframe) body.task-mail.action-show #message-header h2.subject {
  margin: 0 0 18px !important;
  color: #071a33 !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

html:not(.iframe) body.task-mail.action-show #message-header > .header {
  min-height: 74px !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 38px rgba(37, 59, 92, 0.07) !important;
}

html:not(.iframe) body.task-mail.action-show #message-header .contactphoto,
html:not(.iframe) body.task-mail.action-show #message-header .contactphoto img {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

html:not(.iframe) body.task-mail.action-show #message-header .header-summary,
html:not(.iframe) body.task-mail.action-show #message-header .header-headers {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html:not(.iframe) body.task-mail.action-show #message-header .header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

html:not(.iframe) body.task-mail.action-show #message-header .header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--cbs-blue) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

html:not(.iframe) body.task-mail.action-show #message-content {
  max-width: 100%;
  margin: 18px 0 0 !important;
  min-height: 280px;
  padding: 18px !important;
  border: 1px solid var(--cbs-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 14px 38px rgba(37, 59, 92, 0.06) !important;
}

html:not(.iframe) body.task-mail.action-show #message-content .leftcol {
  display: none;
}

html:not(.iframe) body.task-mail.action-show #message-content .rightcol {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-show #messagebody {
  padding: 2px 2px 0 !important;
  color: var(--cbs-text) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html:not(.iframe) body.task-mail.action-show #remote-objects-message,
html:not(.iframe) body.task-mail.action-show .remote-objects-message {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  gap: 12px !important;
}

html:not(.iframe) body.task-mail.action-show #remote-objects-message span,
html:not(.iframe) body.task-mail.action-show .remote-objects-message span {
  flex: 1 1 360px !important;
}

@media (max-width: 820px) {
  html:not(.iframe) body.task-mail.action-show {
    padding: 0 !important;
  }

  html:not(.iframe) body.task-mail.action-show #layout {
    height: 100vh !important;
    border-radius: 0 !important;
  }

  html:not(.iframe) body.task-mail.action-show #layout-content > .content.frame-content {
    padding: 20px 16px 28px !important;
  }

  html:not(.iframe) body.task-mail.action-show #message-header h2.subject {
    font-size: 20px !important;
  }

  html:not(.iframe) body.task-mail.action-show #message-header > .header,
  html:not(.iframe) body.task-mail.action-show #message-content {
    border-radius: 12px !important;
  }
}

/* Final desktop mail alignment */
@media screen and (min-width: 1025px) {
  html:not(.iframe) body.task-mail #layout {
    background: #fff !important;
  }

  html:not(.iframe) body.task-mail #layout-menu {
    flex-basis: 218px !important;
    width: 218px !important;
    min-width: 218px !important;
    max-width: 218px !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar {
    flex-basis: 268px !important;
    width: 268px !important;
    min-width: 268px !important;
    max-width: 268px !important;
    background: #f7faff !important;
  }

  html:not(.iframe) body.task-mail #layout-list {
    flex-basis: 382px !important;
    width: 382px !important;
    min-width: 382px !important;
    max-width: 382px !important;
    background: #fbfdff !important;
  }

  html:not(.iframe) body.task-mail #layout-content {
    background: #fff !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header,
  html:not(.iframe) body.task-mail #messagelist-header,
  html:not(.iframe) body.task-mail #layout-content > .header {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header {
    border-right: 1px solid var(--cbs-border) !important;
  }

  html:not(.iframe) body.task-mail:not(.action-show) .back-list-button,
  html:not(.iframe) body.task-mail:not(.action-show) .back-sidebar-button,
  html:not(.iframe) body.task-mail:not(.action-show) .back-content-button,
  html:not(.iframe) body.task-mail:not(.action-show) .task-menu-button {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header .username,
  html:not(.iframe) body.task-mail #layout-sidebar > .header .header-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 42px) !important;
    overflow: hidden !important;
    color: #071a33 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header .toolbar-menu-button,
  html:not(.iframe) body.task-mail #layout-sidebar > .header .button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin-left: auto !important;
    border-radius: 10px !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header .toolbar-menu-button .inner,
  html:not(.iframe) body.task-mail #layout-sidebar > .header .button .inner {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header > .toolbar,
  html:not(.iframe) body.task-mail #messagelist-header > .toolbar.menu,
  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar.menu {
    height: 42px !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header > .toolbar,
  html:not(.iframe) body.task-mail #messagelist-header > .toolbar.menu {
    flex: 1 1 auto !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar.menu {
    flex: 0 1 auto !important;
    padding-right: 10px !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a.button,
  html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a,
  html:not(.iframe) body.task-mail #layout-content > .header a.button,
  html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 9px !important;
    color: #58677d !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a .inner,
  html:not(.iframe) body.task-mail #layout-content > .header a .inner,
  html:not(.iframe) body.task-mail #messagelist-header a > span,
  html:not(.iframe) body.task-mail #layout-content > .header a > span {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a.button:before,
  html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a:before,
  html:not(.iframe) body.task-mail #layout-content > .header a.button:before,
  html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a:before {
    width: 18px !important;
    height: 18px !important;
    font-size: 15px !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header a.disabled {
    opacity: 0.2 !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header:after {
    height: 34px !important;
    min-width: 116px !important;
    margin-left: auto !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  html:not(.iframe) body.task-mail .searchbar {
    height: 40px !important;
    margin: 10px 14px 12px !important;
    border-radius: 12px !important;
  }

  html:not(.iframe) body.task-mail #messagelist-content {
    padding: 0 10px 8px !important;
    background: #fbfdff !important;
  }

  html:not(.iframe) body.task-mail #messagelist {
    border-spacing: 0 8px !important;
  }

  html:not(.iframe) body.task-mail #messagelist tr td {
    height: 62px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  html:not(.iframe) body.task-mail #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
    padding-left: 68px !important;
    padding-right: 12px !important;
  }

  html:not(.iframe) body.task-mail .cybrense-mail-avatar {
    left: 14px !important;
    width: 38px !important;
    height: 38px !important;
  }

  html:not(.iframe) body.task-mail #messagelist td.date,
  html:not(.iframe) body.task-mail #messagelist td.subject span.date {
    color: #627188 !important;
    font-size: 11.5px !important;
    text-align: right !important;
  }

  html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .listing-info,
  html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .listempty,
  html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .empty,
  html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages > p {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-content .iframe-wrapper,
  html:not(.iframe) body.task-mail #messagecontframe {
    background: #f7faff !important;
  }
}

/* Message page shown inside the reading pane */
html.iframe body.task-mail.action-show,
html.iframe body.action-show {
  min-height: 100vh !important;
  padding: 26px 34px 40px !important;
  background: #f7faff !important;
  overflow-x: hidden !important;
}

html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto 16px !important;
  padding: 0 !important;
}

html.iframe body.task-mail.action-show #message-header h2.subject,
html.iframe body.action-show #message-header h2.subject {
  margin: 0 0 18px !important;
  color: #071a33 !important;
  font-size: 24px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

html.iframe body.task-mail.action-show #message-header > .header,
html.iframe body.action-show #message-header > .header {
  min-height: 76px !important;
  padding: 14px 18px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(37, 59, 92, 0.08) !important;
}

html.iframe body.task-mail.action-show #message-header .contactphoto,
html.iframe body.task-mail.action-show #message-header .contactphoto img,
html.iframe body.action-show #message-header .contactphoto,
html.iframe body.action-show #message-header .contactphoto img {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
}

html.iframe body.task-mail.action-show #message-header .header-content,
html.iframe body.action-show #message-header .header-content {
  min-width: 0 !important;
  padding-left: 14px !important;
}

html.iframe body.task-mail.action-show #message-header .header-summary,
html.iframe body.task-mail.action-show #message-header .header-headers,
html.iframe body.action-show #message-header .header-summary,
html.iframe body.action-show #message-header .header-headers {
  color: #14243b !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  width: 100% !important;
  max-width: 900px !important;
  min-height: 260px !important;
  margin: 16px auto 0 !important;
  padding: 22px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(37, 59, 92, 0.06) !important;
}

html.iframe body.task-mail.action-show #message-content .leftcol,
html.iframe body.action-show #message-content .leftcol {
  display: none !important;
}

html.iframe body.task-mail.action-show #message-content .rightcol,
html.iframe body.action-show #message-content .rightcol {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

html.iframe body.task-mail.action-show #messagebody,
html.iframe body.action-show #messagebody {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--cbs-text) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.task-mail.action-show .remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.action-show .remote-objects-message {
  width: 100% !important;
  margin: 0 0 18px !important;
}

@media (max-width: 820px) {
  html.iframe body.task-mail.action-show,
  html.iframe body.action-show {
    padding: 18px 14px 28px !important;
  }

  html.iframe body.task-mail.action-show #message-header h2.subject,
  html.iframe body.action-show #message-header h2.subject {
    font-size: 20px !important;
  }

  html.iframe body.task-mail.action-show #message-content,
  html.iframe body.action-show #message-content {
    padding: 16px !important;
    border-radius: 12px !important;
  }
}

/* Responsive guardrails: keep Roundcube clean while resizing the window. */
html:not(.iframe) body.task-mail #layout,
html:not(.iframe) body.task-mail #layout-menu,
html:not(.iframe) body.task-mail #layout-sidebar,
html:not(.iframe) body.task-mail #layout-list,
html:not(.iframe) body.task-mail #layout-content {
  min-height: 0 !important;
}

html:not(.iframe) body.task-mail #layout-list,
html:not(.iframe) body.task-mail #layout-content {
  min-width: 0 !important;
}

html:not(.iframe) body.task-mail #messagelist-header,
html:not(.iframe) body.task-mail #layout-content > .header {
  min-width: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail #messagelist {
  table-layout: fixed !important;
}

html:not(.iframe) body.task-mail #messagelist td.subject {
  width: auto !important;
  min-width: 0 !important;
}

html:not(.iframe) body.task-mail #messagelist td.date,
html:not(.iframe) body.task-mail #messagelist td.subject span.date {
  width: 88px !important;
  max-width: 88px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail #messagelist td.subject span.subject,
html:not(.iframe) body.task-mail #messagelist td.subject span.msgbody,
html:not(.iframe) body.task-mail #messagelist td.subject span.fromto,
html:not(.iframe) body.task-mail #messagelist td.subject span.sender {
  min-width: 0 !important;
  max-width: 100% !important;
}

html:not(.iframe) body.task-mail #messagelist-content:has(#messagelist tr td) .listing-info,
html:not(.iframe) body.task-mail #messagelist-content:has(#messagelist tr td) .listempty,
html:not(.iframe) body.task-mail #messagelist-content:has(#messagelist tr td) .empty,
html:not(.iframe) body.task-mail #messagelist-content:has(#messagelist tr td) > p,
html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .listing-info,
html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .listempty,
html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages .empty,
html:not(.iframe) body.task-mail #messagelist-content.cybrense-has-messages > p {
  display: none !important;
}

@media screen and (max-width: 1180px) {
  html:not(.iframe) body.task-mail #layout-menu {
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }

  html:not(.iframe) body.task-mail #layout-menu #logo {
    width: 154px !important;
    max-width: 154px !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar {
    flex: 0 0 246px !important;
    width: 246px !important;
    min-width: 246px !important;
    max-width: 246px !important;
  }

  html:not(.iframe) body.task-mail #layout-list {
    flex: 0 1 356px !important;
    width: 356px !important;
    min-width: 320px !important;
    max-width: 42vw !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar > .header,
  html:not(.iframe) body.task-mail #messagelist-header,
  html:not(.iframe) body.task-mail #layout-content > .header {
    height: 56px !important;
    min-height: 56px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header > .toolbar,
  html:not(.iframe) body.task-mail #messagelist-header > .toolbar.menu,
  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail #layout-content > .header > .toolbar.menu {
    height: 38px !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a.button,
  html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a,
  html:not(.iframe) body.task-mail #layout-content > .header a.button,
  html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 9px !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a .inner,
  html:not(.iframe) body.task-mail #layout-content > .header a .inner,
  html:not(.iframe) body.task-mail #messagelist-header a > span,
  html:not(.iframe) body.task-mail #layout-content > .header a > span {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #messagelist-header a.button:before,
  html:not(.iframe) body.task-mail #messagelist-header .toolbar.menu a:before,
  html:not(.iframe) body.task-mail #layout-content > .header a.button:before,
  html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a:before {
    width: 17px !important;
    height: 17px !important;
    font-size: 14px !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header a.disabled,
  html:not(.iframe) body.task-mail #layout-content > .header .toolbar.menu a.disabled {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header:after {
    height: 32px !important;
    min-width: 108px !important;
    padding: 0 12px !important;
    font-size: 10.5px !important;
  }

  html:not(.iframe) body.task-mail .searchbar {
    height: 40px !important;
    margin: 10px 12px !important;
  }
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.task-mail #layout-menu {
    flex-basis: 196px !important;
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
  }

  html:not(.iframe) body.task-mail #layout-sidebar {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-list {
    flex: 0 1 370px !important;
    width: 370px !important;
    min-width: 310px !important;
    max-width: 48vw !important;
  }

  html:not(.iframe) body.task-mail #layout-content {
    flex: 1 1 auto !important;
  }
}

@media screen and (max-width: 860px) {
  html:not(.iframe) body.task-mail #layout-menu {
    flex-basis: 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }

  html:not(.iframe) body.task-mail #layout-menu .popover-header {
    justify-content: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html:not(.iframe) body.task-mail #layout-menu #logo {
    width: 52px !important;
    max-width: 52px !important;
    object-fit: cover !important;
    object-position: left center !important;
  }

  html:not(.iframe) body.task-mail #taskmenu {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  html:not(.iframe) body.task-mail #taskmenu a {
    justify-content: center !important;
    padding: 0 !important;
  }

  html:not(.iframe) body.task-mail #taskmenu a .inner,
  html:not(.iframe) body.task-mail #taskmenu .cybrense-sidebar-extras {
    display: none !important;
  }

  html:not(.iframe) body.task-mail #layout-list {
    flex-basis: 352px !important;
    width: 352px !important;
    min-width: 292px !important;
    max-width: 52vw !important;
  }
}

@media screen and (max-width: 700px) {
  html:not(.iframe) body.task-mail {
    padding: 0 !important;
  }

  html:not(.iframe) body.task-mail #layout {
    height: 100vh !important;
    border-radius: 0 !important;
  }

  html:not(.iframe) body.task-mail #layout-menu {
    flex-basis: 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }

  html:not(.iframe) body.task-mail #layout-list {
    flex: 0 1 100% !important;
    width: calc(100vw - 72px) !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html:not(.iframe) body.task-mail #layout-content {
    min-width: 0 !important;
  }

  html:not(.iframe) body.task-mail #messagelist td.date,
  html:not(.iframe) body.task-mail #messagelist td.subject span.date {
    width: 72px !important;
    max-width: 72px !important;
  }

  html:not(.iframe) body.task-mail #layout-content > .header:after {
    min-width: 96px !important;
    padding: 0 10px !important;
  }
}

/* Production responsive stabilization */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
  display: flex !important;
  min-width: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout > div {
  min-width: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
  flex: 1 1 auto !important;
  min-width: 260px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 12px !important;
  gap: 6px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu {
  height: 38px !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  flex: 0 0 32px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a:before {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a.disabled {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  height: 32px !important;
  min-width: 108px !important;
  padding: 0 12px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist {
  table-layout: fixed !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  padding-left: 58px !important;
  padding-right: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar {
  left: 12px !important;
  width: 36px !important;
  height: 36px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject span.date {
  width: 82px !important;
  max-width: 82px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-wide #layout-menu {
  flex: 0 0 218px !important;
  width: 218px !important;
  min-width: 218px !important;
  max-width: 218px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-wide #layout-sidebar {
  flex: 0 0 268px !important;
  width: 268px !important;
  min-width: 268px !important;
  max-width: 268px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-wide #layout-list {
  flex: 0 0 382px !important;
  width: 382px !important;
  min-width: 382px !important;
  max-width: 382px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-menu {
  flex: 0 0 194px !important;
  width: 194px !important;
  min-width: 194px !important;
  max-width: 194px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-menu #logo {
  width: 154px !important;
  max-width: 154px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-sidebar {
  flex: 0 0 232px !important;
  width: 232px !important;
  min-width: 232px !important;
  max-width: 232px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-list {
  flex: 0 0 min(360px, 34vw) !important;
  width: min(360px, 34vw) !important;
  min-width: 310px !important;
  max-width: 360px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu {
  flex: 0 0 78px !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu .popover-header,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu .popover-header {
  justify-content: center !important;
  padding: 10px 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu #logo,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu #logo {
  width: 52px !important;
  max-width: 52px !important;
  object-fit: cover !important;
  object-position: left center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu {
  padding-left: 9px !important;
  padding-right: 9px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a {
  justify-content: center !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu .cybrense-sidebar-extras {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-sidebar {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-list {
  flex: 0 0 360px !important;
  width: 360px !important;
  min-width: 300px !important;
  max-width: 44vw !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #messagelist-header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail.cybrense-ui-narrow #messagelist-header > a.back-sidebar-button,
html:not(.iframe) body.task-mail.cybrense-ui-phone #messagelist-header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail.cybrense-ui-phone #messagelist-header > a.back-sidebar-button {
  display: inline-flex !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-content > .header > a.back-list-button,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-content > .header > a.back-list-button {
  display: inline-flex !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-phone {
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-phone #layout {
  height: 100vh !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu {
  flex-basis: 68px !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-list {
  flex: 0 0 min(330px, calc(100vw - 68px)) !important;
  width: min(330px, calc(100vw - 68px)) !important;
  min-width: 0 !important;
  max-width: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-content {
  min-width: 0 !important;
}

/* Topbar sanity: never resurrect Roundcube hidden/mobile/disabled controls. */
html:not(.iframe) body.task-mail .hidden,
html:not(.iframe) body.task-mail a.hidden,
html:not(.iframe) body.task-mail button.hidden,
html:not(.iframe) body.task-mail .toolbar .hidden,
html:not(.iframe) body.task-mail .toolbar.menu .hidden,
html:not(.iframe) body.task-mail #mailtoolbar > a.compose.hidden {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:has(a.disabled) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu {
  flex: 0 1 auto !important;
  max-width: 112px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #messagelist-header .toolbar.menu {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  margin-left: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar .spacer {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > span:not(.spacer) {
  flex: 0 0 auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #mailtoolbar > a.markmessage,
html:not(.iframe) body.task-mail.cybrense-ui-phone #mailtoolbar > a.markmessage {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a.button {
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a.button .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a.button .inner {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a.button:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a.button:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

/* Professional message reading surface */
html.iframe body.task-mail.action-show,
html.iframe body.action-show {
  padding: 24px 32px 38px !important;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%) !important;
}

html.iframe body.task-mail.action-show .frame-content,
html.iframe body.action-show .frame-content {
  padding: 0 !important;
}

html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header,
html.iframe body.task-mail.action-show .cybrense-message-labels,
html.iframe body.action-show .cybrense-message-labels,
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;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

html.iframe body.task-mail.action-show #message-header h2.subject,
html.iframe body.action-show #message-header h2.subject {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  color: #061a35 !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

html.iframe body.task-mail.action-show #message-header > .header,
html.iframe body.action-show #message-header > .header {
  min-height: 86px !important;
  align-items: center !important;
  padding: 16px 18px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 18px 42px rgba(29, 51, 84, 0.075) !important;
}

html.iframe body.task-mail.action-show #message-header .contactphoto,
html.iframe body.task-mail.action-show #message-header .contactphoto img,
html.iframe body.action-show #message-header .contactphoto,
html.iframe body.action-show #message-header .contactphoto img {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border: 1px solid #e3ebf6 !important;
  background: #f1f5fb !important;
}

html.iframe body.task-mail.action-show #message-header .header-content,
html.iframe body.action-show #message-header .header-content {
  min-width: 0 !important;
  padding-left: 16px !important;
}

html.iframe body.task-mail.action-show #message-header .header-summary,
html.iframe body.task-mail.action-show #message-header .header-headers,
html.iframe body.action-show #message-header .header-summary,
html.iframe body.action-show #message-header .header-headers {
  color: #10223d !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

html.iframe body.task-mail.action-show #message-header .header-title,
html.iframe body.action-show #message-header .header-title {
  color: #061a35 !important;
  font-weight: 850 !important;
}

html.iframe body.task-mail.action-show #message-header .header-links,
html.iframe body.action-show #message-header .header-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

html.iframe body.task-mail.action-show #message-header .header-links a,
html.iframe body.action-show #message-header .header-links a {
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 9px !important;
  border: 1px solid #d9e7fb !important;
  border-radius: 999px !important;
  background: #f3f8ff !important;
  color: var(--cbs-blue) !important;
  font-size: 12px !important;
  font-weight: 780 !important;
  text-decoration: none !important;
}

html.iframe body.task-mail.action-show .cybrense-message-labels,
html.iframe body.action-show .cybrense-message-labels {
  min-height: 42px !important;
  grid-template-columns: auto 1fr !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  padding: 8px 10px !important;
  border-color: #dbe7f5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(29, 51, 84, 0.045) !important;
}

html.iframe body.task-mail.action-show .cybrense-message-labels-title,
html.iframe body.action-show .cybrense-message-labels-title {
  font-size: 10.5px !important;
  letter-spacing: 0.04em !important;
}

html.iframe body.task-mail.action-show .cybrense-message-label-chip,
html.iframe body.action-show .cybrense-message-label-chip {
  height: 25px !important;
  padding: 0 9px !important;
  font-size: 11.5px !important;
}

html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  min-height: 220px !important;
  margin-top: 0 !important;
  padding: 18px 18px 22px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 20px 48px rgba(29, 51, 84, 0.065) !important;
}

html.iframe body.task-mail.action-show #message-objects,
html.iframe body.action-show #message-objects {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
}

html.iframe body.task-mail.action-show #message-buttons.information.notice,
html.iframe body.action-show #message-buttons.information.notice {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #bfe4f7 !important;
  border-radius: 14px !important;
  background: #edf9ff !important;
  color: #17334d !important;
  box-shadow: none !important;
}

html.iframe body.task-mail.action-show #message-buttons.information.notice:before,
html.iframe body.action-show #message-buttons.information.notice:before {
  content: "\f05a";
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dff3ff;
  color: #1d78a8;
  font-family: Icons;
  font-size: 13px;
  font-weight: 900;
}

html.iframe body.task-mail.action-show #message-buttons.information.notice span,
html.iframe body.action-show #message-buttons.information.notice span {
  font-size: 13px !important;
  font-weight: 720 !important;
}

html.iframe body.task-mail.action-show #message-buttons.information.notice a,
html.iframe body.action-show #message-buttons.information.notice a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(9, 105, 255, 0.18) !important;
}

html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.task-mail.action-show .remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.action-show .remote-objects-message {
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  gap: 12px !important;
  border-color: rgba(255, 183, 67, 0.42) !important;
  border-left-width: 3px !important;
  border-radius: 14px !important;
  background: #fff9ef !important;
  box-shadow: none !important;
}

html.iframe body.task-mail.action-show #remote-objects-message:before,
html.iframe body.task-mail.action-show .remote-objects-message:before,
html.iframe body.action-show #remote-objects-message:before,
html.iframe body.action-show .remote-objects-message:before {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  font-size: 13px !important;
}

html.iframe body.task-mail.action-show #remote-objects-message span,
html.iframe body.task-mail.action-show .remote-objects-message span,
html.iframe body.action-show #remote-objects-message span,
html.iframe body.action-show .remote-objects-message span {
  flex: 1 1 340px !important;
  min-width: 220px !important;
  font-size: 13px !important;
  font-weight: 780 !important;
}

html.iframe body.task-mail.action-show #remote-objects-message a,
html.iframe body.task-mail.action-show .remote-objects-message a,
html.iframe body.action-show #remote-objects-message a,
html.iframe body.action-show .remote-objects-message a {
  height: 32px !important;
  min-height: 32px !important;
  min-width: 100px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
}

html.iframe body.task-mail.action-show #remote-objects-message a[href="#loadremotealways"],
html.iframe body.task-mail.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.task-mail.action-show .remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show #remote-objects-message a[href="#loadremotealways"],
html.iframe body.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show .remote-objects-message a.cybrense-remote-always {
  min-width: 236px !important;
  max-width: min(360px, 100%) !important;
}

html.iframe body.task-mail.action-show #messagebody,
html.iframe body.action-show #messagebody {
  min-height: 100px !important;
  color: #10223d !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
}

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-top: 0 !important;
}

html:not(.iframe) body.task-mail.action-show #message-header,
html:not(.iframe) body.task-mail.action-show .cybrense-message-labels,
html:not(.iframe) body.task-mail.action-show #message-content {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
}

html:not(.iframe) body.task-mail.action-show #message-buttons.information.notice {
  border-radius: 14px !important;
  background: #edf9ff !important;
  color: #17334d !important;
}

@media (max-width: 720px) {
  html.iframe body.task-mail.action-show,
  html.iframe body.action-show {
    padding: 16px 12px 28px !important;
  }

  html.iframe body.task-mail.action-show #message-header h2.subject,
  html.iframe body.action-show #message-header h2.subject {
    font-size: 21px !important;
  }

  html.iframe body.task-mail.action-show #message-header > .header,
  html.iframe body.action-show #message-header > .header,
  html.iframe body.task-mail.action-show #message-content,
  html.iframe body.action-show #message-content {
    border-radius: 14px !important;
  }

  html.iframe body.task-mail.action-show .cybrense-message-labels,
  html.iframe body.action-show .cybrense-message-labels {
    grid-template-columns: 1fr !important;
  }

  html.iframe body.task-mail.action-show #remote-objects-message a[href="#loadremotealways"],
  html.iframe body.task-mail.action-show #remote-objects-message a.cybrense-remote-always,
  html.iframe body.task-mail.action-show .remote-objects-message a.cybrense-remote-always,
  html.iframe body.action-show #remote-objects-message a[href="#loadremotealways"],
  html.iframe body.action-show #remote-objects-message a.cybrense-remote-always,
  html.iframe body.action-show .remote-objects-message a.cybrense-remote-always {
    min-width: 100% !important;
  }
}

/* Same read-view finish when a message is opened in its own Roundcube page. */
html:not(.iframe) body.task-mail.action-show #layout-content > .content.frame-content {
  max-width: none !important;
  padding: 26px clamp(22px, 4vw, 54px) 44px !important;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%) !important;
}

html:not(.iframe) body.task-mail.action-show #message-header,
html:not(.iframe) body.task-mail.action-show .cybrense-message-labels,
html:not(.iframe) body.task-mail.action-show #message-content {
  width: min(100%, 940px) !important;
  max-width: 940px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html:not(.iframe) body.task-mail.action-show #message-header {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

html:not(.iframe) body.task-mail.action-show #message-header h2.subject {
  min-height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  color: #061a35 !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
}

html:not(.iframe) body.task-mail.action-show #message-header > .header {
  min-height: 86px !important;
  align-items: center !important;
  padding: 16px 18px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 18px 42px rgba(29, 51, 84, 0.075) !important;
}

html:not(.iframe) body.task-mail.action-show .cybrense-message-labels {
  min-height: 42px !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  padding: 8px 10px !important;
  border-color: #dbe7f5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(29, 51, 84, 0.045) !important;
}

html:not(.iframe) body.task-mail.action-show #message-content {
  min-height: 220px !important;
  margin-top: 0 !important;
  padding: 18px 18px 22px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 20px 48px rgba(29, 51, 84, 0.065) !important;
}

html:not(.iframe) body.task-mail.action-show #message-objects {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
}

html:not(.iframe) body.task-mail.action-show #message-buttons.information.notice {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #bfe4f7 !important;
  border-radius: 14px !important;
  background: #edf9ff !important;
  color: #17334d !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show #message-buttons.information.notice:before {
  content: "\f05a";
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dff3ff;
  color: #1d78a8;
  font-family: Icons;
  font-size: 13px;
  font-weight: 900;
}

html:not(.iframe) body.task-mail.action-show #message-buttons.information.notice a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(9, 105, 255, 0.18) !important;
}

html:not(.iframe) body.task-mail.action-show #remote-objects-message,
html:not(.iframe) body.task-mail.action-show .remote-objects-message {
  min-height: 56px !important;
  margin: 0 !important;
  border-left-width: 3px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* Sidebar polish: keep the main rail complete, balanced, and app-like. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu,
html:not(.iframe) body.task-addressbook #layout-menu,
html:not(.iframe) body.task-settings #layout-menu {
  flex: 0 0 228px !important;
  width: 228px !important;
  min-width: 228px !important;
  max-width: 228px !important;
  background:
    linear-gradient(180deg, rgba(15, 55, 107, 0.66) 0%, rgba(4, 22, 46, 0.12) 38%, rgba(4, 22, 46, 0) 100%),
    #04162e !important;
  border-right: 1px solid rgba(132, 166, 211, 0.22) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.035) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-wide #layout-menu {
  flex-basis: 230px !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-menu {
  flex-basis: 216px !important;
  width: 216px !important;
  min-width: 216px !important;
  max-width: 216px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu .popover-header,
html:not(.iframe) body.task-addressbook #layout-menu .popover-header,
html:not(.iframe) body.task-settings #layout-menu .popover-header {
  height: 104px !important;
  min-height: 104px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 24px 18px 14px !important;
  border-bottom: 1px solid rgba(132, 166, 211, 0.12) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu #logo,
html:not(.iframe) body.task-addressbook #layout-menu #logo,
html:not(.iframe) body.task-settings #layout-menu #logo {
  width: 184px !important;
  max-width: 184px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-menu #logo {
  width: 170px !important;
  max-width: 170px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu,
html:not(.iframe) body.task-addressbook #taskmenu,
html:not(.iframe) body.task-settings #taskmenu {
  gap: 8px !important;
  padding: 0 16px 16px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu .action-buttons,
html:not(.iframe) body.task-addressbook #taskmenu .action-buttons,
html:not(.iframe) body.task-settings #taskmenu .action-buttons {
  margin: 0 0 12px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a,
html:not(.iframe) body.task-addressbook #taskmenu a,
html:not(.iframe) body.task-settings #taskmenu a {
  position: relative !important;
  height: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: rgba(235, 244, 255, 0.78) !important;
  text-align: left !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a:before,
html:not(.iframe) body.task-addressbook #taskmenu a:before,
html:not(.iframe) body.task-settings #taskmenu a:before {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  display: inline-flex !important;
  flex: 0 0 30px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: currentColor !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a .inner,
html:not(.iframe) body.task-addressbook #taskmenu a .inner,
html:not(.iframe) body.task-settings #taskmenu a .inner {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a:hover,
html:not(.iframe) body.task-addressbook #taskmenu a:hover,
html:not(.iframe) body.task-settings #taskmenu a:hover {
  border-color: rgba(132, 166, 211, 0.16) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.mail.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.contacts.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.settings.selected,
html:not(.iframe) body.task-addressbook #taskmenu a.selected,
html:not(.iframe) body.task-settings #taskmenu a.selected {
  border-color: rgba(86, 159, 255, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(9, 105, 255, 0.2), rgba(9, 105, 255, 0.1)),
    rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.selected:after,
html:not(.iframe) body.task-addressbook #taskmenu a.selected:after,
html:not(.iframe) body.task-settings #taskmenu a.selected:after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cbs-blue);
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.1);
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.compose,
html:not(.iframe) body.task-addressbook #taskmenu a.compose,
html:not(.iframe) body.task-settings #taskmenu a.compose {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, #1375ff 0%, #0969ff 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(9, 105, 255, 0.34) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.compose:before,
html:not(.iframe) body.task-addressbook #taskmenu a.compose:before,
html:not(.iframe) body.task-settings #taskmenu a.compose:before {
  background: rgba(255, 255, 255, 0.16) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.task-addressbook #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.task-settings #taskmenu .cybrense-sidebar-extras {
  width: 100% !important;
  max-width: none !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  gap: 10px !important;
  overflow: visible !important;
  border-top: 1px solid rgba(132, 166, 211, 0.14) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-card,
html:not(.iframe) body.task-addressbook .cybrense-security-card,
html:not(.iframe) body.task-addressbook .cybrense-usage-card,
html:not(.iframe) body.task-settings .cybrense-security-card,
html:not(.iframe) body.task-settings .cybrense-usage-card {
  position: relative !important;
  border: 1px solid rgba(132, 166, 211, 0.2) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card {
  min-height: 138px !important;
  padding: 15px !important;
  text-align: left !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card:after {
  content: "TLS 1.3";
  position: absolute;
  top: 15px;
  right: 14px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 184, 117, 0.14);
  color: #72efbd;
  font-size: 10px;
  font-weight: 850;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-orb {
  width: 48px !important;
  height: 48px !important;
  margin: 0 0 14px !important;
  border-radius: 15px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card strong,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-card strong {
  font-size: 13px !important;
  font-weight: 850 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card span,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-card span {
  color: rgba(235, 244, 255, 0.72) !important;
  font-size: 12px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-card {
  padding: 13px 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-bar {
  height: 7px !important;
  margin-top: 11px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-bar i {
  background: linear-gradient(90deg, #0969ff, #3aa0ff) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu .special-buttons,
html:not(.iframe) body.task-addressbook #taskmenu .special-buttons,
html:not(.iframe) body.task-settings #taskmenu .special-buttons {
  gap: 10px !important;
  margin-top: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.logout,
html:not(.iframe) body.task-addressbook #taskmenu a.logout,
html:not(.iframe) body.task-settings #taskmenu a.logout {
  height: 46px !important;
  min-height: 46px !important;
  justify-content: flex-start !important;
  border-color: rgba(255, 120, 132, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(229, 77, 90, 0.24), rgba(229, 77, 90, 0.15)) !important;
  color: #ffe9ec !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.logout:before,
html:not(.iframe) body.task-addressbook #taskmenu a.logout:before,
html:not(.iframe) body.task-settings #taskmenu a.logout:before {
  background: rgba(255, 255, 255, 0.09) !important;
}

@media screen and (max-width: 1180px) and (min-width: 1081px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a .inner {
    font-size: 13.5px !important;
  }
}

/* Preserve compact rail behavior on genuinely narrow windows. */
html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu {
  flex: 0 0 78px !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu .popover-header,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu .popover-header {
  height: 78px !important;
  min-height: 78px !important;
  justify-content: center !important;
  padding: 12px 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu #logo,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu #logo {
  width: 52px !important;
  max-width: 52px !important;
  object-fit: cover !important;
  object-position: left center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu {
  padding-left: 9px !important;
  padding-right: 9px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a {
  justify-content: center !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a:before,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a:before {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex-basis: 36px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu a.selected:after,
html:not(.iframe) body.task-mail.cybrense-ui-narrow #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu a.selected:after,
html:not(.iframe) body.task-mail.cybrense-ui-phone #taskmenu .cybrense-sidebar-extras {
  display: none !important;
}

/* Draggable vertical splitters for the mail layout panes. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  position: relative !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 70;
  width: 10px;
  height: 100%;
  display: block;
  cursor: col-resize;
  touch-action: none;
  background: transparent;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer:before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 4px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer:hover:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer.active:before,
html:not(.iframe) body.task-mail.cybrense-resizing .cybrense-layout-resizer:before {
  background: rgba(9, 105, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(9, 105, 255, 0.12);
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu > .cybrense-layout-resizer:before {
  top: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.12);
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu > .cybrense-layout-resizer:hover:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu > .cybrense-layout-resizer.active:before {
  background: rgba(83, 160, 255, 0.8);
}

html:not(.iframe) body.task-mail.cybrense-resizing,
html:not(.iframe) body.task-mail.cybrense-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

html:not(.iframe) body.task-mail.cybrense-resizing iframe {
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow .cybrense-layout-resizer,
html:not(.iframe) body.task-mail.cybrense-ui-phone .cybrense-layout-resizer {
  display: none !important;
}

/* Professional pagination footer for the message list. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer,
html:not(.iframe) body.task-addressbook #layout-list .pagenav.menu.footer,
html:not(.iframe) body.task-settings #layout-list .pagenav.menu.footer {
  height: 58px !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 34px 34px minmax(0, 1fr) 48px 34px 34px;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 12px !important;
  border-top: 1px solid #dfe8f5 !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  color: #64748b !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a,
html:not(.iframe) body.task-settings #layout-list .pagenav a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #7b8798 !important;
  text-decoration: none !important;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a:not(.disabled):hover,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a:not(.disabled):hover,
html:not(.iframe) body.task-settings #layout-list .pagenav a:not(.disabled):hover {
  border-color: #d7e5f7 !important;
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.disabled,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.disabled,
html:not(.iframe) body.task-settings #layout-list .pagenav a.disabled {
  color: #aeb8c6 !important;
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a .inner,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a .inner,
html:not(.iframe) body.task-settings #layout-list .pagenav a .inner {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a:before,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a:before,
html:not(.iframe) body.task-settings #layout-list .pagenav a:before {
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 0 !important;
  color: currentColor !important;
  font-family: Icons;
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.firstpage:before,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.firstpage:before,
html:not(.iframe) body.task-settings #layout-list .pagenav a.firstpage:before {
  content: "\f100" !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.prevpage:before,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.prevpage:before,
html:not(.iframe) body.task-settings #layout-list .pagenav a.prevpage:before {
  content: "\f104" !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.nextpage:before,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.nextpage:before,
html:not(.iframe) body.task-settings #layout-list .pagenav a.nextpage:before {
  content: "\f105" !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.lastpage:before,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.lastpage:before,
html:not(.iframe) body.task-settings #layout-list .pagenav a.lastpage:before {
  content: "\f101" !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav .pagenav-text,
html:not(.iframe) body.task-addressbook #layout-list .pagenav .pagenav-text,
html:not(.iframe) body.task-settings #layout-list .pagenav .pagenav-text {
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
  color: #5d6b80 !important;
  font-size: 11.5px !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav input.form-control,
html:not(.iframe) body.task-addressbook #layout-list .pagenav input.form-control,
html:not(.iframe) body.task-settings #layout-list .pagenav input.form-control {
  width: 48px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eaf0f7 !important;
  color: #14243b !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 28px !important;
  text-align: center !important;
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-list .pagenav.menu.footer,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-list .pagenav.menu.footer {
  grid-template-columns: 30px 30px minmax(0, 1fr) 42px 30px 30px;
  gap: 4px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-list .pagenav a,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-list .pagenav a {
  width: 30px !important;
  min-width: 30px !important;
}

/* Professional message list rows */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content {
  padding: 10px 10px 12px !important;
  background: #f8fbff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  table-layout: fixed !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr {
  position: relative !important;
  height: 68px !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td {
  height: 68px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 1px solid #dbe7f5 !important;
  border-bottom: 1px solid #dbe7f5 !important;
  background: #fff !important;
  color: #14243b !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td:first-child {
  border-left: 1px solid #dbe7f5 !important;
  border-top-left-radius: 14px !important;
  border-bottom-left-radius: 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td:last-child {
  border-right: 1px solid #dbe7f5 !important;
  border-top-right-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr:hover td {
  border-color: #cfe0f5 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(31, 56, 91, 0.08) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected td,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.focused td {
  border-color: rgba(9, 105, 255, 0.46) !important;
  background: linear-gradient(180deg, #eef6ff 0%, #eaf3ff 100%) !important;
  box-shadow: 0 15px 34px rgba(9, 105, 255, 0.13) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative !important;
  padding: 10px 112px 10px 66px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar {
  left: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  background: #f1f6fc !important;
  color: #52627a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: inset 0 0 0 1px #dbe7f5 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar.service-mattermost {
  background: #092866 !important;
  color: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar.service-slack {
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject span.date {
  position: absolute !important;
  top: 13px !important;
  right: 16px !important;
  width: 84px !important;
  max-width: 84px !important;
  display: block !important;
  overflow: hidden !important;
  color: #58677c !important;
  font-size: 11.5px !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.date {
  width: 84px !important;
  max-width: 84px !important;
  color: #58677c !important;
  font-size: 11.5px !important;
  font-weight: 720 !important;
  text-align: right !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr:hover td.subject span.date {
  opacity: 0;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.sender {
  max-width: 100% !important;
  display: block !important;
  margin: 0 0 4px !important;
  overflow: hidden !important;
  color: #52627a !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.subject a {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #061a35 !important;
  font-size: 13px !important;
  font-weight: 870 !important;
  line-height: 1.22 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell span.msgbody {
  display: block !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  color: #7a8798 !important;
  font-size: 12px !important;
  font-weight: 520 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-row-status {
  width: 7px !important;
  height: 7px !important;
  margin: 0 7px 0 0 !important;
  vertical-align: 1px !important;
  box-shadow: 0 0 0 3px rgba(9, 105, 255, 0.1) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr:not(.unread) .cybrense-row-status {
  background: #b9c5d4 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-assigned-labels {
  gap: 4px !important;
  margin-top: 6px !important;
  padding-right: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-assigned-label {
  height: 18px !important;
  max-width: 110px !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.flagged,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.unflagged,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.attachment {
  color: #6f7d91 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected span.flagged,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected span.unflagged,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected span.attachment {
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu {
  min-width: 74px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  right: 14px !important;
  padding: 3px !important;
  border: 1px solid #d8e5f5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #52627a !important;
  box-shadow: 0 12px 28px rgba(31, 56, 91, 0.16) !important;
  backdrop-filter: blur(8px);
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu .txt {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  color: #52627a !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button.delete:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button.undo:hover {
  background: #fff0f1 !important;
  color: var(--cbs-red) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-phone #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  padding-right: 86px !important;
}

/* Topbar hardening when panes are manually resized. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  position: relative !important;
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  min-width: 0 !important;
  height: 38px !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  order: 20 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 108px !important;
  height: 34px !important;
  margin: 0 0 0 auto !important;
  padding: 0 12px !important;
  position: static !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar .spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:has(> a.disabled),
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a.dropdown {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #5b6980 !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:before {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after {
  content: "TLS 1.3" !important;
  min-width: 72px !important;
  padding: 0 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar > a.markmessage {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.reply,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.forward,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.prev,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.next {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a:not(.more):not(.delete),
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > .dropbutton {
  display: none !important;
}

/* Cybrense reference finish: one cohesive mail application surface. */
html:not(.iframe) body.task-mail.cybrense-ui-ready {
  padding: 8px !important;
  background: #02142c !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
  height: calc(100vh - 16px) !important;
  border: 1px solid rgba(124, 162, 214, 0.34) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
  flex: 0 0 212px !important;
  width: 212px !important;
  min-width: 212px !important;
  max-width: 212px !important;
  background:
    radial-gradient(circle at 50% 64%, rgba(9, 105, 255, 0.13), transparent 26%),
    linear-gradient(180deg, #061f42 0%, #04162e 42%, #031229 100%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-resized-pane {
  max-width: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
  flex: 0 0 268px !important;
  width: 268px !important;
  min-width: 268px !important;
  max-width: 268px !important;
  background: #f8fbff !important;
  border-right: 1px solid #e4ebf5 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.cybrense-resized-pane,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list.cybrense-resized-pane {
  max-width: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  flex: 0 0 382px !important;
  width: 382px !important;
  min-width: 382px !important;
  max-width: 382px !important;
  background: #fff !important;
  border-right: 1px solid #e4ebf5 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
  min-width: 360px !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu .popover-header {
  height: 94px !important;
  min-height: 94px !important;
  padding: 24px 14px 12px !important;
  border: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu #logo {
  width: 174px !important;
  max-width: 174px !important;
  max-height: 50px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu {
  gap: 10px !important;
  padding: 0 14px 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a {
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  color: rgba(238, 246, 255, 0.84) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.compose {
  margin-bottom: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.mail.selected {
  background: rgba(9, 105, 255, 0.18) !important;
  border-color: rgba(83, 160, 255, 0.24) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras {
  padding-top: 12px !important;
  gap: 12px !important;
  border-top: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card {
  min-height: 142px !important;
  padding: 17px 16px !important;
  border-radius: 13px !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(9, 105, 255, 0.42), transparent 31%),
    rgba(255, 255, 255, 0.055) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-orb {
  margin-left: auto !important;
  margin-right: auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card strong,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-security-card span {
  text-align: left !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-usage-card {
  border-radius: 13px !important;
  padding: 13px 16px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 84px !important;
  min-height: 84px !important;
  border-bottom: 1px solid #e4ebf5 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header {
  padding: 0 18px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .username,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .header-title {
  color: #071a33 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .button.sidebar-menu {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  color: #536178 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .scroller {
  padding: 16px 14px !important;
  background: #f8fbff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .treelist li a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .folderlist li a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .listing li a {
  min-height: 40px !important;
  margin: 3px 0 !important;
  padding: 0 13px !important;
  border-radius: 11px !important;
  color: #14243b !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .treelist li.selected > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .folderlist li.selected > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .listing li.selected > a {
  background: #eaf3ff !important;
  color: var(--cbs-blue) !important;
  box-shadow: inset 0 0 0 1px #d2e5ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .unreadcount {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-labels {
  margin: 28px 0 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-labels-head {
  padding: 0 4px 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-item {
  min-height: 34px !important;
  margin: 2px 0 !important;
  border-radius: 10px !important;
  color: #24334f !important;
  font-size: 13px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  padding: 0 18px !important;
  gap: 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu {
  flex: 1 1 auto !important;
  max-width: none !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex-basis: 36px !important;
  border-radius: 10px !important;
  color: #52627a !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar {
  height: 48px !important;
  margin: 14px 16px 12px !important;
  padding: 0 15px !important;
  border: 1px solid #dfe8f5 !important;
  border-radius: 14px !important;
  background: #f3f7fc !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content {
  padding: 0 8px 10px !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist {
  border-spacing: 0 7px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td {
  height: 74px !important;
  background: #fff !important;
  border-color: #e2ebf7 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected td,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.focused td {
  background: #eaf3ff !important;
  border-color: rgba(9, 105, 255, 0.52) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  padding-left: 66px !important;
  padding-right: 62px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject span.date {
  right: 16px !important;
  top: 16px !important;
  width: 48px !important;
  max-width: 48px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer {
  height: 52px !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  padding: 0 18px !important;
  gap: 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  gap: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: "Securise  TLS 1.3" !important;
  min-width: 126px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #c8f0dd !important;
  border-radius: 999px !important;
  background: #e6f8ef !important;
  color: #07925d !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after {
  content: "TLS 1.3" !important;
  min-width: 76px !important;
  height: 36px !important;
}

html.iframe body.task-mail.action-show,
html.iframe body.action-show {
  background: #fff !important;
  padding: 28px 34px 42px !important;
}

html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header,
html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  max-width: 940px !important;
}

html.iframe body.task-mail.action-show #message-header h2.subject,
html.iframe body.action-show #message-header h2.subject {
  margin-bottom: 18px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
}

html.iframe body.task-mail.action-show #message-header > .header,
html.iframe body.action-show #message-header > .header {
  border-radius: 15px !important;
  box-shadow: 0 16px 34px rgba(31, 56, 91, 0.055) !important;
}

html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  border-radius: 16px !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-sidebar {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-list {
  flex: 0 0 min(382px, calc(100vw - 78px)) !important;
  width: min(382px, calc(100vw - 78px)) !important;
  min-width: 0 !important;
}

/* Final reference alignment: keep the app balanced, readable and close to the target mockup. */
html:not(.iframe) body.task-mail.cybrense-ui-ready {
  overflow: hidden !important;
  color: #061a35 !important;
  font-size: 13px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
  isolation: isolate !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  position: relative !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
  flex: 0 0 212px !important;
  width: 212px !important;
  min-width: 212px !important;
  max-width: 212px !important;
  border-right: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-resized-pane,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.cybrense-resized-pane,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list.cybrense-resized-pane {
  max-width: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu {
  height: calc(100% - 94px) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 14px 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 17px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: rgba(240, 247, 255, 0.9) !important;
  text-align: left !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a:before {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a .inner {
  min-width: 0 !important;
  display: block !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.compose {
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 0 12px !important;
  justify-content: center !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(9, 105, 255, 0.24) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.compose .inner {
  flex: 0 1 auto !important;
  font-weight: 850 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a:hover {
  background: rgba(9, 105, 255, 0.18) !important;
  border-color: rgba(105, 176, 255, 0.25) !important;
  color: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras {
  margin-top: auto !important;
  padding-top: 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.logout {
  height: 46px !important;
  min-height: 46px !important;
  justify-content: center !important;
  margin-top: 8px !important;
  border-color: rgba(255, 123, 133, 0.38) !important;
  background: linear-gradient(135deg, rgba(136, 72, 83, 0.95), rgba(94, 52, 62, 0.95)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #taskmenu a.logout .inner {
  flex: 0 1 auto !important;
  text-align: center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
  flex: 0 0 268px !important;
  width: 268px !important;
  min-width: 268px !important;
  max-width: 268px !important;
  background: #f8fbff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .scroller {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .treelist li a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .folderlist li a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .listing li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .treelist li a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .folderlist li a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .listing li a:before {
  flex: 0 0 18px !important;
  width: 18px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-item {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  padding: 0 6px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-count:empty {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  flex: 0 0 382px !important;
  width: 382px !important;
  min-width: 382px !important;
  max-width: 382px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before {
  margin: 0 !important;
  float: none !important;
  font-size: 15px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 18px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: "Securise TLS 1.3" !important;
  min-width: 124px !important;
  height: 42px !important;
  margin-left: auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  max-width: calc(100% - 142px) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:has(a.disabled) {
  opacity: 0.28 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content {
  padding: 8px 10px 12px !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  min-height: 74px !important;
  padding-left: 66px !important;
  padding-right: 88px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced .cybrense-mail-avatar {
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject span.date {
  right: 16px !important;
  top: 17px !important;
  width: 58px !important;
  max-width: 58px !important;
  overflow: hidden !important;
  color: #4e6282 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist td.subject .fromto {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu {
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  max-width: 94px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer {
  border-top: 1px solid #e4ebf5 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagecontframe {
  background: #fff !important;
}

html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header,
html.iframe body.task-mail.action-show #message-content,
html.iframe body.action-show #message-content {
  margin-left: clamp(18px, 3vw, 48px) !important;
  margin-right: clamp(18px, 3vw, 48px) !important;
}

html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.task-mail.action-show .remote-objects-message,
html.iframe body.action-show .remote-objects-message {
  width: auto !important;
  max-width: 900px !important;
  margin-left: clamp(18px, 3vw, 48px) !important;
  margin-right: clamp(18px, 3vw, 48px) !important;
  display: grid !important;
  grid-template-columns: 34px minmax(220px, 1fr) auto auto !important;
  align-items: center !important;
}

html.iframe body.task-mail.action-show #remote-objects-message a,
html.iframe body.action-show #remote-objects-message a,
html.iframe body.task-mail.action-show .remote-objects-message a,
html.iframe body.action-show .remote-objects-message a {
  max-width: 280px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-menu {
  flex-basis: 204px !important;
  width: 204px !important;
  min-width: 204px !important;
  max-width: 204px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-sidebar {
  flex-basis: 252px !important;
  width: 252px !important;
  min-width: 252px !important;
  max-width: 252px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #layout-list {
  flex-basis: 350px !important;
  width: 350px !important;
  min-width: 350px !important;
  max-width: 350px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-tight #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  padding-right: 76px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu {
  flex-basis: 214px !important;
  width: 214px !important;
  min-width: 214px !important;
  max-width: 214px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-list {
  flex: 0 0 min(386px, calc(100vw - 230px)) !important;
  width: min(386px, calc(100vw - 230px)) !important;
  max-width: min(386px, calc(100vw - 230px)) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-content > .header,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-content > .header {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after {
  content: "TLS 1.3" !important;
  min-width: 74px !important;
  height: 34px !important;
  padding: 0 10px !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar {
  max-width: 100% !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar a.disabled,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > .dropbutton:has(a.disabled),
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.reply-all,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.markmessage,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.print {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.forward,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.reply,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.prev,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.next {
  display: none !important;
}

/* Absolute final UI guards. Keep this as the last block. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #e3ebf6 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.options) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content:not(.cybrense-has-messages) .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-label-hidden .listing-hover-menu {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget.cybrense-hidden-quota,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .cybrense-storage-action {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Real final fix: center the message action icons inside the top bar. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  display: inline-grid !important;
  place-items: center !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  border-radius: 10px !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
  color: currentColor !important;
  font-size: 15px !important;
  line-height: 18px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span {
  display: none !important;
}

/* Final toolbar vertical alignment. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  align-self: center !important;
  transform: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border-radius: 10px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:before {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Absolute last action-bar alignment: force the message toolbar into the real vertical center. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  position: relative !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #mailtoolbar {
  position: relative !important;
  top: 50% !important;
  align-self: flex-start !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: translateY(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  top: auto !important;
  align-self: center !important;
  transform: none !important;
}

/* Remove the TLS badge from the app chrome. */
html:not(.iframe) body.task-mail #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after,
html:not(.iframe) body.task-mail.action-show #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-content-nano #layout-content > .header:after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Remove the folder actions popup menu completely. */
html:not(.iframe) body.task-mail #mailboxoptions-menu,
html:not(.iframe) body.task-mail [data-popup="mailboxoptions-menu"],
html:not(.iframe) body.task-mail #layout-sidebar > .header .sidebar-menu,
html:not(.iframe) body.task-mail #layout-sidebar > .header .button.sidebar-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Remove the sidebar protection card; keep only logout at the bottom. */
html:not(.iframe) body.cybrense-ui-ready .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready .cybrense-usage-card,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras > .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras > .cybrense-usage-card {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras {
  min-height: 0 !important;
  margin-top: auto !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  gap: 0 !important;
}

/* Label rows: filter by clicking the name, delete by clicking the x. */
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-list {
  display: grid !important;
  gap: 3px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  align-items: center !important;
  gap: 4px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-row .cybrense-label-item {
  min-width: 0 !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-inline-delete {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #94a1b4 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-inline-delete:hover {
  border-color: rgba(255, 93, 108, 0.22) !important;
  background: #fff0f2 !important;
  color: #c93245 !important;
}

/* Audit hardening: final rules that must win over older Roundcube and earlier overrides. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #e3ebf6 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.options) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content:not(.cybrense-has-messages) .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-label-hidden .listing-hover-menu {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-label-hidden {
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-filter-empty {
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 5 !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget.cybrense-hidden-quota,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .cybrense-storage-action {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Clear label assignment control in the message view. */
.cybrense-message-labels {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px 12px !important;
}

.cybrense-message-labels-top {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.cybrense-label-assign-button {
  height: 30px !important;
  min-width: 104px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(9, 105, 255, 0.28) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #1678ff 0%, #0969ff 100%) !important;
  color: #fff !important;
  font-family: var(--cbs-font) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 10px 22px rgba(9, 105, 255, 0.18) !important;
}

.cybrense-label-assign-button:before {
  content: "\f02b";
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Icons !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.cybrense-label-assign-button:hover {
  background: linear-gradient(180deg, #2d87ff 0%, #0b6dff 100%) !important;
  box-shadow: 0 12px 26px rgba(9, 105, 255, 0.24) !important;
}

.cybrense-message-labels:not(.is-open) .cybrense-message-labels-list {
  display: none !important;
}

.cybrense-message-labels-list {
  width: 100% !important;
  min-width: 0 !important;
  padding-top: 2px !important;
  gap: 8px !important;
}

.cybrense-message-label-chip {
  height: 30px !important;
  padding: 0 12px !important;
  border-color: #d7e4f4 !important;
  background: #fff !important;
  color: #162b4a !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.cybrense-message-label-chip:after {
  content: "+";
  width: 16px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 2px !important;
  border-radius: 50% !important;
  background: #edf4ff !important;
  color: #0969ff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.cybrense-message-label-chip.active:after {
  content: "\2713";
  background: #0969ff !important;
  color: #fff !important;
}

@media (max-width: 720px) {
  .cybrense-message-labels-top {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .cybrense-label-assign-button {
    width: 100% !important;
  }
}

/* Empty label filters must not keep stale row action buttons on screen. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content:not(.cybrense-has-messages) .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden {
  pointer-events: none !important;
}

/* Mail-list header cleanup: remove the broken Select/Threads/Options popover block. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #e3ebf6 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.options) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a:before {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  float: none !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span {
  display: none !important;
}

@media (max-width: 720px) {
  html.iframe body.task-mail.action-show #remote-objects-message,
  html.iframe body.action-show #remote-objects-message,
  html.iframe body.task-mail.action-show .remote-objects-message,
  html.iframe body.action-show .remote-objects-message {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  html.iframe body.task-mail.action-show #remote-objects-message a,
  html.iframe body.action-show #remote-objects-message a,
  html.iframe body.task-mail.action-show .remote-objects-message a,
  html.iframe body.action-show .remote-objects-message a {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Top strip finish: compact, centered and aligned like a proper app chrome. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu .popover-header {
  height: 86px !important;
  min-height: 86px !important;
  display: flex !important;
  align-items: center !important;
  padding: 18px 16px 12px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu #logo {
  width: min(168px, calc(100% - 12px)) !important;
  max-width: calc(100% - 12px) !important;
  height: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 76px !important;
  min-height: 76px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #e3ebf6 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  column-gap: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .username,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .header-title {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #071a33 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .button.sidebar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .button.toolbar-menu-button {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  justify-self: end !important;
  border-radius: 10px !important;
  color: #4d5e78 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  justify-content: flex-start !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  height: 38px !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  flex: 0 1 auto !important;
  max-width: calc(100% - 158px) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.button:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.active,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.selected,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.active {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  float: none !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar .spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a.dropdown,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:has(a.disabled) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: "Securise TLS 1.3" !important;
  width: auto !important;
  min-width: 132px !important;
  height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 12px 0 auto !important;
  padding: 0 16px !important;
  border: 1px solid #bdebd7 !important;
  border-radius: 999px !important;
  background: #e5f8ef !important;
  color: #058456 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-narrow #layout-menu #logo,
html:not(.iframe) body.task-mail.cybrense-ui-phone #layout-menu #logo {
  width: min(168px, calc(100% - 12px)) !important;
  max-width: calc(100% - 12px) !important;
  object-fit: contain !important;
  object-position: left center !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after {
  content: "TLS 1.3" !important;
  min-width: 82px !important;
  height: 36px !important;
  margin-right: 8px !important;
  padding: 0 12px !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header:after {
  display: inline-flex !important;
  content: "TLS" !important;
  min-width: 54px !important;
  height: 34px !important;
  margin-right: 4px !important;
  padding: 0 10px !important;
}

/* Keep row quick actions attached to the selected email, not floating at the pane bottom. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist {
  position: relative !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced {
  position: relative !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 15 !important;
  min-width: 86px !important;
  width: auto !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 3px !important;
  transform: translateY(-50%) !important;
  border: 1px solid #d8e5f5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 12px 28px rgba(31, 56, 91, 0.16) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:hover .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-action-active .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused .listing-hover-menu {
  opacity: 1 !important;
  pointer-events: auto !important;
}

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.selected 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.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused td.cybrense-subject-cell span.date {
  opacity: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  color: #52627a !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content > .listing-hover-menu {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr .listing-hover-menu {
  display: inline-flex !important;
}

/* Sidebar footer: keep only the branded logout action. */
html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 8px 0 0 !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 124, 136, 0.42) !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(128, 65, 77, 0.98), rgba(93, 48, 59, 0.98)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(46, 18, 29, 0.2) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout:before {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout .inner {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 120px !important;
  display: block !important;
  overflow: hidden !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.cybrense-ui-ready .cybrense-usage-card {
  display: none !important;
}

/* Message action bar final clamp: one clean row, no floating pill under the TLS badge. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 104px) !important;
  height: 36px !important;
  min-height: 36px !important;
  display: flex !important;
  flex: 0 1 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  position: static !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:before {
  width: 17px !important;
  height: 17px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  float: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar .spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a.dropdown,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:has(a.disabled),
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.options {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: "TLS 1.3" !important;
  position: static !important;
  width: auto !important;
  min-width: 78px !important;
  height: 34px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 6px 0 auto !important;
  padding: 0 12px !important;
  border: 1px solid #bdebd7 !important;
  border-radius: 999px !important;
  background: #e5f8ef !important;
  color: #058456 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header,
html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header,
html:not(.iframe) body.task-mail.cybrense-content-nano #layout-content > .header {
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-content-tiny #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-content-nano #layout-content > .header:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar {
  max-width: 100% !important;
}

html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar > a.reply-all,
html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar > a.forward,
html:not(.iframe) body.task-mail.cybrense-content-tight #mailtoolbar > a.print,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.reply-all,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.forward,
html:not(.iframe) body.task-mail.cybrense-content-tiny #mailtoolbar > a.print,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.reply,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.forward,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.prev,
html:not(.iframe) body.task-mail.cybrense-content-nano #mailtoolbar > a.next {
  display: none !important;
}
/* Absolute final UI guards. Keep this as the last block. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #e3ebf6 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.options) {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .toolbar:not(.menu) a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content:not(.cybrense-has-messages) .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-label-hidden .listing-hover-menu {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget.cybrense-hidden-quota,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .cybrense-storage-action {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* EOF action-bar fix: this block must stay last. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: auto 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  display: inline-grid !important;
  place-items: center !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  border-radius: 10px !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a.button:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a:before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: none !important;
  color: currentColor !important;
  font-size: 15px !important;
  line-height: 18px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span {
  display: none !important;
}

/* Compose page polish: make compose look like the Cybrense app, not raw Roundcube. */
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout {
  background: #f7faff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content {
  min-width: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  order: 2 !important;
  background: #ffffff !important;
  border-left: 1px solid #e3ebf6 !important;
  border-right: 1px solid #e3ebf6 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
  width: 286px !important;
  min-width: 286px !important;
  max-width: 286px !important;
  flex: 0 0 286px !important;
  order: 3 !important;
  background: #f6f9fd !important;
  border-left: 1px solid #e3ebf6 !important;
  border-right: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e3ebf6 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header .header-title {
  min-width: 120px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 16px 0 0 !important;
  color: #071a35 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composestatusbar {
  position: static !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  color: #64758d !important;
  font-size: 12px !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar .spacer {
  width: 1px !important;
  height: 22px !important;
  margin: 0 4px !important;
  background: #e2eaf5 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50617c !important;
  line-height: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a:before {
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  font-size: 15px !important;
  line-height: 18px !important;
  transform: none !important;
  color: currentColor !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px 24px 20px !important;
  overflow: auto !important;
  background: #ffffff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers {
  flex: 0 0 auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .compose-headers {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers label.col-form-label {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  color: #22324a !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-10,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers input,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers select,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers textarea,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-control,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .recipient-input {
  min-height: 42px !important;
  height: 42px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
  color: #071a35 !important;
  font-size: 14px !important;
  line-height: 42px !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-text,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-append > a {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 11px !important;
  background: #f4f8fd !important;
  color: #50617c !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
  flex: 1 1 auto !important;
  min-height: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 4px 0 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody {
  flex: 1 1 auto !important;
  min-height: 320px !important;
  height: auto !important;
  resize: vertical !important;
  padding: 16px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #071a35 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  box-shadow: inset 0 1px 0 rgba(10, 31, 68, 0.02) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody:focus,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers input:focus,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-control:focus {
  border-color: rgba(9, 105, 255, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.12) !important;
  outline: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons {
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .btn.send,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .button.send {
  min-width: 112px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--cbs-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: 0 12px 24px rgba(9, 105, 255, 0.24) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .button.extwin {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #64758d !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right > .header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e3ebf6 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right > .header .header-title {
  max-width: 190px !important;
  display: block !important;
  overflow: hidden !important;
  color: #071a35 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right .scroller {
  height: calc(100% - 64px) !important;
  padding: 20px !important;
  background: #f6f9fd !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments {
  margin: 0 0 22px !important;
  padding: 16px !important;
  border: 1px dashed #cbd8e9 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  text-align: center !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments .upload-form {
  display: grid !important;
  gap: 12px !important;
  justify-items: center !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments .btn.attach {
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #eaf3ff !important;
  color: var(--cbs-blue) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options {
  display: grid !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .form-group.row {
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .col-form-label,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options label {
  padding: 0 !important;
  color: #22324a !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .col-6 {
  width: auto !important;
  max-width: none !important;
  min-width: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-switch {
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options input[type="checkbox"],
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  inset: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  display: inline-flex !important;
  flex: 0 0 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #cbd8e9 !important;
  border-radius: 999px !important;
  background: #eef3f8 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 2px rgba(31, 56, 91, 0.08) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options input[type="checkbox"]::before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-input::before {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(31, 56, 91, 0.22) !important;
  transition: transform 0.16s ease !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options input[type="checkbox"]:checked,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-input:checked {
  border-color: #0969ff !important;
  background: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options input[type="checkbox"]:checked::before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-input:checked::before {
  transform: translateX(16px) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-label::before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-control-label::after {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options select,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-select {
  min-width: 108px !important;
  height: 38px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #071a35 !important;
  font-size: 13px !important;
}

/* Compose toolbar icon optical alignment. */
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:not(.options),
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a:not(.dropdown) {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:not(.options):before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a:not(.dropdown):before {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  transform: translateY(2px) !important;
}

/* Compose overflow menu opened from the three-dot toolbar button. */
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar .popover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar .popupmenu {
  min-width: 252px !important;
  width: auto !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  padding: 8px !important;
  overflow: visible !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 48px rgba(21, 43, 78, 0.16) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu:before {
  border-bottom-color: #dbe6f4 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover .menu,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu .menu,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover ul,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu ul {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover .menu li,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu .menu li,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover li,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu li {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover .menu li a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu .menu li a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 16px !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #10233f !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-align: left !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover .menu li a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu .menu li a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a:hover {
  background: #eef6ff !important;
  color: var(--cbs-blue) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a.disabled,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a.disabled {
  color: #aab5c5 !important;
  background: transparent !important;
  cursor: default !important;
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a:before {
  position: static !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 16px !important;
  line-height: 22px !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popover a > span,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .popupmenu a > span {
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Mail list header: keep one three-dot button only. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-duplicate-more-hidden {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Sidebar logout: remove the container/backplate behind the logout button. */
html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons:before,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a.logout {
  margin: 0 !important;
}

/* Professional stabilization layer. */
html:not(.iframe) body.cybrense-ui-ready,
html:not(.iframe) body.cybrense-ui-ready * {
  box-sizing: border-box !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout {
  min-width: 0 !important;
  height: 100vh !important;
  overflow: hidden !important;
  background: #f6f9fd !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-menu {
  flex: 0 0 218px !important;
  width: 218px !important;
  min-width: 218px !important;
  max-width: 218px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(187, 207, 232, 0.18) !important;
  background: linear-gradient(180deg, #061b34 0%, #031426 100%) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px 14px 14px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  flex: 0 0 46px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(239, 247, 255, 0.82) !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a:before {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 18px !important;
  line-height: 22px !important;
  text-align: center !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a .inner {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: block !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.compose {
  height: 48px !important;
  min-height: 48px !important;
  flex-basis: 48px !important;
  justify-content: center !important;
  border: 0 !important;
  background: linear-gradient(180deg, #1678ff 0%, #0969ff 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(9, 105, 255, 0.34) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.compose .inner {
  flex: 0 1 auto !important;
  text-align: center !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.selected,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a:hover {
  border-color: rgba(94, 164, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-usage-card,
html:not(.iframe) body.cybrense-ui-ready .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready .cybrense-usage-card {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  width: 100% !important;
  display: block !important;
  flex: 0 0 auto !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout {
  height: 48px !important;
  min-height: 48px !important;
  flex: 0 0 48px !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 122, 136, 0.45) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(164, 76, 91, 0.98), rgba(125, 55, 70, 0.98)) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(51, 15, 29, 0.22) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout:before {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  background: transparent !important;
  color: currentColor !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout .inner {
  flex: 0 1 auto !important;
  font-size: 14px !important;
  text-align: center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
  flex: 0 0 276px !important;
  width: 276px !important;
  min-width: 246px !important;
  max-width: 380px !important;
  overflow: hidden !important;
  background: #f4f8fc !important;
  border-right: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header {
  height: 74px !important;
  min-height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .scroller {
  padding: 18px 12px !important;
  overflow: auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailboxlist li,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailboxlist a,
html:not(.iframe) body.task-mail.cybrense-ui-ready .folderlist li,
html:not(.iframe) body.task-mail.cybrense-ui-ready .folderlist a {
  min-height: 40px !important;
  border-radius: 8px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-labels {
  width: 100% !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-labels-head {
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 8px !important;
  padding: 0 8px !important;
  color: #63728a !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-actions button,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-inline-delete {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #3c4d66 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-inline-delete {
  opacity: 0 !important;
  font-size: 14px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-row:hover .cybrense-label-inline-delete {
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-item {
  height: 36px !important;
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 8px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #0d2440 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-item:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-item.active {
  border-color: #cfe0f4 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  flex: 0 0 386px !important;
  width: 386px !important;
  min-width: 330px !important;
  max-width: 560px !important;
  overflow: hidden !important;
  background: #fff !important;
  border-right: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: #fff !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-duplicate-more-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .dropbutton:has(a.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar .spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a.dropdown {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a {
  position: static !important;
  inset: auto !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #526783 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a:before {
  position: static !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-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;
  transform: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content {
  position: relative !important;
  overflow: auto !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr {
  min-height: 76px !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #edf2f8 !important;
  background: #fff !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.selected td,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.focused td,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr:hover td {
  background: #eaf4ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar {
  grid-row: 1 / span 2 !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.sender,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.msgbody {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.date {
  max-width: 92px !important;
  overflow: hidden !important;
  color: #566780 !important;
  font-size: 12px !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 30 !important;
  width: auto !important;
  min-width: 94px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid #d8e5f5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 24px rgba(31, 56, 91, 0.16) !important;
  transform: translateY(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content > .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu a.button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #526783 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content .listing-hover-menu span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .messagelist-footer,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-footer {
  height: 50px !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border-top: 1px solid #dce7f3 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .messagelist-footer a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-footer a {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  color: #6b7b90 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-content {
  background: #fff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header,
html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header {
  max-width: 960px !important;
  margin: 28px auto 0 !important;
  padding: 0 24px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header h2.subject,
html.iframe body.task-mail.action-show #message-header h2.subject,
html.iframe body.action-show #message-header h2.subject {
  margin: 0 0 18px !important;
  color: #061b34 !important;
  font-size: 24px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header > .header,
html.iframe body.task-mail.action-show #message-header > .header,
html.iframe body.action-show #message-header > .header {
  min-height: 82px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(31, 56, 91, 0.08) !important;
}

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 {
  max-width: 960px !important;
  margin: 14px auto 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #fff !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 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !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: 30px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  border: 1px solid #d5e3f4 !important;
  border-radius: 999px !important;
  background: #f9fbfe !important;
  color: #12213a !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  white-space: nowrap !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;
}

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 {
  max-width: 960px !important;
  margin: 22px auto !important;
  padding: 0 24px 34px !important;
  color: #10213a !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.task-mail.action-show .remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.action-show .remote-objects-message {
  max-width: 960px !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 18px auto !important;
  padding: 12px 16px !important;
  border: 1px solid #ffc766 !important;
  border-left: 4px solid #ffae2b !important;
  border-radius: 12px !important;
  background: #fff8ed !important;
  color: #17233a !important;
  box-shadow: 0 14px 30px rgba(122, 77, 13, 0.08) !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message:before,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message:before,
html.iframe body.task-mail.action-show #remote-objects-message:before,
html.iframe body.task-mail.action-show .remote-objects-message:before,
html.iframe body.action-show #remote-objects-message:before,
html.iframe body.action-show .remote-objects-message:before {
  content: "\f071" !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #ffefd0 !important;
  color: #ad7417 !important;
  font-family: Icons !important;
  font-size: 15px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a,
html.iframe body.task-mail.action-show #remote-objects-message a,
html.iframe body.task-mail.action-show .remote-objects-message a,
html.iframe body.action-show #remote-objects-message a,
html.iframe body.action-show .remote-objects-message a {
  min-width: 0 !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 0 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0969ff !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a.cybrense-remote-always,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a.cybrense-remote-always,
html.iframe body.task-mail.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.task-mail.action-show .remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show .remote-objects-message a.cybrense-remote-always {
  max-width: 280px !important;
  background: #17233a !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
  max-width: none !important;
  padding: 16px 18px 18px !important;
  overflow: auto !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers {
  max-width: 1120px !important;
  margin: 0 auto !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
  max-width: 1120px !important;
  margin: 8px auto 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody {
  min-height: 390px !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
  flex: 0 0 270px !important;
  width: 270px !important;
  min-width: 250px !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu,
html:not(.iframe) body.cybrense-ui-ready .popover,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu {
  min-width: 224px !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(23, 35, 58, 0.16) !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a,
html:not(.iframe) body.cybrense-ui-ready .popover a,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a {
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  color: #17233a !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailboxoptions-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready [data-popup="mailboxoptions-menu"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer {
  width: 8px !important;
  right: -4px !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer:after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 3px !important;
  width: 2px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: translateY(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-layout-resizer:hover:after,
html:not(.iframe) body.task-mail.cybrense-resizing .cybrense-layout-resizer:after {
  background: #0969ff !important;
}

@media screen and (max-width: 1280px) {
  html:not(.iframe) body.cybrense-ui-ready #layout-menu {
    flex-basis: 214px !important;
    width: 214px !important;
    min-width: 214px !important;
    max-width: 214px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
    flex-basis: 262px !important;
    width: 262px !important;
    min-width: 238px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
    flex-basis: 356px !important;
    width: 356px !important;
    min-width: 318px !important;
  }
}

@media screen and (max-width: 1080px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
    flex-basis: 84px !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu {
    padding: 16px 10px 12px !important;
    align-items: center !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu a {
    width: 52px !important;
    min-width: 52px !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu a .inner {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
    flex-basis: 250px !important;
    width: 250px !important;
    min-width: 230px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
    flex: 1 1 340px !important;
    width: auto !important;
    min-width: 300px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
    display: none !important;
  }
}

@media screen and (max-width: 860px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
    flex-basis: 232px !important;
    width: 232px !important;
    min-width: 220px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
    min-width: 280px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }
}

/* Final controls polish: search, pagination, notifications and menu panels. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu {
  height: 56px !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid #edf2f8 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform input,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu input {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 14px 0 42px !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 12px !important;
  background: #f5f8fc !important;
  color: #17233a !important;
  font-size: 14px !important;
  line-height: 40px !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu .button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #17233a !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer,
html:not(.iframe) body.task-addressbook #layout-list .pagenav.menu.footer,
html:not(.iframe) body.task-settings #layout-list .pagenav.menu.footer {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  display: grid !important;
  grid-template-columns: 32px 32px minmax(0, 1fr) 50px 32px 32px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 6px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border-top: 1px solid #dce7f3 !important;
  background: #fff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a,
html:not(.iframe) body.task-settings #layout-list .pagenav a {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  display: inline-flex !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: #7b8798 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a:not(.disabled):hover,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a:not(.disabled):hover,
html:not(.iframe) body.task-settings #layout-list .pagenav a:not(.disabled):hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a.disabled,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a.disabled,
html:not(.iframe) body.task-settings #layout-list .pagenav a.disabled {
  opacity: 0.38 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a .inner,
html:not(.iframe) body.task-addressbook #layout-list .pagenav a .inner,
html:not(.iframe) body.task-settings #layout-list .pagenav a .inner {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav .pagenav-text,
html:not(.iframe) body.task-addressbook #layout-list .pagenav .pagenav-text,
html:not(.iframe) body.task-settings #layout-list .pagenav .pagenav-text {
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  color: #52627a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav input.form-control,
html:not(.iframe) body.task-addressbook #layout-list .pagenav input.form-control,
html:not(.iframe) body.task-settings #layout-list .pagenav input.form-control {
  width: 48px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #edf2f8 !important;
  color: #13243c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 28px !important;
  text-align: center !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #messagestack {
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  max-width: min(420px, calc(100vw - 36px)) !important;
}

html:not(.iframe) body.cybrense-ui-ready #messagestack div,
html:not(.iframe) body.cybrense-ui-ready #notification-container .notification,
html:not(.iframe) body.cybrense-ui-ready .ui.alert {
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #17233a !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(23, 35, 58, 0.22) !important;
}

html:not(.iframe) body.cybrense-ui-ready #messagestack div i.icon,
html:not(.iframe) body.cybrense-ui-ready .ui.alert > i.icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

html:not(.iframe) body.cybrense-ui-ready #messagestack div span,
html:not(.iframe) body.cybrense-ui-ready #notification-container .notification span,
html:not(.iframe) body.cybrense-ui-ready .ui.alert span {
  min-width: 0 !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu:empty,
html:not(.iframe) body.cybrense-ui-ready .popover:empty {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu li,
html:not(.iframe) body.cybrense-ui-ready .popover li,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a:hover,
html:not(.iframe) body.cybrense-ui-ready .popover a:hover,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

@media screen and (max-width: 1080px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer {
    grid-template-columns: 28px 28px minmax(0, 1fr) 44px 28px 28px !important;
    gap: 4px !important;
    padding: 0 8px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav a {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }
}

/* Mobile mailbox hardening: keep one active Roundcube pane visible at a time. */
@media screen and (max-width: 980px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    min-width: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #f6f9fd !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: none !important;
    border-right: 0 !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content.listbox.selected {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
    position: fixed !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(270px, 84vw) !important;
    min-width: 0 !important;
    max-width: min(270px, 84vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    flex: none !important;
    transform: translateX(-105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 80 !important;
    border-right: 1px solid rgba(187, 207, 232, 0.24) !important;
    box-shadow: 24px 0 60px rgba(3, 20, 38, 0.28) !important;
    transition: transform 0.18s ease, opacity 0.18s ease !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.show,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.open,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.menu-open #layout-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.menu-shown #layout-menu,
  html:not(.iframe).menu-open body.task-mail.cybrense-ui-ready #layout-menu {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .scroller,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content .iframe-wrapper,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content .content,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #message-content {
    width: 100% !important;
    min-width: 0 !important;
    overflow: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagecontframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform,
  html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu {
    grid-template-columns: minmax(0, 1fr) 38px !important;
    padding: 8px 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
    padding-right: 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.date {
    max-width: 64px !important;
    font-size: 11px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer {
    height: 48px !important;
    min-height: 48px !important;
    grid-template-columns: 28px 28px minmax(0, 1fr) 40px 28px 28px !important;
    gap: 3px !important;
    padding: 0 8px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
    padding: 12px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody {
    min-height: 320px !important;
  }
}

@media screen and (max-width: 520px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr td {
    min-height: 70px !important;
    padding: 8px 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody {
    max-width: 100% !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Cybrense clean stabilization pass.
   This final layer fixes the conflicting legacy overrides above without changing
   Roundcube commands or navigation behavior. */
html:not(.iframe) body.cybrense-ui-ready:not(.task-login) {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
  background: #061b34 !important;
}

html:not(.iframe) body.cybrense-ui-ready:not(.task-login) #layout {
  width: 100% !important;
  min-width: 0 !important;
  height: calc(100vh - 16px) !important;
  height: calc(100dvh - 16px) !important;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border: 1px solid rgba(184, 205, 233, 0.42) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-menu {
  flex: 0 0 210px !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #071f3d 0%, #031426 100%) !important;
  border-right: 1px solid rgba(184, 205, 233, 0.18) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu {
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px 12px 12px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-menu .popover-header {
  height: 76px !important;
  min-height: 76px !important;
  padding: 16px 16px 10px !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-menu #logo {
  width: 174px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .action-buttons {
  width: 100% !important;
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(238, 247, 255, 0.86) !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a:before {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 18px !important;
  line-height: 22px !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a .inner {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: block !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.compose {
  height: 48px !important;
  min-height: 48px !important;
  justify-content: center !important;
  border-color: transparent !important;
  background: linear-gradient(180deg, #1678ff 0%, #0969ff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(9, 105, 255, 0.32) !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.compose .inner {
  flex: 0 1 auto !important;
  text-align: center !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.selected,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a:hover {
  border-color: rgba(94, 164, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-sidebar-extras,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready #taskmenu .cybrense-usage-card,
html:not(.iframe) body.cybrense-ui-ready .cybrense-security-card,
html:not(.iframe) body.cybrense-ui-ready .cybrense-usage-card,
html:not(.iframe) body.cybrense-ui-ready #layout-sidebar .quota-widget,
html:not(.iframe) body.cybrense-ui-ready #quotadisplay {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  width: 100% !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: auto 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu a.logout {
  height: 48px !important;
  min-height: 48px !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 126, 139, 0.48) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #a35362 0%, #7d3949 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(46, 11, 24, 0.24) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content,
html:not(.iframe) body.task-addressbook.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-addressbook.cybrense-ui-ready #layout-list,
html:not(.iframe) body.task-addressbook.cybrense-ui-ready #layout-content,
html:not(.iframe) body.task-settings.cybrense-ui-ready #layout-sidebar,
html:not(.iframe) body.task-settings.cybrense-ui-ready #layout-list,
html:not(.iframe) body.task-settings.cybrense-ui-ready #layout-content {
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
  flex: 0 0 276px !important;
  width: 276px !important;
  min-width: 236px !important;
  max-width: 380px !important;
  background: #f4f8fc !important;
  border-right: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
  flex: 0 0 382px !important;
  width: 382px !important;
  min-width: 318px !important;
  max-width: 560px !important;
  background: #ffffff !important;
  border-right: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
  flex: 1 1 auto !important;
  width: auto !important;
  background: #ffffff !important;
}

html:not(.iframe) body.cybrense-ui-ready #layout-sidebar > .header,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
html:not(.iframe) body.cybrense-ui-ready #layout-content > .header {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: #ffffff !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready .header:after {
  content: none !important;
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a.toolbar-menu-button[href="#list-menu"]:not([data-popup]),
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-list-toolbar-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .cybrense-duplicate-more-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailboxoptions-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready [data-popup="mailboxoptions-menu"],
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header .sidebar-menu {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .toolbar.menu {
  height: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .button,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .toolbar > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 40px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #526783 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  transform: none !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton {
  position: relative !important;
  width: auto !important;
  min-width: 46px !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #526783 !important;
  line-height: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton > a.dropdown,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a.dropdown {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  margin-left: -8px !important;
  opacity: 0.78 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar > .dropbutton:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a:before {
  position: static !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 18px !important;
  line-height: 22px !important;
  text-align: center !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #mailtoolbar a > span,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar .scroller,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content .iframe-wrapper,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content .content,
html:not(.iframe) body.task-mail.cybrense-ui-ready #message-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: auto !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu {
  flex: 0 0 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #edf2f8 !important;
  background: #ffffff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform input,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu input {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  border-radius: 12px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  grid-auto-rows: minmax(20px, auto) !important;
  align-items: center !important;
  column-gap: 12px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding-right: 12px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.sender,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.msgbody,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.date {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content > .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content:not(.cybrense-has-messages) .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-label-filter-active #messagelist tr.cybrense-label-hidden .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu.cybrense-row-action-menu-hidden,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr:not(.cybrense-row-action-active):not(:hover) .listing-hover-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .cybrense-row-actions-cell > .listing-hover-menu {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 50 !important;
  width: auto !important;
  min-width: 92px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid #d8e5f5 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 24px rgba(31, 56, 91, 0.16) !important;
  transform: translateY(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu a.button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #526783 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu .txt,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .listing-hover-menu span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-filter-empty {
  position: absolute !important;
  top: 96px !important;
  left: 50% !important;
  width: min(300px, calc(100% - 48px)) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-dialog {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(5, 18, 33, 0.48) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-label-dialog-card {
  width: min(430px, calc(100vw - 36px)) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(3, 20, 38, 0.28) !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody,
html.iframe body.task-mail.action-show #message-header,
html.iframe body.action-show #message-header,
html.iframe body.task-mail.action-show .cybrense-message-labels,
html.iframe body.action-show .cybrense-message-labels,
html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.task-mail.action-show #messagebody,
html.iframe body.action-show #messagebody {
  max-width: 960px !important;
  width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message > i.icon,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message > i.icon,
html.iframe body.task-mail.action-show #remote-objects-message > i.icon,
html.iframe body.action-show #remote-objects-message > i.icon {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.action-show #remote-objects-message {
  grid-template-columns: 34px minmax(0, 1fr) auto auto !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a,
html.iframe body.task-mail.action-show #remote-objects-message a,
html.iframe body.action-show #remote-objects-message a {
  max-width: 300px !important;
  min-width: 112px !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
  flex: 0 0 292px !important;
  width: 292px !important;
  min-width: 260px !important;
  max-width: 320px !important;
  background: #f4f8fc !important;
  border-left: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 18px !important;
  overflow: auto !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers label.col-form-label {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  color: #18304e !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-10,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody {
  min-height: 390px !important;
  border-radius: 12px !important;
}

html:not(.iframe) body.cybrense-ui-ready .popover,
html:not(.iframe) body.cybrense-ui-ready .popupmenu,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu {
  min-width: 224px !important;
  max-width: min(340px, calc(100vw - 24px)) !important;
  padding: 6px !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #17233a !important;
  box-shadow: 0 18px 42px rgba(23, 35, 58, 0.16) !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu .menu,
html:not(.iframe) body.cybrense-ui-ready .popover .menu,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu .menu {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu li,
html:not(.iframe) body.cybrense-ui-ready .popover li,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a,
html:not(.iframe) body.cybrense-ui-ready .popover a,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a {
  width: 100% !important;
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  color: #17233a !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a:before,
html:not(.iframe) body.cybrense-ui-ready .popover a:before,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a:before {
  width: 22px !important;
  min-width: 22px !important;
  text-align: center !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a .inner,
html:not(.iframe) body.cybrense-ui-ready .popover a .inner,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a .inner {
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.cybrense-ui-ready .popupmenu a:hover,
html:not(.iframe) body.cybrense-ui-ready .popover a:hover,
html:not(.iframe) body.cybrense-ui-ready .dropdown-menu a:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

@media screen and (max-width: 1180px) and (min-width: 981px) {
  html:not(.iframe) body.cybrense-ui-ready #layout-menu {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #layout-menu .popover-header {
    height: 72px !important;
    justify-content: center !important;
    padding: 14px 8px 8px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #layout-menu #logo {
    width: 48px !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu {
    align-items: center !important;
    padding: 14px 8px 10px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu a {
    width: 50px !important;
    min-width: 50px !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu a .inner {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
    flex-basis: 242px !important;
    width: 242px !important;
    min-width: 220px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list {
    flex-basis: 340px !important;
    width: 340px !important;
    min-width: 300px !important;
  }
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.task-login) {
    padding: 0 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    flex: none !important;
    border-right: 0 !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content.listbox.selected {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(270px, 84vw) !important;
    min-width: 0 !important;
    max-width: min(270px, 84vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    flex: none !important;
    transform: translateX(-105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 80 !important;
    box-shadow: 24px 0 60px rgba(3, 20, 38, 0.28) !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.selected,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.show,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.open,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.menu-open #layout-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.menu-shown #layout-menu,
  html:not(.iframe).menu-open body.task-mail.cybrense-ui-ready #layout-menu {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar > .header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
    padding: 12px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 8px !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 {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    column-gap: 9px !important;
    padding: 8px 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mail-avatar {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody {
    width: calc(100% - 20px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
  html.iframe body.task-mail.action-show #remote-objects-message,
  html.iframe body.action-show #remote-objects-message {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a,
  html.iframe body.task-mail.action-show #remote-objects-message a,
  html.iframe body.action-show #remote-objects-message a {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Focused repair: search bar and message rows. */
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu {
  height: 56px !important;
  min-height: 56px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f8 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu form {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 12px !important;
  background: #f5f8fc !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu form:before {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #526783 !important;
  font-family: Icons !important;
  font-size: 16px !important;
  line-height: 22px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform input,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu form input {
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  display: block !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #17233a !important;
  font-size: 14px !important;
  line-height: 42px !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform a,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu a {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-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: 9px !important;
  background: transparent !important;
  color: #17233a !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu a:before {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 20px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 42px 10px minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(20px, auto) minmax(20px, auto) !important;
  align-items: center !important;
  column-gap: 9px !important;
  row-gap: 2px !important;
  min-width: 0 !important;
  min-height: 74px !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .cybrense-mail-avatar {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .cybrense-row-status {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 7px !important;
  min-width: 7px !important;
  height: 7px !important;
  min-height: 7px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.sender {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #13243c !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.date {
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: end !important;
  max-width: 82px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #526783 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.msgbody {
  grid-column: 3 / 5 !important;
  grid-row: 2 !important;
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 19px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.subject a {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .cybrense-assigned-labels,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > .cybrense-mail-tag {
  grid-column: 3 / 5 !important;
  justify-self: start !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 {
    grid-template-columns: 38px 9px minmax(0, 1fr) 58px !important;
    column-gap: 7px !important;
    min-height: 72px !important;
    padding: 9px 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell > span.date {
    max-width: 58px !important;
    font-size: 11px !important;
  }
}

/* Focused repair: message preview toolbar generated by Elastic. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
  position: relative !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .header-title {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a.toolbar-menu-button {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > ul#toolbar-menu.popupmenu {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu .arrow {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li.spacer {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a {
  position: static !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 40px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #526783 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu a:before {
  position: static !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 18px !important;
  line-height: 22px !important;
  text-align: center !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu .dropbutton.disabled {
  opacity: 0.34 !important;
}

@media screen and (max-width: 560px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu {
    max-width: calc(100vw - 64px) !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
}

/* Roll back mixed Elastic popup toolbar in the preview header.
   It contains list-toolbar clones such as select/options, so keep it hidden here. */
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.toolbar-list-button,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.selection,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton:has(a.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton:has(a.threads) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header {
  justify-content: flex-start !important;
  gap: 8px !important;
}

/* Restore real mail actions in preview; hide only list-toolbar clones. */
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  visibility: visible !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li.spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a.selection),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a.select),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a.threads),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a.toolbar-list-button),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a[data-popup="toolbar-list-menu"]),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a[data-popup="listoptions-menu"]),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a[data-popup="threadselect-menu"]),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li:has(a[data-popup="listselect-menu"]) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > .dropbutton > a {
  position: static !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: inline-flex !important;
  flex: 0 0 40px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #526783 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
  visibility: visible !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li > .dropbutton > a:hover {
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu a:before {
  position: static !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !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: 18px !important;
  line-height: 22px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu a > span {
  display: none !important;
}

/* Professional preview toolbar skin. */
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header {
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #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;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #405775 !important;
  box-shadow: 0 8px 18px rgba(31, 56, 91, 0.06) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.back-list-button:hover {
  border-color: #bcd8ff !important;
  background: #edf5ff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 4px !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 14px !important;
  background: #f6f9fd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(31, 56, 91, 0.06) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li {
  height: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li:has(a.delete),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li:has(a.markmessage),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li:has(a.more) {
  margin-left: 6px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a {
  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: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #50647f !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton {
  width: auto !important;
  min-width: 48px !important;
  max-width: none !important;
  gap: 0 !important;
  padding: 0 2px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a.dropdown {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-basis: 16px !important;
  margin-left: -6px !important;
  color: #8290a3 !important;
  opacity: 0.85 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a:hover {
  border-color: #d4e5fb !important;
  background: #ffffff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu a:before {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  font-size: 17px !important;
  line-height: 20px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu .disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu .dropbutton:has(a.disabled) {
  opacity: 0.38 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu a.more,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu a.markmessage {
  color: #36506d !important;
}

@media screen and (max-width: 560px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu.popupmenu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu {
    max-width: calc(100vw - 68px) !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 3px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu.popupmenu > li > .dropbutton > a {
    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;
  }
}

/* Canonical Cybrense message toolbar: covers Elastic direct links and grouped toolbars. */
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header {
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .header-title,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .header-title {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > ul#toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #mailtoolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar.menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #mailtoolbar {
  position: static !important;
  inset: auto !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100vw - 110px) !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: 3px !important;
  margin: 0 !important;
  padding: 4px !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 14px !important;
  background: #f6f9fd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(31, 56, 91, 0.07) !important;
  transform: none !important;
  visibility: visible !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu:after,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu > li,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar > li,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar > li {
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu > li.spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar > li.spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu > li.spacer,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar > li.spacer {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .button:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .button:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar .dropbutton {
  position: static !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #425a78 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.back-list-button,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.back-list-button {
  border-color: #dce7f3 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 56, 91, 0.06) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar .dropbutton {
  width: auto !important;
  min-width: 50px !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  gap: 0 !important;
  padding: 0 2px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a.dropdown,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a.dropdown {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-basis: 16px !important;
  margin-left: -6px !important;
  color: #7f8da0 !important;
  opacity: 0.9 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header .dropbutton:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a:hover,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header .dropbutton:hover {
  border-color: #cfe2ff !important;
  background: #ffffff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a:before {
  position: static !important;
  width: 21px !important;
  min-width: 21px !important;
  height: 21px !important;
  min-height: 21px !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: 18px !important;
  line-height: 21px !important;
  text-align: center !important;
  text-indent: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a > span,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a .inner,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header .disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a.disabled,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header .disabled {
  opacity: 0.38 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.selection,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a.options,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.toolbar-menu-button,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.select,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.selection,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.threads,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a.options {
  display: none !important;
  visibility: hidden !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > ul#toolbar-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #mailtoolbar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > ul#toolbar-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #mailtoolbar {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    max-width: calc(100vw - 70px) !important;
    padding: 3px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header .dropbutton,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header .dropbutton {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
}

/* If Roundcube outputs message actions as direct header links, keep them branded too. */
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .dropbutton,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton {
  border-color: #dce7f3 !important;
  background: #f6f9fd !important;
  box-shadow: 0 8px 18px rgba(31, 56, 91, 0.055) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .dropbutton > a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .dropbutton > a {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready.action-show #layout-content > .header > .toolbar a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > #toolbar-menu a,
html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-compose) #layout-content > .header > .toolbar a {
  background: transparent !important;
  box-shadow: none !important;
}

/* Canonical message-list rows: one clean card, no split Roundcube cells. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced {
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-extra-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-date-source-cell {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 74px !important;
  display: grid !important;
  grid-template-columns: 42px 10px minmax(0, 1fr) minmax(54px, auto) !important;
  grid-template-rows: 19px 20px auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
  border: 1px solid #dbe7f5 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #14243b !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-has-labels > td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(.cybrense-mail-tag) > td.cybrense-subject-cell {
  min-height: 88px !important;
  grid-template-rows: 19px 20px 22px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:hover > td.cybrense-subject-cell {
  border-color: #cfe0f5 !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(31, 56, 91, 0.08) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected > td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused > td.cybrense-subject-cell {
  border-color: rgba(9, 105, 255, 0.62) !important;
  background: #eaf4ff !important;
  box-shadow: 0 14px 30px rgba(9, 105, 255, 0.12) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > * {
  background-color: transparent !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > .cybrense-mail-avatar {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  justify-self: center !important;
  left: auto !important;
  top: auto !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > .cybrense-row-status {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 7px !important;
  min-width: 7px !important;
  max-width: 7px !important;
  height: 7px !important;
  min-height: 7px !important;
  max-height: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > span.sender {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #13243c !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 19px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

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 {
  position: static !important;
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 74px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #53657d !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 18px !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

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 {
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > span.msgbody {
  grid-column: 3 / 5 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 19px !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > span.subject a {
  display: inline !important;
  color: inherit !important;
  font: inherit !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > .cybrense-assigned-labels,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > .cybrense-mail-tag {
  grid-column: 3 / 5 !important;
  grid-row: 3 !important;
  align-self: center !important;
  justify-self: start !important;
  display: inline-flex !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell:has(.cybrense-assigned-labels) > .cybrense-mail-tag {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist .cybrense-date-source {
  display: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused .listing-hover-menu {
  opacity: 0 !important;
  pointer-events: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:hover .listing-hover-menu,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-action-active .listing-hover-menu {
  opacity: 1 !important;
  pointer-events: auto !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 {
    min-height: 76px !important;
    grid-template-columns: 38px 8px minmax(0, 1fr) minmax(44px, auto) !important;
    column-gap: 8px !important;
    padding: 9px 10px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-has-labels > td.cybrense-subject-cell,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(.cybrense-mail-tag) > td.cybrense-subject-cell {
    min-height: 88px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced > td.cybrense-subject-cell > .cybrense-mail-avatar {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}

/* Canonical compose layout: keep every control in its lane. */
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout {
  background: #f7faff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content {
  min-width: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-left: 1px solid #dce7f3 !important;
  border-right: 1px solid #dce7f3 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header {
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 20px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header:after {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header .header-title {
  min-width: 126px !important;
  max-width: 210px !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 4px !important;
  overflow: hidden !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 14px !important;
  background: #f6f9fd !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(31, 56, 91, 0.06) !important;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar .spacer {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a {
  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;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #425a78 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a {
  border-color: #dce7f3 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 56, 91, 0.055) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar > .dropbutton > a:hover,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a:hover {
  border-color: #cfe2ff !important;
  background: #ffffff !important;
  color: #0969ff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a:before,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a:before {
  position: static !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-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;
  transform: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #messagetoolbar a > span,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a .inner,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content > .header > a > span {
  display: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(360px, 1fr) auto !important;
  gap: 14px !important;
  padding: 32px 32px 24px !important;
  overflow: auto !important;
  background: #ffffff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons {
  width: min(1040px, 100%) !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .compose-headers {
  display: grid !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers label.col-form-label {
  grid-column: 1 !important;
  align-self: center !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-10 {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 {
  grid-column: 3 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers input,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers select,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers textarea,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-control,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .recipient-input {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
  color: #071a35 !important;
  font-size: 14px !important;
  line-height: 42px !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-append,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-prepend {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-text,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-append > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 > a,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 > button,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 .button {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 11px !important;
  background: #f4f8fd !important;
  color: #425a78 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers input:focus,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-control:focus,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody:focus {
  border-color: rgba(9, 105, 255, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.12) !important;
  outline: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(31, 56, 91, 0.05) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer > .mce-panel,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer > .editor-toolbar,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer > .html-editor {
  border-radius: 14px 14px 0 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody {
  width: 100% !important;
  min-height: 390px !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 16px !important;
  resize: vertical !important;
  border: 0 !important;
  border-radius: 0 0 14px 14px !important;
  background: #ffffff !important;
  color: #071a35 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons {
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .btn.send,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .button.send {
  min-width: 126px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #0969ff !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: 0 12px 24px rgba(9, 105, 255, 0.24) !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formbuttons .button.extwin {
  min-width: 0 !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #64758d !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
  width: 292px !important;
  min-width: 292px !important;
  max-width: 292px !important;
  flex: 0 0 292px !important;
  overflow: hidden !important;
  border-left: 1px solid #dce7f3 !important;
  background: #f5f8fc !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right > .header {
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dce7f3 !important;
  background: #ffffff !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right > .header .header-title {
  min-width: 0 !important;
  display: block !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right .scroller {
  height: calc(100% - 66px) !important;
  padding: 22px 20px !important;
  overflow: auto !important;
  background: #f5f8fc !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments {
  margin: 0 0 24px !important;
  padding: 18px !important;
  border: 1px dashed #cbd8e9 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  text-align: center !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments .upload-form {
  display: grid !important;
  gap: 14px !important;
  justify-items: center !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-attachments .btn.attach {
  min-width: 168px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #eaf3ff !important;
  color: #0969ff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-align: center !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options {
  display: grid !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .form-group.row {
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .col-form-label,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options label {
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #061b34 !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .col-6 {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options select,
html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-options .custom-select {
  min-width: 126px !important;
  max-width: 136px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 34px 0 12px !important;
  border: 1px solid #dbe6f4 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #071a35 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

@media screen and (max-width: 1180px) {
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
    padding: 24px 20px 20px !important;
  }
}

@media screen and (max-width: 700px) {
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
    grid-template-rows: auto minmax(300px, 1fr) auto !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 {
    gap: 4px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 > a,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 > button,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .col-2 .button,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .input-group-append > a {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
}

/* Clear read / unread contrast in the message list. */
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell {
  border-color: #dbe7f5 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell {
  border-color: rgba(9, 105, 255, 0.72) !important;
  background: linear-gradient(180deg, #edf6ff 0%, #e7f2ff 100%) !important;
  box-shadow: inset 4px 0 0 #0969ff, 0 14px 30px rgba(9, 105, 255, 0.12) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected:not(.unread) > td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused:not(.unread) > td.cybrense-subject-cell {
  border-color: #bcd8f7 !important;
  background: #f7fbff !important;
  box-shadow: 0 10px 22px rgba(31, 56, 91, 0.055) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.selected.unread > td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.focused.unread > td.cybrense-subject-cell {
  border-color: #0969ff !important;
  background: linear-gradient(180deg, #eaf4ff 0%, #ddecff 100%) !important;
  box-shadow: inset 4px 0 0 #0969ff, 0 16px 34px rgba(9, 105, 255, 0.17) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > span.sender {
  color: #3f526d !important;
  font-weight: 690 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > span.fromto,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > span.sender {
  color: #061b34 !important;
  font-weight: 920 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > span.subject a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > span.msgbody {
  color: #253a55 !important;
  font-weight: 690 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > span.subject,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > span.subject a,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > span.msgbody {
  color: #001a39 !important;
  font-weight: 920 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > .cybrense-row-status {
  background: #c6d1df !important;
  box-shadow: none !important;
  opacity: 0.45 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > .cybrense-row-status {
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  height: 8px !important;
  min-height: 8px !important;
  max-height: 8px !important;
  background: #0969ff !important;
  box-shadow: 0 0 0 4px rgba(9, 105, 255, 0.14) !important;
  opacity: 1 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:not(.unread) > td.cybrense-subject-cell > .cybrense-mail-avatar {
  border-color: #dbe7f5 !important;
  background: #f6f9fd !important;
  color: #526783 !important;
  box-shadow: inset 0 0 0 1px #dbe7f5 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.unread > td.cybrense-subject-cell > .cybrense-mail-avatar {
  border-color: rgba(9, 105, 255, 0.32) !important;
  background: #edf5ff !important;
  color: #123c75 !important;
  box-shadow: inset 0 0 0 1px rgba(9, 105, 255, 0.2), 0 8px 18px rgba(9, 105, 255, 0.12) !important;
}

/* Flagged / signale state: make it visible and branded. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready.status-flagged #message-header h2.subject,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready.status-flagged #message-header > .subject,
html.iframe body.task-mail.action-show.status-flagged #message-header h2.subject,
html.iframe body.action-show.status-flagged #message-header h2.subject {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready.status-flagged #message-header h2.subject:before,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready.status-flagged #message-header > .subject:before,
html.iframe body.task-mail.action-show.status-flagged #message-header h2.subject:before,
html.iframe body.action-show.status-flagged #message-header h2.subject:before {
  content: "\f024" !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;
  border: 1px solid rgba(255, 82, 92, 0.28) !important;
  border-radius: 12px !important;
  background: #fff1f2 !important;
  color: #ff4f59 !important;
  font-family: Icons !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 36px !important;
  text-align: center !important;
  box-shadow: 0 10px 22px rgba(255, 79, 89, 0.14) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.flagged > td.cybrense-subject-cell,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(span.flagged) > td.cybrense-subject-cell {
  border-color: rgba(255, 79, 89, 0.5) !important;
  box-shadow: inset 4px 0 0 #ff4f59, 0 14px 30px rgba(255, 79, 89, 0.09) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.flagged > td.cybrense-subject-cell:before,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(span.flagged) > td.cybrense-subject-cell:before {
  content: "\f024" !important;
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 5 !important;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 79, 89, 0.28) !important;
  border-radius: 9px !important;
  background: #fff1f2 !important;
  color: #ff4f59 !important;
  font-family: Icons !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 26px !important;
  box-shadow: 0 8px 18px rgba(255, 79, 89, 0.13) !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.flagged > td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced.flagged > td.cybrense-subject-cell > span.cybrense-row-date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(span.flagged) > td.cybrense-subject-cell > span.date,
html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced:has(span.flagged) > td.cybrense-subject-cell > span.cybrense-row-date {
  padding-right: 34px !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.flagged {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  background: #fff1f2 !important;
  color: #ff4f59 !important;
}

html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist span.flagged:before {
  margin: 0 !important;
  color: currentColor !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* Roomier message toolbar: hide disabled actions and prevent icon crowding. */
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 {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  gap: 6px !important;
  padding: 5px !important;
  overflow: visible !important;
  border-radius: 16px !important;
  background: #f7faff !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu > li:has(a.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar > li:has(a.disabled),
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 > .dropbutton:has(a.disabled) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: 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 {
  height: 40px !important;
  min-height: 40px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu a:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar a:not(.disabled),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a:not(.disabled):not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:not(:has(a.disabled)),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:not(:has(a.disabled)) > a {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex-basis: 40px !important;
  border-radius: 12px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu .dropbutton:not(:has(a.disabled)),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar .dropbutton:not(:has(a.disabled)),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton:not(:has(a.disabled)) {
  width: auto !important;
  min-width: 58px !important;
  max-width: none !important;
  gap: 2px !important;
  padding: 0 3px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown:not(.disabled) {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex-basis: 18px !important;
  margin-left: -4px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:not(.disabled):before {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  font-size: 18px !important;
  line-height: 22px !important;
}

/* Remote content actions: keep the styled warning fully clickable. */
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
html.iframe body.task-mail.action-show #remote-objects-message,
html.iframe body.action-show #remote-objects-message,
html.iframe body.task-mail.action-show .remote-objects-message,
html.iframe body.action-show .remote-objects-message {
  position: relative !important;
  overflow: visible !important;
  pointer-events: auto !important;
  z-index: 12 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message:before,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message:before,
html.iframe body.task-mail.action-show #remote-objects-message:before,
html.iframe body.action-show #remote-objects-message:before,
html.iframe body.task-mail.action-show .remote-objects-message:before,
html.iframe body.action-show .remote-objects-message:before {
  pointer-events: none !important;
  z-index: 1 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message span.boxbuttons,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message span.boxbuttons,
html.iframe body.task-mail.action-show #remote-objects-message span.boxbuttons,
html.iframe body.action-show #remote-objects-message span.boxbuttons,
html.iframe body.task-mail.action-show .remote-objects-message span.boxbuttons,
html.iframe body.action-show .remote-objects-message span.boxbuttons {
  min-width: 0 !important;
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 3 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a,
html.iframe body.task-mail.action-show #remote-objects-message a,
html.iframe body.action-show #remote-objects-message a,
html.iframe body.task-mail.action-show .remote-objects-message a,
html.iframe body.action-show .remote-objects-message a {
  position: relative !important;
  z-index: 4 !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 96px !important;
  max-width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 1 auto !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  line-height: 34px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a.cybrense-remote-always,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a.cybrense-remote-always,
html.iframe body.task-mail.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show #remote-objects-message a.cybrense-remote-always,
html.iframe body.task-mail.action-show .remote-objects-message a.cybrense-remote-always,
html.iframe body.action-show .remote-objects-message a.cybrense-remote-always {
  min-width: 0 !important;
  max-width: 100% !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message.cybrense-remote-authorized,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message.cybrense-remote-authorized,
html.iframe body.task-mail.action-show #remote-objects-message.cybrense-remote-authorized,
html.iframe body.action-show #remote-objects-message.cybrense-remote-authorized,
html.iframe body.task-mail.action-show .remote-objects-message.cybrense-remote-authorized,
html.iframe body.action-show .remote-objects-message.cybrense-remote-authorized {
  display: none !important;
}

@media screen and (max-width: 620px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
  html.iframe body.task-mail.action-show #remote-objects-message,
  html.iframe body.action-show #remote-objects-message,
  html.iframe body.task-mail.action-show .remote-objects-message,
  html.iframe body.action-show .remote-objects-message {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 12px auto !important;
    padding: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message:before,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message:before,
  html.iframe body.task-mail.action-show #remote-objects-message:before,
  html.iframe body.action-show #remote-objects-message:before,
  html.iframe body.task-mail.action-show .remote-objects-message:before,
  html.iframe body.action-show .remote-objects-message:before {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 13px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message > span:not(.boxbuttons),
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message > span:not(.boxbuttons),
  html.iframe body.task-mail.action-show #remote-objects-message > span:not(.boxbuttons),
  html.iframe body.action-show #remote-objects-message > span:not(.boxbuttons),
  html.iframe body.task-mail.action-show .remote-objects-message > span:not(.boxbuttons),
  html.iframe body.action-show .remote-objects-message > span:not(.boxbuttons) {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message span.boxbuttons,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message span.boxbuttons,
  html.iframe body.task-mail.action-show #remote-objects-message span.boxbuttons,
  html.iframe body.action-show #remote-objects-message span.boxbuttons,
  html.iframe body.task-mail.action-show .remote-objects-message span.boxbuttons,
  html.iframe body.action-show .remote-objects-message span.boxbuttons {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a,
  html.iframe body.task-mail.action-show #remote-objects-message a,
  html.iframe body.action-show #remote-objects-message a,
  html.iframe body.task-mail.action-show .remote-objects-message a,
  html.iframe body.action-show .remote-objects-message a {
    width: auto !important;
    min-width: 92px !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex: 0 1 auto !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    line-height: 34px !important;
    border-radius: 999px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a.cybrense-remote-always,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a.cybrense-remote-always,
  html.iframe body.task-mail.action-show #remote-objects-message a.cybrense-remote-always,
  html.iframe body.action-show #remote-objects-message a.cybrense-remote-always,
  html.iframe body.task-mail.action-show .remote-objects-message a.cybrense-remote-always,
  html.iframe body.action-show .remote-objects-message a.cybrense-remote-always {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }
}

/* Mobile drawers: make the Cybrense menu and folders reliably reachable. */
html:not(.iframe) body.task-mail.cybrense-ui-ready .cybrense-mobile-backdrop {
  display: none !important;
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open .cybrense-mobile-backdrop,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-sidebar-open .cybrense-mobile-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 74 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(3, 17, 34, 0.42) !important;
    cursor: pointer !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(282px, 86vw) !important;
    min-width: min(282px, 86vw) !important;
    max-width: min(282px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    flex: none !important;
    overflow: hidden !important;
    transform: translateX(-106%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 90 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 24px 0 60px rgba(3, 20, 38, 0.32) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu #logo,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu .popover-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu #taskmenu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu #taskmenu a .inner,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open #logo,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open .popover-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open #taskmenu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open #taskmenu a .inner {
    display: block !important;
    visibility: visible !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu #taskmenu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open #taskmenu {
    height: calc(100% - 94px) !important;
    padding: 0 14px 14px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu #taskmenu a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open #taskmenu a {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-sidebar-open #layout-sidebar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.cybrense-mobile-drawer-open {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(320px, 88vw) !important;
    min-width: min(320px, 88vw) !important;
    max-width: min(320px, 88vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    flex: none !important;
    overflow: hidden !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 88 !important;
    background: #f4f8fc !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 24px 0 60px rgba(3, 20, 38, 0.24) !important;
  }
}

/* Final sidebar footer: pin Deconnexion to the bottom of the dark menu. */
html:not(.iframe) body.cybrense-ui-ready #layout-menu {
  position: relative !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu {
  height: 100% !important;
  min-height: 0 !important;
  padding-bottom: 88px !important;
  overflow: hidden !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 18px !important;
  z-index: 4 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a:not(.logout),
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.about,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.help,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.theme,
html:not(.iframe) body.cybrense-ui-ready #taskmenu a.support {
  display: none !important;
}

html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons a.logout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@media screen and (max-width: 980px) {
  html:not(.iframe) body.cybrense-ui-ready #taskmenu {
    padding-bottom: 86px !important;
  }

  html:not(.iframe) body.cybrense-ui-ready #taskmenu .special-buttons {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

/* Final phone web-app contract: one full-screen pane, drawers, no horizontal overflow. */
@media screen and (max-width: 720px) {
  html:not(.iframe),
  html:not(.iframe) body.task-mail.cybrense-ui-ready {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    background: #ffffff !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.task-login) {
    padding: 0 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #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;
    display: block !important;
    flex: none !important;
    transform: translateX(-108%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 90 !important;
    border-radius: 0 18px 18px 0 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open #layout-menu,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-menu.cybrense-mobile-drawer-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(322px, 88vw) !important;
    min-width: min(322px, 88vw) !important;
    max-width: min(322px, 88vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: block !important;
    flex: none !important;
    overflow: hidden !important;
    transform: translateX(-108%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 88 !important;
    background: #f5f8fc !important;
    border-right: 1px solid #dce7f3 !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 22px 0 54px rgba(3, 20, 38, 0.24) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-sidebar-open #layout-sidebar,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-sidebar.cybrense-mobile-drawer-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 0 !important;
    background: #ffffff !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready:not(.action-show):not(.action-compose) #layout-list,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list.selected,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content.selected {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-menu-open .cybrense-mobile-backdrop,
  html:not(.iframe) body.task-mail.cybrense-ui-ready.cybrense-mobile-sidebar-open .cybrense-mobile-backdrop {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 74 !important;
    border: 0 !important;
    background: rgba(2, 14, 30, 0.42) !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header {
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    border-bottom: 1px solid #dce7f3 !important;
    background: #ffffff !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > a,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header .button,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header .button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: inline-flex !important;
    flex: 0 0 38px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #425a78 !important;
    box-shadow: none !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-header > .header-title,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-content > .header > .header-title {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    color: #071b36 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform,
  html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu {
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    overflow: hidden !important;
    border-bottom: 1px solid #edf2f8 !important;
    background: #ffffff !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform input,
  html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu input {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px 0 42px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #mailsearchform .button,
  html:not(.iframe) body.task-mail.cybrense-ui-ready .searchbar.menu .button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px 8px 14px !important;
    background: #ffffff !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced td.cybrense-subject-cell {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced .cybrense-mail-main,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced .cybrense-mail-subject,
  html:not(.iframe) body.task-mail.cybrense-ui-ready #messagelist tr.cybrense-row-enhanced .cybrense-mail-from {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html:not(.iframe) body.task-mail.cybrense-ui-ready #layout-list .pagenav.menu.footer {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    grid-template-columns: 30px 30px minmax(0, 1fr) 48px 30px 30px !important;
    gap: 4px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagecontframe,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .content,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .content.frame-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #message-header,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #messagebody {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-wrap: anywhere !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .cybrense-message-labels {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message span.boxbuttons,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message span.boxbuttons {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #remote-objects-message a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready .remote-objects-message a {
    width: auto !important;
    min-width: 104px !important;
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-content {
    overflow: hidden !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #layout-sidebar.sidebar-right {
    display: none !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 14px 12px 84px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content form,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-content .formcontent {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers .form-group.row:not(.hidden) {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 10px !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers input,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers textarea,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #compose-headers select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebody,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready .tox,
  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:not(.iframe) body.task-mail.action-compose.cybrense-ui-ready #composebodycontainer {
    min-height: 320px !important;
  }
}

/* Final message-view toolbar: match the clean standalone list toolbar. */
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;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 0 18px !important;
  overflow: visible !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 > #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;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !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: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: 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 {
  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: visible !important;
  list-style: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .button:not(.toolbar-menu-button):not(.select):not(.selection):not(.threads):not(.options),
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 {
  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: #425a78 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
}

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: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #toolbar-menu .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .toolbar .dropbutton > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > #mailtoolbar > .dropbutton > a {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a.dropdown {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 14px !important;
  margin: 0 0 0 -8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #50647f !important;
  opacity: 0.9 !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header a:before {
  position: static !important;
  width: 21px !important;
  min-width: 21px !important;
  height: 21px !important;
  min-height: 21px !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: 18px !important;
  line-height: 21px !important;
  text-align: center !important;
  text-indent: 0 !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 {
  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 {
  color: #a8b4c3 !important;
  opacity: 0.42 !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 .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 #toolbar-menu > li:last-child > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header .toolbar > li:last-child > a,
html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header #mailtoolbar > a.more {
  background: #edf5ff !important;
  color: #0969ff !important;
  border-radius: 11px !important;
}

html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > a.back-list-button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

@media screen and (max-width: 720px) {
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    gap: 12px !important;
    padding: 0 14px !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: 10px !important;
    max-width: calc(100vw - 72px) !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 > #mailtoolbar > a,
  html:not(.iframe) body.task-mail.action-show.cybrense-ui-ready #layout-content > .header > .dropbutton > a {
    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;
  }
}
