/* A mail being written (emails/_composer, docs/planning/email-ux.md, ruling
   8): one of the house's forms, so nearly all of it is someone else's. The
   envelope is the to-do form's field grid, its Subject the row's length as
   a dialog's Title (todo-form.css), the words are long writing, their T and
   paperclip in view while they run (lexxy.css, .composer--long), and the
   foot is the to-do form's row of circles (buttons.css). What is the mail's
   own is here. */
@layer components {
  /* The line of words under To — Cc, Bcc, a reply's Subject — goes with
     its last word, as each opens its row (reveal_controller#showRow). */
  .mail-composer__envelope:not(:has(.mail-composer__more button:not([hidden]))) > .mail-composer__more {
    display: none;
  }

  /* The foot: ⌘↩ stands beside the send it names rather than far left,
     where "If no reply by" stands (the canvas's foot, ruling 8). Set, that
     is a sentence, and where the row has no room for it — a phone — it
     takes a line of its own above the buttons rather than a sliver beside
     them. */
  .mail-composer .actions {
    flex-wrap: wrap-reverse;

    kbd {
      margin-inline-end: 0;
    }
  }

  .mail-composer__follow-up {
    margin-inline-end: auto;
  }
}
