
/* =========================================================
   MOBILE ACCOUNT BAR — REAL GAP FIX v46
   Keep the handle, account badges, online dot, and navigation buttons as one
   compact row. Nothing gets a flexible spacer between it and the next item.
   ========================================================= */
@media (max-width: 640px) {
  .card.account-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 9px 9px !important;
    min-height: 50px !important;
    overflow: visible !important;
  }

  #authenticatedAccountIdentity.account-identity {
    display: block !important;
    flex: 0 1 auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #authenticatedAccountIdentity .verified-username-line {
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: max-content !important;
    align-items: center !important;
    justify-content: start !important;
    column-gap: 1px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 12.8px !important;
    line-height: 1 !important;
  }

  #authenticatedAccountIdentity .verified-username-line > span:first-child {
    display: none !important;
  }

  #authenticatedAccountIdentity .verified-handle {
    display: inline-flex !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #authenticatedAccountIdentity #currentUsername {
    display: inline !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #authenticatedAccountIdentity .verified-badge,
  #authenticatedAccountIdentity .role-badge,
  #authenticatedAccountIdentity .developer-badge,
  #authenticatedAccountIdentity .admin-badge {
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #authenticatedAccountIdentity .verified-badge {
    width: 13px !important;
    min-width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
  }

  #authenticatedAccountIdentity .role-badge,
  #authenticatedAccountIdentity .developer-badge,
  #authenticatedAccountIdentity .admin-badge {
    width: 15px !important;
    min-width: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
  }

  #authenticatedAccountIdentity .role-wrench-icon,
  #authenticatedAccountIdentity .role-badge > .role-wrench-icon,
  #authenticatedAccountIdentity .developer-badge > .role-wrench-icon,
  #authenticatedAccountIdentity .admin-badge > .role-wrench-icon {
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
  }

  #authenticatedAccountIdentity #onlineBadge.online-badge {
    position: static !important;
    display: inline-block !important;
    flex: none !important;
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    margin: 0 0 0 1px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent) !important;
    overflow: hidden !important;
  }

  #authenticatedAccountIdentity #onlineBadge.online-badge.offline {
    background: var(--muted-text) !important;
    box-shadow: none !important;
  }

  #authenticatedAccountButtons,
  .card.account-bar #authenticatedAccountButtons,
  .card.account-bar .account-buttons {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #authenticatedAccountButtons > button,
  .card.account-bar #authenticatedAccountButtons > button {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  .card.account-bar {
    gap: 3px !important;
    padding-inline: 7px !important;
  }

  #authenticatedAccountIdentity.account-identity {
    max-width: 88px !important;
  }

  #authenticatedAccountIdentity .verified-handle {
    max-width: 53px !important;
  }

  #authenticatedAccountButtons,
  .card.account-bar #authenticatedAccountButtons {
    gap: 2px !important;
  }

  #authenticatedAccountButtons > button,
  .card.account-bar #authenticatedAccountButtons > button {
    flex-basis: 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
  }
}


