/* Generated by build_css.py from Elastic + brand.css - edit brand.css, not this file. */
:root{--dm-orange:#FF8A3D;--dm-pink:#FF2E8B;--dm-magenta:#D41BA6;--dm-violet:#7B23C2;--dm-primary:#C2127A;--dm-primary-hover:#A50F68;--dm-link:#A8106B;--dm-link-hover:#870C56;--dm-tint:#FCE8F4;--dm-ink:#1E1440;--dm-font:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--dm-font-mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--dm-gradient:linear-gradient(90deg,#FF8A3D 0%,#FF2E8B 55%,#D41BA6 100%);--dm-cta:linear-gradient(90deg,#D61C78 0%,#B3169C 55%,#7B23C2 100%);--dm-gradient-diag:linear-gradient(135deg,#FF8A3D 0%,#FF2E8B 50%,#7B23C2 100%)}
.popover,body,button,input,optgroup,select,textarea{font-family:var(--dm-font)}
a{color:var(--dm-primary-hover)}
p.image-attachment{background-color:rgba(194,18,122,.05)}
.quota-widget .value{background-color:var(--dm-primary)}
.image-tools{background-color:rgba(194,18,122,.4)}
.image-tools a:focus,.image-tools a:hover{background-color:rgba(194,18,122,.5)!important}
.table-widget table.options-table tr.selected td{background-color:var(--dm-tint)}
.floating-action-buttons a.button{background:var(--dm-primary)}
.btn:focus{box-shadow:0 0 0 .2rem rgba(194,18,122,.3)}
.btn-link{color:var(--dm-primary-hover)}
.btn-primary{background:var(--dm-primary);border-color:var(--dm-primary)}
.btn-primary:focus{background:var(--dm-primary-hover);border-color:var(--dm-primary-hover);box-shadow:0 0 0 .2rem rgba(194,18,122,.5)}
.btn-primary:hover{background:var(--dm-primary-hover);border-color:var(--dm-primary-hover)}
.btn-primary.disabled,.btn-primary:disabled{background:var(--dm-primary);border-color:var(--dm-primary)}
.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(194,18,122,.53)}
.ui-menu .ui-state-active{background-color:var(--dm-primary)!important}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset a.btn-link:focus{background-color:rgba(194,18,122,.5)}
.ui-slider .ui-slider-handle.ui-state-active{background:var(--dm-primary)}
.ui-datepicker .ui-datepicker-days-cell-over a,.ui-datepicker .ui-datepicker-days-cell-over a.ui-state-default,.ui-datepicker .ui-state-highlight,.ui-datepicker.ui-widget-content .ui-state-highlight{color:var(--dm-primary)}
.ui-datepicker a.ui-state-active{background:var(--dm-primary)!important}
.popover .menu li a:not(.disabled):hover{background-color:var(--dm-primary)}
.popover .menu .dropbutton a.dropdown:hover{background-color:var(--dm-primary)}
@media screen and (min-width:481px){#taskmenu .action-buttons a{color:var(--dm-primary)}#taskmenu .action-buttons a:hover{color:var(--dm-primary)}}
.ui.alert{background-color:rgba(194,18,122,.05)}
.ui.alert a:not(.btn){color:var(--dm-primary)}
.ui.alert.boxinformation{background-color:rgba(194,18,122,.2)}
#messagestack .alert-info.information{background-color:var(--dm-primary)}
.listing li.selected,.listing tr.selected td{background-color:var(--dm-tint)}
html:not(.touch) .listing li>a:focus,html:not(.touch) .listing.focus tbody tr.focused>td:first-child,html:not(.touch) .listing.focus:not(.withselection) tbody tr.focused>td.selection+td{border-left:2px solid #F4A6D2}
.popupmenu .listing li>a:not(.disabled):hover{background-color:var(--dm-primary)}
.popupmenu .listing li.selected{background-color:var(--dm-primary)}
ul.treelist li.selected>a,ul.treelist li.selected>div>a{background-color:var(--dm-tint)}
.folderlist li.mailbox .unreadcount{background:var(--dm-primary)}
.folderlist li.mailbox.recent>a{color:var(--dm-primary)}
.folderlist li.mailbox.recent>a>.unreadcount{background:var(--dm-primary)}
.formcontent.raweditor .CodeMirror-focused{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.input-group a:focus{background-color:rgba(194,18,122,.25)}
.multi-input>.content.focused{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.recipient-input.focus{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.tagedit-list[tabindex="-1"]{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.form-control:focus{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.input-group-text input:focus{border-color:var(--dm-primary)!important}
.custom-switch .custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.custom-switch .custom-control-input:focus:not(:checked)~.custom-control-label::before{border-color:var(--dm-primary)}
.custom-switch .custom-control-input:checked~.custom-control-label::before{border-color:var(--dm-primary);background-color:var(--dm-primary)}
.custom-file-input:focus~.custom-file-label{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
div.tox,div.tox :not(.svg){font-family:var(--dm-font)}
div.tox.focused{border-color:var(--dm-primary)!important;box-shadow:0 0 0 .2rem rgba(194,18,122,.25)!important}
div.tox .tox-dialog .tox-dialog__body-nav-item--active{color:var(--dm-primary-hover)}
div.tox .tox-dialog__footer .tox-button{background:var(--dm-primary);border-color:var(--dm-primary)}
div.tox .tox-dialog__footer .tox-button:focus{background:var(--dm-primary-hover);border-color:var(--dm-primary-hover);box-shadow:0 0 0 .2rem rgba(194,18,122,.5)}
div.tox .tox-dialog__footer .tox-button:hover{background:var(--dm-primary-hover);border-color:var(--dm-primary-hover)}
div.tox .tox-dialog__footer .tox-button.disabled,div.tox .tox-dialog__footer .tox-button:disabled{background:var(--dm-primary);border-color:var(--dm-primary)}
div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled).active:focus,div.tox .tox-dialog__footer .tox-button:not(:disabled):not(.disabled):active:focus{box-shadow:0 0 0 .2rem rgba(194,18,122,.53)}
div.tox .tox-dialog__footer .tox-button:focus:not(:disabled){background:var(--dm-primary);border-color:var(--dm-primary)}
div.tox .tox-color-input>input,div.tox .tox-listboxfield .tox-listbox--select,div.tox .tox-textarea,div.tox .tox-textfield{font-family:var(--dm-font)!important}
div.tox .tox-color-input>input:focus,div.tox .tox-listboxfield .tox-listbox--select:focus,div.tox .tox-textarea:focus,div.tox .tox-textfield:focus{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
.image-selector .attachmentslist li:focus,.image-selector .attachmentslist li:hover{background:var(--dm-tint)}
.googie_list li.googie_list_onhover{background-color:var(--dm-primary)}
.message-htmlpart blockquote,.message-part blockquote{color:var(--dm-link);border-left:2px solid var(--dm-link);border-right:2px solid var(--dm-link)}
.message-htmlpart blockquote span.blockquote-link,.message-part blockquote span.blockquote-link{font-family:var(--dm-font)}
html.dark-mode{scrollbar-color:var(--dm-link-hover) #43337E}
html.dark-mode:not(.touch) ::-webkit-scrollbar-track{background-color:#43337E}
html.dark-mode:not(.touch) ::-webkit-scrollbar-thumb{background-color:var(--dm-link-hover)}
html.dark-mode body{color:#E4DCF7;background-color:#1A1240}
html.dark-mode #layout-content,html.dark-mode #layout-list,html.dark-mode #layout-sidebar,html.dark-mode #layout>div>.footer,html.dark-mode #layout>div>.header,html.dark-mode .menu.pagenav.pagenav-list,html.dark-mode .menu.pagenav.pagenav-list+.navlist,html.dark-mode .menu.pagenav.pagenav-list.expanded+.navlist,html.dark-mode .popup .listbox .footer{border-color:#43337E}
html.dark-mode #layout>div>.footer a.button,html.dark-mode #layout>div>.header a.button{color:#E4DCF7}
html.dark-mode #layout-menu{border-right:1px solid #43337E}
@media screen and (max-width:480px){html.dark-mode #layout-menu .popover-header{border-bottom:1px solid #43337E}}
html.dark-mode #layout-menu .special-buttons a:not(:focus){background:#1A1240}
html.dark-mode.layout-phone #layout-menu{background:#100A2C}
html.dark-mode .searchbar{border-color:#43337E}
html.dark-mode #messagestack div{color:#E4DCF7}
html.dark-mode #messagestack div i.icon:before{color:#E4DCF7}
html.dark-mode .ui.alert.boxconfirmation,html.dark-mode .ui.alert.boxerror,html.dark-mode .ui.alert.boxinformation,html.dark-mode .ui.alert.boxwarning{color:#E4DCF7}
html.dark-mode .ui.alert.boxconfirmation i.icon:before,html.dark-mode .ui.alert.boxerror i.icon:before,html.dark-mode .ui.alert.boxinformation i.icon:before,html.dark-mode .ui.alert.boxwarning i.icon:before{color:#E4DCF7}
html.dark-mode .ui.alert a:not(.btn){color:#E4DCF7}
html.dark-mode #taskmenu a,html.dark-mode .menu.toolbar a{color:#E4DCF7}
html.dark-mode #taskmenu a.selected,html.dark-mode .menu.toolbar a.selected{background-color:#34266A}
html.dark-mode #taskmenu .action-buttons a{color:var(--dm-primary)}
@media screen and (max-width:480px){html.dark-mode #taskmenu a{border-color:#261A57!important}}
html.dark-mode.layout-phone .popover,html.dark-mode.layout-small .popover{border-left:1px solid #43337E}
html.dark-mode.layout-phone .popover:not(.select-menu) .listing li:last-child,html.dark-mode.layout-small .popover:not(.select-menu) .listing li:last-child{border-color:#261A57}
html.dark-mode.layout-phone .popover-header,html.dark-mode.layout-small .popover-header{background:#100A2C;border-bottom:1px solid #43337E}
html.dark-mode #taskmenu a:hover,html.dark-mode .header a.button.icon:not(.disabled):focus,html.dark-mode .header a.button.icon:not(.disabled):hover,html.dark-mode .menu a:not(.disabled):focus,html.dark-mode .menu a:not(.disabled):hover,html.dark-mode .menu.toolbar .dropbutton:not(.disabled):hover,html.dark-mode .popupmenu .listing li>a:not(.disabled):hover{background-color:#34266A}
html.dark-mode .listing li a,html.dark-mode .listing tbody td,html.dark-mode .listing tbody td a,html.dark-mode .proplist li.with-sublist>a.dropdown{color:#E4DCF7}
html.dark-mode .listing li,html.dark-mode .listing li ul,html.dark-mode .listing tbody td{border-color:#261A57}
html.dark-mode .listing li.selected,html.dark-mode .listing li.selected>a,html.dark-mode .listing li.selected>div>a,html.dark-mode .listing tr.selected td{color:var(--dm-primary);background-color:#34266A}
html.dark-mode .listing li.selected ul{background-color:#1A1240}
html.dark-mode .listing li.selected ul div.treetoggle{color:#E4DCF7}
html.dark-mode .listing li.disabled,html.dark-mode .listing tr.disabled td{color:#5A4A94}
html.dark-mode .messagelist{color:#E4DCF7}
html.dark-mode .messagelist tr:not(.flagged):not(.deleted) td.subject span.date,html.dark-mode .messagelist tr:not(.flagged):not(.deleted) td.subject span.fromto,html.dark-mode .messagelist tr:not(.flagged):not(.deleted) td.subject span.size{color:#A193CC}
html.dark-mode .messagelist tr:not(.flagged):not(.deleted) td.subject span.msgicon.status{color:#E4DCF7}
html.dark-mode .messagelist tr:not(.flagged):not(.deleted) span.flag{color:#E4DCF7}
html.dark-mode .messagelist tr:not(.flagged):not(.deleted).selected td.subject a,html.dark-mode .messagelist tr:not(.flagged):not(.deleted).selected td.subject span.msgicon.status{color:var(--dm-primary)}
html.dark-mode .messagelist tr.deleted td span.attachment span,html.dark-mode .messagelist tr.deleted td span.flag,html.dark-mode .messagelist tr.deleted td.subject span.date,html.dark-mode .messagelist tr.deleted td.subject span.fromto,html.dark-mode .messagelist tr.deleted td.subject span.msgicon.status,html.dark-mode .messagelist tr.deleted td.subject span.msgicon.status.unread:before,html.dark-mode .messagelist tr.deleted td.subject span.subject a{color:#5A4A94}
html.dark-mode .messagelist span.attachment span{color:#A193CC}
html.dark-mode .folderlist li.mailbox .unreadcount{background-color:#43337E;color:#F1EBFF}
html.dark-mode .attachmentslist{background-color:#34266A}
html.dark-mode .attachmentslist a{color:#E4DCF7}
html.dark-mode .attachmentslist li .attachment-name{color:#E4DCF7}
html.dark-mode .attachmentslist li .attachment-size{color:#A193CC}
html.dark-mode .btn{color:#E4DCF7}
html.dark-mode .btn:focus,html.dark-mode .btn:hover{color:#F1EBFF}
html.dark-mode .btn-primary{background-color:var(--dm-link);color:#F1EBFF}
html.dark-mode .btn-primary:hover:not(:disabled){background-color:var(--dm-link-hover)}
html.dark-mode .btn-secondary{background-color:#43337E;color:#F1EBFF}
html.dark-mode .btn-secondary:hover:not(:disabled){background-color:#5A4A94}
html.dark-mode .btn-danger{color:#F1EBFF}
html.dark-mode .floating-action-buttons a.button{background:var(--dm-link)}
html.dark-mode .custom-file-label,html.dark-mode .form-control{background-color:#1A1240;color:#E4DCF7}
html.dark-mode .custom-file-label:not(.is-invalid),html.dark-mode .form-control:not(.is-invalid){border-color:#A193CC}
html.dark-mode .custom-file-label:focus,html.dark-mode .form-control:focus{background-color:#261A57}
html.dark-mode .custom-file-label:focus:not(.is-invalid),html.dark-mode .form-control:focus:not(.is-invalid){color:#F1EBFF!important;border-color:var(--dm-primary)}
html.dark-mode .custom-file-label::after{color:#E4DCF7;background-color:#34266A}
html.dark-mode .custom-switch .custom-control-label::before{background-color:#43337E}
html.dark-mode .custom-switch .custom-control-label::after{background-color:#E4DCF7}
html.dark-mode .custom-switch .custom-control-input:checked~.custom-control-label::before{background-color:var(--dm-link)}
html.dark-mode .custom-switch .custom-control-input:checked~.custom-control-label::after{background-color:#E4DCF7}
html.dark-mode .multi-input:not(.is-invalid)>.content{border-color:#A193CC}
html.dark-mode .multi-input:not(.is-invalid)>.content.focused{border-color:var(--dm-primary)}
html.dark-mode .input-group-text{color:#E4DCF7;background-color:#34266A;border-color:#A193CC}
html.dark-mode .input-group a:focus{border-color:var(--dm-primary);box-shadow:0 0 0 .2rem rgba(194,18,122,.25)}
html.dark-mode .recipient-input.focus{color:#F1EBFF;background-color:#261A57;border-color:var(--dm-primary)}
html.dark-mode .recipient-input a.button.icon,html.dark-mode .recipient-input input{color:#E4DCF7}
html.dark-mode .recipient-input .recipient{background-color:#34266A;border-color:#A193CC}
html.dark-mode .file-upload{border-color:#43337E}
html.dark-mode .file-upload.droptarget.active{border-color:#E4DCF7}
html.dark-mode .file-upload.droptarget.hover{border-color:#E4DCF7;background-color:#34266A}
html.dark-mode .image-upload{background-color:#34266A}
html.dark-mode .formcontent.raweditor .CodeMirror{color:#E4DCF7;background-color:#1A1240;border-color:#A193CC}
html.dark-mode .formcontent.raweditor .CodeMirror-focused{background-color:#261A57;border-color:var(--dm-primary)}
html.dark-mode .CodeMirror-line::selection,html.dark-mode .CodeMirror-line>span::selection,html.dark-mode .CodeMirror-line>span>span::selection,html.dark-mode .CodeMirror-selected{background:#34266A}
html.dark-mode .CodeMirror-activeline-background{background:#34266A}
html.dark-mode .skinselection .skinthumbnail{border-color:#A193CC}
html.dark-mode .html-editor .editor-toolbar{background-color:#34266A;border-color:#A193CC}
html.dark-mode .html-editor .editor-toolbar .mce-i-html:focus,html.dark-mode .html-editor .editor-toolbar .mce-i-html:hover{background-color:#5A4A94}
html.dark-mode .tox.tox-tinymce{border-color:#A193CC}
html.dark-mode .tox .tox-toolbar{background-color:#34266A;border-color:#A193CC}
html.dark-mode .tox .tox-toolbar-overlord>div{background:url("data:image/svg+xml,%3Csvg height='33px' viewBox='0 0 40 33px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='32px' width='100' height='1' fill='%237c949c'/%3E%3C/svg%3E") #34266A}
html.dark-mode .tox .tox-pop.tox-pop--top:after,html.dark-mode .tox .tox-pop.tox-pop--top:before{border-bottom-color:#A193CC}
html.dark-mode .tox .tox-pop__dialog{border-color:#A193CC}
html.dark-mode .tox .tox-split-button,html.dark-mode .tox .tox-swatches__picker-btn,html.dark-mode .tox .tox-tbtn{color:#E4DCF7}
html.dark-mode .tox .tox-split-button svg,html.dark-mode .tox .tox-swatches__picker-btn svg,html.dark-mode .tox .tox-tbtn svg{fill:#E4DCF7!important}
html.dark-mode .tox .tox-split-button:focus,html.dark-mode .tox .tox-split-button:hover,html.dark-mode .tox .tox-swatches__picker-btn:focus,html.dark-mode .tox .tox-swatches__picker-btn:hover,html.dark-mode .tox .tox-tbtn:focus,html.dark-mode .tox .tox-tbtn:hover{color:#E4DCF7;background:#5A4A94}
html.dark-mode .tox .tox-tbtn--enabled{background:#5A4A94}
html.dark-mode .tox .tox-button--naked.tox-button--icon:hover:not(:disabled),html.dark-mode .tox .tox-button--naked:focus:not(:disabled){background-color:#5A4A94}
html.dark-mode .tox .tox-selectfield select{color:#E4DCF7}
html.dark-mode .tox .tox-selectfield svg{fill:#E4DCF7}
html.dark-mode .tox .tox-color-input span::before{background-color:#E4DCF7}
html.dark-mode .tox .tox-toolbar__group:not(:last-of-type){border-color:#A193CC}
html.dark-mode .tox .tox-dialog,html.dark-mode .tox .tox-dialog__body,html.dark-mode .tox .tox-dialog__footer,html.dark-mode .tox .tox-dialog__header,html.dark-mode .tox .tox-dialog__title{color:#E4DCF7;border-color:#43337E;background-color:#1A1240}
html.dark-mode .tox .tox-button--naked,html.dark-mode .tox .tox-color-input>input,html.dark-mode .tox .tox-dialog__body-nav-item,html.dark-mode .tox .tox-dialog__header .tox-button,html.dark-mode .tox .tox-insert-table-picker__label,html.dark-mode .tox .tox-label,html.dark-mode .tox .tox-textfield{color:#E4DCF7}
html.dark-mode .tox .tox-dialog__footer .tox-button{background-color:var(--dm-link);color:#F1EBFF}
@media screen and (max-width:480px){html.dark-mode .tox .tox-dialog__footer .tox-button{color:#E4DCF7!important}}
html.dark-mode .tox .tox-dialog__footer .tox-button:focus:not(:disabled){background-color:var(--dm-link)}
html.dark-mode .tox .tox-dialog__footer .tox-button:hover:not(:disabled){background-color:var(--dm-link-hover)}
html.dark-mode .tox .tox-dialog__footer .tox-button.tox-button--secondary{background-color:#43337E;color:#F1EBFF}
html.dark-mode .tox .tox-dialog__footer .tox-button.tox-button--secondary:focus:not(:disabled){background-color:#43337E}
html.dark-mode .tox .tox-dialog__footer .tox-button.tox-button--secondary:hover:not(:disabled){background-color:#5A4A94}
html.dark-mode .tox .tox-dialog__body-nav-item--active{color:var(--dm-primary)}
html.dark-mode .tox .tox-menu{background-color:#100A2C;border-color:#A193CC}
html.dark-mode .tox .tox-collection__item-caret svg{fill:#E4DCF7}
html.dark-mode .tox .tox-collection__item{color:#E4DCF7}
html.dark-mode .tox .tox-collection__item:not(:last-child){border-bottom:1px solid #261A57}
html.dark-mode .tox .tox-collection__item--active,html.dark-mode .tox .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#E4DCF7;background-color:#34266A}
html.dark-mode .tox .tox-collection__item--enabled{color:var(--dm-primary);background-color:#34266A}
html.dark-mode .message-part{border-color:#43337E}
html.dark-mode .message-part blockquote{background-color:#1A1240}
html.dark-mode .message-part blockquote span.blockquote-link{background:#1A1240}
html.dark-mode .message-part span.sig{color:#A193CC}
html.dark-mode #message-header .header-headers .header-title{color:#E4DCF7}
html.dark-mode .message-partheaders{background-color:#34266A}
html.dark-mode .message-partheaders table.headers-table{color:#E4DCF7}
html.dark-mode p.image-attachment{border-color:#43337E;background-color:#34266A}
html.dark-mode p.image-attachment span{color:#A193CC}
html.dark-mode fieldset.image-attachment legend{color:#A193CC;border-color:#43337E}
html.dark-mode .ui-widget{border-color:#43337E}
html.dark-mode .ui-widget-content,html.dark-mode .ui-widget-header{background-color:#1A1240}
html.dark-mode .ui-dialog .ui-dialog-titlebar{border-color:#43337E}
html.dark-mode .ui-dialog .ui-dialog-title,html.dark-mode .ui-dialog .ui-dialog-titlebar-close{color:#E4DCF7}
html.dark-mode .ui-dialog .ui-dialog-buttonpane{border-color:#43337E}
html.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset a.btn-link{color:#E4DCF7}
@media screen and (max-width:480px){html.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset button.btn-primary:not(.btn-danger),html.dark-mode .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset button.btn-secondary{color:#E4DCF7}}
html.dark-mode .ui-datepicker .ui-datepicker-header{border-color:#43337E}
html.dark-mode .ui-datepicker th{color:#A193CC}
html.dark-mode .ui-datepicker .ui-datepicker-next,html.dark-mode .ui-datepicker .ui-datepicker-prev,html.dark-mode .ui-datepicker .ui-state-default,html.dark-mode .ui-datepicker.ui-widget-content .ui-state-default{color:#E4DCF7}
html.dark-mode .ui-datepicker .ui-state-highlight,html.dark-mode .ui-datepicker.ui-widget-content .ui-state-highlight{color:var(--dm-primary);background-color:#34266A}
html.dark-mode .ui-datepicker .ui-datepicker-days-cell-over a{background-color:#43337E}
html.dark-mode .ui-menu{background-color:#100A2C;border-color:#A193CC}
html.dark-mode .ui-menu .ui-menu-item{border-bottom:1px solid #261A57}
html.dark-mode .ui-menu .ui-state-active{background-color:#34266A!important}
html.dark-mode .minicolors-panel{border-color:#43337E;background:#100A2C}
html.dark-mode #contacthead.readonly .source.row,html.dark-mode #login-footer,html.dark-mode .contactlist span.email,html.dark-mode .file-upload .hint,html.dark-mode .formcontent .hint,html.dark-mode .listing span.secondary,html.dark-mode .listing-info,html.dark-mode ::-webkit-input-placeholder,html.dark-mode ::placeholder{color:#A193CC}
html.dark-mode .popover{background-color:#100A2C;border-color:#A193CC}
html.dark-mode .popover .menu li.separator{color:#A193CC}
html.dark-mode .popover .menu ul+li.separator{border-top:1px solid #261A57}
html.dark-mode .popover-body{color:#E4DCF7}
html.dark-mode .bs-popover-auto[x-placement^=right]>.arrow::after,html.dark-mode .bs-popover-right>.arrow::after{border-right-color:#A193CC}
html.dark-mode .bs-popover-auto[x-placement^=left]>.arrow::after,html.dark-mode .bs-popover-left>.arrow::after{border-left-color:#A193CC}
html.dark-mode .bs-popover-auto[x-placement^=top]>.arrow::after,html.dark-mode .bs-popover-top>.arrow::after{border-top-color:#A193CC}
html.dark-mode .bs-popover-auto[x-placement^=bottom]>.arrow::after,html.dark-mode .bs-popover-bottom>.arrow::after{border-bottom-color:#A193CC}
html.dark-mode .listing-hover-menu{background-color:#100A2C;border-color:#43337E}
html.dark-mode .listing-hover-menu a.button{color:#E4DCF7}
html.dark-mode .listing-hover-menu span.txt{color:#A193CC}
html.dark-mode .nav-tabs{border-color:#43337E}
html.dark-mode .nav-tabs .nav-link{color:#E4DCF7;border-bottom-color:#43337E}
html.dark-mode .nav-tabs .nav-link:hover{background:#1A1240;border-color:#43337E;color:#E4DCF7}
html.dark-mode .nav-tabs .nav-link.active{background:#1A1240;border-color:#43337E}
html.dark-mode .table{color:#E4DCF7}
html.dark-mode .table td,html.dark-mode .table th,html.dark-mode .table thead th{border-color:#43337E}
html.dark-mode .table-widget{border-color:#43337E}
html.dark-mode .table-widget>.footer{border-color:#43337E}
html.dark-mode .table-widget table.options-table tr:last-child td{border-color:#43337E}
html.dark-mode .table-widget table.options-table tr.selected td{background-color:#34266A;color:#E4DCF7}
html.dark-mode #rcmdraglayer{background-color:#100A2C;border:1px solid #A193CC;color:#E4DCF7}
html.dark-mode .quota-widget .bar{border-color:#43337E;background-color:#43337E}
html.dark-mode .quota-info .root{color:#A193CC}
html.dark-mode #contactpic,html.dark-mode img.contactphoto{background-color:#34266A!important}
html.dark-mode .pgpkeyimport div.key.disabled,html.dark-mode .pgpkeyimport div.key.revoked{color:#5A4A94}
/* ==== DeMail layout & brand layer (light + dark) ======================
   Hand-edited. build_css.py appends this after the generated color swap.
   Every color is a token: light values on :root, dark values on html.dark-mode
   (Elastic sets that class from the device setting or the user's choice).
   Layout follows Gmail/Outlook conventions: light rail, white bars,
   left-aligned titles, pill navigation, quiet lists, one accent color. */

:root{
  --dm-bg:#FFFFFF;
  --dm-rail:#F8F3FD;         /* lilac mist */
  --dm-line:#ECE3F7;
  --dm-hover:#F2EAFB;
  --dm-text:#1E1440;         /* deep-sea indigo ink */
  --dm-muted:#675C88;
  --dm-radius:10px;
  --dm-surface:#FFFFFF;      /* cards, login box, secondary buttons */
  --dm-subtle:#FBF8FE;       /* table label column */
  --dm-field:#F3EDFA;        /* search pill */
  --dm-field-focus:#FFFFFF;
  --dm-input-line:#D9CDEB;
  --dm-btn-line:#D2C5E6;
  --dm-toolbar:#3D3266;      /* toolbar icons, read subjects */
  --dm-row-line:#F2ECF9;
  --dm-row-hover:#FAF6FE;
  --dm-login-bg:#FBF7FE;
  --dm-danger:#C62828;
  --dm-shadow:rgba(46,20,90,.08);
  --dm-glow:rgba(214,28,120,.25);
  --dm-login-art:
    radial-gradient(1.2px 1.2px at 12% 18%,rgba(123,35,194,.35) 50%,transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 12%,rgba(214,28,120,.35) 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 74%,rgba(123,35,194,.3) 50%,transparent 51%),
    radial-gradient(1.6px 1.6px at 24% 82%,rgba(214,28,120,.3) 50%,transparent 51%),
    radial-gradient(900px 480px at 50% -10%,rgba(255,46,139,.16),transparent 65%),
    radial-gradient(700px 420px at 50% 40%,rgba(255,138,61,.10),transparent 70%),
    linear-gradient(180deg,#FCEAF6 0%,#F5EDFC 45%,#FBF7FE 100%);
}
html.dark-mode{
  --dm-bg:#1A1240;           /* deep indigo */
  --dm-rail:#140D35;
  --dm-line:#34266A;
  --dm-hover:#261A57;
  --dm-text:#F1EBFF;
  --dm-muted:#B3A6D9;
  --dm-surface:#21174D;
  --dm-subtle:#1D1446;
  --dm-field:#251A55;
  --dm-field-focus:#2D2063;
  --dm-input-line:#43337E;
  --dm-btn-line:#4B3A8A;
  --dm-toolbar:#D9CFF5;
  --dm-row-line:#261B55;
  --dm-row-hover:#20164B;
  --dm-login-bg:#140D35;
  --dm-danger:#FF7A8A;
  --dm-shadow:rgba(8,4,30,.5);
  --dm-glow:rgba(255,90,180,.35);
  --dm-primary:#FF5AB4;      /* glowing jelly pink on indigo (6.1:1) */
  --dm-primary-hover:#FF7AC4;
  --dm-link:#FF9BD0;
  --dm-link-hover:#FFC1E2;
  --dm-tint:#3A1A5E;
  --dm-ink:#FFFFFF;
  --dm-login-art:
    radial-gradient(340px 150px at 50% 196px,rgba(20,13,53,.62),rgba(20,13,53,.28) 50%,transparent 100%),
    radial-gradient(1.2px 1.2px at 12% 22%,rgba(255,255,255,.7) 50%,transparent 51%),
    radial-gradient(1px 1px at 31% 8%,rgba(255,255,255,.6) 50%,transparent 51%),
    radial-gradient(1.4px 1.4px at 84% 16%,rgba(255,255,255,.65) 50%,transparent 51%),
    radial-gradient(1px 1px at 70% 58%,rgba(255,255,255,.5) 50%,transparent 51%),
    radial-gradient(1.2px 1.2px at 18% 70%,rgba(255,255,255,.5) 50%,transparent 51%),
    radial-gradient(1px 1px at 92% 82%,rgba(255,255,255,.5) 50%,transparent 51%),
    radial-gradient(1.3px 1.3px at 46% 90%,rgba(255,255,255,.45) 50%,transparent 51%),
    radial-gradient(600px 380px at 50% 38%,rgba(255,90,180,.22),transparent 70%),
    radial-gradient(420px 300px at 50% 30%,rgba(255,138,61,.14),transparent 70%),
    linear-gradient(180deg,#B5179E 0%,#6A1C9A 28%,#33156E 58%,#1A1240 82%,#140D35 100%);
}

@font-face{font-family:"Geist";font-weight:100 900;font-display:swap;src:url(fonts/Geist-Variable.woff2) format("woff2")}
@font-face{font-family:"Geist Mono";font-weight:100 900;font-display:swap;src:url(fonts/GeistMono-Variable.woff2) format("woff2")}
body{font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

body{color:var(--dm-text)}
a,a:visited{color:var(--dm-link)}
a:hover{color:var(--dm-link-hover)}

/* ---- Left rail (desktop/tablet) ------------------------------------ */
@media screen and (min-width:481px){
  #layout-menu{background:var(--dm-rail)!important;border-right:1px solid var(--dm-line)}
  #layout-menu .popover-header{background:var(--dm-rail)!important;border-bottom:0}
  #layout-menu .popover-header img{padding:10px 0!important;max-height:58px}
  #taskmenu a{color:var(--dm-muted)!important;margin:2px 6px!important;width:auto!important;border-radius:12px;
    font-size:11px;font-weight:500;transition:background .15s}
  #taskmenu a:before{font-size:1.15rem}
  #taskmenu a:hover{background:var(--dm-hover)!important;color:var(--dm-text)!important}
  #taskmenu a.selected,#taskmenu a.selected:hover{background:var(--dm-tint)!important;color:var(--dm-primary)!important}
  #taskmenu a.selected:before{color:var(--dm-primary)!important}
  #taskmenu a.selected{position:relative}
  #taskmenu a.selected:after{content:"";position:absolute;left:-6px;top:22%;bottom:22%;width:3px;border-radius:0 3px 3px 0;background:var(--dm-gradient-diag)}
  /* Compose: prominent gradient action, Gmail-style */
  #taskmenu a.compose{background:var(--dm-cta)!important;color:#fff!important;margin:8px 6px 10px!important;font-size:10.5px;
    box-shadow:0 4px 12px rgba(214,28,120,.25)}
  #taskmenu a.compose:before{color:#fff!important}
  #taskmenu a.compose:hover{filter:brightness(.95);color:#fff!important}
  #taskmenu a.logout,#taskmenu a.logout:hover{color:var(--dm-danger)!important}
  #taskmenu .special-buttons{background:var(--dm-rail)!important;left:0;width:77px;border-top:1px solid var(--dm-line);padding:4px 0}
  /* "Dark mode" / "Light mode" toggle: wrap the label instead of cutting it off */
  #taskmenu a.theme,#taskmenu a.theme span.inner{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15}
}
@media screen and (min-width:481px) and (max-width:1024px){
  #taskmenu .special-buttons{width:41px}
  #taskmenu a{margin:3px 4px!important;font-size:1.1rem}
  #taskmenu a.selected:after{left:-4px}
}

/* ---- Top bars: white, hairline, left-aligned titles ------------------ */
#layout>div>.header,#layout>div>.footer{background:var(--dm-bg)!important;border-color:var(--dm-line)!important}
#layout>div>.header{border-bottom:1px solid var(--dm-line)}
#layout>div>.footer{border-top:1px solid var(--dm-line)}
#layout>div>.header .header-title{font-family:inherit;font-weight:600;font-size:1rem;letter-spacing:0;text-transform:none;color:var(--dm-text)}
#layout-sidebar>.header .header-title{text-align:left;margin:0 0 0 .75rem}

/* Toolbar buttons: quiet icons, rounded hover */
.menu.toolbar a,#layout>div>.header a.button{color:var(--dm-toolbar);border-radius:8px;margin:5px 1px!important;height:48px!important;padding:.3rem .5rem!important;
  font-size:12px!important;font-weight:500;line-height:1.5;transition:background .15s}
.menu.toolbar a:before{font-size:1.05rem}
.menu.toolbar a:hover:not(.disabled),#layout>div>.header a.button:hover:not(.disabled){background:var(--dm-hover);color:var(--dm-text)}
.menu.toolbar a.disabled{opacity:.45}

/* Search: Gmail-style pill */
.searchbar{background:var(--dm-bg)!important;border-bottom:1px solid var(--dm-line)!important;height:52px!important;min-height:52px!important;padding:0 10px}
.searchbar form{background:var(--dm-field);border-radius:999px;height:36px;align-items:center;transition:background .15s,box-shadow .15s}
.searchbar form:focus-within{background:var(--dm-field-focus);box-shadow:0 1px 3px rgba(31,35,51,.18)}
.searchbar form:before{line-height:36px;height:36px!important;margin-left:.9rem!important}
.searchbar input,.searchbar input:focus{background:transparent!important;border:0!important;box-shadow:none!important}
.searchbar>a{border-radius:50%}

/* ---- Folder list: pill rows, no dividers ------------------------------ */
#layout-sidebar .listing li,#layout-sidebar ul.listing li ul{border:0!important}
#layout-sidebar .listing li>a{border-radius:0 999px 999px 0;margin-right:10px;width:auto;color:var(--dm-text)}
#layout-sidebar .listing li:hover>a{background:var(--dm-hover)}
#layout-sidebar .listing li.selected,#layout-sidebar .listing li.selected>a{background:transparent!important}
#layout-sidebar .listing li.selected>a{background:var(--dm-tint)!important;color:var(--dm-primary);font-weight:600}
#layout-sidebar .listing li.selected>a:before{color:var(--dm-primary)}
.folderlist li.mailbox .unreadcount{background:transparent!important;color:var(--dm-text)!important;font-weight:700;margin-right:14px}
.folderlist li.mailbox.selected .unreadcount{color:var(--dm-primary)!important}
.folderlist li.mailbox.recent>a{color:var(--dm-primary)}

/* Section lists (settings, contacts groups): same pill rows */
#layout-list ul.listing li,#layout-list table.records-table td{border:0!important}
#layout-list table.records-table tr:hover td{background:var(--dm-hover)}
#layout-list table.records-table tr.selected td{background:var(--dm-tint)!important;color:var(--dm-primary);font-weight:600}
#layout-list ul.listing li>a{border-radius:8px;margin:1px 8px;width:auto}
#layout-list ul.listing li:hover>a{background:var(--dm-hover)}
#layout-list ul.listing li.selected{background:transparent!important}
#layout-list ul.listing li.selected>a{background:var(--dm-tint);color:var(--dm-primary);font-weight:600}
.listing li>a:before{color:var(--dm-muted)}
.listing li.selected>a:before{color:var(--dm-primary)}
#login-form .formbuttons .btn{text-transform:none!important}

/* ---- Message list: quiet rows, unread emphasis ----------------------- */
.messagelist tr td{border-color:var(--dm-row-line)!important}
.messagelist tbody tr:hover td{background:var(--dm-row-hover)}
.messagelist tr.selected td{background:var(--dm-tint)!important}
.messagelist tr.selected td.subject{box-shadow:inset 3px 0 0 var(--dm-primary)}
.messagelist td.subject span.fromto{color:var(--dm-muted);font-size:.86rem}
.messagelist td.subject span.date,.messagelist td.subject span.size{color:var(--dm-muted);font-size:.8rem}
.messagelist tr.unread td.subject span.fromto,.messagelist tr.unread td.subject span.date{color:var(--dm-text);font-weight:600}
.messagelist td.subject span.subject a{color:var(--dm-toolbar)}
.messagelist tr.unread td.subject span.subject a{color:var(--dm-text)}
/* status dot only for unread; replied/forwarded icons keep their glyph */
.messagelist td.subject span.msgicon.status:not(.unread):not(.unreadchildren):not(.replied):not(.forwarded):before{visibility:hidden}
.messagelist td.subject span.msgicon.status.unread:before{color:var(--dm-primary)}
.messagelist span.attachment span{color:var(--dm-muted)}

/* Pagination footer */
#layout>div>.footer .pagenav{font-weight:500;color:var(--dm-muted)}
.pagenav .pagenav-text{color:var(--dm-muted);font-weight:500}

/* ---- Buttons & forms -------------------------------------------------- */
.btn{border-radius:8px;font-weight:500}
.btn-primary,.btn.btn-primary,.formbuttons .btn.mainaction,button.mainaction,input.mainaction,
.floating-action-buttons .btn,#login-form .formbuttons .btn,.btn.send{
  background:var(--dm-cta)!important;border-color:transparent!important;color:#fff!important}
.btn-primary:hover,.formbuttons .btn.mainaction:hover,.btn.send:hover,#login-form .formbuttons .btn:hover{filter:brightness(.95);box-shadow:0 4px 14px rgba(214,28,120,.25)}
/* Secondary: Microsoft-style outline */
.btn-secondary,.btn.btn-secondary{background:var(--dm-surface)!important;color:var(--dm-text)!important;border:1px solid var(--dm-btn-line)!important}
.btn-secondary:hover:not(:disabled){background:var(--dm-hover)!important}
.form-control,.custom-select{border-color:var(--dm-input-line);border-radius:8px}
.form-control:focus,.custom-select:focus,.recipient-input.focus{border-color:var(--dm-pink)!important;box-shadow:0 0 0 3px rgba(214,28,120,.15)!important}
/* inner inputs of composite widgets must not draw a second ring */
.recipient-input input,.recipient-input input:focus,.input-group .form-control.recipient-input input:focus{border:0!important;box-shadow:none!important;outline:0}
.custom-switch .custom-control-input:checked~.custom-control-label:before,
.custom-control-input:checked~.custom-control-label:before{background:var(--dm-primary)!important;border-color:var(--dm-primary)!important}

/* Compose */
#compose-headers .col-form-label,#compose-headers label{color:var(--dm-muted);font-weight:500}
#layout-sidebar .header .header-title.all-sizes,#compose-options .header-title{text-transform:none}
.upload-form .hint,#compose-attachments .hint{color:var(--dm-muted)}

/* ---- Login ----------------------------------------------------------- */
.task-login,.task-login #layout-content{background:var(--dm-login-bg)!important}
.task-login #layout-content{min-height:100vh;background:var(--dm-login-art)!important;background-attachment:fixed!important}
#login-form{background:var(--dm-surface);border:1px solid var(--dm-line);border-radius:14px;padding:1.75rem 1.5rem 1.25rem;
  box-shadow:0 8px 30px var(--dm-shadow)}
#login-form .input-group-text{background:var(--dm-surface);border-color:var(--dm-input-line);color:var(--dm-muted);border-radius:8px 0 0 8px}
#login-form .form-control{height:44px;border-radius:0 8px 8px 0}
#login-form .formbuttons .btn{height:44px;border-radius:8px;font-weight:600;letter-spacing:.02em;text-transform:none;font-size:1rem}
#login-footer{color:var(--dm-muted);font-size:.8rem}
#login-footer .dmail-tagline{display:block;margin-top:.25rem;font-family:var(--dm-font-mono);font-weight:500;
  letter-spacing:.24em;text-transform:uppercase;font-size:.66rem;color:var(--dm-muted)}

/* ---- Misc ------------------------------------------------------------ */
.badge-primary{background:var(--dm-primary)!important;color:#fff!important}
#settings-menu li.dmail-about a:before,.listing li.dmail-about a:before{content:"\f05a"}
.floating-action-buttons .btn{box-shadow:0 6px 18px rgba(214,28,120,.35)}

/* ---- About DeMail page ---------------------------------------------- */
.dmail-about-page{max-width:780px;margin:0 auto;padding:2rem 1.25rem 3rem;color:var(--dm-text)}
.dmail-about-page .hero{text-align:center;padding:.5rem 0 1rem}
.dmail-about-page .hero img{width:240px;max-width:75%;height:auto}
.dmail-about-page h2{font-family:var(--dm-font-mono);font-weight:600;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  margin:2.25rem 0 .8rem;color:var(--dm-muted)}
.dmail-about-page p{line-height:1.65;margin:0}
.dmail-about-page .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dmail-about-page .cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:640px){.dmail-about-page .cards,.dmail-about-page .cards.three{grid-template-columns:1fr}}
.dmail-about-page .card{border:1px solid var(--dm-line);border-radius:12px;padding:14px 16px;background:var(--dm-surface)}
.dmail-about-page .card b{display:block;font-weight:600;font-size:.95rem;margin-bottom:4px;color:var(--dm-text)}
.dmail-about-page .card span{color:var(--dm-muted);font-size:.86rem;line-height:1.5}
.dmail-about-page table.settings{width:100%;border-collapse:collapse;font-size:.92rem;border:1px solid var(--dm-line);border-radius:12px;overflow:hidden;border-spacing:0}
.dmail-about-page table.settings td{padding:11px 14px;border-bottom:1px solid var(--dm-line);vertical-align:top}
.dmail-about-page table.settings tr:last-child td{border-bottom:0}
.dmail-about-page table.settings td:first-child{color:var(--dm-muted);width:34%;background:var(--dm-subtle)}
.dmail-about-page code{font-family:var(--dm-font-mono);font-weight:600;color:var(--dm-text);background:none;padding:0}
.dmail-about-page .foot{margin-top:2.5rem;font-size:.8rem;color:var(--dm-muted);text-align:center}

.dmail-about-page .hero img{display:block;margin:0 auto}
.dmail-about-page .build-badge{display:table;margin:14px auto 0;padding:4px 12px;border-radius:999px;
  background:var(--dm-tint);color:var(--dm-primary);font-family:var(--dm-font-mono);font-weight:600;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase}

/* ---- Dark mode extras ------------------------------------------------ */
html.dark-mode #layout-content,html.dark-mode #layout-list,html.dark-mode #layout-sidebar,html.dark-mode .messagelist{background-color:var(--dm-bg)}
html.dark-mode .dmail-about-page .hero img.light,html:not(.dark-mode) .dmail-about-page .hero img.dark{display:none}
html.dark-mode #login-form{background:rgba(33,23,77,.82);backdrop-filter:blur(8px);border-color:rgba(255,255,255,.08);box-shadow:0 12px 48px rgba(8,4,30,.55),0 0 80px rgba(255,90,180,.12)}
html.dark-mode #login-footer,html.dark-mode #login-footer .dmail-tagline{color:#D9CFF5}
/* remote-content warning: amber glow on indigo instead of Elastic's olive */
html.dark-mode .boxwarning,html.dark-mode #remote-objects-message,html.dark-mode .alert-warning{background:rgba(255,138,61,.14)!important;color:var(--dm-text)!important;border-color:rgba(255,138,61,.35)!important}

