/* B's T222 hand-off: an opened message reads like a mail app. A formatted message's frame can't take its content's
   height (its sandbox has no allow-same-origin and no allow-scripts, and keeps it so), so instead the reader doesn't
   scroll around it: the message's header stays, the frame fills exactly what is left, and on a phone the bottom bar
   sits under it, not over it. The frame's own scroll is the one scroll. For E to restyle and fold into app.css. */
.reader > .inner.formatted { height: 100%; min-height: 0; box-sizing: border-box; }
.reader > .inner.formatted > .mail-frame { flex: 1 1 0; min-height: 240px; }
@media (max-width: 899px) {
  .reader > .inner.formatted { padding-bottom: 0; }
  .reader > .inner.formatted > .mail-frame { min-height: 200px; }
}
/* the subject beside ‹ Back, on a phone only */
.reader .back .back-subject { display: none; }
@media (max-width: 899px) {
  .reader .actions .back .back-subject { display: block; flex: 1 1 auto; min-width: 0; margin: 0 64px 0 12px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-weight: 700; color: var(--fg); text-align: left; }
  /* the bottom bar at the bottom for a short message too (it sat under the text, mid-screen) */
  .reader > .inner { min-height: 100%; box-sizing: border-box; padding-bottom: 0; }
  /* a formatted message's attachments: one row that scrolls sideways, so they never squeeze the message (F, T222) */
  .reader > .inner.formatted > .attachments { flex: none; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-top: calc(-1 * var(--s2)); }   /* flex: none: never shrunk away on a short phone; the reader scrolls instead (F) */
  .reader > .inner.formatted > .attachments .chip { flex: none; }
}