/* =========================================================
   RESPONSIVE ACCOUNT BAR — COMPACT CONTENT-AWARE STACK v63
   Short identities keep the original single-row pill. If the full handle,
   visible role badges, online state, and controls cannot all fit, the exact
   same card becomes a compact two-row rounded panel on phone and desktop.
   ========================================================= */
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: 0 !important;
  row-gap: 3px !important;
  min-height: 0 !important;
  padding-block: 7px !important;
  border-radius: var(--ui-radius-panel, 34px) !important;
  overflow: hidden !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity.account-identity {
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity .verified-username-line {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 4px !important;
  padding: 0 3px 0 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity .verified-handle {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 32px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity #currentUsername {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity .verified-badge:not(.hidden):not([hidden]),
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity .role-badge:not(.hidden):not([hidden]),
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity #onlineBadge {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  visibility: visible !important;
}

/* The username is the only shrinkable item. Role badges keep an explicit,
   visible slot before the online dot, including on custom dark themes. */
body[data-auth-state="authenticated"] #authenticatedAccountIdentity .role-badge:not(.hidden):not([hidden]) {
  display: inline-flex !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  color: var(--text) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountIdentity .role-badge:not(.hidden):not([hidden]) > .role-wrench-icon {
  display: block !important;
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  fill: currentColor !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountButtons {
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

@media (max-width: 640px) {
  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked {
    row-gap: 2px !important;
    padding: 6px 10px !important;
    border-radius: var(--ui-radius-item, 27px) !important;
  }

  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountIdentity .verified-username-line {
    min-height: 15px !important;
    padding: 0 2px 0 0 !important;
  }
}



/* =========================================================
   MOBILE ACCOUNT BAR — LEFT IDENTITY / RIGHT CONTROLS v47
   The account identity is its own left-aligned section; navigation controls
   are a separate right-aligned section. Internal identity spacing stays tight.
   ========================================================= */
@media (max-width: 640px) {
  .card.account-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: 8px !important;
    width: 100% !important;
    padding: 9px 12px !important;
  }

  #authenticatedAccountIdentity.account-identity {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #authenticatedAccountButtons,
  .card.account-bar #authenticatedAccountButtons,
  .card.account-bar .account-buttons {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    justify-content: flex-end !important;
    width: max-content !important;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  .card.account-bar {
    column-gap: 5px !important;
    padding-inline: 9px !important;
  }
}

/* =========================================================
   MOBILE ACCOUNT IDENTITY — LONG USERNAME FIX v58
   Use all space left of the navigation buttons. The handle only truncates
   when the phone genuinely runs out of room; badges and the online dot stay
   visible and never steal a hard-coded 64px username limit.
   ========================================================= */
@media (max-width: 640px) {
  #authenticatedAccountIdentity.account-identity {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #authenticatedAccountIdentity .verified-username-line {
    display: flex !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  #authenticatedAccountIdentity .verified-handle {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #authenticatedAccountIdentity #currentUsername {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #authenticatedAccountIdentity .verified-badge,
  #authenticatedAccountIdentity .role-badge,
  #authenticatedAccountIdentity .developer-badge,
  #authenticatedAccountIdentity .admin-badge,
  #authenticatedAccountIdentity #onlineBadge.online-badge {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 360px) {
  #authenticatedAccountIdentity .verified-handle {
    max-width: none !important;
  }
}


/* =========================================================
   MOBILE ACCOUNT IDENTITY — COMPACT CLUSTER HARD OVERRIDE v60
   Keep the handle, badges, and online dot tightly packed and let the
   username use the real remaining width instead of falling back to tiny caps.
   ========================================================= */
@media (max-width: 640px) {
  #authenticatedAccountIdentity.account-identity {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 150px) !important;
    overflow: hidden !important;
    gap: 0 !important;
  }

  #authenticatedAccountIdentity .verified-username-line {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 2px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  #authenticatedAccountIdentity .verified-handle,
  #authenticatedAccountIdentity #currentUsername {
    display: inline-block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #authenticatedAccountIdentity .verified-badge,
  #authenticatedAccountIdentity .role-badge,
  #authenticatedAccountIdentity .developer-badge,
  #authenticatedAccountIdentity .admin-badge {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  #authenticatedAccountIdentity #onlineBadge.online-badge {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 2px !important;
  }
}


/* =========================================================
   MOBILE ACCOUNT BAR — LARGER TOUCH CONTROLS + COMPLETE STATUS DOT v61
   Usernames are capped at 20 characters. Keep the identity on one row while
   it fits, then let the measured long-name state use a second row rather than
   clipping the handle or shrinking the navigation controls.
   ========================================================= */
@media (max-width: 640px) {
  .card.account-bar {
    column-gap: 7px !important;
  }

  #authenticatedAccountIdentity.account-identity,
  #authenticatedAccountIdentity .verified-username-line {
    max-width: 100% !important;
    overflow: visible !important;
  }

  #authenticatedAccountIdentity .verified-username-line {
    box-sizing: border-box !important;
    padding: 2px 3px 2px 0 !important;
  }

  #authenticatedAccountIdentity #onlineBadge.online-badge {
    flex-basis: 9px !important;
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    overflow: visible !important;
  }

  #authenticatedAccountButtons,
  .card.account-bar #authenticatedAccountButtons,
  .card.account-bar .account-buttons {
    gap: 3px !important;
  }

  #authenticatedAccountButtons > button,
  .card.account-bar #authenticatedAccountButtons > button {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  #authenticatedAccountButtons .account-nav-icon,
  #authenticatedAccountButtons #profileButton .account-nav-icon,
  #authenticatedAccountButtons #directMessagesButton .account-nav-icon,
  #authenticatedAccountButtons #notificationsButton .account-nav-icon,
  #authenticatedAccountButtons #settingsButton .account-nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  .card.account-bar.account-bar-stacked-mobile {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    row-gap: 7px !important;
  }

  .card.account-bar.account-bar-stacked-mobile #authenticatedAccountIdentity.account-identity,
  .card.account-bar.account-bar-stacked-mobile #authenticatedAccountButtons {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .card.account-bar.account-bar-stacked-mobile #authenticatedAccountIdentity.account-identity {
    grid-row: 1 !important;
  }

  .card.account-bar.account-bar-stacked-mobile #authenticatedAccountButtons {
    grid-row: 2 !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }
}

@media (max-width: 360px) {
  #authenticatedAccountButtons > button,
  .card.account-bar #authenticatedAccountButtons > button {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }

  #authenticatedAccountButtons .account-nav-icon,
  #authenticatedAccountButtons #profileButton .account-nav-icon,
  #authenticatedAccountButtons #directMessagesButton .account-nav-icon,
  #authenticatedAccountButtons #notificationsButton .account-nav-icon,
  #authenticatedAccountButtons #settingsButton .account-nav-icon {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }
}


