/* Mail's rows (connected_mailboxes/_threads; docs/planning/email-ux.md,
   rulings 12 and 13). */
@layer components {
  /* The row J and K stand on says so by its mark alone, ringed as a focused
     control is: a ring round the whole row framed it (owner, 2026-11-03). */
  .mail-row .row:focus-visible {
    outline: none;

    .avatar {
      outline: var(--focus-ring);
      outline-offset: var(--focus-offset);
    }
  }

  /* The preview, the eye at the row's end, brought by the pointer or by the
     row's focus, as the row's box is (selections.css). Opacity, not
     visibility: a hidden control could not take the focus Tab hands it. A
     finger has no preview at all (`hide-on-touch`). */
  .mail-row__preview {
    opacity: 0;

    .mail-row:is(:hover, :focus-within) > & {
      opacity: 1;
    }
  }
}
