/* The Message button and the family's thread with the tutor (family-messages.js), on the Book's cover and a mission's opening. */
.book-message-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.message-dialog { width: min(620px, calc(100% - 24px)); max-height: 88svh; box-sizing: border-box; padding: 16px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: var(--paper, #F6F1E7); color: var(--ink); overflow: auto; }
.message-dialog::backdrop { background: rgba(20, 49, 44, .35); }
.message-dialog-head { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.book-messages h3 { margin: 0 0 6px; }
.book-thread { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.book-message { padding: 8px 12px; border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.book-message-tutor { border-left: 3px solid var(--teal, var(--leaf)); }
.book-message p { margin: 0; }
.book-message-text { white-space: pre-line; font: 15px/1.5 var(--sans); color: var(--ink); }
.book-message-form { display: grid; gap: 8px; }
.book-message-form p { margin: 0; }
.book-message-form textarea { width: 100%; box-sizing: border-box; min-height: 72px; padding: 10px 12px; font: 16px/1.5 var(--sans); border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: #fff; resize: vertical; }
.book-message-form .tool { min-height: 44px; }