/* =========================================================
   AUTHENTICATED ACCOUNT BAR — BUTTONS ONLY v64
   Hide the signed-in identity cluster everywhere. Keep one centered row of
   desktop-sized navigation controls on desktop and standard phone widths.
   ========================================================= */
body[data-auth-state="authenticated"] #authenticatedAccountIdentity,
body[data-auth-state="authenticated"] #authenticatedAccountIdentity:not(.hidden):not([hidden]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-auth-state="authenticated"] .card.account-bar,
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked,
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked-mobile {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  width: 100% !important;
  min-height: 72px !important;
  padding: 9px 11px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons:not(.hidden):not([hidden]),
body[data-auth-state="authenticated"] .card.account-bar #authenticatedAccountButtons:not(.hidden):not([hidden]),
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountButtons:not(.hidden):not([hidden]),
body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked-mobile #authenticatedAccountButtons:not(.hidden):not([hidden]) {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-flow: row nowrap !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  overflow: visible !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons > button,
body[data-auth-state="authenticated"] .card.account-bar #authenticatedAccountButtons > button {
  display: inline-flex !important;
  flex: 0 0 52px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons .account-nav-icon {
  width: 25px !important;
  height: 25px !important;
  flex-basis: 25px !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons #profileButton .account-nav-icon {
  width: 26px !important;
  height: 26px !important;
  flex-basis: 26px !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons #notificationsButton .account-nav-icon {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
}

body[data-auth-state="authenticated"] #authenticatedAccountButtons #dmUnreadBadge,
body[data-auth-state="authenticated"] #authenticatedAccountButtons #notificationUnreadBadge {
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  bottom: auto !important;
  min-width: 16px !important;
  width: auto !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

@media (max-width: 360px) {
  body[data-auth-state="authenticated"] .card.account-bar,
  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked,
  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked-mobile {
    min-height: 68px !important;
    padding-inline: 8px !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons:not(.hidden):not([hidden]),
  body[data-auth-state="authenticated"] .card.account-bar #authenticatedAccountButtons:not(.hidden):not([hidden]) {
    gap: 6px !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons > button,
  body[data-auth-state="authenticated"] .card.account-bar #authenticatedAccountButtons > button {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }
}


/* =========================================================
   MOBILE ACCOUNT CONTROLS — EVEN PILL FIT + OPTICAL ICON MATCH v65
   Keep every circle exactly the same size. Use the full inner width so the
   first and last circles mirror the pill's vertical inset, then compensate
   for each SVG's different built-in viewBox whitespace.
   ========================================================= */
@media (max-width: 640px) {
  body[data-auth-state="authenticated"] #authenticatedAccountButtons:not(.hidden):not([hidden]),
  body[data-auth-state="authenticated"] .card.account-bar #authenticatedAccountButtons:not(.hidden):not([hidden]),
  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked #authenticatedAccountButtons:not(.hidden):not([hidden]),
  body[data-auth-state="authenticated"] .card.account-bar.account-bar-stacked-mobile #authenticatedAccountButtons:not(.hidden):not([hidden]) {
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    gap: 0 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #profileButton .account-nav-icon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    stroke-width: 1.75 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #searchButton .account-nav-icon {
    width: 33px !important;
    height: 33px !important;
    flex-basis: 33px !important;
    stroke-width: 1.4 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #directMessagesButton .account-nav-icon {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    stroke-width: 1.45 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #notificationsButton .account-nav-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    stroke-width: 1.35 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #settingsButton .account-nav-icon {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    stroke-width: 1.55 !important;
  }
}


/* =========================================================
   DESKTOP ACCOUNT CONTROLS — MATCH MOBILE RENDERED SIZE v68
   Desktop rasterization makes equal CSS dimensions look optically smaller.
   Keep the circles unchanged and compensate only the SVG artwork.
   ========================================================= */
@media (min-width: 641px) {
  body[data-auth-state="authenticated"] #authenticatedAccountButtons #profileButton .account-nav-icon {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
    stroke-width: 1.75 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #searchButton .account-nav-icon {
    width: 37px !important;
    height: 37px !important;
    flex-basis: 37px !important;
    stroke-width: 1.4 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #directMessagesButton .account-nav-icon {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
    stroke-width: 1.45 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #notificationsButton .account-nav-icon {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    stroke-width: 1.35 !important;
  }

  body[data-auth-state="authenticated"] #authenticatedAccountButtons #settingsButton .account-nav-icon {
    width: 33px !important;
    height: 33px !important;
    flex-basis: 33px !important;
    stroke-width: 1.55 !important;
  }
}
