@import url("./styles.min.css");

:root {
    --aqua-blue: #0f78bc;
    --aqua-blue-dark: #07578f;
    --aqua-blue-soft: #eff7fd;
    --aqua-surface: #f2f4f7;
    --aqua-sidebar: #eef1f4;
    --aqua-border: #d7e0e8;
    --aqua-border-strong: #c4d0db;
    --aqua-text: #33424d;
    --aqua-muted: #778592;
    --aqua-shadow: 0 12px 30px rgba(10, 63, 102, 0.08);
    --aqua-header-height: 84px;
    --aqua-mailbar-height: 68px;
}

body {
    background: var(--aqua-surface);
    color: var(--aqua-text);
}

#layout {
    flex-wrap: wrap;
    align-content: flex-start;
    background: var(--aqua-surface);
}

#layout-menu {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 280px) minmax(420px, 640px) minmax(0, 1fr) auto;
    grid-template-areas:
        "meta meta meta meta"
        "brand search . nav";
    background: var(--aqua-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 30;
}

#layout-menu .taskbar-topline {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 22px;
    padding: 3px 18px 0 14px;
    font-size: 13px;
    line-height: 1.2;
}

#layout-menu .taskbar-topline .support-link,
#layout-menu .taskbar-topline .username,
#layout-menu .taskbar-topline .top-logout {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
}

#layout-menu .taskbar-topline .support-link:hover,
#layout-menu .taskbar-topline .top-logout:hover {
    color: #fff;
}

#layout-menu .taskbar-account {
    display: flex;
    align-items: center;
    gap: 20px;
}

#layout-menu .taskbar-account .username {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#layout-menu .taskbar-account a.top-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    background: transparent !important;
    float: none;
}

#layout-menu .taskbar-account a.top-logout:before {
    content: "\f011";
    font-family: Icons;
    font-weight: 900;
    font-size: 14px;
    color: currentColor;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin-right: 0 !important;
    display: inline-block;
}

#layout-menu .popover-header {
    grid-area: brand;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 58px;
    height: auto;
    padding: 0 0 0 24px !important;
    background: transparent !important;
}

#layout-menu .popover-header .brand-home {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
}

#layout-menu .popover-header > a:not(.brand-home) {
    display: none !important;
}

#layout-menu .popover-header img {
    width: 190px;
    max-width: 190px;
    max-height: 60px;
    padding: 0;
}

#layout-menu .taskbar-search {
    grid-area: search;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 634px);
    min-width: 0;
    justify-self: start;
    align-self: center;
    padding-right: 12px;
}

#layout-menu .mobile-search-toggle,
#layout-menu .mobile-search-close {
    display: none;
}

#layout-menu .mobile-search-toggle {
    grid-area: searchtoggle;
    align-self: center;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin-right: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

#layout-menu .mobile-search-toggle:before {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 18px;
}

#layout-menu .mobile-search-toggle .inner {
    display: none;
}

#layout-menu .mobile-search-close {
    position: absolute;
    top: 10px;
    right: 14px;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9px;
}

#layout-menu .mobile-search-close:before {
    content: "\00d7";
    font-size: 24px;
    line-height: 1;
}

#layout-menu .mobile-search-close .inner {
    display: none;
}

#layout-menu .taskbar-search .header-searchfilter,
#layout-menu .taskbar-search .header-searchfilter:focus {
    flex: 0 0 230px;
    max-width: 230px;
    height: 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--aqua-text);
    background: #fff;
}

#layout-menu .taskbar-search .header-searchbar {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

#layout-menu .taskbar-search .header-searchbar form {
    align-items: center;
}

#layout-menu .taskbar-search .header-searchbar form:before {
    height: 40px;
    margin-left: 14px;
    color: var(--aqua-muted);
}

#layout-menu .taskbar-search .header-searchbar input {
    color: var(--aqua-text);
    padding: 0 12px;
}

#layout-menu .taskbar-search .header-searchbar a.search {
    display: none;
}

#layout-menu .taskbar-search .header-searchbar a.options,
#layout-menu .taskbar-search .header-searchbar a.reset {
    width: 2.5rem;
}

#taskmenu {
    grid-area: nav;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    align-self: end;
    padding: 0 12px 0 0;
    background: transparent;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#taskmenu::-webkit-scrollbar {
    display: none;
}

#taskmenu > .action-buttons,
#taskmenu > .special-buttons {
    display: none;
}

#taskmenu > a,
#taskmenu > span > a,
#taskmenu > .special-buttons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    line-height: 1;
    float: none;
}

#taskmenu > a:before,
#taskmenu > span > a:before,
#taskmenu > .special-buttons > a:before {
    float: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 20px;
}

#taskmenu > a.mail:before,
#taskmenu > a[href*="_task=mail"]:before {
    content: "\f0e0";
    font-family: Icons;
    font-weight: 900;
}

#taskmenu > a.contacts:before,
#taskmenu > a[href*="_task=addressbook"]:before {
    content: "\f0c0";
    font-family: Icons;
    font-weight: 900;
}

#taskmenu > a.calendar:before,
#taskmenu > a[href*="_task=calendar"]:before {
    content: "\f133";
    font-family: Icons;
    font-weight: 900;
}

#taskmenu > a.settings:before,
#taskmenu > a[href*="_task=settings"]:before {
    content: "\f013";
    font-family: Icons;
    font-weight: 900;
}

#taskmenu > a.selected,
#taskmenu > span > a.selected,
#taskmenu > .special-buttons > a.selected {
    background: var(--aqua-blue-dark);
}

#taskmenu > a:not(.disabled):hover,
#taskmenu > span > a:not(.disabled):hover,
#taskmenu > .special-buttons > a:not(.disabled):hover {
    background: var(--aqua-blue-dark);
}

