.motivation-award {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border: 1px solid #f2d38c;
  border-radius: 999px;
  color: #7a5500;
  background: #fff4d8;
  font-size: .78rem;
  font-weight: 600;
}

.motivation-rank-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid #d6dde7;
  border-radius: 9px 14px 14px 14px;
  color: #4d5b6a;
  background: #f8f9fb;
  font-size: .82rem;
  font-weight: 850;
}

.motivation-rank-top1 { border-color: #efc45f; color: #7b5600; background: #fff4d7; }
.motivation-rank-top2 { border-color: #cad3df; color: #566172; background: #eef2f7; }
.motivation-rank-top3 { border-color: #e9b59a; color: #7a472c; background: #ffe9dd; }

.metric-chip-history-gold { border-color: #d8b045; color: #7c5600; background: #fff1bf; }
.metric-chip-history-silver { border-color: #becbdb; color: #4d5c71; background: #edf2f8; }
.metric-chip-history-bronze { border-color: #d2a083; color: #77442a; background: #ffe8da; }

.motivation-axis-premium {
  border-style: solid !important;
  border-width: 2px !important;
}

.motivation-axis-tier-history-gold {
  border-color: #d7ab33 !important;
  color: #7c5600;
  background: radial-gradient(circle at top right, #fff5cf, #fff 45%, #fff2be 100%);
}

.motivation-axis-tier-history-silver {
  border-color: #b9c6d8 !important;
  color: #4d5c71;
  background: radial-gradient(circle at top right, #f7fbff, #fff 45%, #e8eef7 100%);
}

.motivation-axis-tier-history-bronze {
  border-color: #cf9b7b !important;
  color: #77442a;
  background: radial-gradient(circle at top right, #fff2ea, #fff 45%, #ffe6d6 100%);
}

.rating-board-page .rating-strengths {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.rating-board-page .rating-strengths__lead {
  display: grid;
  gap: .6rem;
  padding: 0 clamp(.2rem, 1vw, .7rem);
}

.rating-board-page .rating-strengths__lead > p {
  max-width: 790px;
  margin: 0;
  color: var(--rating-board-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.rating-board-page .rating-strengths__section,
.rating-board-page .rating-strengths-leaderboard,
.rating-board-page .rating-strengths__empty {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: 14px 28px 28px 28px;
}

.rating-board-page .rating-strengths__section--personal {
  border-color: rgba(91, 67, 230, .14);
  background:
    radial-gradient(circle at 96% 4%, rgba(214, 244, 93, .16), transparent 13rem),
    linear-gradient(135deg, rgba(238, 234, 253, .72), rgba(255, 253, 248, .94) 46%);
}

.rating-board-page .rating-strengths__section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.15rem;
}

.rating-board-page .rating-strengths__section-heading h2 {
  margin: .2rem 0 0;
  color: var(--rating-board-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 880;
  letter-spacing: -.035em;
}

.rating-board-page .rating-strengths__section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--rating-board-muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: right;
}

.rating-board-page .rating-strengths__notice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem .95rem;
  border: 1px solid rgba(91, 67, 230, .15);
  border-radius: 10px 18px 18px 18px;
  color: #494f62;
  background: rgba(238, 234, 253, .58);
  font-size: .82rem;
  line-height: 1.45;
}

.rating-board-page .rating-strengths__notice > i {
  flex: 0 0 auto;
  margin-top: .08rem;
  color: var(--rating-board-violet);
}

.rating-board-page .rating-strengths__notice--compact {
  margin: -.15rem 0 1rem;
  padding: .65rem .8rem;
}

.rating-board-page .motivation-glow {
  border: 1px solid rgba(91, 67, 230, .16);
  border-radius: 12px 20px 20px 20px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 9px 24px rgba(23, 32, 51, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.rating-board-page .motivation-glow:hover,
.rating-board-page .motivation-glow:focus-visible {
  border-color: rgba(91, 67, 230, .34);
  box-shadow: 0 15px 32px rgba(23, 32, 51, .11);
  transform: translateY(-2px);
}

.rating-board-page .motivation-glow-history-gold {
  border: 2px solid #d7ab33;
  background: radial-gradient(circle at top right, #fff5cf, #fff 45%, #fff2be 100%);
  box-shadow: 0 .35rem 1.2rem rgba(174, 129, 16, .28);
}

.rating-board-page .motivation-glow-history-silver {
  border: 2px solid #b9c6d8;
  background: radial-gradient(circle at top right, #f7fbff, #fff 45%, #e8eef7 100%);
  box-shadow: 0 .3rem 1rem rgba(97, 116, 144, .22);
}

.rating-board-page .motivation-glow-history-bronze {
  border: 2px solid #cf9b7b;
  background: radial-gradient(circle at top right, #fff2ea, #fff 45%, #ffe6d6 100%);
  box-shadow: 0 .3rem 1rem rgba(140, 86, 56, .22);
}

.rating-board-page .motivation-glow-history-gold:hover,
.rating-board-page .motivation-glow-history-gold:focus-visible {
  border-color: #c99617;
  box-shadow: 0 .55rem 1.45rem rgba(174, 129, 16, .34);
}

.rating-board-page .motivation-glow-history-silver:hover,
.rating-board-page .motivation-glow-history-silver:focus-visible {
  border-color: #9eafc5;
  box-shadow: 0 .5rem 1.3rem rgba(97, 116, 144, .28);
}

.rating-board-page .motivation-glow-history-bronze:hover,
.rating-board-page .motivation-glow-history-bronze:focus-visible {
  border-color: #bd805d;
  box-shadow: 0 .5rem 1.3rem rgba(140, 86, 56, .28);
}

.rating-board-page .motivation-glow-history-silver .motivation-award {
  border-color: #c5cfdd;
  color: #4d5c71;
  background: #edf2f8;
}

.rating-board-page .motivation-glow-history-bronze .motivation-award {
  border-color: #d7a98e;
  color: #77442a;
  background: #ffe8da;
}

.rating-board-page .motivation-glow-history-silver .motivation-history-rank,
.rating-board-page .motivation-glow-history-silver .motivation-history-date {
  color: #4d5c71;
}

.rating-board-page .motivation-glow-history-bronze .motivation-history-rank,
.rating-board-page .motivation-glow-history-bronze .motivation-history-date {
  color: #77442a;
}

.rating-board-page .motivation-team-name {
  color: var(--rating-board-ink);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.25;
}

.rating-board-page .motivation-metric-chip {
  max-width: 100%;
  overflow: hidden;
  padding: .38rem .6rem;
  border-radius: 8px 13px 13px 13px;
  font-size: .75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-board-page .motivation-card-rank,
.rating-board-page .motivation-history-rank,
.rating-board-page .motivation-history-date {
  font-size: .78rem;
  line-height: 1.4;
}

.rating-board-page .motivation-card-rank {
  color: var(--rating-board-violet);
  font-weight: 700;
}

.rating-board-page .motivation-history-rank,
.rating-board-page .motivation-history-date {
  color: #7a5500;
}

.rating-board-page .motivation-history-rank {
  font-weight: 800;
}

.rating-board-page .rating-strengths-leaderboard {
  border-color: rgba(23, 32, 51, .09);
  background: rgba(255, 253, 248, .92);
}

.rating-board-page .rating-strengths-leaderboard__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .38rem;
  max-width: 520px;
  margin-bottom: .75rem;
}

.rating-board-page .rating-strengths-leaderboard__controls label {
  color: var(--rating-board-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rating-board-page .rating-strengths-leaderboard__controls .form-select {
  min-height: 44px;
  border-color: rgba(91, 67, 230, .18);
  border-radius: 9px 16px 16px 16px;
  color: var(--rating-board-ink);
  background-color: #f5f2ff;
  font-size: .86rem;
  font-weight: 700;
}

.rating-board-page .rating-strengths-leaderboard__controls .form-select:focus {
  border-color: var(--rating-board-violet);
  box-shadow: 0 0 0 .2rem rgba(91, 67, 230, .12);
}

.rating-board-page .rating-strengths-leaderboard__description {
  min-height: 2.6em;
  max-width: 760px;
  margin-bottom: .9rem;
  color: var(--rating-board-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.rating-board-page #motivation-leaderboard-rows {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rating-board-line);
  border-radius: 11px 20px 20px 20px;
  background: rgba(255, 255, 255, .55);
}

.rating-board-page #motivation-leaderboard-rows > li {
  padding: 0 !important;
  border-bottom: 1px solid var(--rating-board-line) !important;
}

.rating-board-page #motivation-leaderboard-rows > li:last-child {
  border-bottom: 0 !important;
}

.rating-board-page #motivation-leaderboard-rows > li > a {
  min-height: 58px;
  padding: .65rem .85rem;
  transition: background .14s ease;
}

.rating-board-page #motivation-leaderboard-rows > li > a:hover,
.rating-board-page #motivation-leaderboard-rows > li > a:focus-visible {
  background: rgba(238, 234, 253, .52);
}

.rating-board-page #motivation-leaderboard-rows > li > a > .small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: .6rem 1rem;
  font-size: .84rem;
}

.rating-board-page #motivation-leaderboard-rows > li > a > .small > .fw-semibold {
  overflow: hidden;
  color: var(--rating-board-ink);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-board-page #motivation-leaderboard-rows > li > a > .small > .text-muted {
  color: var(--rating-board-muted) !important;
  font-weight: 720;
  text-align: right;
}

.rating-board-page .rating-strengths-leaderboard__empty {
  padding: 1rem !important;
  color: var(--rating-board-muted) !important;
  font-size: .84rem;
}

.rating-board-page .rating-strengths__empty {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: .9rem;
  color: var(--rating-board-muted);
}

.rating-board-page .rating-strengths__empty > i {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px 18px 18px 18px;
  color: var(--rating-board-violet);
  background: var(--rating-board-violet-soft);
  font-size: 1.2rem;
}

.rating-board-page .rating-strengths__empty > div {
  display: grid;
  gap: .18rem;
}

.rating-board-page .rating-strengths__empty strong {
  color: var(--rating-board-ink);
}

.rating-board-page .rating-strengths__empty span {
  font-size: .84rem;
}

@media (max-width: 767.98px) {
  .rating-board-page .rating-strengths__section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

  .rating-board-page .rating-strengths__section-heading > p {
    max-width: none;
    text-align: left;
  }

  .rating-board-page #motivation-leaderboard-rows > li > a > .small {
    grid-template-columns: minmax(0, 1fr);
    gap: .05rem;
  }

  .rating-board-page #motivation-leaderboard-rows > li > a > .small > .text-muted {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .motivation-card-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .motivation-award {
    max-width: 100%;
    white-space: normal;
  }

  .rating-board-page .motivation-metric-chip {
    white-space: normal;
  }
}
