/* Paper text fitting only; ordinary forms, chat and photo captions are excluded. */
body.authed :is(.postit, .warehouse-inline-editor, .private-notepad-paper) textarea,
body.authed #view #home-notices .notice-quote-paper .notice-handwriting,
body.authed #notice-quote-body,
body.authed .postit-fit-target {
  overflow: hidden !important;
  resize: none !important;
  scrollbar-width: none;
  text-overflow: clip;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
body.authed .postit-fit-target::-webkit-scrollbar { display: none; }

/* The pencil row and attribution keep their fixed space. All remaining
   paper height is available to the complete quote, including its last line. */
body.authed #view #home-notices .notice-quote-paper { min-height: 0; }
body.authed #view #home-notices .notice-quote-top { justify-content: flex-end; }
body.authed #view #home-notices .notice-quote-paper .notice-handwriting {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  width: 100%;
  max-width: 100%;
  margin: 3px 0 0;
  padding: 0;
  text-align: left;
}
body.authed #view #home-notices .notice-quote-paper cite {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline-start: auto;
  text-align: right;
  overflow-wrap: anywhere;
}
body.authed #notice-quote-attribution { text-align: right; }
body.authed #notice-quote-body { height: 150px; min-height: 150px; }

body.authed .warehouse-inline-editor textarea { min-height: 0; }
body.authed .private-notepad-paper textarea {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
  background-size: 100% auto;
}
body.authed .postit .pfoot .by {
  text-align: right;
  margin-left: auto;
  align-self: flex-end;
}

body.authed #view #home-notices .notice-quote-paper cite{text-align:right}
