/* FicPlay Mail. Elastic remains the behavioral/responsive foundation. */
:root {
  --fp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fp-cover: #20143c;
  --fp-cover-soft: #2b1d48;
  --fp-cover-text: #f4eefb;
  --fp-cover-muted: #c1b3d4;
  --fp-paper: #f7f5fc;
  --fp-surface: #fff;
  --fp-ink: #1b1825;
  --fp-muted: #6b6277;
  --fp-line: #e4dfec;
  --fp-accent: #7440c0;
  --fp-accent-bright: #914af6;
  --fp-selected: #eee7fa;
  --fp-focus: #7440c0;
  --fp-radius: 10px;
  --fp-shadow: 0 12px 40px rgb(32 20 60 / 12%);
}
html.dark-mode {
  --fp-paper: #1b1825;
  --fp-surface: #231f2f;
  --fp-ink: #f3edf9;
  --fp-muted: #beb0cd;
  --fp-line: #473b58;
  --fp-accent: #cba9fb;
  --fp-selected: #3a2a50;
  --fp-focus: #d4b6ff;
}
html, body { font-family: var(--fp-font); }
body { color: var(--fp-ink); background: var(--fp-paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--fp-accent); }
button, a, input, select, textarea { touch-action: manipulation; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--fp-focus) !important;
  outline-offset: 3px;
}
.voice { font-family: inherit; }
#layout { background: var(--fp-paper); min-width: 0; }
#layout-content { background: var(--fp-surface); color: var(--fp-ink); border-color: var(--fp-line); }
#layout-list { background: var(--fp-surface); border-color: var(--fp-line); }
#layout-sidebar { background: var(--fp-cover); color: var(--fp-cover-text); border-color: #423252; }
#layout-menu {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #1b1032;
  border-color: #47315c;
  color: var(--fp-cover-text);
  overflow: hidden;
}
.ficplay-symbol-link {
  height: 110px;
  flex: 0 0 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
}
.ficplay-symbol-link img { width: 48px; height: 48px; object-fit: contain; border-radius: 16px; }
.ficplay-symbol-link:hover img { box-shadow: 0 0 0 3px #4b3264; }
.ficplay-brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ficplay-brand-symbol { width: 38px; height: 38px; object-fit: contain; border-radius: 12px; flex: 0 0 auto; }
.ficplay-brand-wordmark { width: 112px; height: 37px; object-fit: contain; flex: 0 0 auto; }
.ficplay-brand-product { color: #e6cafa; border-left: 1px solid #73558c; padding-left: 10px; font-size: 18px; font-weight: 400; letter-spacing: -.3px; line-height: 1.2; }
#layout-menu #taskmenu {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: 0 0 12px;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #6b507e transparent;
}
#layout-menu #taskmenu .action-buttons { display: block; flex: 0 0 auto; padding-bottom: 12px; }
#layout-menu #taskmenu a {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: calc(100% - 16px);
  min-width: 0;
  min-height: 66px;
  height: auto;
  margin: 3px 8px;
  padding: 11px 4px;
  border: 0;
  border-radius: 11px;
  color: #ccbddf;
  background: transparent;
  line-height: 1.25;
  text-decoration: none;
  transition: color 140ms, background-color 140ms;
}
#layout-menu #taskmenu a::before {
  display: block;
  float: none;
  position: static;
  width: 24px;
  height: 22px;
  margin: 0;
  font-size: 20px;
  line-height: 22px;
  text-align: center;
  color: inherit;
}
#layout-menu #taskmenu a .inner { display: block; max-width: 100%; color: inherit; font-size: 10.5px; font-weight: 500; line-height: 1.3; white-space: normal; overflow-wrap: normal; }
#layout-menu #taskmenu a:hover { color: #fff; background: #332248; }
#layout-menu #taskmenu a.selected { color: #fff; background: #493264; box-shadow: inset 0 0 0 1px #65477f; }
#layout-menu #taskmenu a.selected::after {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: #ff9aa7;
  position: absolute;
  left: 0;
  top: calc(50% - 11px);
}
#layout-menu #taskmenu a.compose { color: #fff; background: #7440c0; box-shadow: inset 0 1px 0 #a77bdf; }
#layout-menu #taskmenu a.compose:hover { color: #fff; background: #8550d3; }
#layout-menu #taskmenu .special-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  position: static;
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: 22px;
  background: transparent;
}
#layout-menu #taskmenu .special-buttons a.logout { color: #e8adbe; }
#layout-menu #taskmenu .special-buttons a.logout:hover { color: #ffe3eb; background: #49223c; }
#layout-sidebar > .header {
  height: 110px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: transparent;
}
#layout-sidebar .header-title { color: #fff; }
#layout #layout-sidebar > .header { background: var(--fp-cover); color: #fff; min-height: 110px; height: 110px; }
#layout #layout-sidebar > .header .header-title { text-align: left; line-height: 1.4; display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; height: auto; margin: 0 !important; }
#layout #layout-sidebar > .header .sidebar-menu { color: #e4d6ef; }
.ficplay-inbox-name { display: flex; margin-bottom: 9px; }
.ficplay-inbox-name .ficplay-brand-symbol { display: none; }
.ficplay-inbox-address { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: #cabbdb; line-height: 1.5; }
#layout-sidebar .header a { color: #d8c8ea; }
#folderlist-content { padding: 6px 12px 24px; }
#mailboxlist li { margin: 4px 0; border: 0; border-radius: 10px; }
#mailboxlist li a { box-sizing: border-box; min-height: 46px; padding: 13px 14px; color: #d4c6e3; font-size: 14px; line-height: 20px; border-radius: 10px; }
#mailboxlist li a::before { color: #b9a5d0; opacity: 1; font-size: 16px; }
#mailboxlist li:hover { background: #302044; }
#mailboxlist li.selected { background: #493064; border-radius: 10px; box-shadow: inset 0 0 0 1px #63477b; }
#mailboxlist li.selected > a { color: #fff; font-weight: 600; }
#mailboxlist li.selected > a::before { color: #e3caff; }
#mailboxlist li .unreadcount { background: #675080; color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 11px; }
#mailboxlist li.selected .unreadcount { background: #efe2ff; color: #3a1f59; }
#layout-sidebar .footer { border-color: #473358; color: #c6b6d7; background: transparent; }
#layout-sidebar .listing li > a { color: #d4c6e3; }
#layout-sidebar .listing li.selected > a { background: #493064; color: #fff; }
#layout-list > .header, #messagelist-header, #layout-content > .header {
  min-height: 68px;
  background: var(--fp-surface);
  border-color: var(--fp-line);
  color: var(--fp-ink);
}
#layout-list > .header { padding-left: 20px; padding-right: 15px; }
#layout-list .header-title { color: var(--fp-ink); font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
#layout-list .header a, #layout-content > .header a { color: var(--fp-muted); }
.searchbar { background: var(--fp-paper); border-color: var(--fp-line); }
#mailsearchform { margin: 0 15px 12px; border: 1px solid var(--fp-line); border-radius: 9px; }
#mailsearchform input { background: transparent; color: var(--fp-ink); font-size: 13px; }
#mailsearchform input::placeholder { color: var(--fp-muted); opacity: 1; }
.searchbar a, .searchbar label { color: var(--fp-muted); }
#messagelist-content { background: var(--fp-surface); }
.messagelist { border-collapse: separate; border-spacing: 0; color: var(--fp-ink); }
.messagelist tbody tr { background: var(--fp-surface); color: var(--fp-ink); }
.messagelist tbody tr td { border-bottom: 1px solid var(--fp-line); color: inherit; }
.messagelist tbody tr:hover { background: var(--fp-paper); }
.messagelist tbody tr.selected, .messagelist tbody tr.focused { background: var(--fp-selected); color: var(--fp-ink); }
.messagelist tbody tr.selected td:first-child { box-shadow: inset 3px 0 var(--fp-accent-bright); }
.messagelist tr.unread td.subject { font-weight: 650; }
.messagelist td.subject { padding-top: 18px; padding-bottom: 18px; }
.messagelist td.subject .fromto { color: var(--fp-muted); font-size: 12px; font-weight: 500; }
.messagelist td.subject span.subject { display: block; font-size: 14px; line-height: 1.5; }
.messagelist .date, .messagelist td.date { color: var(--fp-muted); font-size: 11px; }
.messagelist tr.unread .fromto { color: var(--fp-ink); }
.messagelist tr.flagged td.subject, .messagelist tr.flagged td.date { color: var(--fp-ink); }
.messagelist tr.flagged td.subject .fromto { color: var(--fp-accent); }
.messagelist tr.flagged td.subject span.subject { color: var(--fp-ink); }
#messagelist tr.flagged td.subject .fromto { color: var(--fp-accent); }
#messagelist tr.flagged td.subject span.subject { color: var(--fp-ink); }
#messagelist tr.flagged td.subject span.date { color: var(--fp-muted); }
.floating-action-buttons a { background: #7440c0 !important; color: #fff !important; box-shadow: 0 5px 16px rgb(32 20 60 / 22%); }
#layout-list > .footer { background: var(--fp-surface); border-color: var(--fp-line); color: var(--fp-muted); min-height: 49px; }
#messagelistfooter .buttons a { color: var(--fp-muted); }
#mailpreviewframe { background: var(--fp-paper); }
.header, .footer { border-color: var(--fp-line); }
.toolbar a { border-radius: 7px; }
.toolbar a:hover { background-color: var(--fp-selected); }
.toolbar a.disabled { opacity: .42; }
.btn { border-radius: 8px; font-size: 14px; font-weight: 600; min-height: 42px; padding: 10px 16px; box-shadow: none; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active {
  background: #7440c0;
  color: #fff;
  border-color: #7440c0;
}
.btn-primary:hover, .btn-primary:focus { background: #6534ad; border-color: #6534ad; color: #fff; }
.btn-secondary { background: var(--fp-paper); color: var(--fp-ink); border-color: var(--fp-line); }
.btn-secondary:hover { background: var(--fp-selected); color: var(--fp-ink); border-color: var(--fp-line); }
.form-control, .custom-select, .recipient-input {
  border-radius: 7px;
  border-color: var(--fp-line);
  color: var(--fp-ink);
  background-color: var(--fp-surface);
  min-height: 40px;
}
.form-control:focus, .custom-select:focus { border-color: var(--fp-focus); box-shadow: 0 0 0 3px rgb(145 74 246 / 14%); background: var(--fp-surface); color: var(--fp-ink); }
.propform .row { border-color: var(--fp-line); }
.listing tr, .listing li { color: var(--fp-ink); }
.listing tbody td { border-color: var(--fp-line); }
#layout-content .listing tr.selected, #layout-list .listing li.selected { background: var(--fp-selected); color: var(--fp-ink); }
#message-header { padding: 28px 32px 24px; background: var(--fp-surface); border-bottom: 1px solid var(--fp-line); }
#message-header .subject { font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -.6px; color: var(--fp-ink); margin-bottom: 24px; }
#message-header .header-summary { color: var(--fp-muted); font-size: 13px; }
#message-header .contactphoto { border-radius: 12px; }
#message-header .header-links { margin-top: 10px; }
#message-header .header-links a { color: var(--fp-accent); font-size: 12px; }
#message-content { padding: 24px 32px 40px; color: var(--fp-ink); background: var(--fp-surface); }
#messagebody { font-size: 16px; line-height: 1.65; }
#messagebody div.pre { font-family: var(--fp-font); font-size: 16px; line-height: 1.75; }
#messagebody .message-part { max-width: 78ch; }
#messagebody pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
#message-objects div { border-radius: 7px; }
.attachmentslist li { border-radius: 8px; border-color: var(--fp-line); background: var(--fp-paper); }
.attachmentslist a { color: var(--fp-accent); }
.ui-dialog { border: 1px solid var(--fp-line); border-radius: 14px; box-shadow: var(--fp-shadow); color: var(--fp-ink); background: var(--fp-surface); }
.ui-dialog .ui-dialog-titlebar { border-radius: 14px 14px 0 0; color: var(--fp-ink); background: var(--fp-paper); border-color: var(--fp-line); min-height: 52px; }
.ui-dialog .ui-dialog-content, .ui-dialog .ui-dialog-buttonpane { background: var(--fp-surface); color: var(--fp-ink); border-color: var(--fp-line); }
.ui-widget-overlay { background: #1b1032; opacity: .45; }
.popupmenu, .popover, .popover-body { background: var(--fp-surface); color: var(--fp-ink); border-color: var(--fp-line); border-radius: 10px; }
.popupmenu .listing li a { color: var(--fp-ink); }
.popupmenu .listing li a:hover { background: var(--fp-selected); }
#messagestack { border-radius: 9px; box-shadow: var(--fp-shadow); }
#messagestack div { border-radius: 7px; padding: 13px 18px; font-size: 14px; }
.task-mail.action-compose #compose-content { background: var(--fp-surface); }
.task-mail.action-compose #composeheaders { padding: 20px 24px; }
.task-mail.action-compose #composeheaders .form-control { border-radius: 6px; }
.task-mail.action-compose #compose-subject { font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.task-mail.action-compose #composebody { font-size: 16px; line-height: 1.65; padding: 24px; }
.task-mail.action-compose #layout-content > .footer { padding: 15px 24px; border-color: var(--fp-line); background: var(--fp-surface); }
.mce-tinymce, .tox-tinymce { border-color: var(--fp-line) !important; border-radius: 0 !important; }
.ficplay-lab-note { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.5; color: #6e597f; margin: 0 0 22px; }
.ficplay-lab-note > span { width: 6px; height: 6px; border-radius: 50%; background: #9165b8; flex-shrink: 0; }
.ficplay-lab-strip { position: fixed; inset: 0 0 auto; height: 28px; z-index: 101; display: flex; align-items: center; justify-content: center; gap: 14px; background: #eee7fa; color: #5b436e; border-bottom: 1px solid #d8cce7; font-size: 11px; }
body:has(> .ficplay-lab-strip) #layout { margin-top: 28px; height: calc(100dvh - 28px); }
@media (max-width: 480px) { .ficplay-lab-strip { gap: 8px; font-size: 10px; } .ficplay-lab-strip span { max-width: 178px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* The sign-in cover is the memorable element; the mail workspace stays quiet. */
.task-login #layout { display: block; padding: 0; height: 100dvh; overflow: auto; }
.task-login #layout-content.ficplay-login {
  display: grid;
  grid-template-columns: 48% 52%;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}
.ficplay-cover { background: #20143c; color: #fff; position: relative; padding: 48px 56px; display: flex; flex-direction: column; overflow: hidden; }
.ficplay-cover-brand { display: flex; align-items: center; gap: 10px; z-index: 1; }
.ficplay-cover-brand img { object-fit: contain; }
.ficplay-cover-brand > span { border-left: 1px solid #77638f; padding: 0 0 0 17px; margin-left: 10px; font-size: 20px; color: #dfcfee; }
.ficplay-cover-art { position: relative; margin: auto 0; width: 100%; height: 300px; min-height: 210px; }
.ficplay-book-leaf { display: block; position: absolute; bottom: 18px; width: 33%; max-width: 142px; height: 170px; border-radius: 9px 80px 3px 10px; }
.leaf-left { left: 15%; background: linear-gradient(145deg, #7f44ea, #4b25ac); transform: skewY(13deg) rotate(-5deg); z-index: 2; }
.leaf-inner { left: 20%; bottom: 42px; height: 188px; background: linear-gradient(130deg, #c193ff, #8650df); transform: skewY(24deg) rotate(-5deg); z-index: 1; }
.leaf-right { left: 50%; bottom: 28px; height: 160px; width: 31%; border-radius: 70px 8px 10px 0; background: linear-gradient(135deg, #e53f9b, #ff938f); transform: skewY(-25deg) rotate(6deg); z-index: 2; }
.ficplay-star { position: absolute; left: 57%; top: 15px; width: 64px; height: 64px; background: #ff9a9d; clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%); }
.ficplay-cover-orbit { position: absolute; inset: -16px -70px -20px; border: 1px solid #55366d; border-radius: 50%; transform: rotate(-25deg); opacity: .6; }
.ficplay-cover-rule { display: block; width: 38px; height: 3px; background: #ee8ca9; margin-bottom: 28px; }
.ficplay-cover-copy { z-index: 1; margin: 20px 0 30px; }
.ficplay-cover-copy h2 { font-size: clamp(32px, 3.3vw, 50px); font-weight: 650; line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 24px; }
.ficplay-cover-copy p { font-size: 15px; line-height: 1.8; color: #cbb9dd; margin: 0; }
.ficplay-cover-footer { color: #b8a3ce; font-size: 11px; margin: 28px 0 0; }
.ficplay-access { position: relative; display: grid; grid-template-rows: minmax(min-content, 1fr) auto; justify-items: center; align-items: center; background: #faf9fd; color: #1b1825; min-height: min-content; height: auto; padding: 64px 64px 32px; }
.ficplay-access-content { width: 100%; max-width: 368px; min-width: 0; }
.ficplay-access-symbol { display: block; width: 54px; height: 54px; margin-bottom: 30px; }
.ficplay-access-symbol img { border-radius: 15px; }
.ficplay-access h2 { font-size: clamp(30px, 2.8vw, 39px); line-height: 1.15; font-weight: 650; letter-spacing: -1.4px; margin: 0 0 16px; color: #21182e; }
.ficplay-access-intro { color: #6b6277; font-size: 14px; line-height: 1.6; margin: 0 0 26px; }
.ficplay-secure-access { padding-top: 8px; }
.ficplay-secure-access p { font-size: 14px; line-height: 1.65; color: var(--fp-muted); margin: 0 0 22px; }
.ficplay-secure-access .ficplay-secure-signin { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; color: #fff; text-decoration: none; background: #7440c0; border: 1px solid #7440c0; border-radius: 8px; font-weight: 600; }
.ficplay-secure-access .ficplay-secure-signin:hover { background: #6534ad; border-color: #6534ad; }
.ficplay-secure-access .ficplay-secure-signin:focus-visible { outline: 3px solid #c7a6f3; outline-offset: 3px; }
.ficplay-secure-access > span { display: block; text-align: center; font-size: 12px; color: var(--fp-muted); margin-top: 16px; }
.task-login #login-form { width: 100%; margin: 0; text-align: left; }
.task-login #login-form table, .task-login #login-form tbody, .task-login #login-form tr { display: block; width: 100%; }
.task-login #login-form td { display: block; width: 100%; padding: 0; }
.task-login #login-form td.title { padding-bottom: 8px; }
.task-login #login-form label { color: #40354e; font-size: 12px; font-weight: 600; margin: 0; }
.task-login #login-form td.input { padding-bottom: 20px; }
.task-login #login-form .form-control { height: 48px; background: #fff; color: #21182e; border: 1px solid #c9c0d5; border-radius: 8px; box-shadow: none; font-size: 15px; padding: 11px 14px; }
.task-login #login-form .form-control:focus { outline: none; border-color: #7440c0; box-shadow: 0 0 0 3px rgb(145 74 246 / 12%); }
.task-login #login-form .form-control::placeholder { color: #796d84; opacity: 1; }
.task-login #login-form .button, .task-login #login-form button[type="submit"], .task-login #login-form input[type="submit"] { width: 100%; min-height: 49px; margin-top: 8px; border-radius: 8px; font-size: 14px; background: #7440c0; border: 1px solid #7440c0; color: #fff; font-weight: 600; }
.task-login #login-form button[type="submit"]:hover { background: #6534ad; }
.ficplay-password-field { position: relative; }
.ficplay-password-field input.form-control { padding-right: 76px !important; }
.ficplay-password-toggle { position: absolute; z-index: 5; right: 7px; top: 3px; border: 0; border-radius: 5px; background: #fff; color: #69478f; min-height: 44px; min-width: 64px; font-size: 11px; font-weight: 600; cursor: pointer; }
.ficplay-password-toggle:hover { background: #f1ebfa; }
.task-login #login-footer { padding: 0; margin: 0; color: #6b6277; }
.ficplay-access-help { font-size: 11px; color: #756a80; line-height: 1.8; margin: 28px 0 0; }
.ficplay-access-footer { position: static; align-self: end; width: 100%; margin-top: 40px; display: flex; gap: 20px; justify-content: space-between; color: #867a90; font-size: 10px; }
.ficplay-mobile-brand { display: none; }
.ficplay-cover, .ficplay-access { text-align: left; }
body.task-login #layout-content.ficplay-login #login-form {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.task-login #layout-content.ficplay-login #login-form .form-group { margin: 0; }
body.task-login #layout-content.ficplay-login #login-form td.title { display: block !important; }
body.task-login #layout-content.ficplay-login #login-form td.input { display: block; width: 100%; }
body.task-login #layout-content.ficplay-login #login-form .input-group-prepend { display: none; }
body.task-login #layout-content.ficplay-login #login-form input.form-control { width: 100%; min-width: 0; border-radius: 8px; }
body.task-login #layout-content.ficplay-login #login-form .formbuttons { margin: 4px 0 0; }
body.task-login #layout-content.ficplay-login #rcmloginsubmit { text-transform: none !important; }
.ficplay-cover-copy h2 { text-align: left; }
.task-login #messagestack { max-width: 420px; left: auto; right: 36px; }
.task-login .footer { background: transparent; }
html.dark-mode .ficplay-access { background: #1b1825; }
html.dark-mode .ficplay-access h2 { color: #f3edf9; }
html.dark-mode .ficplay-access-intro, html.dark-mode .ficplay-access-help, html.dark-mode .ficplay-access-footer, html.dark-mode .ficplay-lab-note { color: #c1b3cf; }
html.dark-mode .task-login #login-form label { color: #dfd1ed; }
html.dark-mode .task-login #login-form .form-control { background: #292234; color: #f3edf9; border-color: #756080; }
html.dark-mode .ficplay-password-toggle { background: #292234; color: #d6b5ff; }

@media (min-width: 481px) {
  #layout-menu { width: 96px; min-width: 96px; flex: 0 0 96px; }
  #layout-menu > .popover-header { display: none; }
  #layout-list { min-width: 300px; }
}
@media (min-width: 769px) {
  #layout-sidebar { width: 230px; min-width: 230px; flex: 0 0 230px; }
}
@media (min-width: 1201px) {
  body.task-mail:not(.action-compose) #layout-list { width: 360px; flex: 0 0 360px; }
  #message-header .header { background: transparent; }
}
@media (max-width: 1200px) and (min-width: 769px) {
  #layout-sidebar { width: 210px; min-width: 210px; flex: 0 0 210px; }
  .ficplay-inbox-name .ficplay-brand-wordmark { width: 102px; height: 34px; }
  .ficplay-inbox-name .ficplay-brand-product { font-size: 16px; }
  .ficplay-cover { padding: 36px; }
  .ficplay-access { padding: 44px 42px 28px; }
  .ficplay-cover-art { height: 250px; }
  .ficplay-cover-copy h2 { font-size: 36px; letter-spacing: -1.2px; }
}
@media (max-width: 480px) {
  .ficplay-symbol-link { display: none; }
  #layout #layout-menu.popover {
    display: flex;
    position: fixed;
    width: min(324px, calc(100vw - 24px));
    min-width: 0;
    max-width: none;
    top: 12px;
    /* Elastic pins this popover with left:0!important. Keep its safe inset. */
    left: 12px !important;
    right: auto;
    bottom: 12px;
    height: auto;
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 0;
    border: 1px solid #604674;
    border-radius: 20px;
    background: #20143c;
    box-shadow: 0 18px 60px rgb(18 9 32 / 40%);
  }
  body:has(> .ficplay-lab-strip) #layout #layout-menu.popover { top: 40px; max-height: calc(100dvh - 52px); }
  #layout #layout-menu .popover-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; min-height: 88px; padding: 18px 16px; border-bottom: 1px solid #4e355f; color: #fff; background: transparent; }
  #layout #layout-menu .popover-header .ficplay-menu-name { min-width: 0; padding: 0; }
  #layout #layout-menu .popover-header .ficplay-brand-lockup { gap: 9px; }
  #layout #layout-menu .popover-header .ficplay-brand-symbol { width: 34px; height: 34px; border-radius: 11px; }
  #layout #layout-menu .popover-header .ficplay-brand-wordmark { width: 101px; height: 33px; }
  #layout #layout-menu .popover-header .ficplay-brand-product { padding-left: 9px; font-size: 16px; }
  #layout #layout-menu .popover-header a { display: flex; flex: 0 0 40px; justify-content: center; align-items: center; width: 40px; height: 44px; padding: 0; margin: 0; border-radius: 10px; color: #e6d7f4; background: #352248; }
  #layout #layout-menu .popover-header a::before { margin: 0; }
  #layout-menu #taskmenu { padding: 12px 0; }
  #layout-menu #taskmenu .action-buttons { padding: 0 0 8px; }
  #layout-menu #taskmenu a { flex-direction: row; justify-content: flex-start; gap: 15px; width: calc(100% - 24px); min-height: 52px; margin: 3px 12px; padding: 12px 16px; border-radius: 11px; }
  /* Remove Elastic's forced white separators from the branded touch menu. */
  #layout-menu #taskmenu a { border-bottom: 0 !important; }
  #layout-menu #taskmenu a::before { width: 24px; height: 24px; font-size: 20px; line-height: 24px; flex: 0 0 24px; }
  #layout-menu #taskmenu a .inner { font-size: 15px; line-height: 1.3; }
  #layout-menu #taskmenu .special-buttons { padding-top: 18px; }
  #menu-overlay { background: #110a20; opacity: .55; }
}
@media (max-width: 768px) {
  #layout-sidebar > .header { min-height: 68px; height: 68px; }
  #layout #layout-sidebar > .header { min-height: 68px; height: 68px; }
  #layout-list > .header, #layout-content > .header { min-height: 60px; }
  #layout-list > .header { padding-left: 10px; padding-right: 8px; }
  #layout-list .header-title { font-size: 18px; }
  #mailsearchform { margin: 0 12px 9px; }
  .messagelist td.subject { padding-top: 16px; padding-bottom: 16px; }
  #message-header { padding: 22px 20px; }
  #message-header .subject { font-size: 24px; margin-bottom: 22px; overflow-wrap: anywhere; }
  #message-content { padding: 20px; }
  .task-mail.action-compose #composeheaders { padding: 16px; }
  .task-mail.action-compose #composebody { padding: 16px; }
  .task-mail.action-compose #compose-subject { font-size: 18px; }
  .task-mail.action-compose #layout-content > .footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .task-login #layout-content.ficplay-login { display: block; }
  .ficplay-cover { display: none; }
  .ficplay-access { min-height: 100dvh; padding: 110px 30px 24px; }
  .ficplay-mobile-brand { display: flex; position: absolute; top: 28px; left: 30px; gap: 14px; align-items: center; }
  .ficplay-mobile-brand img { object-fit: contain; height: 38px; width: 120px; }
  .ficplay-mobile-brand > span { border-left: 1px solid #cfc1dd; padding-left: 14px; color: #6c5885; font-size: 15px; }
  html.dark-mode .ficplay-mobile-brand img { content: url("../images/wordmark-white-v1.webp"); }
  html.dark-mode .ficplay-mobile-brand > span { color: #d8c9e8; border-color: #67517c; }
  .ficplay-access h2 { font-size: 34px; }
  .ficplay-access-symbol { margin-bottom: 26px; }
  .ficplay-access-footer { flex-wrap: wrap; gap: 7px; }
  .task-login #messagestack { left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 360px) {
  .ficplay-access { padding-left: 22px; padding-right: 22px; }
  .ficplay-mobile-brand { left: 22px; }
  .ficplay-access h2 { font-size: 30px; }
  #layout #layout-menu .popover-header { padding-left: 12px; padding-right: 12px; gap: 4px; }
  #layout #layout-menu .popover-header .ficplay-brand-wordmark { width: 88px; height: 29px; }
  #layout #layout-menu .popover-header .ficplay-brand-lockup { gap: 7px; }
}
@media (max-height: 720px) and (min-width: 769px) {
  .ficplay-symbol-link { height: 90px; flex-basis: 90px; }
  #layout-menu #taskmenu a { min-height: 54px; padding-top: 7px; padding-bottom: 7px; gap: 5px; }
  #layout-menu #taskmenu .special-buttons { padding-top: 12px; }
  .ficplay-cover { padding-top: 30px; padding-bottom: 30px; }
  .ficplay-cover-art { height: 200px; min-height: 160px; transform: scale(.8); transform-origin: center; }
  .ficplay-cover-copy { margin: 6px 0 12px; }
  .ficplay-cover-copy h2 { font-size: 35px; margin-bottom: 16px; }
  .ficplay-cover-copy p { font-size: 13px; }
  .ficplay-cover-footer { margin-top: 16px; }
  .ficplay-access { padding-top: 30px; padding-bottom: 24px; }
  .ficplay-access-symbol { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
@media print {
  #layout-menu, #layout-sidebar, #layout-list, .ficplay-lab-note { display: none !important; }
  #message-content, #message-header { background: #fff !important; color: #000 !important; }
}
