/* CRC final responsive layer loaded after all generated styles. */
.message-list {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  overflow: hidden !important;
}

.message-list > .list-toolbar {
  grid-row: 1 !important;
  position: relative !important;
  z-index: 7 !important;
}

.message-list > .crcpro-bulk-bar {
  grid-row: 2 !important;
  position: relative !important;
  z-index: 8 !important;
  align-self: start !important;
}

.message-list > .crcpro-bulk-bar[hidden] {
  display: none !important;
}

.message-list > .message-scroll {
  grid-row: 3 !important;
  min-height: 0 !important;
  overflow: auto !important;
}

@media (max-width: 860px) {
  html,
  body,
  #root {
    width: 100%;
    height: 100%;
    min-width: 320px;
    overflow: hidden;
  }

  body.crc-mobile {
    background: #f7f1e7;
    overscroll-behavior: none;
  }

  body.crc-mobile .mail-app {
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    background: #f7f1e7 !important;
  }

  body.crc-mobile .mail-app:before,
  body.crc-mobile .app-background-video,
  body.crc-mobile .sidebar:before,
  body.crc-mobile .sidebar-background-video {
    display: none !important;
  }

  body.crc-mobile .workspace {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f7f1e7 !important;
  }

  body.crc-mobile .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 2400 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 14px !important;
    width: min(84vw, 312px) !important;
    max-width: 312px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: max(18px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)) !important;
    border-right: 1px solid rgba(255, 253, 248, .14) !important;
    background: linear-gradient(180deg, rgba(216, 175, 95, .14), transparent 36%), #15120f !important;
    box-shadow: 24px 0 58px rgba(0, 0, 0, .44) !important;
    overflow: hidden !important;
    transform: translate3d(-104%, 0, 0) !important;
    transition: transform .28s cubic-bezier(.2, .82, .22, 1) !important;
    will-change: transform;
  }

  body.crc-mobile-sidebar-open .sidebar,
  body.crc-mobile .sidebar.crc-mobile-sidebar-open {
    transform: translate3d(0, 0, 0) !important;
  }

  body.crc-mobile .crc-mobile-sidebar-scrim {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2300 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    border: 0 !important;
    background: rgba(0, 0, 0, .5) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  body.crc-mobile-sidebar-open .crc-mobile-sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.crc-mobile .crc-mobile-sidebar-toggle {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 8px !important;
    z-index: 2600 !important;
    display: grid !important;
    grid-template-rows: repeat(3, 2px) !important;
    place-content: center !important;
    gap: 4px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(216, 175, 95, .58) !important;
    border-radius: 8px !important;
    background: #d8af5f !important;
    color: #1a1208 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24) !important;
  }

  body.crc-mobile .crc-mobile-sidebar-toggle span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
  }

  body.crc-mobile-modal-open .crc-mobile-sidebar-toggle,
  body.crc-mobile-modal-open .crc-mobile-sidebar-scrim {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.crc-mobile .sidebar-brand {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 56px !important;
  }

  body.crc-mobile .sidebar-brand img {
    width: 50px !important;
    height: 50px !important;
  }

  body.crc-mobile .sidebar-brand div,
  body.crc-mobile .sidebar-brand strong,
  body.crc-mobile .sidebar-brand span {
    display: block !important;
    min-width: 0 !important;
    font-size: initial !important;
  }

  body.crc-mobile .sidebar-brand strong {
    color: #f1cf88 !important;
    font-size: 1.02rem !important;
    line-height: 1.08 !important;
  }

  body.crc-mobile .sidebar-brand span {
    color: rgba(255, 253, 248, .72) !important;
    font-size: .8rem !important;
  }

  body.crc-mobile .compose-button {
    display: none !important;
  }

  body.crc-mobile .folder-nav,
  body.crc-mobile .sidebar-footer-actions {
    display: grid !important;
    align-content: start !important;
    gap: 6px !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-snap-type: none !important;
    scrollbar-width: thin;
  }

  body.crc-mobile .account-folder-group {
    display: grid !important;
    gap: 4px !important;
    margin-top: 10px !important;
  }

  body.crc-mobile .folder-button,
  body.crc-mobile .account-title,
  body.crc-mobile .sidebar-footer-actions .folder-button {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    font-size: .88rem !important;
    text-align: left !important;
  }

  body.crc-mobile .folder-button span,
  body.crc-mobile .account-title span,
  body.crc-mobile .sidebar-footer-actions .folder-button span,
  body.crc-mobile .sidebar-account span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: .88rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.crc-mobile .sidebar-account {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    min-height: 40px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
  }

  body.crc-mobile .topbar {
    position: relative !important;
    z-index: 1200 !important;
    display: block !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: calc(104px + env(safe-area-inset-top)) !important;
    padding: max(10px, env(safe-area-inset-top)) 8px 8px !important;
    border-bottom: 1px solid rgba(255, 253, 248, .12) !important;
    background: #15120f !important;
    overflow: hidden !important;
  }

  body.crc-mobile .topbar:before {
    content: "";
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #000 url("/crcpro-globe-mail-260.png") center / cover no-repeat;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    transform: translateX(-50%);
  }

  body.crc-mobile .topbar > div:not(.topbar-actions) {
    display: none !important;
  }

  body.crc-mobile .topbar-actions {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(6px, 2vw, 8px) !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  body.crc-mobile .topbar-actions::-webkit-scrollbar,
  body.crc-mobile .crcpro-bulk-buttons::-webkit-scrollbar,
  body.crc-mobile .compose-ribbon-left::-webkit-scrollbar {
    display: none;
  }

  body.crc-mobile .topbar-actions .primary-button,
  body.crc-mobile .topbar-actions .icon-button {
    display: inline-grid !important;
    flex: 0 0 44px !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    font-size: 0 !important;
    scroll-snap-align: start;
  }

  body.crc-mobile .topbar-actions .primary-button {
    background: #d8af5f !important;
    color: #1a1208 !important;
  }

  body.crc-mobile .topbar-actions .icon-button {
    background: rgba(255, 253, 248, .1) !important;
    color: #f1cf88 !important;
  }

  body.crc-mobile .topbar-actions svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  body.crc-mobile .mail-grid {
    display: block !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 10px 10px max(12px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  body.crc-mobile .message-list {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  body.crc-mobile .list-toolbar {
    position: relative !important;
    top: auto !important;
    z-index: 7 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 54px !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    background: #f7f1e7 !important;
  }

  body.crc-mobile .search-field,
  body.crc-mobile .theme-dark .search-field,
  body.crc-mobile .theme-light .search-field {
    min-height: 46px !important;
    border: 1px solid rgba(92, 68, 36, .16) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    color: #756650 !important;
    box-shadow: 0 10px 28px rgba(26, 16, 5, .06) !important;
  }

  body.crc-mobile .search-field input,
  body.crc-mobile .theme-dark .search-field input,
  body.crc-mobile .theme-light .search-field input {
    height: 44px !important;
    border: 0 !important;
    background: #fffdf8 !important;
    color: #17130e !important;
    -webkit-text-fill-color: #17130e !important;
  }

  body.crc-mobile .search-field input::placeholder {
    color: #8b7b65 !important;
    opacity: 1;
  }

  body.crc-mobile .message-count {
    min-width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    color: #756650 !important;
  }

  body.crc-mobile .crcpro-bulk-bar {
    grid-row: 2 !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: 126px !important;
    margin: 0 0 8px !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(154, 107, 47, .16) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    box-shadow: 0 10px 28px rgba(26, 16, 5, .06) !important;
    overflow: hidden !important;
  }

  body.crc-mobile .crcpro-bulk-buttons {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
  }

  body.crc-mobile .crcpro-bulk-buttons button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
  }

  body.crc-mobile .message-scroll {
    grid-row: 3 !important;
    min-height: 0 !important;
    padding: 0 1px max(18px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.crc-mobile .message-row {
    display: grid !important;
    grid-template-columns: 30px 22px minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 82px !important;
    margin: 0 0 8px !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }

  body.crc-mobile .message-row .crcpro-bulk-check {
    width: 28px !important;
    height: 28px !important;
    margin-top: 0 !important;
  }

  body.crc-mobile .message-row-main,
  body.crc-mobile .message-row-top {
    min-width: 0 !important;
  }

  body.crc-mobile .message-subject {
    display: -webkit-box !important;
    overflow: hidden !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.crc-mobile .reader:not(.reader-empty) {
    z-index: 1800 !important;
  }

  body.crc-mobile .compose-backdrop,
  body.crc-mobile .settings-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 3400 !important;
    display: grid !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, .72) !important;
  }

  body.crc-mobile .compose-window,
  body.crc-mobile .settings-panel,
  body.crc-mobile .add-account-panel {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.crc-mobile .compose-window {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #fffdf8 !important;
  }

  body.crc-mobile .compose-ribbon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: calc(62px + env(safe-area-inset-top)) !important;
    padding: max(10px, env(safe-area-inset-top)) 10px 10px !important;
    border-bottom: 1px solid rgba(216, 175, 95, .22) !important;
    background: #15120f !important;
    overflow: hidden !important;
  }

  body.crc-mobile .compose-ribbon-left {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    height: 44px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.crc-mobile .compose-ribbon .primary-button.compact {
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 13px !important;
    border-radius: 8px !important;
    background: #d8af5f !important;
    color: #1a1208 !important;
    font-size: .88rem !important;
    font-weight: 950 !important;
    box-shadow: 8px 0 14px rgba(21, 18, 15, .86) !important;
  }

  body.crc-mobile .compose-ribbon .icon-button,
  body.crc-mobile .compose-ribbon .text-button,
  body.crc-mobile .ribbon-select,
  body.crc-mobile .ribbon-check {
    flex: 0 0 auto !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
  }

  body.crc-mobile .compose-ribbon .icon-button {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
  }

  body.crc-mobile .compose-outlook-form {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #fffdf8 !important;
  }

  body.crc-mobile .compose-line {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    min-height: 52px !important;
    padding: 6px 10px !important;
    border-bottom: 1px solid rgba(92, 68, 36, .14) !important;
    background: #fffdf8 !important;
  }

  body.crc-mobile .compose-line span {
    color: #6f5e49 !important;
    font-size: .84rem !important;
    font-weight: 950 !important;
  }

  body.crc-mobile .compose-line input,
  body.crc-mobile .compose-line select,
  body.crc-mobile .compose-subject {
    border: 1px solid rgba(154, 107, 47, .34) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    color: #17130e !important;
    -webkit-text-fill-color: #17130e !important;
  }

  body.crc-mobile .compose-line input,
  body.crc-mobile .compose-line select {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
  }

  body.crc-mobile .compose-line .text-button {
    grid-column: 3 !important;
    justify-self: end !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    background: #f4ead8 !important;
    color: #7c5626 !important;
    font-size: .76rem !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  body.crc-mobile .compose-subject {
    flex: 0 0 auto !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 8px 10px 0 !important;
    padding: 0 11px !important;
  }

  body.crc-mobile .compose-attachment-dropzone {
    flex: 0 0 auto !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    min-height: 42px !important;
    margin: 8px 10px 0 !important;
    padding: 8px 10px !important;
    border: 1px dashed rgba(154, 107, 47, .32) !important;
    border-radius: 8px !important;
    background: #fff8ea !important;
  }

  body.crc-mobile .compose-attachment-dropzone small {
    display: none !important;
  }

  body.crc-mobile .compose-attachments {
    flex: 0 0 auto !important;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }

  body.crc-mobile .compose-outlook-form .form-error {
    flex: 0 0 auto !important;
    margin: 8px 10px 0 !important;
  }

  body.crc-mobile .html-editor {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 10px 10px 10px !important;
    padding: 16px 12px 20px !important;
    border: 1px solid rgba(154, 107, 47, .34) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    color: #17130e !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.crc-mobile .compose-window .html-editor table[width="790"] {
    width: 790px !important;
    min-width: 790px !important;
    max-width: 790px !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-wrap {
    width: 790px !important;
    min-width: 790px !important;
    max-width: 790px !important;
    table-layout: auto !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-stack {
    display: table !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-stack > tbody {
    display: table-row-group !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-stack > tbody > tr {
    display: table-row !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-stack > tbody > tr > td {
    display: table-cell !important;
    max-width: none !important;
    box-sizing: content-box !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-logo-cell {
    width: 126px !important;
    padding: 0 17px 0 0 !important;
    text-align: left !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-logo {
    width: 110px !important;
    height: 110px !important;
    margin: 0 !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-brand-cell {
    width: 290px !important;
    padding: 0 18px 0 0 !important;
    text-align: left !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-contact-cell {
    border-top: 0 !important;
    border-left: 1px solid #dfd4b9 !important;
    padding: 0 0 0 18px !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-contact-table td {
    display: table-cell !important;
    width: auto !important;
    padding-left: 12px !important;
    white-space: nowrap !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-btn-cell {
    display: table-cell !important;
    width: 33.33% !important;
    padding-bottom: 0 !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-btn {
    display: block !important;
    width: 100% !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-dept-cell {
    display: table-cell !important;
    width: 146px !important;
    padding: 0 !important;
  }

  body.crc-mobile .compose-window .html-editor .crcpro-light-spacer {
    display: table-cell !important;
    width: 6px !important;
  }
}

@media (max-width: 380px) {
  body.crc-mobile .topbar {
    min-height: calc(100px + env(safe-area-inset-top)) !important;
  }

  body.crc-mobile .crc-mobile-sidebar-toggle,
  body.crc-mobile .topbar-actions .primary-button,
  body.crc-mobile .topbar-actions .icon-button {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  body.crc-mobile .topbar-actions {
    height: 42px !important;
    min-height: 42px !important;
  }

  body.crc-mobile .sidebar {
    width: min(88vw, 292px) !important;
  }

  body.crc-mobile .compose-ribbon {
    grid-template-columns: minmax(0, 1fr) 40px !important;
    gap: 6px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.crc-mobile .compose-ribbon .primary-button.compact {
    min-width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: .82rem !important;
  }

  body.crc-mobile .compose-ribbon .icon-button,
  body.crc-mobile .compose-ribbon .text-button,
  body.crc-mobile .ribbon-select,
  body.crc-mobile .ribbon-check {
    height: 40px !important;
    min-height: 40px !important;
  }

  body.crc-mobile .compose-ribbon .icon-button {
    width: 40px !important;
    min-width: 40px !important;
  }

  body.crc-mobile .compose-line {
    grid-template-columns: 32px minmax(0, 1fr) auto !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }
}