#taskmenu > a:not(.disabled):focus,
#taskmenu > span > a:not(.disabled):focus,
#taskmenu > .special-buttons > a:not(.disabled):focus {
    background: var(--aqua-blue-dark);
    outline: 0;
}

#taskmenu > a .inner,
#taskmenu > span > a .inner,
#taskmenu > .special-buttons > a .inner {
    display: inline;
    font-size: 14px;
    font-weight: 500;
}

@media screen and (min-width: 769px) {
    #taskmenu a {
        width: auto !important;
        min-width: max-content !important;
    }

    #taskmenu span.inner {
        display: inline-block !important;
        white-space: nowrap;
    }

    #layout-menu {
        grid-template-columns: minmax(250px, 280px) minmax(360px, 560px) minmax(0, 1fr) auto;
    }

    #layout-menu .popover-header {
        min-height: 55px;
        padding-left: 20px !important;
    }

    #layout-menu .popover-header img {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 58px !important;
    }

    #taskmenu {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    #taskmenu > a,
    #taskmenu > span > a,
    #taskmenu > .special-buttons > a {
        width: auto !important;
        min-width: max-content !important;
        padding: 0 18px !important;
        flex: 0 0 auto;
    }

    #taskmenu > a .inner,
    #taskmenu > span > a .inner,
    #taskmenu > .special-buttons > a .inner {
        display: inline-block !important;
        white-space: nowrap;
    }
}

html:not(.iframe) body:not(.task-login) #layout-sidebar,
html:not(.iframe) body:not(.task-login) #layout-list,
html:not(.iframe) body:not(.task-login) #layout-content {
    min-height: 0;
    height: calc(100% - var(--aqua-header-height));
}

html:not(.iframe) body.task-mail #layout-sidebar,
html:not(.iframe) body.task-mail #layout-list,
html:not(.iframe) body.task-mail #layout-content.mail-preview-pane {
    height: calc(100% - var(--aqua-header-height) - var(--aqua-mailbar-height));
}

#layout-sidebar,
#layout-list,
#layout-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#layout-sidebar {
    background: #f4f4f4;
    border-right: 1px solid #d9d9d9;
}

#layout-list {
    background: #fff;
    border-right: 1px solid var(--aqua-border);
}

#layout-content {
    background: #fff;
    border-right: 0;
    min-height: 0;
}

#layout > div > .header {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px;
    background: linear-gradient(180deg, #f3f5f8 0%, #e8edf2 100%);
    color: var(--aqua-text);
    border-bottom: 1px solid var(--aqua-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#layout > div > .header .header-title {
    margin: 0;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}

#layout > div > .header a.button {
    color: #5f7280;
    border-radius: 8px;
}

#layout > div > .header a.button:hover {
    background: rgba(15, 120, 188, 0.08);
}

#mail-action-bar {
    flex: 0 0 100%;
    width: 100%;
    min-height: var(--aqua-mailbar-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 8px 20px;
    background: #fff;
    border-bottom: 1px solid var(--aqua-border);
    box-shadow: 0 4px 16px rgba(9, 40, 65, 0.05);
    z-index: 20;
}

#mail-action-bar .mail-action-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

#mail-action-bar .mail-action-left a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 76px;
    min-width: 76px;
    max-width: none;
    height: 52px;
    padding: 6px;
    float: none;
    color: #0a70b3;
    border-radius: 10px;
}

#mail-action-bar .mail-action-left a.compose {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    min-width: 188px;
    height: 50px;
    margin-right: 10px;
    padding: 0 22px;
    color: #fff;
    background: var(--aqua-blue);
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(15, 120, 188, 0.18);
}

#mail-action-bar .mail-action-left a.compose:before {
    font-size: 20px;
}

#mail-action-bar .mail-action-left a.compose .inner {
    font-size: 14px;
    font-weight: 600;
}

#mail-action-bar .mail-action-left a.compose:not(.disabled):hover,
#mail-action-bar .mail-action-left a.compose:not(.disabled):focus {
    background: var(--aqua-blue-dark);
    outline: 0;
}

#mail-action-bar .mail-action-left a.disabled {
    color: #a9b7c2;
}

#mail-action-bar .mail-action-left a:not(.disabled):hover {
    background: var(--aqua-blue-soft);
}

#mail-action-bar .mail-action-left a:before {
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 21px;
}

#mail-action-bar .mail-action-left a .inner {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.1;
}

#mail-action-bar .mail-action-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

#mail-action-bar .global-searchfilter,
#mail-action-bar .global-searchfilter:focus {
    min-width: 170px;
    height: 40px;
    border: 1px solid var(--aqua-border);
    border-radius: 0;
    box-shadow: none;
    color: var(--aqua-text);
}

#mail-action-bar .global-searchbar {
    width: 300px;
    min-width: 300px;
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--aqua-border);
    border-radius: 0;
    background: #fff;
}

#mail-action-bar .global-searchbar form {
    align-items: center;
}

#mail-action-bar .global-searchbar form:before {
    height: 40px;
    margin-left: 14px;
    color: var(--aqua-muted);
}

#mail-action-bar .global-searchbar input {
    color: var(--aqua-text);
    padding: 0 12px;
}

#mail-action-bar .global-searchbar a.search {
    display: none;
}

#mail-action-bar .global-searchbar a.options {
    display: inline-flex;
    align-items: center;
    width: 2.5rem;
}

#mail-action-bar .global-searchbar a.reset {
    width: 2.5rem;
}

html:not(.iframe) body.task-mail.action-none #layout-sidebar,
html:not(.iframe) body.task-mail.action-none #layout-list,
html:not(.iframe) body.task-mail.action-none #layout-content {
    height: calc(100% - var(--aqua-header-height) - var(--aqua-mailbar-height));
}

