/* 1FY Mail. Extends Elastic; no layout/navigation or mail command replacements. */
:root {
  color-scheme: dark;
  --fy-bg: #0e0e0e;
  --fy-panel: #151718;
  --fy-panel-raised: #1b1e20;
  --fy-field: #101213;
  --fy-line: #2c3033;
  --fy-text: #f5f5f5;
  --fy-muted: #9da4aa;
  --fy-accent: #ff7701;
  --fy-accent-soft: #372619;
  --fy-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.onefy,
html.onefy body {
  background: var(--fy-bg);
  color: var(--fy-text);
}
html.onefy body {
  font-family: var(--fy-font);
  font-size: 14px;
}
html.onefy a {
  color: #ff9b44;
}
html.onefy a:hover {
  color: #ffb777;
}
html.onefy :focus-visible {
  outline: 2px solid var(--fy-accent);
  outline-offset: 3px;
}
html.onefy #layout {
  background: var(--fy-bg);
}
html.onefy #layout-menu {
  background: #0d0f10;
  border-color: var(--fy-line);
}
html.onefy #layout-sidebar {
  background: var(--fy-panel);
  border-color: var(--fy-line);
}
html.onefy #layout-list,
html.onefy #layout-content {
  background: #111314;
  border-color: var(--fy-line);
}
html.onefy .header,
html.onefy .footer,
html.onefy .listing thead th,
html.onefy .listing thead td {
  background: var(--fy-panel);
  color: var(--fy-text);
  border-color: var(--fy-line);
}
html.onefy .header {
  min-height: 60px;
}
html.onefy .header-title {
  font-weight: 600;
  letter-spacing: -0.3px;
}
html.onefy #taskmenu {
  padding-top: 14px;
}
html.onefy #taskmenu a {
  color: var(--fy-muted);
  border-radius: 9px;
  margin: 3px 6px;
}
html.onefy #taskmenu a:hover,
html.onefy #taskmenu a.selected {
  background: #25201c;
  color: #ff9b44;
}
html.onefy #taskmenu .action-buttons .compose {
  background: var(--fy-accent);
  color: #17100a;
  border: 1px solid var(--fy-accent);
  border-radius: 10px;
  box-shadow: 0 4px 18px #ff770119;
  margin-bottom: 14px;
}
html.onefy #taskmenu .action-buttons .compose:hover {
  background: #ff9338;
  color: #17100a;
}
html.onefy #taskmenu .special-buttons a.logout:hover {
  background: #34201f;
  color: #ffaaa1;
}
html.onefy #taskmenu .special-buttons a:not(:hover) {
  background: transparent;
}
html.onefy #layout-menu .popover-header #logo {
  width: 104px;
  height: auto;
  max-height: 42px;
}
html.onefy .listing li,
html.onefy .listing tbody td {
  border-color: #25292b;
}
html.onefy .listing li > a,
html.onefy .listing tbody td {
  color: #d9dde0;
}
html.onefy .listing li.selected > a,
html.onefy .listing li.selected > div > a,
html.onefy .listing tr.selected td,
html.onefy .listing tr.focused td {
  background: var(--fy-accent-soft);
  color: #ffbc84;
}
html.onefy .listing li > a:hover,
html.onefy .listing tr:hover td {
  background: #202426;
}
html.onefy .folderlist li.selected > a {
  box-shadow: inset 3px 0 var(--fy-accent);
}
html.onefy .folderlist li.mailbox .unreadcount {
  background: #3c2a1c;
  color: #ffc18c;
  border-radius: 5px;
}
html.onefy .messagelist tr td {
  padding-top: 12px;
  padding-bottom: 12px;
}
html.onefy .messagelist .subject {
  color: #e5e8ea;
}
html.onefy .messagelist .unread .subject {
  color: #fff;
  font-weight: 650;
}
html.onefy .messagelist .fromto,
html.onefy .messagelist .date,
html.onefy .messagelist .size {
  color: #a4abb0;
}
html.onefy .messagelist tr.selected .subject {
  color: #ffd1a9;
}
html.onefy #messagelist tr.selected td,
html.onefy #messagelist tr.selected:hover td {
  background: #372619;
  box-shadow: none;
}
html.onefy #messagelist tr.selected td.subject {
  box-shadow: inset 3px 0 #ff7701;
}
html.onefy #messagelist span.subject a {
  color: #e5e8ea;
}
html.onefy #messagelist tr.selected span.subject a {
  color: #ffd1a9;
}
html.onefy .messagelist td.flags .flagged,
html.onefy .messagelist td.flags .unread {
  color: #ff9b44;
}
html.onefy .searchbar {
  background: var(--fy-field);
  border-color: var(--fy-line);
}
html.onefy .searchbar input {
  color: var(--fy-text);
}
html.onefy .searchbar input::placeholder {
  color: #899197;
}
html.onefy .toolbar a,
html.onefy a.button {
  color: #b7bec3;
}
html.onefy .toolbar a:hover,
html.onefy a.button:hover {
  color: #ffab62;
}
html.onefy .toolbar a.disabled,
html.onefy a.button.disabled {
  opacity: 0.4;
}
html.onefy
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not(
    [type="submit"]
  ),
