/* Mail list and final-review attachment panel: foreground AND surface together. */
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card{
  background:#182636!important;color:#ffffff!important;border-color:#4b6380!important;
}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card.selected,
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card.is-unread{
  background:#223449!important;
}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card :is(.email-title,.email-title a){color:#ffffff!important}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card :is(.email-meta,.email-meta a,.email-meta span,.summary){color:#d5d5d5!important}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card :is(.tag,.priority,.mail-read-status){background:#33465a!important;color:#f2f2f2!important}
html[data-theme="dark"][data-theme] body.org-v4 .mail-confirm-dialog .mail-confirm-attachments{
  background:#223449!important;color:#ffffff!important;border-color:#58708b!important;color-scheme:dark;
}
html[data-theme="dark"][data-theme] body.org-v4 .mail-confirm-dialog .mail-confirm-attachments>strong{color:#ffffff!important}
html[data-theme="dark"][data-theme] body.org-v4 .mail-confirm-dialog .mail-confirm-attachment-list :is(span,.is-empty){
  background:#2b415a!important;color:#ffffff!important;
}
html[data-theme="dark"][data-theme] body.org-v4 .mail-confirm-dialog .mail-confirm-attachment-list :is(b,small){color:#dddddd!important}

/* Strong unread state: distinguish from read cards in dark mode. */
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card.is-unread,
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card.is-unread.selected{
  background:#173b59!important;color:#fff!important;border-color:#77c9ff!important;
  border-inline-start:5px solid #54b9ff!important;box-shadow:inset 0 0 0 1px rgba(119,201,255,.16)!important;
}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card.is-unread .email-title{color:#fff!important;font-weight:950}
html[data-theme="dark"][data-theme] body.org-v4 .mail-message-list .email-card .mail-read-status.is-unread{
  background:#075b8b!important;color:#fff!important;border-color:#58baff!important;
}