html:not(.iframe) body.task-mail.action-none #layout-sidebar {
    flex: 0 0 290px;
    max-width: min(460px, 42vw);
    min-width: 250px;
}

html:not(.iframe) body.task-mail.action-none #layout-list {
    flex: 0 0 530px;
    max-width: 530px;
    min-width: 380px;
}

html:not(.iframe) body.task-mail.action-none #layout-content {
    flex: 1 1 auto;
    width: auto;
}

@media screen and (min-width: 769px) {
    html:not(.iframe) body.task-mail.action-none #layout-sidebar > .column-resizer {
        right: -6px;
        width: 12px;
        z-index: 30;
    }
}

html:not(.iframe) body.task-mail.action-none #layout-list > .header .toolbar,
html:not(.iframe) body.task-mail.action-none #layout-list > .header .refresh,
html:not(.iframe) body.task-mail.action-none #layout-list > .header .toolbar-menu-button,
html:not(.iframe) body.task-mail.action-none #layout-content.mail-preview-pane > .header {
    display: none;
}

html:not(.iframe) body.task-mail.action-none #layout-list > .header {
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px 0 12px;
}

html:not(.iframe) body.task-mail.action-none #layout-sidebar > .header {
    display: none;
}

html:not(.iframe) body.task-mail.action-none #layout-list > .header .header-title:before {
    content: "Emails";
    color: var(--aqua-text);
}

html:not(.iframe) body.task-mail.action-none #layout-list > .header .header-title {
    color: transparent;
}

#messagelist-header {
    min-height: 42px !important;
    height: 42px !important;
    line-height: 1;
    background: linear-gradient(180deg, #f1f1f1 0%, #e6e6e6 100%) !important;
    border-bottom: 1px solid #d7dde4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#messagelist-header .header-title,
#messagelist-header .refresh,
#messagelist-header .toolbar-menu-button {
    display: none !important;
}

#messagelist-header .messagelist-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

#messagelist-header .messagelist-header-left {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
}

#messagelist-header .messagelist-header-left #listcontrols {
    display: none;
}

#messagelist-header .messagelist-header-left a.options {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    color: #687781;
    background: transparent;
    border: 0;
}

#messagelist-header .messagelist-header-left a.options:before {
    font-size: 16px;
    margin: 0;
    line-height: 1;
}

#messagelist-header .messagelist-header-left a.options:after {
    content: "\f078";
    margin-left: 4px;
    color: #7a848b;
    font-family: Icons;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

#messagelist-header .messagelist-header-left a.options .inner {
    display: none;
}

#messagelist-header .messagelist-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: visible;
}

#messagelist-select-replace {
    display: none;
}

#messagelist-header .pagenav.menu.footer.small {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
}

#messagelist-header .pagenav.menu.footer.small .pagenav-text {
    order: 1;
    margin-right: 10px;
    color: #2f3941;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    flex: 0 1 auto;
}

#messagelist-header .pagenav.menu.footer.small .firstpage {
    order: 2;
}

#messagelist-header .pagenav.menu.footer.small .prevpage {
    order: 3;
}

#messagelist-header .pagenav.menu.footer.small input.form-control {
    order: 4;
    width: 42px;
    height: 30px;
    padding: 0;
    color: #2f3941;
    text-align: center;
    background: #fff;
    border: 1px solid #c9d2da;
    border-radius: 0;
    box-shadow: none;
}

#messagelist-header .pagenav.menu.footer.small .nextpage {
    order: 5;
}

#messagelist-header .pagenav.menu.footer.small .lastpage {
    order: 6;
}

#messagelist-header .pagenav.menu.footer.small a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    color: #4f5a63;
    opacity: 1;
}

#messagelist-header .pagenav.menu.footer.small a:before {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

#messagelist-header .pagenav.menu.footer.small a.disabled {
    color: #98a2aa;
    opacity: 1;
}

#messagelist-header .pagenav.menu.footer.small a:not(.disabled):hover,
#messagelist-header .pagenav.menu.footer.small a:not(.disabled):focus {
    color: #2f3941;
    background: rgba(15, 120, 188, 0.08);
    outline: 0;
}

#messagelist-header .messagelist-header-right > a.selection,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 26px;
    min-width: 26px;
    flex: 0 0 26px;
    height: 26px;
    padding: 0;
    color: transparent;
    background: transparent;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: visible;
    box-shadow: none;
}

#messagelist-header .messagelist-header-right > a.selection:before,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button:before {
    content: "" !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 14px !important;
    background: #fff;
    border: 1px solid #aeb9c4;
    border-radius: 2px;
    box-sizing: border-box;
}

#messagelist-header .messagelist-header-right > a.selection .inner,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button .inner {
    display: none;
    font-size: 14px;
    font-weight: 500;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

#messagelist-header .messagelist-header-right > a.selection.disabled,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button.disabled {
    color: #98a2aa;
}

#messagelist-header .messagelist-header-right > a.selection.disabled:before,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button.disabled:before {
    background: #f5f7f9;
    border-color: #c8d0d8;
    opacity: 0.75;
}

#messagelist-header .messagelist-header-right > a.selection:not(.disabled):hover,
#messagelist-header .messagelist-header-right > a.selection:not(.disabled):focus,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button:not(.disabled):hover,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button:not(.disabled):focus {
    color: transparent;
    background: transparent;
    outline: 0;
}

#messagelist-header .messagelist-header-right > a.selection:not(.disabled):hover:before,
#messagelist-header .messagelist-header-right > a.selection:not(.disabled):focus:before,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button:not(.disabled):hover:before,
#messagelist-header .messagelist-header-right > a.selection.toolbar-button:not(.disabled):focus:before {
    border-color: #7f93a6;
    background: #fff;
}