html.onefy textarea,
html.onefy select,
html.onefy .form-control,
html.onefy .custom-select {
  background-color: var(--fy-field);
  border-color: #3b4145;
  color: var(--fy-text);
  border-radius: 7px;
}
html.onefy .form-control:focus,
html.onefy .custom-select:focus,
html.onefy input:focus,
html.onefy textarea:focus {
  border-color: var(--fy-accent);
  box-shadow: 0 0 0 3px #ff770119;
}
html.onefy .input-group-text {
  background: #202426;
  color: #afb7bd;
  border-color: #3b4145;
}
html.onefy .btn-primary,
html.onefy input.button.mainaction {
  background: var(--fy-accent);
  border-color: var(--fy-accent);
  color: #17100a;
  font-weight: 650;
  border-radius: 7px;
}
html.onefy .btn-primary:hover {
  background: #ff9338;
  border-color: #ff9338;
  color: #17100a;
}
html.onefy .btn-secondary {
  background: #282d30;
  color: #ecf0f2;
  border-color: #41494e;
  border-radius: 7px;
}
html.onefy .btn-link {
  color: #ff9b44;
}
html.onefy .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #ff7701;
  border-color: #ff7701;
}
html.onefy .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px #ff770126;
}
html.onefy .progress-bar {
  background-color: #ff9b44;
}
html.onefy .popover,
html.onefy .popupmenu,
html.onefy .ui-dialog,
html.onefy .ui-dialog .ui-dialog-content,
html.onefy .modal-content,
html.onefy .formcontent,
html.onefy .formbuttons {
  background: var(--fy-panel-raised);
  color: var(--fy-text);
  border-color: #3a4044;
}
html.onefy .popover-header,
html.onefy .ui-dialog-titlebar,
html.onefy .ui-dialog-buttonpane,
html.onefy .modal-header,
html.onefy .modal-footer {
  background: #1b1e20;
  color: var(--fy-text);
  border-color: #3a4044;
}
html.onefy .popupmenu a:hover {
  background: #35271b;
  color: #ffb777;
}
html.onefy .propform .form-group,
html.onefy fieldset {
  border-color: var(--fy-line);
}
html.onefy legend {
  color: #f0f1f2;
  font-weight: 600;
}
html.onefy .form-text,
html.onefy .hint,
html.onefy .text-muted {
  color: var(--fy-muted) !important;
}
html.onefy .boxwarning {
  background: #332717;
  color: #ffd2a5;
  border-color: #7d592e;
}
html.onefy #message-header,
html.onefy .message-headers {
  background: var(--fy-panel);
  color: #d9dde0;
}
html.onefy .message-htmlpart {
  color-scheme: light;
}
html.onefy .recipient-input {
  background: var(--fy-field);
  border-color: #3b4145;
}
html.onefy .recipient {
  background: #2a3033;
  color: #f0f1f2;
  border-color: #454e54;
}
html.onefy .mce-container,
html.onefy .tox .tox-toolbar,
html.onefy .tox .tox-toolbar__primary {
  border-color: #3b4145;
}
html.onefy .mce-edit-area,
html.onefy .tox-edit-area {
  color-scheme: light;
}
html.onefy ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
html.onefy ::-webkit-scrollbar-thumb {
  background: #3b4246;
  border-radius: 8px;
}
html.onefy ::-webkit-scrollbar-track {
  background: transparent;
}

