/* Compact correspondence list, with Norango orange for unread and selected states. */
.norango-mail .mail-message-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  column-gap: 10px;
  row-gap: 1px;
  min-height: 90px;
  padding: 11px 12px 11px 11px;
  border-bottom: 1px solid #e5e4e0;
  border-left: 3px solid transparent;
  background: #fafaf9;
  color: #59616a;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.norango-mail .mail-message-row > div { grid-column: 2; min-width: 0; }
.norango-mail .mail-message-avatar {
  grid-column: 1; grid-row: 1 / span 4; align-self: start; margin-top: 3px;
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: #ffe0c2;
  color: #8f3b0b; font-size: 13px; font-weight: 650; letter-spacing: .02em;
}
.norango-mail .mail-message-avatar[data-tone="1"] { background: #f2e4c2; color: #765a18; }
.norango-mail .mail-message-avatar[data-tone="2"] { background: #dcece7; color: #275c50; }
.norango-mail .mail-message-avatar[data-tone="3"] { background: #e4e9ef; color: #3d5268; }
.norango-mail .mail-message-row:hover { background: #fff5eb; }
.norango-mail .mail-message-row.bg-white { background: #fff; border-left-color: #f45113; }
.norango-mail .mail-message-row.bg-white:hover { background: #fff7ef; }
.norango-mail .mail-message-heading { margin: 0; gap: 6px; min-height: 24px; }
.norango-mail .mail-message-heading > .lucide-mail,
.norango-mail .mail-message-heading > .lucide-mail-open,
.norango-mail .mail-message-heading > .lucide-send { display: none; }
.norango-mail .mail-message-sender { font-size: 14px; line-height: 1.4; color: #344352; font-weight: 450; }
.norango-mail .mail-message-row.bg-white .mail-message-sender { color: #142b3f; font-weight: 750; }
.norango-mail .mail-message-subject { padding-right: 64px; font-size: 14px; line-height: 1.45; color: #52606e; font-weight: 450; }
.norango-mail .mail-message-row.bg-white .mail-message-subject { color: #b6400b; font-weight: 700; }
.norango-mail .mail-message-time { position: absolute; right: 12px; top: 37px; font-size: 12px; line-height: 20px; color: #6b7076; }
.norango-mail .mail-message-row.bg-white .mail-message-time { color: #b6400b; font-weight: 700; }
.norango-mail .mail-message-preview { font-size: 12px; color: #6f747a; line-height: 1.5; margin-top: 0; }
.norango-mail .mail-message-row.border-l-4,
.norango-mail .mail-message-row.border-l-4:hover { background: #fff0df; border-left-color: #f45113; box-shadow: inset 0 0 0 1px #f4c8a4; }
.norango-mail button[title="Move to Trash"],
.norango-mail button[title="Delete permanently"] {
  color: #b42318; background: #fff3f1; border: 1px solid #efc2bd;
  border-radius: 6px; min-width: 28px; min-height: 28px; flex-shrink: 0;
}
.norango-mail .mail-message-heading button[title="Move to Trash"],
.norango-mail .mail-message-heading button[title="Delete permanently"] { order: 5; width: 25px; height: 25px; min-width: 25px; min-height: 25px; padding: 4px; }
.norango-mail .mail-message-heading button svg { width: 13px; height: 13px; }
.norango-mail button[title="Move to Trash"]:hover:not(:disabled),
.norango-mail button[title="Delete permanently"]:hover:not(:disabled) { color: #fff; background: #c52d25; border-color: #b42318; }
.norango-mail button[title="Move to Trash"]:focus-visible,
.norango-mail button[title="Delete permanently"]:focus-visible { outline: 2px solid #b42318; outline-offset: 2px; }
.norango-mail input[type="checkbox"] { accent-color: #c52d25; width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .norango-mail .mail-message-row { transition: none; } }

/* Mail has independent scrolling panes; do not reserve the phone dock below them. */
#portal-main > div:has(> .norango-mail) { padding-bottom: 0 !important; overflow: hidden; }
.norango-mail { min-height: 0; flex: 1 1 0%; }
