.site-gate-header .ahr-mailbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 4px 8px;
  color: var(--green, #355438);
  text-decoration: none;
  border-radius: 9px;
  flex-shrink: 0;
}

.site-gate-header .ahr-mailbox[hidden] { display: none !important; }
.ahr-mailbox:hover, .ahr-mailbox.has-mail { background: transparent; }
.site-gate-header .header-actions { flex-wrap: wrap; }

.mailbox-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 75px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
}

.mailbox-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 600px) {
  .site-gate-header.member-header { flex-wrap: wrap; gap: 16px; }
}

header.site-gate-header.member-header{display:flex!important;align-items:center;justify-content:space-between}.member-header .workdesk-header-links{display:flex;align-items:center;justify-content:flex-end;gap:16px 24px;flex-wrap:wrap;margin-left:auto}.member-header .workdesk-header-links a{font-size:16px}@media(max-width:640px){.member-header .workdesk-header-links{justify-content:flex-start;margin-left:0;flex-basis:100%}}

.site-gate-header .ahr-mailbox .mailbox-art {
  position: relative;
  display: block;
  width: 112px !important;
  height: 100px !important;
  min-height: 100px !important;
  flex-shrink: 0;
}

/* Scale the Browse Current Ads composition together inside the fixed icon slot. */
.mailbox-scene {
  position: absolute;
  inset: 0;
}

.ahr-mailbox.has-mail .mailbox-scene {
  top: auto;
  width: 100%;
  aspect-ratio: 112 / 100;
}

.mailbox-scene img {
  position: absolute;
  display: block;
  object-fit: contain;
}

/* Keep the closed mailbox inside its shortcut even on member pages with larger default images. */
.mailbox-scene .mailbox-box {
  width: 90%;
  height: 90%;
  right: 5%;
  bottom: 0;
}

.ahr-mailbox.has-mail .mailbox-box {
  width: 61.607%;
  height: 69%;
  right: -4.464%;
}

.mailbox-scene .mailbox-piglet { display: none; }
.ahr-mailbox.has-mail .mailbox-piglet {
  display: block;
  width: 74.107%;
  height: 88%;
  left: 0;
  top: 4%;
  z-index: 2;
}

.mailbox-badge {
  position: absolute;
  top: 4%;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 25px;
  height: 25px;
  padding: 0 4px;
  border: 2px solid #fffdf7;
  border-radius: 99px;
  background: #b73c32;
  color: white;
  font: 700 15px/1 Arial, sans-serif;
}

.mailbox-badge[hidden] { display: none; }
