/*
 * Promtek Mail — restrained message-list polish, badge position revision v4.
 *
 * The three Promtek filter chips already drive Roundcube's native
 * #searchfilter. Hide only Elastic's duplicate one-click unread shortcut;
 * the adjacent advanced-search control and the native filter itself remain.
 */

html:not(.iframe) body.task-mail #layout-list .searchbar > a.unread {
  display: none !important;
}

/*
 * Use a quiet, adaptive unread badge. One digit is circular; wider counts
 * grow naturally into a pill. No vertical offset keeps the badge centered
 * between the row borders; the three-pixel horizontal translation remains.
 */
html:not(.iframe) body.task-mail {
  --promtek-unread-badge-bg: #ded8d1;
  --promtek-unread-badge-border: #d1c9c0;
  --promtek-unread-badge-text: #514a43;
}

html.dark-mode:not(.iframe) body.task-mail {
  --promtek-unread-badge-bg: #3a342e;
  --promtek-unread-badge-border: #4a423a;
  --promtek-unread-badge-text: #e8e1d9;
}

html:not(.iframe) body.task-mail .folderlist li.mailbox .unreadcount {
  box-sizing: border-box !important;
  top: 0 !important;
  transform: translateX(-3px) !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  color: var(--promtek-unread-badge-text) !important;
  background-color: var(--promtek-unread-badge-bg) !important;
  border: 1px solid var(--promtek-unread-badge-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  line-height: 18px !important;
  text-align: center !important;
}
