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

:root {
  color-scheme: light;
  --am-bg: #f7f7f8;
  --am-surface: #ffffff;
  --am-surface-2: #f1f1f3;
  --am-text: #17171b;
  --am-muted: #66656d;
  --am-faint: #91909a;
  --am-border: #e6e5e9;
  --am-hover: #f3f3f5;
  --am-selected: #eeeeef;
  --am-accent: #6001d2;
  --am-accent-rgb: 96, 1, 210;
  --am-accent-soft: #f1e8ff;
  --am-row-height: 48px;
  --am-radius: 16px;
  --am-shadow: 0 1px 3px rgba(20, 20, 28, .05);
  --am-font: Arial, Helvetica, sans-serif;
}

html.dark-mode {
  color-scheme: dark;
  --am-bg: #111115;
  --am-surface: #19191f;
  --am-surface-2: #222229;
  --am-text: #f6f5f8;
  --am-muted: #b2afb9;
  --am-faint: #8a8791;
  --am-border: #303039;
  --am-hover: #222229;
  --am-selected: #2a2930;
  --am-accent-soft: #2a1747;
  --am-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

html[data-arpymail-accent="blue"] { --am-accent:#0f69ff; --am-accent-rgb:15,105,255; --am-accent-soft:#e8f0ff; }
html[data-arpymail-accent="teal"] { --am-accent:#008f95; --am-accent-rgb:0,143,149; --am-accent-soft:#e4f7f7; }
html[data-arpymail-accent="green"] { --am-accent:#0a8754; --am-accent-rgb:10,135,84; --am-accent-soft:#e8f6ef; }
html[data-arpymail-accent="orange"] { --am-accent:#d85b00; --am-accent-rgb:216,91,0; --am-accent-soft:#fff0e5; }
html[data-arpymail-accent="rose"] { --am-accent:#c51d68; --am-accent-rgb:197,29,104; --am-accent-soft:#fdeaf2; }
html[data-arpymail-accent="graphite"] { --am-accent:#4a5568; --am-accent-rgb:74,85,104; --am-accent-soft:#edf0f4; }
html.dark-mode[data-arpymail-accent="blue"] { --am-accent-soft:#142746; }
html.dark-mode[data-arpymail-accent="teal"] { --am-accent-soft:#123235; }
html.dark-mode[data-arpymail-accent="green"] { --am-accent-soft:#143126; }
html.dark-mode[data-arpymail-accent="orange"] { --am-accent-soft:#382415; }
html.dark-mode[data-arpymail-accent="rose"] { --am-accent-soft:#3b1b29; }
html.dark-mode[data-arpymail-accent="graphite"] { --am-accent-soft:#292d34; }

html[data-arpymail-density="compact"] { --am-row-height: 40px; }
html[data-arpymail-density="comfortable"] { --am-row-height: 48px; }
html[data-arpymail-density="relaxed"] { --am-row-height: 56px; }

html, body {
  font-family: var(--am-font) !important;
  background: var(--am-bg) !important;
  color: var(--am-text) !important;
}

a { color: var(--am-accent); }
#layout, #layout-sidebar, #layout-list, #layout-content { border-color: var(--am-border) !important; }

/* ------------------------------------------------------------
   Global desktop chrome. Core Roundcube elements are not moved.
   ------------------------------------------------------------ */
#arpymail-chrome {
  display: none;
}

@media screen and (min-width: 769px) {
  #arpymail-chrome {
    position: fixed;
    z-index: 1200;
    inset: 0 0 auto 0;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 0 26px;
    background: var(--am-bg);
    color: var(--am-text);
  }

  .arpymail-brand {
    width: 126px;
    flex: 0 0 126px;
    white-space: nowrap;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.1px;
    user-select: none;
  }
  .arpymail-brand span,
  .arpymail-brand b { color: var(--am-accent); }
  .arpymail-brand b { font-style: italic; padding: 0 1px; }
  .arpymail-brand strong { color: var(--am-text); font-weight: 700; }
  .arpymail-chrome-spacer { flex: 1; min-width: 20px; }

  .arpymail-chrome-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--am-border);
    border-radius: 50%;
    background: var(--am-surface);
    color: var(--am-text);
    font-weight: 700;
    cursor: pointer;
  }
  .arpymail-chrome-icon:hover { color: var(--am-accent); border-color: rgba(var(--am-accent-rgb), .35); }

  .arpymail-account-wrap { position: relative; }
  .arpymail-account-button {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 22px;
    padding: 3px 3px 3px 10px;
    background: transparent;
    color: var(--am-muted);
    cursor: pointer;
  }
  .arpymail-account-button:hover { background: var(--am-hover); }
  .arpymail-account-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .arpymail-user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--am-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }
  .arpymail-user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .arpymail-account-menu {
    position: absolute;
    top: 48px;
    right: 0;
    width: 260px;
    padding: 8px;
    border: 1px solid var(--am-border);
    border-radius: 16px;
    background: var(--am-surface);
    box-shadow: 0 12px 34px rgba(20, 20, 28, .16);
  }
  .arpymail-account-menu[hidden] { display: none !important; }
  .arpymail-account-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 8px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--am-border);
  }
  .arpymail-account-card > div { min-width: 0; }
  .arpymail-account-card strong,
  .arpymail-account-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arpymail-account-card span { color: var(--am-muted); font-size: 11px; margin-top: 2px; }
  .arpymail-account-menu > button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--am-text);
    text-align: left;
    cursor: pointer;
  }
  .arpymail-account-menu > button:hover { background: var(--am-hover); }
  .arpymail-account-menu > button.logout { color: #c62828; }

  body #layout {
    top: 64px !important;
    height: calc(100% - 64px) !important;
    background: var(--am-bg) !important;
  }

  /* Search stays in Roundcube's own DOM; only its visual position changes. */
  body.task-mail:not(.action-show):not(.action-compose) #mailsearchform {
    position: fixed !important;
    z-index: 1202 !important;
    top: 13px !important;
    left: 154px !important;
    width: min(650px, 45vw) !important;
    height: 40px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 22px !important;
    background: #ececee !important;
    box-shadow: none !important;
  }
  html.dark-mode body.task-mail:not(.action-show):not(.action-compose) #mailsearchform { background: #25252c !important; }
  body.task-mail:not(.action-show):not(.action-compose) #mailsearchform:focus-within {
    background: var(--am-surface) !important;
    border-color: rgba(var(--am-accent-rgb), .3) !important;
    box-shadow: 0 0 0 2px rgba(var(--am-accent-rgb), .07) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #mailsearchform input {
    height: 38px !important;
    background: transparent !important;
    color: var(--am-text) !important;
    font-size: 13px !important;
  }

  /* Yahoo-style desktop inbox: use folders as the main left rail. */
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-menu {
    display: none !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-sidebar {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    position: relative !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-sidebar > .header,
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-sidebar > .footer {
    display: none !important;
  }

  #arpymail-compose-shortcut {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 6px auto 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--am-accent);
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
  }
  #arpymail-compose-shortcut:hover { filter: brightness(.96); }

  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #folderlist-content {
    position: absolute !important;
    top: 70px !important;
    right: 0 !important;
    bottom: 110px !important;
    left: 0 !important;
    padding: 0 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist li {
    width: 100% !important;
    margin: 0 !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist a {
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 3px !important;
    border-radius: 10px !important;
    color: var(--am-muted) !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist li.selected > a,
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist a:hover {
    background: var(--am-selected) !important;
    color: var(--am-text) !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist a:before {
    margin: 0 !important;
    font-size: 20px !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #mailboxlist .unreadcount {
    position: absolute;
    transform: translate(22px, -15px);
    min-width: 17px;
    padding: 1px 4px;
    border-radius: 9px;
    background: var(--am-accent);
    color: #fff;
    font-size: 9px;
    line-height: 14px;
  }

  #arpymail-sidebar-shortcuts {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 8px;
    display: grid;
    gap: 2px;
  }
  .arpymail-side-shortcut {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 10px;
    color: var(--am-muted) !important;
    font-size: 9px;
    text-decoration: none !important;
  }
  .arpymail-side-shortcut .icon { font-size: 17px; line-height: 1; }
  .arpymail-side-shortcut:hover { background: var(--am-hover); color: var(--am-text) !important; }

  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-list {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 8px 14px 10px 7px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: var(--am-radius) !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  html[data-arpymail-mail-layout="yahoo"] body.task-mail:not(.action-show):not(.action-compose) #layout-content {
    display: none !important;
  }

  /* Inbox toolbar */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header {
    height: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .header-title { display: none !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .toolbar.menu {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header a,
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .button {
    border-radius: 9px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist-header .refresh { margin-left: auto !important; }

  /* Message rows: avatar | sender | subject · cached preview | time */
  body.task-mail:not(.action-show):not(.action-compose) #messagelist {
    background: var(--am-surface) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist thead { display: none !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr {
    height: var(--am-row-height) !important;
    min-height: var(--am-row-height) !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr:hover { background: var(--am-hover) !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tbody tr.selected { background: var(--am-selected) !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td { border: 0 !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject {
    min-width: 0 !important;
    height: var(--am-row-height) !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 0 12px 0 5px !important;
    overflow: hidden !important;
  }
  .arpymail-sender-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--am-avatar, var(--am-accent));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.fromto {
    flex: 0 0 clamp(145px, 17vw, 245px) !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--am-text) !important;
    font-size: 12px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.subject {
    order: 3 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--am-text) !important;
    font-size: 12px !important;
  }
  .arpymail-preview-snippet { color: var(--am-muted) !important; font-weight: 400 !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.date {
    order: 4 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 72px !important;
    margin-left: auto !important;
    text-align: right !important;
    white-space: nowrap !important;
    color: var(--am-muted) !important;
    font-size: 11px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.subject > span.status {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 -5px 0 -3px !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.unread td.subject > span.fromto,
  body.task-mail:not(.action-show):not(.action-compose) #messagelist tr.unread td.subject > span.subject { font-weight: 700 !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.threads { width: 28px !important; padding-left: 10px !important; }
  body.task-mail:not(.action-show):not(.action-compose) #messagelist td.flags { width: 64px !important; padding-right: 10px !important; }

  /* Pager centered, no first/last clutter. */
  body.task-mail:not(.action-show):not(.action-compose) .pagenav {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-top: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail:not(.action-show):not(.action-compose) .pagenav .firstpage,
  body.task-mail:not(.action-show):not(.action-compose) .pagenav .lastpage,
  body.task-mail:not(.action-show):not(.action-compose) .pagenav input { display: none !important; }
  body.task-mail:not(.action-show):not(.action-compose) .pagenav .pagenav-text {
    min-width: 190px;
    text-align: center;
    color: var(--am-muted) !important;
    font-size: 10px !important;
  }

  /* Native full message view, restyled only. */
  body.task-mail.action-show #layout-menu {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    background: var(--am-bg) !important;
    border: 0 !important;
  }
  body.task-mail.action-show #taskmenu a {
    min-height: 58px !important;
    border-radius: 10px !important;
    color: var(--am-muted) !important;
  }
  body.task-mail.action-show #taskmenu a.selected,
  body.task-mail.action-show #taskmenu a:hover { background: var(--am-selected) !important; color: var(--am-text) !important; }
  body.task-mail.action-show #layout-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 8px 14px 12px 5px !important;
    border: 1px solid var(--am-border) !important;
    border-radius: var(--am-radius) !important;
    background: var(--am-surface) !important;
    box-shadow: var(--am-shadow) !important;
    overflow: hidden !important;
  }
  body.task-mail.action-show #layout-content > .header {
    min-height: 50px !important;
    padding: 0 14px !important;
    border-bottom: 1px solid var(--am-border) !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-show #mailtoolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }
  body.task-mail.action-show #mailtoolbar a { border-radius: 9px !important; }
  body.task-mail.action-show #layout-content .content.frame-content {
    margin: 0 !important;
    padding: 22px 26px 40px !important;
    background: var(--am-surface) !important;
  }
  body.task-mail.action-show #message-header {
    max-width: 1120px;
    margin: 0 auto 24px !important;
  }
  body.task-mail.action-show #message-header h2.subject {
    margin: 0 0 24px !important;
    color: var(--am-text) !important;
    font-size: clamp(22px, 2.2vw, 34px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }
  body.task-mail.action-show #message-header > .header {
    border: 0 !important;
    background: transparent !important;
  }
  body.task-mail.action-show #message-content {
    max-width: 1120px;
    margin: 0 auto !important;
  }
  body.task-mail.action-show #message-content .rightcol { min-width: 0 !important; }
  body.task-mail.action-show #messagebody { color: var(--am-text) !important; }

  #arpymail-message-tabs {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--am-border);
    background: var(--am-bg);
  }
  .arpymail-message-pill {
    height: 30px;
    max-width: 270px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 0 5px 0 10px;
    border: 1px solid var(--am-border);
    border-radius: 16px;
    background: var(--am-surface);
  }
  .arpymail-message-pill.active { border-color: var(--am-accent); box-shadow: inset 0 0 0 1px var(--am-accent); }
  .arpymail-message-pill a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--am-text) !important;
    font-size: 11px;
    text-decoration: none !important;
  }
  .arpymail-message-pill button {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--am-muted);
    cursor: pointer;
  }
  .arpymail-message-pill button:hover { background: var(--am-hover); color: var(--am-text); }

  /* Settings/addressbook/compose retain Elastic mechanics, receive only chrome spacing. */
  body.task-settings #layout,
  body.task-addressbook #layout,
  body.task-mail.action-compose #layout { top: 64px !important; height: calc(100% - 64px) !important; }
}

/* ------------------------------------------------------------
   New-mail in-page toast. Native OS/browser notification remains native.
   ------------------------------------------------------------ */
#arpymail-newmail-toast {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--am-border);
  border-radius: 14px;
  background: var(--am-surface);
  color: var(--am-text);
  box-shadow: 0 14px 34px rgba(20, 20, 28, .18);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#arpymail-newmail-toast.visible { opacity: 1; transform: translateY(0); }
.arpymail-toast-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--am-accent-soft);
  color: var(--am-accent);
}
#arpymail-newmail-toast strong,
#arpymail-newmail-toast span { display: block; }
#arpymail-newmail-toast > div > span { margin-top: 2px; color: var(--am-muted); font-size: 12px; }

/* Markdown button: do not alter its command; only make the generated control visible. */
.markdown-editor-start-button.arpymail-markdown-visible {
  min-width: 34px !important;
  width: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}
.markdown-editor-start-button.arpymail-markdown-visible:after {
  content: "M↓";
  display: inline-block;
  padding: 0 4px;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
}
.markdown-editor-start-button.arpymail-markdown-visible svg { display: none !important; }

/* ------------------------------------------------------------
   Mobile: preserve Elastic's native navigation and interaction model.
   ArpyMail only themes it; desktop structural overrides are disabled.
   ------------------------------------------------------------ */
@media screen and (max-width: 768px) {
  #arpymail-chrome,
  #arpymail-compose-shortcut,
  #arpymail-sidebar-shortcuts,
  #arpymail-message-tabs { display: none !important; }

  body #layout,
  body.task-settings #layout,
  body.task-addressbook #layout,
  body.task-mail.action-compose #layout {
    top: 0 !important;
    height: 100% !important;
  }

  #layout-menu { background: var(--am-surface) !important; }
  #layout-sidebar,
  #layout-list,
  #layout-content {
    background: var(--am-surface) !important;
    color: var(--am-text) !important;
    border-color: var(--am-border) !important;
  }

  body.task-mail #mailsearchform {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: .5rem !important;
    border-radius: 20px !important;
    background: var(--am-surface-2) !important;
  }

  body.task-mail #messagelist tbody tr { min-height: 52px !important; }
  body.task-mail #messagelist td.subject { min-width: 0 !important; }
  body.task-mail #messagelist td.subject .arpymail-sender-avatar { display: none !important; }
  body.task-mail #messagelist td.subject > span.fromto,
  body.task-mail #messagelist td.subject > span.subject,
  body.task-mail #messagelist td.subject > span.date {
    width: auto !important;
    max-width: 100% !important;
  }
  .arpymail-preview-snippet { display: none !important; }

  body.task-mail.action-show #layout-content .content.frame-content { padding: 14px !important; }
  body.task-mail.action-show #message-header h2.subject { font-size: 22px !important; }

  #arpymail-newmail-toast { right: 12px; bottom: 12px; }
}
