/* Fthyrk Mail: reader styling, scoped to the mail module only. */
#gmailThread.fthyrk-mail-thread { background:#fff; color:#202124; border-color:#e4e7ec; border-radius:12px; padding:20px 24px; }
#gmailThread .gmail-thread-header { border-bottom:1px solid #e8eaed!important; margin-bottom:8px!important; padding-bottom:12px!important; }
#gmailThread .gmail-thread-header h2 { color:#202124!important; font-size:22px!important; font-weight:500!important; line-height:1.4; }
#gmailThread .gmail-thread-header > div:last-child { display:none; }
#gmailThread .gmail-thread-header .btn { background:#f3f6f9; color:#344054; border:1px solid #dce1e7; }
#gmailThread .gmail-thread-actions { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
#gmailThread .gmail-thread-body { background:#fff; color:#202124; border:0; border-bottom:1px solid #e8eaed; border-radius:0; overflow:hidden; }
#gmailThread .gmail-thread-body.gmail-thread-latest { border-color:#e8eaed; box-shadow:none; }
#gmailThread .gmail-thread-message-header { background:#fff; color:#202124; border:0; cursor:pointer; padding:16px 8px; gap:12px; }
#gmailThread .gmail-thread-message-header:hover { background:#f8fafd; }
#gmailThread .gmail-thread-message-header:focus-visible { outline:2px solid #0f9c8c; outline-offset:-2px; }
#gmailThread .gmail-thread-message-from { color:#202124; font-size:14px; font-weight:600; }
#gmailThread .gmail-thread-message-from span { color:#5f6368; font-weight:400; }
#gmailThread .gmail-thread-message-to { color:#5f6368; }
#gmailThread .gmail-thread-message-to span { color:#5f6368; }
#gmailThread .gmail-thread-message-side { color:#5f6368; }
#gmailThread .gmail-thread-message-content { color:#202124; padding:4px 8px 20px; }
#gmailThread .gmail-latest-label { background:#e6f5f1; color:#126451; border-color:#d0e9e1; }
#gmailThread .gmail-thread-message-identity { flex:1; min-width:0; }
#gmailThread .mail-thread-snippet { display:none; font-size:13px; color:#667085; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; }
#gmailThread .mail-collapsed .mail-thread-snippet { display:block; }
#gmailThread .mail-collapsed .gmail-thread-message-content,
#gmailThread .mail-collapsed .gmail-thread-attachments,
#gmailThread .mail-collapsed .gmail-message-actions { display:none; }
#gmailThread .mail-conversation-messages { gap:0!important; }
#gmailThread .mail-reader { white-space:normal; }
#gmailThread .mail-reader [hidden] { display:none!important; }
#gmailThread .email-html-fallback { white-space:pre-wrap; overflow-wrap:anywhere; }
#gmailThread .mail-reader-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin:0 0 8px; min-height:24px; }
#gmailThread .mail-reader-toolbar .btn { padding:3px 6px; font-size:12px; font-weight:500; color:#176c61; background:transparent; border:0; box-shadow:none; }
#gmailThread .mail-reader-toolbar .btn:hover { background:#edf6f4; }
#gmailThread .mail-reader-status { padding:12px; margin:4px 0 12px; background:#f7f9fc; color:#475467; font-size:13px; border-radius:6px; }
#gmailThread .mail-document { position:relative; width:100%; min-height:64px; height:80px; overflow:hidden; background:#fff; }
#gmailThread .mail-document iframe { position:absolute; top:0; left:0; display:block; border:0; min-height:0!important; height:1px; transform-origin:0 0; background:#fff; }
#gmailThread .gmail-message-actions { padding:12px 8px 20px; gap:8px; border:0; flex-wrap:wrap; }
#gmailThread .gmail-message-actions .btn { background:#fff; color:#344054; border:1px solid #dce1e7; border-radius:18px; }
#gmailThread .gmail-thread-attachments { border-color:#e8eaed; color:#344054; }
#gmailThread .gmail-thread-attachments .btn { background:#f3f6f9; color:#344054; border-color:#dce1e7; }
@media (max-width:760px) {
  #gmailThread.fthyrk-mail-thread { padding:12px; }
  #gmailThread .gmail-thread-header > div:first-child { flex-wrap:wrap; gap:10px; }
  #gmailThread .gmail-thread-header h2 { font-size:19px!important; }
  #gmailThread .gmail-thread-message-header { gap:8px; }
  #gmailThread .gmail-thread-message-side { font-size:10px; }
  #gmailThread .gmail-thread-message-content { padding-left:0; padding-right:0; }
}

#gmailThread.fthyrk-mail-thread { font-family:Arial,system-ui,sans-serif; }
#gmailThread .gmail-message-actions { background:#fff!important; }
#gmailThread .gmail-thread-header .btn { font:500 12px Arial,sans-serif; padding:6px 10px; border-radius:6px; }
