.list-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.list-title { font-size: 15px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-head .btn { margin-left: auto; }

.messages { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; outline: none; }

.msg {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 6px;
  padding: 9px 14px 10px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.msg:hover { background: var(--bg-alt); }
.msg.selected { background: var(--bg-sel); }
.msg-dot { grid-row: 1; align-self: center; width: 6px; height: 6px; border-radius: 50%; }
.msg.unread .msg-dot { background: var(--fg); }
.msg-from { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.unread .msg-from, .msg.unread .msg-subject { font-weight: 600; }
.msg-date { grid-column: 3; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.msg-subject { grid-column: 2 / 4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-preview { grid-column: 2 / 4; color: var(--fg-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-att { font-size: 11px; color: var(--fg-muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 4px; margin-left: 6px; }

.list-empty { padding: 24px 14px; color: var(--fg-muted); }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-top: 1px solid var(--line); font-size: 12px; }
