/* The messages envelope beside the name (Code/MessageIcon.cs, 16 Nov 2026). Own class names; the
   site themes restyle links everywhere, hence the !important on colour. A round 44px button on a
   phone; from 768px a pill with the word ("Messages"; the office "Inbox", "Portal inbox" from 1024px).
   The Classic menu's MY MESSAGES item (li.mm-menu-item) is for the phone menu: from 768px the
   envelope's word says it. */
.msg-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 44px; height: 44px; padding: 0 11px; margin: 0 2px 0 12px; box-sizing: border-box; border-radius: 22px;
    color: var(--theme-heading-color, #1b5e20) !important; background: #fff; border: 1.5px solid #8fa999; vertical-align: middle;
    text-decoration: none !important; flex: 0 0 auto; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: 0;
    text-transform: none; white-space: nowrap; }
.msg-icon__t { display: none; }
.msg-icon:hover { background: #f1f8f2; border-color: var(--theme-heading-color, #1b5e20); }
.msg-icon:focus-visible { outline: 3px solid #14361a; outline-offset: 2px; }
.msg-icon[aria-current=page] { border-color: var(--theme-heading-color, #1b5e20); box-shadow: inset 0 0 0 1px var(--theme-heading-color, #1b5e20); }
.msg-icon__n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
    border-radius: 10px; background: #c62828; color: #fff; font: 700 12px/16px system-ui, sans-serif; text-align: center; border: 2px solid #fff; }
@media (min-width: 768px) {
    .msg-icon { padding: 0 14px 0 12px; }
    .msg-icon__t { display: inline; }
    .msg-icon__t--lg { display: none; }
    .msg-icon__n { position: static; margin-left: 2px; border: 0; line-height: 20px; }
    li.mm-menu-item { display: none !important; }
}
@media (min-width: 1024px) { .msg-icon__t--md { display: none; } .msg-icon__t--lg { display: inline; } }
@media (max-width: 767px) { .msg-icon { margin-left: 8px; padding: 0; width: 44px; } }
@media (max-width: 359px) { .msg-icon { margin-left: 4px; } }
@media print { .msg-icon { display: none !important; } }