/* Login has its own composition; the native form and error handling stay intact. */
html.onefy body.task-login {
  background: #0e0e0e;
  overflow: auto;
}
html.onefy .task-login #layout {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  overflow: visible;
}
html.onefy .task-login #layout-content.onefy-login {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 9% 48%, #17202455, transparent 55%), #0e0e0e;
  border: 0;
  overflow: visible;
  text-align: left;
}
.onefy-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 5vw;
  gap: 20px;
}
html.onefy .onefy-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: #f5f5f5;
  text-decoration: none;
}
.onefy-wordmark {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
}
.onefy-wordmark > span {
  color: #ff7701;
}
.onefy-brand-caption {
  border-left: 1px solid #34393c;
  padding-left: 20px;
  color: #9aa2a8;
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.6;
}
html.onefy .onefy-site-link {
  font-size: 12px;
  color: #b0b7bc;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid #34393c;
  border-radius: 6px;
  white-space: nowrap;
}
.onefy-site-link > span {
  padding-left: 12px;
  color: #ff9b44;
}
.onefy-login-main {
  flex: 1;
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 28px 0 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}
.onefy-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a7aeb3;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.onefy-eyebrow > span {
  width: 5px;
  height: 5px;
  background: #ff7701;
}
html.onefy .onefy-intro h1 {
  font-size: clamp(36px, 4.7vw, 62px);
  line-height: 1.1;
  letter-spacing: -2.5px;
  font-weight: 700;
  margin: 0 0 26px;
  color: #f5f5f5;
}
.onefy-intro h1 > span {
  color: #ff8b26;
}
.onefy-intro-text {
  color: #aeb5ba;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  max-width: 420px;
}
.onefy-intro-rule {
  height: 1px;
  margin: 38px 0 22px;
  background: linear-gradient(90deg, #353b3f, transparent);
  max-width: 320px;
}
.onefy-intro-rule > span {
  display: block;
  height: 1px;
  width: 45px;
  background: #ff7701;
}
.onefy-domain {
  color: #8c959c;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.onefy-domain > span {
  padding: 0 14px;
  color: #4b545a;
}
.onefy-login-card {
  padding: 32px;
  background: #151819;
  border: 1px solid #32383c;
  border-radius: 14px;
  box-shadow: 0 24px 80px #0004;
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
.onefy-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #634024;
  border-radius: 12px;
  background: #2a2119;
  color: #ff9b44;
  margin-bottom: 26px;
}
html.onefy .onefy-login-card h2 {
  color: #f5f5f5;
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 0 0 9px;
}
.onefy-card-description {
  font-size: 12px;
  line-height: 1.7;
  color: #9da6ad;
  margin: 0 0 28px;
}
html.onefy .task-login #login-form {
  width: 100%;
  max-width: none;
  margin: 0;
  top: 0;
}
html.onefy .task-login #login-form table {
  width: 100%;
  margin: 0;
}
html.onefy .task-login #login-form tbody,
html.onefy .task-login #login-form tr,
html.onefy .task-login #login-form td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
html.onefy .task-login #login-form tr {
  margin-bottom: 16px;
}
html.onefy .task-login #login-form td.title {
  display: block !important;
  margin-bottom: 8px;
  color: #c9cfd3;
  font-size: 12px;
  text-align: left;
}
html.onefy .task-login #login-form td.title::before,
html.onefy .task-login #login-form td.title::after {
  display: none;
}
html.onefy .task-login #login-form label {
  color: #c9cfd3;
  margin: 0;
  font-size: 12px;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
}
html.onefy .task-login #login-form .input-group-prepend {
  display: none;
}
html.onefy .task-login #login-form input.form-control {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 7px;
  border: 1px solid #3d454a;
  background: #0f1213;
  color: #f5f5f5;
  font-size: 16px;
  padding: 10px 13px;
}
html.onefy .task-login #login-form input::placeholder {
  color: #7f8a92;
  font-size: 14px;
}
html.onefy .task-login #login-form .formbuttons {
  padding: 8px 0 0;
  margin: 0;
  background: transparent;
  border: 0;
}
html.onefy .task-login #rcmloginsubmit {
  width: 100%;
  min-height: 48px;
  background: #ff7701;
  color: #1a1007;
  border: 1px solid #ff7701;
  border-radius: 7px;
  text-transform: none !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: 0.1px;
}
html.onefy .task-login #rcmloginsubmit:hover {
  background: #ff9234;
  border-color: #ff9234;
}
html.onefy .task-login #rcmloginsubmit::before {
  display: none;
}
html.onefy .task-login #login-footer {
  color: #8e999f;
  font-size: 11px;
  line-height: 1.7;
  margin: 22px 0 0;
  text-align: center;
  padding: 0;
}
.onefy-password-field {
  position: relative;
}
html.onefy .task-login #login-form .onefy-password-field input {
  padding-right: 90px;
}
html.onefy .onefy-password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b0b9c0;
  font: 11px var(--fy-font);
}
html.onefy .onefy-password-toggle:hover {
  background: #252b2f;
  color: #f5f5f5;
}
.onefy-login-footer {
  padding: 22px 5vw;
  border-top: 1px solid #222729;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #899399;
  font-size: 11px;
}
.onefy-connection {
  display: flex;
  gap: 8px;
  align-items: center;
}
.onefy-connection > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94ae96;
}
html.onefy .task-login #messagestack {
  max-width: min(420px, calc(100vw - 24px));
}