body.task-mail #layout-list > .footer,
body.task-mail #layout-list .listselectors {
    display: none !important;
}

#searchmenu {
    position: absolute;
    top: calc(var(--aqua-header-height) + 8px);
    right: 20px;
    width: 360px;
    max-height: 60vh;
    background: #fff;
    border: 1px solid var(--aqua-border);
    box-shadow: var(--aqua-shadow);
    z-index: 60;
}

#searchmenu .formcontent {
    padding: 16px;
}

#searchmenu .formbuttons {
    padding: 0 16px 16px;
}

.searchmenu-toggle-proxy {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

#folderlist-content,
#messagelist-content,
#layout-content .iframe-wrapper {
    background: #fff;
}

#folderlist-content {
    background: #f4f4f4;
}

#mailboxlist {
    font-family: "Noto Sans", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    background: #f4f4f4;
}

#mailboxlist li,
#mailboxlist li ul {
    border-color: #dddddd;
    background: #f4f4f4;
}

#mailboxlist li > a,
#mailboxlist li > div > a {
    padding: 0 14px 0 16px;
    padding-right: 76px;
    min-height: 42px;
    line-height: 42px;
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3d3d3d;
    font-family: "Noto Sans", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
}

#mailboxlist li > a:hover,
#mailboxlist li > div > a:hover {
    background: #ececec;
}

#mailboxlist li.selected > a,
#mailboxlist li.selected > div > a {
    background: #dddddd;
    color: #3b3b3b;
    font-weight: 700;
}

#mailboxlist li a:before {
    color: #555555;
    font-size: 1.1em;
}

#mailboxlist.treelist li {
    position: relative;
}

#mailboxlist li div.treetoggle {
    color: #5e5e5e;
}

#mailboxlist.treelist li div.treetoggle {
    left: 10px;
    width: 18px;
    height: 42px;
    min-height: 42px;
    line-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#mailboxlist.treelist li div.treetoggle:before {
    display: block;
    float: none;
    width: auto;
    height: 42px;
    line-height: 42px;
    margin: 0;
    transform: translateY(-1px);
}

#mailboxlist.treelist li > a,
#mailboxlist.treelist li > div > a {
    padding-left: 24px;
}

#mailboxlist.treelist li > div.treetoggle + a {
    padding-left: 42px;
}

#mailboxlist.treelist li ul li > a,
#mailboxlist.treelist li ul li > div > a {
    padding-left: 56px;
}

#mailboxlist.treelist li ul li > div.treetoggle + a {
    padding-left: 66px;
}

#mailboxlist.treelist li ul li div.treetoggle {
    left: 34px;
}

#mailboxlist.treelist li ul li ul li > a,
#mailboxlist.treelist li ul li ul li > div > a {
    padding-left: 80px;
}

#mailboxlist.treelist li ul li ul li > div.treetoggle + a {
    padding-left: 90px;
}

#mailboxlist.treelist li ul li ul li div.treetoggle {
    left: 58px;
}

#mailboxlist.treelist li ul li ul li ul li > a,
#mailboxlist.treelist li ul li ul li ul li > div > a {
    padding-left: 104px;
}

#mailboxlist.treelist li ul li ul li ul li > div.treetoggle + a {
    padding-left: 114px;
}

#mailboxlist.treelist li ul li ul li ul li div.treetoggle {
    left: 82px;
}

#mailboxlist li.mailbox .unreadcount {
    position: absolute;
    top: 0;
    right: 18px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    min-width: 44px;
    line-height: 42px;
    white-space: nowrap;
    text-align: right;
    background: transparent;
    color: #3d3d3d;
    font-family: "Noto Sans", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

#layout-sidebar .footer.small {
    height: 52px;
    min-height: 52px;
    line-height: normal;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-top: 1px solid #e5e5e5;
}

#layout-sidebar .footer.small .sidebar-footer-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    color: #6b7075;
    border-radius: 4px;
}

#layout-sidebar .footer.small .sidebar-footer-menu:before {
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 28px;
}

#layout-sidebar .footer.small .sidebar-footer-menu:hover,
#layout-sidebar .footer.small .sidebar-footer-menu:focus {
    background: #e2e7ec;
    outline: 0;
}

#quotadisplay.quota-widget {
    flex: 1;
    max-width: none;
    padding: 0;
    min-width: 0;
    color: #3d3d3d;
    font-family: "Noto Sans", Roboto, sans-serif;
    font-size: 14px;
}

#quotadisplay.quota-widget:before {
    color: #72777c;
}

#quotadisplay.quota-widget .count {
    color: #3d3d3d;
    font-family: "Noto Sans", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

#quotadisplay.quota-widget .bar {
    height: 14px;
    margin: 0 12px;
    background: #fff;
    border: 1px solid #aab0b5;
    border-radius: 0;
}

#quotadisplay.quota-widget .value {
    background: #bfc7ce;
    opacity: 1;
}

#messagelist tbody tr td {
    border-bottom: 1px solid #e6edf2;
    padding-top: 4px;
    padding-bottom: 4px;
}

#messagelist tbody tr.selected td {
    background: #eef6fc;
}

#messagelist td.subject span.fromto,
#messagelist td.subject span.date {
    color: var(--aqua-muted);
}

#messagelist td.subject span.subject {
    color: var(--aqua-text);
}

#messagelist tr.unread td.subject span.subject {
    font-weight: 700;
}

#layout-content .iframe-wrapper {
    background: #fff;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

#layout-content .iframe-wrapper iframe {
    background: #fff;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

#messagecontframe {
    background: #fff;
    display: block;
    width: 100%;
    height: 100%;
}

