/* Visual account identity: primary accounts stay unmarked; accounts 2-5 use B-E. */
.smile-account-badge,
.smile-account-lock-badge {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  min-width: 1.55em;
  height: 1.55em;
  margin-inline: 0 .3em;
  border: 0;
  border-radius: .38em;
  background: linear-gradient(145deg, #62c1e2, #379bc3);
  color: #fff !important;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: .72em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  vertical-align: .08em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/*
 * S2062: identity squares must stay flat everywhere they are rendered.
 * Attribute selectors also cover route-specific variants such as auction
 * winners, ranking rows, withdrawals, package accordions and user search.
 */
html body .smile-account-badge,
html body .smile-account-lock-badge,
html body [data-smile-account-badge],
html body [data-smile-account-lock-badge] {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

html body .smile-account-badge::before,
html body .smile-account-badge::after,
html body .smile-account-lock-badge::before,
html body .smile-account-lock-badge::after,
html body [data-smile-account-badge]::before,
html body [data-smile-account-badge]::after,
html body [data-smile-account-lock-badge]::before,
html body [data-smile-account-lock-badge]::after {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.smile-account-lock-badge {
  border-radius: 50%;
  background: #df607b;
  box-shadow: none;
}

.smile-account-lock-badge.is-auto-lock{background:#a77ac4}
.smile-account-lock-badge.is-manual-lock,.smile-account-lock-badge.is-account-locked{background:#df607b}
.smile-account-lock-badge.is-email-pending{background:#eda54a}
.smile-account-lock-badge.is-review-pending{background:#43b9b4}

.smile-account-lock-badge svg {
  display: block;
  width: 72%;
  height: 72%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The badge is always the first logical item in an RTL name. */
[data-smile-account-name-decorated] > .smile-account-badge,
[data-account-ordinal] > .smile-account-badge,
[data-profile-account-ordinal] .smile-account-badge {
  order: -1;
}

[data-smile-account-lock-decorated] > .smile-account-lock-badge,
[data-account-locked] > .smile-account-lock-badge,
[data-account-restricted] > .smile-account-lock-badge,
[data-account-email-pending] > .smile-account-lock-badge,
[data-profile-account-ordinal] .smile-account-lock-badge {
  order: -2;
}

.smile-account-badge[hidden],
.smile-account-badge:empty,
.smile-account-lock-badge[hidden] {
  display: none !important;
}

/* Requested polish is intentionally limited to the gender-coloured left ranking card. */
.home-cardex-dual-row .home-cardex-compact-panel.is-secondary-ranking {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-profile {
  top: 4.5% !important;
}

.home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-copy {
  padding-top: clamp(7px, 1.2vw, 12px) !important;
  gap: clamp(2px, .45vw, 5px) !important;
}

.home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-kicker {
  margin-top: 2px !important;
  font-size: clamp(.56rem, .9vw, .72rem) !important;
  line-height: 1.55 !important;
}

.home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-position {
  font-size: clamp(.68rem, 1.08vw, .86rem) !important;
  font-weight: 950 !important;
  line-height: 1.6 !important;
}

.home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-total {
  width: 100% !important;
  margin-top: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(.62rem, .95vw, .78rem) !important;
  font-weight: 900 !important;
  line-height: 1.65 !important;
}

@media (max-width: 620px) {
  .home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-profile {
    top: 5.5% !important;
  }

  .home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-copy {
    padding-top: 8px !important;
    gap: 2px !important;
  }

  .home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-kicker {
    font-size: .48rem !important;
  }

  .home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-position {
    font-size: .58rem !important;
  }

  .home-cardex-dual-row .is-secondary-ranking .home-secondary-rank-slide .signed-in-rank-total {
    font-size: .51rem !important;
  }
}