@media (min-width: 1025px) {
  html.onefy #layout-menu {
    width: 92px;
    flex-basis: 92px;
  }
  html.onefy #taskmenu a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  html.onefy #layout-sidebar {
    min-width: 220px;
  }
  html.onefy .task-mail #layout-sidebar .header-title {
    font-size: 1.4rem;
  }
}
@media (max-width: 1024px) {
  html.onefy #taskmenu .action-buttons .compose {
    margin-bottom: 8px;
  }
  html.onefy .header {
    min-height: 52px;
  }
  html.onefy .onefy-login-main {
    gap: 36px;
    padding: 40px 0 56px;
  }
  html.onefy .onefy-login-card {
    padding: 28px;
  }
  .onefy-brand-caption {
    display: none;
  }
}
@media (max-width: 680px) {
  html.onefy .onefy-login-header {
    padding: 24px 22px;
  }
  .onefy-wordmark {
    font-size: 30px;
  }
  html.onefy .onefy-login-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    padding: 24px 22px 40px;
    max-width: 480px;
  }
  .onefy-eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
    margin-bottom: 16px;
  }
  html.onefy .onefy-intro h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
    line-height: 1.13;
    margin-bottom: 14px;
  }
  .onefy-intro-text {
    font-size: 12px;
    line-height: 1.8;
  }
  .onefy-desktop-break,
  .onefy-intro-rule,
  .onefy-domain {
    display: none;
  }
  html.onefy .onefy-login-card {
    max-width: none;
    padding: 24px;
    border-radius: 12px;
  }
  .onefy-card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  html.onefy .onefy-login-card h2 {
    font-size: 22px;
  }
  .onefy-card-description {
    margin-bottom: 24px;
  }
  .onefy-login-footer {
    padding: 18px 22px max(18px, env(safe-area-inset-bottom));
    font-size: 10px;
    flex-wrap: wrap;
  }
  html.onefy input,
  html.onefy textarea,
  html.onefy select {
    font-size: 16px;
  }
  html.onefy .messagelist tr td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  html.onefy #messagelist span.date {
    font-size: 11px;
  }
  html.onefy #taskmenu a {
    min-height: 46px;
  }
  html.onefy #layout .floating-action-buttons a,
  html.onefy #layout > .floating-action-buttons a,
  html.onefy .floating-action-buttons a.compose,
  html.onefy a[id$="-clone"].compose.button {
    background: #ff7701;
    color: #17100a;
  }
  html.onefy #messagelist-header .header-title::before {
    content: "1FY";
    color: #ff9b44;
    font-weight: 750;
    margin-right: 10px;
    font-size: 11px;
    letter-spacing: -0.5px;
  }
}
@media (max-width: 359px) {
  html.onefy .onefy-login-header {
    padding: 20px 16px;
  }
  html.onefy .onefy-login-main {
    padding: 18px 16px 32px;
  }
  html.onefy .onefy-login-card {
    padding: 22px 18px;
  }
  html.onefy .onefy-intro h1 {
    font-size: 32px;
  }
}
@media (max-height: 560px) and (min-width: 681px) {
  html.onefy .onefy-login-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  html.onefy .onefy-login-main {
    padding-top: 16px;
    padding-bottom: 24px;
  }
  html.onefy .onefy-login-card {
    padding: 24px;
  }
  .onefy-card-icon {
    display: none;
  }
  .onefy-login-footer {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.onefy *,
  html.onefy *::before,
  html.onefy *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  html.onefy,
  html.onefy body,
  html.onefy #layout-content {
    color-scheme: light;
    background: #fff;
    color: #111;
  }
}