html.iframe body.task-mail #layout-content.selected {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: #fff;
}

html.iframe body.task-mail #layout-content.selected > .content.frame-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
}

html.iframe body.task-mail #message-content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 0;
}

html.iframe body.task-mail #message-content .rightcol,
html.iframe body.task-mail #messagebody {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    min-height: 0;
}

html.iframe body.task-mail #messagebody > .message-part,
html.iframe body.task-mail #messagebody > .message-htmlpart {
    flex: 1 0 auto;
    min-height: 100%;
}

.pagenav.menu.footer.small {
    background: #f7f9fb;
    border-top: 1px solid var(--aqua-border);
}

.pagenav.menu.footer.small .pagenav-text {
    color: var(--aqua-muted);
}

.popupmenu,
.popover {
    background: #fff;
    border: 1px solid var(--aqua-border);
    box-shadow: var(--aqua-shadow);
    border-radius: 0;
}

#mailboxoptions-menu {
    width: 208px;
    padding: 0;
    background: #fff;
}

#mailboxoptions-menu ul.menu.listing {
    text-align: left;
}

#mailboxoptions-menu ul.menu.listing li a {
    width: 100%;
    max-width: none;
    min-width: 0;
    line-height: 2.8rem;
    padding: 0 14px;
    color: var(--aqua-text);
}

#mailboxoptions-menu ul.menu.listing li a:before {
    display: none;
}

#mailboxoptions-menu ul.menu.listing li a:not(.disabled):hover,
#mailboxoptions-menu ul.menu.listing li a:not(.disabled):focus {
    color: var(--aqua-text);
    background: #f3f6f9;
}

#listoptions-menu .form-group.row {
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

#listoptions-menu .col-form-label.col-sm-4 {
    flex: 0 0 220px;
    max-width: 220px;
    padding-right: 16px;
    white-space: nowrap;
}

#listoptions-menu .col-sm-8 {
    flex: 0 0 calc(100% - 220px);
    max-width: calc(100% - 220px);
}

#listoptions-menu .col-sm-8 select {
    width: 100%;
}

.task-login #layout {
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.task-login #layout::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 53%;
    width: min(1120px, 88vw);
    aspect-ratio: 1079 / 899;
    transform: translate(-50%, -50%);
    background: url("/skins/elastic/images/login-background-soft.png") center center / contain no-repeat;
    opacity: 0.92;
    filter: blur(2px);
    pointer-events: none;
}

.task-login #layout-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 140px 24px 72px;
    background: transparent;
}

.task-login #layout-content > * {
    position: relative;
    z-index: 1;
}

.task-login #logo {
    position: absolute;
    top: 34px;
    left: clamp(34px, 8vw, 160px);
    width: min(196px, 16.8vw);
    max-width: 196px;
    max-height: none;
    height: auto;
}

#login-form {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 600px);
    max-width: 600px;
    margin: 0 auto;
    padding: 52px 60px 48px;
    background: rgba(247, 247, 248, 0.92);
    border: 1px solid #d3dae1;
    border-radius: 12px;
    box-shadow: 0 26px 60px rgba(255, 109, 51, 0.08);
    backdrop-filter: blur(4px);
}

#login-form .login-card-header {
    margin-bottom: 28px;
}

#login-form .login-title {
    margin: 0;
    color: #31323a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

#login-form table,
#login-form tbody,
#login-form tr,
#login-form td {
    display: block;
    width: 100%;
}

#login-form table {
    margin: 0;
}

#login-form tr + tr {
    margin-top: 20px;
}

#login-form td {
    padding: 0;
    border: 0;
}

#login-form td.title {
    margin-bottom: 10px;
}

#login-form td.title label {
    margin: 0;
    color: #31323a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

#login-form td.input {
    position: relative;
}

#login-form .form-control {
    width: 100%;
    height: 50px;
    border: 1px solid #cbd4db;
    border-radius: 12px;
    background: #ffffff;
    color: #4b4f55;
    box-shadow: none;
    padding: 0 16px;
    font-size: 16px;
    line-height: 48px;
}

#login-form .form-control::placeholder {
    color: #73777c;
    opacity: 1;
}

#login-form .form-control:focus {
    border-color: #ff6d33;
    box-shadow: 0 0 0 0.2rem rgba(255, 109, 51, 0.14);
}

#login-form .formbuttons {
    margin: 30px 0 22px;
}

#login-form .button.mainaction.submit,
#login-form .button.mainaction.submit:hover,
#login-form .button.mainaction.submit:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7a3a 0%, #ff672a 100%);
    color: #ffffff;
    box-shadow: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

#login-form .button.mainaction.submit::before {
    display: none !important;
}

#login-form .button.mainaction.submit:hover,
#login-form .button.mainaction.submit:focus {
    background: linear-gradient(180deg, #ff8349 0%, #ff6f32 100%);
}

#login-form .button.mainaction.submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(255, 109, 51, 0.22);
}

#login-footer {
    color: #63676c;
    font-size: 15px;
}

#login-footer > div {
    background: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

#login-footer > div:empty {
    display: none;
}

#login-footer a.support-link {
    color: #ff6430;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

#login-footer a.support-link:hover,
#login-footer a.support-link:focus {
    color: #ff7c4a;
    text-decoration: underline;
}

#login-meta {
    margin-top: 38px;
    color: #5d6168;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

#login-meta a {
    color: inherit;
    text-decoration: none;
}

