/* OCE child skin. Keep Elastic's controls, layout, breakpoints and icon fonts. */
@font-face { font-family: "OCE Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OCE Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "OCE Display"; src: url("../fonts/playfair-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --oce-bg: #0a0a0a;
  --oce-surface: #161616;
  --oce-raised: #202020;
  --oce-border: #343434;
  --oce-text: #e6e6e6;
  --oce-muted: #b2b0aa;
  --oce-accent: #ffd400;
  --oce-icon: 18px;
  --oce-icon-small: 14px;
}
html body { background: var(--oce-bg) !important; color: var(--oce-text) !important; font-family: "OCE Inter", system-ui, sans-serif; }
html #layout { background: var(--oce-bg) !important; }
html #layout-menu { background: var(--oce-bg) !important; border-right: 1px solid var(--oce-border); }
html #layout-menu .popover-header { background: var(--oce-bg) !important; border-color: var(--oce-border) !important; }
html #layout-menu #logo { max-width: 160px; height: auto; }
html :is(#layout-sidebar, #layout-list, #layout-content, #layout-content > .iframe-wrapper) {
  background: var(--oce-surface) !important; color: var(--oce-text) !important; border-color: var(--oce-border) !important;
}
html :is(#layout-sidebar, #layout-list, #layout-content) > :is(.header, .footer) {
  background: var(--oce-surface) !important; color: var(--oce-text) !important; border-color: var(--oce-border) !important;
}
html :is(.header-title, .header-title a) { color: var(--oce-text) !important; }
html #layout-sidebar > .header { box-shadow: inset 0 2px var(--oce-accent); }
html #layout-sidebar .username { font-weight: 600; }
html #taskmenu a { color: var(--oce-muted) !important; transition: background-color .15s, color .15s; }
html #taskmenu a:hover, html #taskmenu a.selected { color: var(--oce-accent) !important; background: var(--oce-surface) !important; }
html #taskmenu a.compose {
  background: var(--oce-accent) !important; color: #111 !important; border-radius: 12px; margin: 10px 5px 16px;
}
html #taskmenu a.compose:hover { background: #ffe354 !important; }
html .listing { color: var(--oce-text) !important; }
html .listing :is(td, li), html .listing li > a { background-color: transparent !important; border-color: var(--oce-border) !important; color: var(--oce-text) !important; }
html .listing :is(tr, li):hover { background: #222 !important; }
html .listing :is(tr, li).selected, html .listing li.selected > a {
  background: #303030 !important; color: #f5f5f5 !important;
}
html .listing li.selected { box-shadow: inset 3px 0 var(--oce-accent); }
html .folderlist li :is(a, a::before) { color: inherit !important; }
html .folderlist li > a { padding-top: 5px; padding-bottom: 5px; }
html .folderlist .unreadcount { background: var(--oce-accent) !important; color: #111 !important; border-radius: 6px; }
html .messagelist td { border-bottom: 1px solid #292929 !important; }
html .messagelist tr.unread :is(.subject, .fromto) { color: #fff !important; font-weight: 600; }
html :is(.messagelist .date, .messagelist .size, .listing-info, .pagenav, .pagenav .count) { color: var(--oce-muted) !important; }
html :is(.searchbar, .input-group-text, .formcontent, .formcontainer, .boxcontent) {
  background: var(--oce-surface) !important; color: var(--oce-text) !important; border-color: var(--oce-border) !important;
}
html :is(input.form-control, textarea.form-control, select.form-control, .custom-select) {
  background: #101010 !important; color: var(--oce-text) !important; border: 1px solid #484848 !important; border-radius: 9px;
}
html :is(input, textarea)::placeholder { color: var(--oce-muted) !important; opacity: 1; }
html :is(input, textarea, select, button, a):focus-visible { outline: 2px solid var(--oce-accent) !important; outline-offset: 3px; }
html :is(input.form-control, textarea.form-control, select.form-control, .custom-select):focus {
  border-color: var(--oce-accent) !important; box-shadow: 0 0 0 3px rgb(255 212 0 / 15%) !important;
}
html :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--oce-accent); }
html .btn-primary { background: var(--oce-accent) !important; border-color: var(--oce-accent) !important; color: #111 !important; border-radius: 999px; font-weight: 600; }
html .btn-primary:hover { background: #ffe354 !important; border-color: #ffe354 !important; }
html :is(.btn-secondary, .btn-light) { background: var(--oce-raised) !important; border-color: #555 !important; color: var(--oce-text) !important; border-radius: 9px; }
html :is(.toolbar a, .menu a, .pagenav a) { color: var(--oce-text) !important; }
html :is(.toolbar a, .menu a):hover { background-color: #2b2b2b !important; color: var(--oce-accent) !important; }
html :is(.toolbar a.disabled, .menu a.disabled, .btn:disabled) { opacity: .45; }
html :is(.popover, .popover-body, .popover-header, .popupmenu, .dropdown-menu, .ui-dialog, .ui-dialog-titlebar, .ui-dialog-content, .ui-dialog-buttonpane) {
  background: var(--oce-raised) !important; border-color: #494949 !important; color: var(--oce-text) !important;
}
html .popover { border-radius: 12px; box-shadow: 0 12px 32px #0008; }
html :is(.menu, .listing) :is(a, li).disabled { color: var(--oce-muted) !important; }
html .ui-dialog-title { color: var(--oce-text) !important; }
html .nav-tabs { border-color: var(--oce-border) !important; }
html .nav-tabs .nav-link { color: var(--oce-muted) !important; }
html .nav-tabs .nav-link.active { background: var(--oce-surface) !important; color: var(--oce-accent) !important; border-color: var(--oce-border) !important; }
html :is(.alert-warning, #messagestack .warning) { background: #332b12 !important; color: #ffe28a !important; border-color: #8d732c !important; }
html :is(.alert-danger, #messagestack .error) { background: #391b1b !important; color: #ffbbbb !important; border-color: #9c4e4e !important; }
html #messagestack .confirmation { background: #12372c !important; color: #a0ebca !important; }
/* Keep message content and the editor readable, without recoloring sender HTML. */
html :is(#messagebody, #composebody) { background: #fff; color: #171717; }
html #messageheader { border-color: var(--oce-border) !important; }
html #messageheader a { color: #ffe369 !important; }
html #messageheader .subject { color: var(--oce-text) !important; }
/* Compose chrome follows OCE's neutral palette; authored HTML keeps its own colors. */
html body.action-compose .recipient-input {
  background: #101010 !important; color: var(--oce-text) !important;
  border: 1px solid #484848 !important; border-radius: 9px;
}
html body.action-compose .recipient-input:is(.focus, :focus-within) {
  border-color: #888 !important; box-shadow: none !important;
}
html body.action-compose :is(input.form-control, textarea.form-control, select.form-control, .custom-select):focus {
  border-color: #888 !important; outline: none !important; box-shadow: none !important;
}
html body.action-compose :is(input, textarea, select, button, a, [contenteditable="true"]):focus-visible {
  outline: 1px solid #888 !important; outline-offset: 1px;
}
html body.action-compose :is(input.form-control, textarea.form-control, select.form-control, .custom-select):focus-visible {
  outline: none !important;
}
html body.action-compose .recipient-input input {
  color: var(--oce-text) !important; outline: none !important; box-shadow: none !important;
}
html body.action-compose .recipient-input .recipient {
  background: #292929 !important; color: var(--oce-text) !important; border-color: #484848 !important;
}
html body.action-compose :is(.html-editor .editor-toolbar, .tox .tox-editor-header, .tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar__overflow, .tox .tox-toolbar-overlord > div, .tox .tox-statusbar) {
  background: var(--oce-raised) !important; color: var(--oce-text) !important;
  border-color: var(--oce-border) !important; box-shadow: none !important;
}
html body.action-compose :is(.html-editor .editor-toolbar .mce-i-html, .tox .tox-tbtn, .tox .tox-statusbar a) { color: var(--oce-text) !important; }
html body.action-compose .tox .tox-tbtn svg { fill: var(--oce-text) !important; }
html body.action-compose :is(.html-editor .editor-toolbar .mce-i-html:hover, .tox .tox-tbtn:hover, .tox .tox-tbtn--enabled) { background: #343434 !important; }
html body.action-compose :is(.tox-tinymce, .tox .tox-toolbar__group) { border-color: var(--oce-border) !important; }
html body.action-compose .file-upload { border-color: #484848 !important; background: transparent; }
html body.action-compose .file-upload .hint { color: var(--oce-muted) !important; }
html body.action-compose .file-upload.droptarget.hover { background: #242420 !important; border-color: #b49b32 !important; }
html body.action-compose .custom-switch .custom-control-label::before { background: #343434 !important; border-color: #626262 !important; }
html body.action-compose .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background: var(--oce-accent) !important; border-color: var(--oce-accent) !important; }
html body.action-compose .custom-switch .custom-control-label::after { background: #e6e6e6 !important; }
html body.action-compose * { scrollbar-color: #555 #202020; scrollbar-width: thin; }
html body.action-compose ::-webkit-scrollbar-track { background: #202020; }
html body.action-compose ::-webkit-scrollbar-thumb { background: #555; border-radius: 8px; }
html .layout-message { background: var(--oce-surface) !important; }
/* Login is the only layout we change; mail retains Elastic's pane behavior. */
html body.task-login #layout { display: flex; align-items: center; justify-content: center; padding: 36px 20px; min-height: 100vh; height: auto; }
html body.task-login #layout-content {
  position: relative; inset: auto; flex: 0 1 440px; width: 100%; max-width: 440px; height: auto; min-height: 0;
  margin: 0; padding: 36px; border: 1px solid var(--oce-border); border-radius: 24px; overflow: visible;
  box-shadow: 0 24px 80px #0005;
}
html .oce-welcome { text-align: left; margin-bottom: 28px; }
html .oce-eyebrow { margin: 0 0 10px; font-size: 10px; letter-spacing: .18em; color: var(--oce-muted); }
html .oce-welcome h1 { font-family: "OCE Display", Georgia, serif; font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; color: #f3f0e8; }
html .oce-intro { font-size: 14px; line-height: 1.6; color: var(--oce-muted); margin: 0; }
html body.task-login #login-form { position: static; top: auto; width: 100%; max-width: none; margin: 0; }
html body.task-login #login-form table { width: 100%; text-align: left; }
html body.task-login #login-form tr { display: block; margin-bottom: 16px; }
html body.task-login #login-form td { display: block; padding: 0; }
html body.task-login #login-form td.title { margin-bottom: 6px; font-size: 12px; color: var(--oce-muted); }
html body.task-login #login-form td.input input { width: 100%; box-sizing: border-box; padding: 10px 12px; }
html body.task-login #login-form .input-group { margin-bottom: 16px; }
html body.task-login #login-form .form-control { min-height: 48px; }
html body.task-login #login-form .input-group-text { border-radius: 9px 0 0 9px; }
html body.task-login #login-form .input-group .form-control { border-radius: 0 9px 9px 0; }
html body.task-login #login-form .btn-primary { min-height: 48px; margin-top: 12px; }
html body.task-login #login-form button.mainaction { width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid var(--oce-accent); border-radius: 999px; background: var(--oce-accent); color: #111; font: 600 14px "OCE Inter", system-ui, sans-serif; }
html body.task-login #login-footer { position: static; margin-top: 26px; padding: 0; text-align: center; color: var(--oce-muted) !important; font-size: 11px; }
html body.task-login #login-footer a { color: var(--oce-text) !important; }
@media (max-width: 480px) {
  html body.task-login #layout { padding: 20px 14px; }
  html body.task-login #layout-content { padding: 28px 24px; border-radius: 20px; }
  html .oce-welcome h1 { font-size: 36px; }
}
@media print {
  html body, html #layout-content, html #messagebody { background: #fff !important; color: #000 !important; }
}

/* OCE application shell. Mail commands and responsive pane selection stay native. */
html { font-size: 16px; }
html body:not(.task-login) { font-size: 14px; }
html .oce-masthead {
  position: fixed; inset: 0 0 auto; z-index: 2000; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 16px; background: #000; border-bottom: 1px solid #252525;
  box-sizing: border-box;
}
html .oce-brand { color: #dedede; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
html .oce-account { display: flex; align-items: center; gap: 10px; color: var(--oce-muted); font-size: 12px; min-width: 0; overflow: visible; white-space: nowrap; }
html .oce-account-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #2ec5a1; }
html .oce-account-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font: 400 12px/1.5 "OCE Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / 70%);
}
html .oce-account-actions { display: inline-flex; position: relative; flex: 0 0 auto; }
html .oce-profile-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 5px; border: 0 !important; border-radius: 0;
  font-family: "OCE Inter", ui-sans-serif, system-ui, sans-serif; font-weight: 400;
  background: transparent !important; color: rgb(218, 41, 28) !important;
  box-shadow: none !important; cursor: pointer;
}
html .oce-profile-toggle:focus:not(:focus-visible) { outline: none !important; }
html .oce-profile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%;
}
html .oce-profile-icon svg { width: 16px; height: 16px; fill: currentColor; }
html .oce-profile-label { font: 400 11px/1 "OCE Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
html .oce-profile-toggle:hover { color: rgb(218 41 28 / 90%) !important; }
html .oce-profile-menu {
  top: 100%; right: 0; left: auto; min-width: 256px; max-width: calc(100vw - 32px);
  z-index: 2001; margin-top: 12px; padding: 4px 8px; border: 1px solid #303030; border-radius: 13px;
  background: #161616 !important; color: #d0d0d0; box-shadow: 0 12px 28px #0006;
}
html .oce-profile-menu > a.dropdown-item {
  display: block; width: 100%; padding: 11.2px 12px; border-radius: 5px;
  font: 400 11px/1 "OCE Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: 1.5px;
  text-transform: uppercase; color: #d0d0d0 !important; text-decoration: none;
}
html .oce-profile-menu > a.dropdown-item:hover,
html .oce-profile-menu > a.dropdown-item:focus { background: #23252a; color: #fff !important; }
html .oce-profile-divider { height: 1px; margin: 5px 0; background: #303030; }
@media (max-width: 480px) {
  html .oce-profile-toggle { gap: 0; padding: 0; min-width: 44px; }
  html .oce-profile-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* Theme/help are hidden; email Logout is in the account dropdown. */
html #taskmenu .special-buttons { display: none !important; }
/* Keep mailbox maintenance out of the folder picker, including its empty menu trigger. */
html #layout-sidebar [data-popup="mailboxoptions-menu"],
html #mailboxoptions-menu { display: none !important; }
/* Native responsive rules decide when folder/back navigation is needed. */
html body.task-mail #layout-list > .header :is(.task-menu-button, .refresh, .toolbar-menu-button, .toolbar-list-button),
html body.task-mail #layout-list > .header > .menu,
html body.task-mail #layout-content > .header > .toolbar-menu-button { display: none !important; }

/* Elastic builds a smart toolbar at runtime. Keep the core actions inline
   instead of hiding them behind its overflow menu, including on phones. */
html body.task-mail #layout-content > .header > :is(#toolbar-menu, #mailtoolbar) {
  display: flex !important; position: static !important; flex: 1; flex-wrap: wrap;
  align-items: center; gap: 2px; width: auto; margin: 0; padding: 0;
  border: 0; background: transparent !important; box-shadow: none; list-style: none;
}
html body.task-mail #layout-content > .header > #toolbar-menu > li { display: none !important; }
html body.task-mail #layout-content > .header > #toolbar-menu > li:has(> :is(a.reply, a.reply-all, a.forward, a.delete, .dropbutton)) {
  display: block !important; width: auto; margin: 0; padding: 0; border: 0 !important;
}
html body.task-mail #layout :is(.back-list-button, .back-sidebar-button) { color: var(--oce-text); }
html body.task-mail #layout-content > .header :is(#toolbar-menu, #mailtoolbar) :is(.dropdown, .more, .markmessage, .spacer, .print, .prev, .next, .compose) { display: none !important; }
html body.task-mail #layout-content > .header :is(#toolbar-menu, #mailtoolbar) a:is(.reply, .reply-all, .forward, .delete) {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px;
  float: none; margin: 0; padding: 4px 8px; font-size: 12px;
}
html body.task-mail #layout-content > .header :is(#toolbar-menu, #mailtoolbar) a > .inner { display: inline !important; }
html body.task-mail #layout-content > .header { height: auto; flex-wrap: wrap; }
/* Search occupies the first list row; the folder toggle shares it on narrow screens. */
@media (min-width: 1201px) {
  html body.task-mail #layout-list > .header { display: none; }
}
@media (max-width: 1200px) {
  html body.task-mail #layout-list { position: relative; }
  html body.task-mail #layout-list > .header {
    position: absolute; top: 0; left: 0; z-index: 2;
    width: 52px; height: 56px; min-height: 56px; padding: 6px 4px;
    border: 0; background: transparent !important;
  }
  html body.task-mail #layout-list > .header > .header-title { display: none; }
  html body.task-mail #layout-list > .searchbar { padding-left: 56px; }
}
html .oce-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
html .oce-mail-navigation { position: fixed; top: 72px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; z-index: 1001; }
html .oce-workspace-tabs { display: flex; align-items: center; gap: 6px; }
html body:not(.task-login) #layout-menu { display: none !important; }
html .oce-mail-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--oce-border); border-radius: 10px; color: var(--oce-muted); font-size: 13px; text-decoration: none; }
html .oce-mail-navigation a:hover { background: #1b1b19; color: var(--oce-text); }
html .oce-mail-navigation a[aria-current] { background: #242420; border-color: #393934; color: #f3f0e8; }
html .oce-mail-navigation a.oce-compose {
  justify-content: center; gap: 10px; min-width: 128px; padding: 0 20px;
  border-color: var(--oce-accent); border-radius: 999px;
  background: var(--oce-accent); color: #111; font-weight: 600;
}
html .oce-mail-navigation a.oce-compose::before {
  content: "\f044"; font: 900 18px/1 Icons; width: 18px; text-align: center;
}
html .oce-mail-navigation a.oce-compose:hover { background: #ffe369; color: #111; }
html .oce-mail-navigation a.oce-settings { margin-left: auto; }

html .listing li.selected { box-shadow: none; }
html #layout-sidebar > .header { box-shadow: none; }
html #layout-sidebar .username { font-size: 13px; }
html #folderlist-content { padding: 12px 8px; }
html .folderlist li { border: 0 !important; border-radius: 10px; margin: 3px 0; }
html .folderlist li > a { min-height: 44px; line-height: 34px; padding-left: 12px; border: 0 !important; border-radius: 10px; font-size: 14px; }
html .folderlist li > a:focus-visible { outline: 1px solid #888 !important; outline-offset: -2px; }
html .folderlist li > a::before { font-size: 16px; margin-right: 10px; }
html .folderlist li.selected > a { font-weight: 600; }
html .searchbar { min-height: 56px; padding: 8px 12px; box-sizing: border-box; }
html .searchbar input { font-size: 14px; min-height: 38px; padding-left: 12px; }
html #messagelist-content .messagelist td { padding: 15px 16px; font-size: 14px; }
html .messagelist :is(.subject, .fromto) { line-height: 1.6; color: #dedcd6 !important; }
html .messagelist .subject { font-size: 14px; }
html .messagelist :is(.date, .size) { font-size: 11px; }
html :is(#layout-list, #layout-content) > .header { min-height: 64px; padding: 8px 12px; box-sizing: border-box; }
html :is(#layout-list, #layout-content) > .footer { min-height: 44px; padding: 6px 12px; }
html :is(#layout-list, #layout-content) .toolbar a { font-size: 12px; padding: 5px 8px; border-radius: 8px; }
html :is(#layout-list, #layout-content) .toolbar a::before { font-size: 18px; }
html :is(#message-header, #messageheader) { padding: 24px 28px 20px; background: var(--oce-surface); border-color: var(--oce-border) !important; }
html :is(#message-header, #messageheader) > .subject {
  font: 500 28px/1.3 "OCE Display", Georgia, serif; color: var(--oce-text) !important; margin-bottom: 20px;
}
html :is(#message-header, #messageheader) a { color: var(--oce-text) !important; }
html :is(#message-header, #messageheader) :is(td, th, .header) { font-size: 13px; line-height: 1.6; }
html #messagebody { margin: 4px 28px 28px; padding: 24px; border-radius: 12px; font-size: 15px; line-height: 1.7; }
html #messagebody .pre { font: 14px/1.7 "OCE Inter", system-ui, sans-serif; }
html #messagebody a { color: #145cab; }
html #messagebody:has(.pre) { background: #1b1b1b; color: var(--oce-text); border: 1px solid #303030; }
html #messagebody:has(.pre) a { color: #ffe369; }

@media (min-width: 1025px) {
  html body:not(.task-login) #layout {
    position: absolute; top: 124px; left: 12px; right: 12px; bottom: 12px;
    width: auto; height: auto; display: flex; gap: 12px; overflow: visible; padding: 12px;
    border: 1px solid #30302c; border-radius: 20px; background: #111110 !important;
  }
  html body:not(.task-login) :is(#layout-sidebar, #layout-list, #layout-content) {
    border: 1px solid #303030 !important; border-radius: 12px; overflow: hidden; min-height: 0;
  }
  /* Native splitters set inline width/flex and persist them between visits.
     Keep those widths usable, but reserve room for the reading pane. */
  html body:not(.task-login) #layout-sidebar {
    flex: 0 0 auto; width: 204px; min-width: 160px; max-width: min(24%, 250px);
  }
  html body.task-mail.action-compose #layout-sidebar {
    width: clamp(300px, 24vw, 360px); min-width: 300px; max-width: 36%;
  }
  html body.task-mail.action-compose #layout-sidebar > .header .header-title {
    white-space: normal; line-height: 1.4;
  }
  html body.task-mail:not(.action-compose) #layout-list {
    flex: 0 0 auto; width: clamp(240px, 22vw, 340px); min-width: 210px;
    max-width: min(40%, calc(100% - 430px));
  }
  html body:not(.task-login) #layout-content { flex: 1 1 0; min-width: 0; width: auto; }
  html body:not(.task-login) #layout-menu {
    position: fixed; top: 72px; right: 16px; left: auto; bottom: auto; z-index: 1001;
    width: auto; height: 48px; border: 0; background: transparent !important; overflow: visible;
  }
  html #layout-menu > .popover-header { display: none; }
  html #taskmenu { display: flex; align-items: center; gap: 4px; overflow: visible; }
  html #taskmenu :is(.action-buttons, .special-buttons) { position: static; display: flex; align-items: center; width: auto; background: transparent !important; }
  html #taskmenu .action-buttons { order: 3; margin-left: 12px; }
  html #taskmenu .special-buttons { order: 2; margin-left: 8px; border-left: 1px solid #333; padding-left: 8px; }
  html #taskmenu a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto; height: 44px; min-width: 44px; max-width: none; line-height: 1.2;
    padding: 0 12px; margin: 0; font-size: 12px; border: 1px solid transparent !important; border-radius: 10px;
  }
  html #taskmenu a::before {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px;
    float: none !important; width: 20px !important; height: 20px;
    margin: 0 !important; padding: 0; line-height: 20px; font-size: 16px;
  }
  html #taskmenu a .inner {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; margin: 0; line-height: 20px; font-size: 12px;
  }
  html #taskmenu a.mail { display: none; }
  html #taskmenu a.selected { background: #242420 !important; color: #f3f0e8 !important; border-color: #393934 !important; }
  html #taskmenu a.compose { margin: 0; padding: 0 20px; min-width: 128px; border-radius: 999px; font-weight: 600; }
  html #taskmenu .special-buttons a { width: 38px; min-width: 38px; padding: 0; }
  html #taskmenu .special-buttons a .inner { display: none; }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  html body:not(.task-login) #layout { gap: 8px; padding: 8px; }
  html body:not(.task-login) #layout-sidebar { width: 168px; min-width: 140px; max-width: 22%; }
  html #taskmenu a { padding: 0 8px; gap: 6px; }
  html #taskmenu a.compose { min-width: 112px; padding: 0 16px; }
}

@media (max-width: 1024px) {
  html .oce-masthead { height: 56px; padding: 0 18px; gap: 16px; }
  html .oce-brand { font-size: 10px; }
  html .oce-account { max-width: 46%; font-size: 10px; }
  html .oce-mail-navigation { top: 60px; left: 12px; right: 12px; }
  html body:not(.task-login) #layout { position: absolute; top: 112px; height: calc(100% - 112px); }
  html #layout-menu { padding-top: 8px; }
  html #taskmenu a.compose { margin-left: 3px; margin-right: 3px; }
  html #messagebody { margin: 0 16px 16px; padding: 18px; }
  html :is(#message-header, #messageheader) { padding: 20px 16px; }
}

@media (max-width: 600px) {
  html .oce-mail-navigation { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  html .oce-mail-navigation a.oce-compose { justify-self: start; }
  html .oce-workspace-tabs { grid-row: 2; grid-column: 1 / -1; }
  html .oce-workspace-tabs a { flex: 1; justify-content: center; }
  html .oce-mail-navigation a.oce-settings { grid-row: 1; grid-column: 2; }
  html body:not(.task-login) #layout { top: 164px; height: calc(100% - 164px); }
}

@media print {
  html :is(.oce-masthead, .oce-mail-navigation) { display: none !important; }
}

/* Elastic has separate rem-based sizes for header, toolbar and inline icons.
   Normalize the glyphs independently of their larger interactive targets. */
html #layout > div > .header a.button::before,
html :is(#layout-list, #layout-content) .menu.toolbar a:not(.dropdown)::before {
  font-size: var(--oce-icon) !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
}
html #layout > div > .header a.button {
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; vertical-align: middle;
}
html :is(#layout-list, #layout-content) .menu.toolbar .dropbutton { vertical-align: top; }
html :is(#layout-list, #layout-content) .menu.toolbar .dropbutton a.dropdown {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 44px; vertical-align: top;
}
html :is(#layout-list, #layout-content) .menu.toolbar a.dropdown::before {
  font-size: 12px !important; width: 12px !important; height: 16px !important; line-height: 16px !important;
}
html .searchbar form::before, html .searchbar a::before {
  font-size: 16px !important; line-height: 38px; height: 38px;
}
html .searchbar a { min-width: 36px; min-height: 38px; }
html .menu.pagenav a { min-width: 36px !important; height: 36px; }
html .menu.pagenav a::before { font-size: 16px; line-height: 36px; }
html #message-header > .subject a.extwin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: 6px; vertical-align: middle; border-radius: 6px;
}
html #message-header > .subject a.extwin::before {
  font-size: var(--oce-icon-small); line-height: 18px; width: 18px; height: 18px;
}
html #message-header .header-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
html #message-header .header-links a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; line-height: 20px; margin-right: 0;
}
html #message-header .header-links a::before {
  display: inline-flex; align-items: center; justify-content: center; float: none;
  flex: 0 0 16px; font-size: var(--oce-icon-small);
  width: 16px; height: 20px; line-height: 20px; margin: 0;
}
html #message-header > .header img.contactphoto {
  width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; margin-right: 12px;
}
html #message-header .header-content { min-height: 40px; }
html .messagelist td.subject span.msgicon.status:is(.replied, .forwarded)::before { font-size: 13px; }
/* The inherited selected-row link color was almost black on the dark surface. */
html .messagelist tr.selected td.subject span.subject a { color: var(--oce-text) !important; }
html .messagelist tr.selected td.subject :is(span.fromto, span.date) { color: #bdbdbd !important; }

/* Shared inboxes remain adjacent to the personal inbox; only their display differs. */
html #mailboxlist > li.inbox > a:not([rel="INBOX"]) { color: #e1e3ce !important; }
html #mailboxlist > li.inbox > a:not([rel="INBOX"])::before { content: "\f500"; color: #c1c5a5 !important; }
html #mailboxlist::before { content: "PERSONAL & SHARED"; display: block; padding: 3px 12px 10px; font-size: 9px; letter-spacing: .14em; color: var(--oce-muted); }
html #messagelist-content > .listing-info { padding: 48px 22px; text-align: center; color: var(--oce-muted) !important; font-size: 13px; line-height: 1.8; }
html #messagelist-content > .listing-info::before { content: "Nothing to show here"; display: block; margin-bottom: 12px; color: #e6e3da; font: 500 22px/1.4 "OCE Display", Georgia, serif; }
html #messagelist-content > .listing-info::after { content: "Choose another folder or adjust your search."; display: block; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { html * { transition: none !important; } }
