.container.tg-mm { max-width: 900px; padding-bottom: 32px; }
.tg-mm-page .header .container { flex-wrap: wrap; row-gap: 8px; }
.tg-mm-page .header .nav { flex-basis: 100%; order: 1; min-width: 0; justify-content: center; }
.tg-mm-page .header .header-actions { max-width: 100%; margin-left: auto; }
.tg-mm .profile-card { padding: 24px; margin-bottom: 20px; background: #fff; color: #344e5d; }
.tg-mm h2 { font-size: 20px; line-height: 1.5; color: var(--unicef-dark, #00558c); margin: 12px 0; overflow-wrap: anywhere; }
.tg-mm h3 { font-size: 15px; color: var(--unicef-dark, #00558c); margin: 16px 0 10px; }
.tg-mm-entry { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--unicef-dark, #00558c); font-weight: 600; }
.tg-mm-entry--header { font-size: 12px; padding: 5px 8px; white-space: nowrap; }
.tg-mm-entry--member { display: flex; justify-content: space-between; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #eef2f5; }
.tg-mm-count { min-width: 21px; padding: 1px 6px; border-radius: 12px; background: var(--unicef-yellow, #ffc20e); color: #173f56; font-size: 12px; text-align: center; }
.tg-mm-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tg-mm-filters select { max-width: 100%; padding: 9px 10px; border: 1px solid #dbe4ea; border-radius: 8px; font: inherit; color: #334956; background: #fff; }
.tg-mm-checkbox { display: inline-flex; align-items: center; gap: 7px; }
.tg-mm-filters .apply-btn { width: auto; margin: 0; padding: 9px 20px; font-size: 14px; }
.tg-mm-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 10px; font-size: 13px; color: #576b76; }
.tg-mm-link-button { padding: 0; border: 0; font: inherit; color: var(--unicef-dark, #00558c); background: transparent; text-decoration: underline; cursor: pointer; }
.tg-mm-link-button:disabled { opacity: .6; cursor: wait; }
.tg-mm-row { border-top: 1px solid #e7edf1; padding: 18px 0; overflow-wrap: anywhere; }
.tg-mm-row.is-unread .tg-mm-row-title { font-weight: 800; }
.tg-mm-row .tg-mm-row-title { font-size: 16px; margin: 8px 0; }
.tg-mm-row-title a { color: var(--unicef-dark, #00558c); text-decoration: none; }
.tg-mm-row-title a:hover { text-decoration: underline; }
.tg-mm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 13px; color: #667a86; font-size: 12px; overflow-wrap: anywhere; }
.is-unread .tg-mm-status { color: #00558c; font-weight: 700; }
.is-unread .tg-mm-status::before { display: inline-block; content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: #1cabe2; }
.tg-mm-body { color: #344e5d; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin: 8px 0 14px; }
.tg-mm-row-foot { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; font-size: 12px; color: #667a86; }
.tg-mm-row-foot a, .tg-mm-back, .tg-mm-pagination a { color: #00558c; text-decoration: none; }
.tg-mm-back { display: inline-block; margin-bottom: 18px; }
.tg-mm-tag { display: inline-block; padding: 3px 9px; border-radius: 5px; background: #eaf5fb; color: #00558c; font-size: 12px; }
.tg-mm-note { padding: 13px 16px; margin: 0 0 18px; border-radius: 9px; background: #f0f7fb; color: #3d5d6e; line-height: 1.7; overflow-wrap: anywhere; font-size: 13px; }
.tg-mm-current { border-top: 1px solid #e7edf1; margin-top: 24px; padding-top: 4px; }
.tg-mm-current-label { font-weight: 700; font-size: 17px; color: #00558c; overflow-wrap: anywhere; }
.tg-mm-facts { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 8px 20px; font-size: 13px; line-height: 1.7; margin: 18px 0; }
.tg-mm-facts dt { color: #667a86; }
.tg-mm-facts dd { margin: 0; color: #344e5d; overflow-wrap: anywhere; }
.tg-mm .tg-mm-action { display: inline-block; width: auto; padding: 10px 20px; margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
.tg-mm-empty { text-align: center; color: #576b76; padding: 28px 0; line-height: 1.8; }
.tg-mm-empty .apply-btn { display: inline-block; width: auto; padding: 10px 24px; }
.tg-mm-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; padding: 16px 0 0; color: #576b76; }
.tg-mm-write-status { color: #995c12; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  /* Keep shared utility buttons available without obscuring private message text. */
  .tg-mm-page .float-fabs { position: static; flex-direction: row; justify-content: center; margin: 16px 20px 24px; }
}
@media (max-width: 900px) {
  /* The same account entry remains in the drawer; preserve the compact header. */
  .header .user-pill .tg-mm-entry--header { display: none; }
}
@media (max-width: 600px) {
  .tg-mm .profile-card { padding: 17px; }
  .tg-mm-filters { gap: 10px 8px; }
  .tg-mm-filters > label[for] { width: 100%; }
  .tg-mm-filters select { flex: 1; min-width: 0; }
  .tg-mm-facts { grid-template-columns: 1fr; gap: 2px; }
  .tg-mm-facts dd { margin-bottom: 10px; }
  .tg-mm-entry--header { padding: 4px 5px; font-size: 11px; gap: 4px; }
}