#login-meta a:hover,
#login-meta a:focus {
    color: #3e4349;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .task-login #layout::before {
        width: min(1320px, 138vw);
        top: 50%;
    }

    .task-login #layout-content {
        justify-content: flex-start;
        padding: 104px 16px 42px;
    }

    .task-login #logo {
        position: relative;
        top: auto;
        left: auto;
        width: min(168px, 43.4vw);
        max-width: 168px;
        margin-bottom: 28px;
        align-self: flex-start;
    }

    #login-form {
        width: 100%;
        padding: 34px 24px 32px;
    }

    #login-form .login-title {
        font-size: 24px;
    }

    #login-meta {
        margin-top: 26px;
        font-size: 15px;
    }
}

@media screen and (max-width: 1500px) {
    #layout-menu {
        grid-template-columns: minmax(230px, 250px) minmax(320px, 500px) minmax(0, 1fr) auto;
        overflow-x: hidden;
    }

    #mail-action-bar {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    #layout-menu .taskbar-search {
        width: 100%;
    }

    #layout-menu .taskbar-search .header-searchfilter,
    #layout-menu .taskbar-search .header-searchfilter:focus {
        flex-basis: 200px;
        max-width: 200px;
    }

    #mail-action-bar .mail-action-right {
        width: 100%;
        margin-left: 0;
    }

    #mail-action-bar .global-searchbar {
        width: 100%;
        min-width: 0;
        flex: 1;
    }

    html:not(.iframe) body.task-mail.action-none #layout-list {
        flex: 1 1 420px;
        max-width: 42%;
        min-width: 320px;
    }

    #messagelist-header .messagelist-header-main,
    #messagelist-header .messagelist-header-right,
    #messagelist-header .pagenav.menu.footer.small {
        min-width: 0;
        overflow: hidden;
    }

    #messagelist-header .pagenav.menu.footer.small .pagenav-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 1024px) {
    :root {
        --aqua-header-height: 154px;
        --aqua-mailbar-height: 64px;
    }

    #layout-menu {
        grid-template-columns: minmax(220px, 1fr) auto;
        grid-template-areas:
            "meta meta"
            "brand search"
            "nav nav";
    }

    #layout-menu .taskbar-topline,
    #layout-menu .popover-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    #layout-menu .popover-header {
        min-height: 62px;
        justify-content: flex-start;
    }

    #layout-menu .popover-header img {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 52px !important;
    }

    #layout-menu .taskbar-search {
        width: 100%;
        padding: 0 14px 12px;
    }

    #layout-menu .taskbar-search .header-searchfilter,
    #layout-menu .taskbar-search .header-searchfilter:focus {
        flex-basis: 180px;
        max-width: 180px;
    }

    #taskmenu {
        overflow-x: auto;
        padding: 0 8px 0 14px;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    #taskmenu > a,
    #taskmenu > span > a,
    #taskmenu > .special-buttons > a {
        width: auto !important;
        min-width: max-content;
        height: 48px;
        padding: 0 14px;
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    #taskmenu > a .inner,
    #taskmenu > span > a .inner,
    #taskmenu > .special-buttons > a .inner {
        display: inline-block !important;
        white-space: nowrap;
    }

    #mail-action-bar {
        padding: 8px 14px;
        gap: 12px;
    }

    #mail-action-bar .mail-action-left {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
    }

    #mail-action-bar .mail-action-left a.compose {
        min-width: 170px;
        height: 48px;
        margin-right: 2px;
        padding: 0 18px;
    }

    #mail-action-bar .mail-action-left a {
        width: 64px;
        min-width: 64px;
        height: 48px;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar,
    html:not(.iframe) body.task-mail.action-none #layout-list,
    html:not(.iframe) body.task-mail.action-none #layout-content {
        height: calc(100% - var(--aqua-header-height) - var(--aqua-mailbar-height));
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar {
        flex: 0 0 220px;
        min-width: 220px;
    }

    html:not(.iframe) body.task-mail.action-none #layout-list {
        min-width: 280px;
    }

    #searchmenu {
        right: 14px;
        width: min(360px, calc(100vw - 28px));
    }

    #messagelist-header .messagelist-header-main {
        gap: 10px;
    }

    #messagelist-header .messagelist-header-right {
        gap: 8px;
    }

    #messagelist-header .pagenav.menu.footer.small .pagenav-text {
        max-width: 120px;
    }

    #messagelist-header .pagenav.menu.footer.small a {
        width: 24px;
        min-width: 24px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --aqua-header-height: 128px;
        --aqua-mailbar-height: 0px;
    }

    html.layout-small body.task-mail,
    html.layout-phone body.task-mail {
        overflow-x: hidden;
    }

    html.layout-small body.task-mail #layout,
    html.layout-phone body.task-mail #layout {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    #layout-menu {
        position: relative;
        width: 100vw;
        max-width: 100vw;
        overflow: visible;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "meta meta"
            "brand searchtoggle"
            "nav nav";
    }

    #layout-menu .taskbar-topline {
        padding: 8px 12px 0;
        gap: 8px;
        min-height: 24px;
    }

    #layout-menu .taskbar-account {
        gap: 10px;
        flex-wrap: wrap;
    }

    #layout-menu .taskbar-account .username {
        max-width: calc(100vw - 132px);
        font-size: 12px;
    }

    #layout-menu .popover-header {
        min-height: 54px;
        padding: 2px 0 8px 12px !important;
        justify-content: flex-start;
    }

    #layout-menu .popover-header img {
        width: min(190px, 48vw) !important;
        max-width: 190px !important;
        max-height: 50px !important;
    }

    #layout-menu .mobile-search-toggle {
        display: inline-flex;
    }

    #layout-menu .taskbar-search {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 45;
        padding: 12px 60px 14px 12px;
        background: var(--aqua-blue);
        box-shadow: 0 10px 24px rgba(4, 37, 61, 0.22);
        gap: 10px;
        align-items: stretch;
    }

    #layout-menu.mobile-search-open .taskbar-search {
        display: flex;
    }

    #layout-menu .mobile-search-close {
        display: inline-flex;
    }

    #layout-menu .taskbar-search .header-searchfilter,
    #layout-menu .taskbar-search .header-searchfilter:focus {
        flex: 0 0 138px;
        max-width: 138px;
        height: 42px;
    }

    #layout-menu .taskbar-search .header-searchbar {
        flex: 1 1 0;
        min-width: 0;
        height: 42px;
        min-height: 42px;
    }

    #taskmenu {
        padding: 0 4px 0 12px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    #taskmenu::-webkit-scrollbar,
    #mail-action-bar .mail-action-left::-webkit-scrollbar {
        display: none;
    }

    #taskmenu > a,
    #taskmenu > span > a,
    #taskmenu > .special-buttons > a {
        width: auto !important;
        min-width: max-content !important;
        height: 46px;
        padding: 0 14px !important;
        justify-content: flex-start;
        flex: 0 0 auto;
        gap: 8px;
    }

    #taskmenu > a .inner,
    #taskmenu > span > a .inner,
    #taskmenu > .special-buttons > a .inner {
        display: inline-block !important;
        font-size: 13px;
        white-space: nowrap;
    }

    #mail-action-bar {
        display: none !important;
        flex: 0 0 0 !important;
        width: 100vw;
        max-width: 100vw;
        height: 0 !important;
        max-height: var(--aqua-mailbar-height);
        min-height: var(--aqua-mailbar-height);
        padding: 6px 12px;
        gap: 10px;
        overflow: hidden;
        align-items: center;
    }

    #mail-action-bar .mail-action-left {
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
    }

    #mail-action-bar .mail-action-left a.compose,
    #mail-action-bar .mail-action-left a.reply,
    #mail-action-bar .mail-action-left a.reply-all,
    #mail-action-bar .mail-action-left a.forward,
    #mail-action-bar .mail-action-left a.delete,
    #mail-action-bar .mail-action-left a.markmessage,
    #mail-action-bar .mail-action-left a.more {
        display: none !important;
    }

    #mail-action-bar .mail-action-left a.refresh {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
    }

    #mail-action-bar .mail-action-left a.refresh .inner {
        display: none;
    }

    #mail-action-bar .mail-action-left a.refresh:before {
        font-size: 20px;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar,
    html:not(.iframe) body.task-mail.action-none #layout-list,
    html:not(.iframe) body.task-mail.action-none #layout-content {
        height: calc(100% - var(--aqua-header-height) - var(--aqua-mailbar-height));
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar {
        position: fixed;
        top: calc(var(--aqua-header-height) + var(--aqua-mailbar-height));
        left: 0;
        bottom: 0;
        z-index: 75;
        width: min(84vw, 320px);
        max-width: 320px;
        min-width: 0;
        height: auto !important;
        box-shadow: 14px 0 28px rgba(5, 41, 67, 0.18);
        border-right: 1px solid var(--aqua-border);
        background: #f4f4f4;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar.hidden {
        display: none !important;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar:not(.hidden) {
        display: flex !important;
        flex-direction: column;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar > .header {
        display: flex;
        min-height: 48px;
        padding: 0 12px;
    }

    html:not(.iframe) body.task-mail.action-none #layout-list,
    html:not(.iframe) body.task-mail.action-none #layout-content {
        flex: 1 1 auto;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
    }

    html.layout-small body.task-mail.action-none #layout-list.hidden,
    html.layout-phone body.task-mail.action-none #layout-list.hidden,
    html.layout-small body.task-mail.action-none #layout-content.hidden,
    html.layout-phone body.task-mail.action-none #layout-content.hidden {
        display: none !important;
    }

    html.layout-small body.task-mail.action-none #layout-list:not(.hidden),
    html.layout-phone body.task-mail.action-none #layout-list:not(.hidden),
    html.layout-small body.task-mail.action-none #layout-content:not(.hidden),
    html.layout-phone body.task-mail.action-none #layout-content:not(.hidden) {
        display: flex !important;
        flex-direction: column;
    }

    html.layout-small body.task-mail.mobile-force-list #layout-list,
    html.layout-phone body.task-mail.mobile-force-list #layout-list {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: calc(100dvh - var(--aqua-header-height) - var(--aqua-mailbar-height)) !important;
        order: 20;
    }

    html.layout-small body.task-mail.mobile-force-list #layout-content.mail-preview-pane,
    html.layout-phone body.task-mail.mobile-force-list #layout-content.mail-preview-pane {
        display: none !important;
    }

    #messagelist-header {
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 8px;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow: hidden;
    }

    #messagelist-header > a.button {
        position: static !important;
        inset: auto !important;
        margin: 0 !important;
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1 !important;
        overflow: visible;
    }

    #messagelist-header > a.button:before {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    #messagelist-header .task-menu-button {
        order: 1;
    }

    #messagelist-header .back-sidebar-button {
        order: 2;
    }

    #messagelist-header .refresh {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 0;
        color: #5f7280;
        background: transparent;
        border-radius: 8px;
        order: 4;
        transform: none !important;
    }

    #messagelist-header .refresh .inner {
        display: none;
    }

    #messagelist-header .refresh:before {
        font-size: 18px;
        line-height: 1;
    }

    #messagelist-header .messagelist-header-main {
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
        order: 3;
        height: 34px;
        align-items: center;
        justify-content: space-between;
    }

    #messagelist-header .messagelist-header-left {
        height: 34px;
        align-items: center;
    }

    #messagelist-header .messagelist-header-left a.options {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        line-height: 1 !important;
        transform: none !important;
    }

    #messagelist-header .messagelist-header-left a.options:before {
        font-size: 18px;
        margin: 0 !important;
        line-height: 1 !important;
    }

    #messagelist-header .messagelist-header-left a.options:after {
        position: static;
        margin: 0 0 0 2px;
        line-height: 1;
    }

    #messagelist-header .messagelist-header-right {
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    #messagelist-header .toolbar-menu-button {
        order: 5;
    }

    #messagelist-header .pagenav.menu.footer.small .pagenav-text,
    #messagelist-header .pagenav.menu.footer.small .firstpage,
    #messagelist-header .pagenav.menu.footer.small .lastpage {
        display: none !important;
    }

    #messagelist-header .pagenav.menu.footer.small {
        flex: 0 1 auto;
        justify-content: center;
        gap: 10px;
        min-width: 132px;
    }

    #messagelist-header .pagenav.menu.footer.small a {
        width: 26px;
        min-width: 26px;
        height: 30px;
    }

    #messagelist-header .pagenav.menu.footer.small input.form-control {
        width: 56px;
        min-width: 56px;
        height: 28px;
        display: block !important;
    }

    #messagelist-header .messagelist-header-right > a.selection,
    #messagelist-header .messagelist-header-right > a.selection.toolbar-button {
        display: none !important;
    }

    #messagelist-header .messagelist-header-right > a.selection .inner,
    #messagelist-header .messagelist-header-right > a.selection.toolbar-button .inner {
        display: none;
    }

    #searchmenu {
        top: calc(var(--aqua-header-height) + 6px);
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100dvh - var(--aqua-header-height) - 26px);
    }

    #layout-list .floating-action-buttons,
    #layout-content .floating-action-buttons {
        position: fixed;
        right: 16px;
        bottom: 18px;
        z-index: 72;
    }

    #layout-list .floating-action-buttons a,
    #layout-content .floating-action-buttons a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px;
        min-width: 56px;
        height: 56px;
        padding: 0;
        color: #fff;
        background: var(--aqua-blue);
        border-radius: 999px;
        box-shadow: 0 14px 30px rgba(9, 73, 117, 0.28);
    }

    #layout-list .floating-action-buttons a .inner,
    #layout-content .floating-action-buttons a .inner {
        display: none;
    }

    #layout-list .floating-action-buttons a:before,
    #layout-content .floating-action-buttons a:before {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px !important;
        height: 56px !important;
        margin: 0 !important;
        font-size: 22px;
        line-height: 56px !important;
        text-align: center !important;
        transform: none !important;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --aqua-header-height: 124px;
        --aqua-mailbar-height: 0px;
    }

    #layout-menu .taskbar-topline {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 6px 10px 0;
        padding-bottom: 6px;
        font-size: 12px;
    }

    #layout-menu .taskbar-account {
        gap: 8px;
        flex-wrap: nowrap;
    }

    #layout-menu .taskbar-account .username {
        max-width: calc(100vw - 116px);
        font-size: 12px;
    }

    #layout-menu .popover-header {
        min-height: 50px;
        padding: 0 0 6px 10px !important;
    }

    #layout-menu .popover-header img {
        width: min(190px, 56vw) !important;
        max-width: 190px !important;
        max-height: 46px !important;
    }

    #layout-menu .mobile-search-toggle {
        width: 40px;
        min-width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    #layout-menu .taskbar-search {
        padding: 12px 12px 14px;
        padding-right: 12px;
        flex-direction: column;
        gap: 10px;
    }

    #layout-menu .taskbar-search .header-searchfilter,
    #layout-menu .taskbar-search .header-searchfilter:focus {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        height: 40px;
    }

    #layout-menu .taskbar-search .header-searchbar {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 40px;
    }

    #layout-menu .mobile-search-close {
        position: static;
        align-self: flex-end;
    }

    #taskmenu {
        padding: 0 4px 0 10px;
        gap: 0;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #taskmenu > a,
    #taskmenu > span > a,
    #taskmenu > .special-buttons > a {
        width: auto !important;
        min-width: max-content;
        height: 44px;
        padding: 0 12px;
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    #taskmenu > a .inner,
    #taskmenu > span > a .inner,
    #taskmenu > .special-buttons > a .inner {
        display: inline-block !important;
        font-size: 13px;
        white-space: nowrap;
    }

    #mail-action-bar {
        padding: 4px 10px;
        min-height: var(--aqua-mailbar-height);
    }

    #mail-action-bar .mail-action-left a.refresh {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    html:not(.iframe) body.task-mail.action-none #layout-sidebar {
        width: min(88vw, 320px);
    }

    #messagelist-header {
        padding: 0 6px;
    }

    #messagelist-header .messagelist-header-main,
    #messagelist-header .messagelist-header-right {
        gap: 6px;
    }

    #messagelist-header .messagelist-header-right > a.selection,
    #messagelist-header .messagelist-header-right > a.selection.toolbar-button {
        display: none !important;
    }

    #messagelist-header .pagenav.menu.footer.small {
        min-width: 116px;
        gap: 6px;
    }

    #messagelist-header .pagenav.menu.footer.small input.form-control {
        display: block !important;
        width: 44px;
        min-width: 44px;
    }

    #layout-list .floating-action-buttons,
    #layout-content .floating-action-buttons {
        right: 14px;
        bottom: 14px;
    }
}

@media screen and (max-width: 1200px) {
    #taskmenu {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #taskmenu > a,
    #taskmenu > span > a,
    #taskmenu > .special-buttons > a {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 48px;
        flex: 0 0 62px;
        justify-content: center;
        gap: 0;
        padding: 0 !important;
    }

    #taskmenu > a .inner,
    #taskmenu > span > a .inner,
    #taskmenu > .special-buttons > a .inner {
        display: none !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1500px) {
    #taskmenu {
        justify-content: flex-end;
    }
}
