/* Motion supports the same quiet, adult personality palette as the main UI. */
[data-score-kind] {
  font-variant-numeric: tabular-nums;
}
.leader-row:not(.table-heading),
.mini-person {
  position: relative;
  background-color: #fff;
}
.leader-row.is-me {
  background-color: #f1f8f7;
}
.leader-row.score-surface-motion,
.mini-person.score-surface-motion {
  z-index: 2;
}
.score-number-motion,
.score-surface-motion,
.motion-receipt {
  --motion-color: #377e77;
  --motion-wash: #edf6f2;
  --motion-line: #b7d8cd;
}
.score-motion-negative {
  --motion-color: #a75851;
  --motion-wash: #fbefec;
  --motion-line: #e5c3be;
}
.score-motion-undo {
  --motion-color: #88619a;
  --motion-wash: #f3eff7;
  --motion-line: #d8c9e3;
}
.score-number-motion {
  display: inline-block;
  position: relative;
  color: var(--motion-color);
}
.score-number-motion::after {
  content: attr(data-score-delta);
  position: absolute;
  right: 0;
  top: -18px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 12px;
  background: var(--motion-wash);
  color: var(--motion-color);
  white-space: nowrap;
  font: 650 11px/1.1 var(--font, "Inter", sans-serif);
  letter-spacing: 0;
  pointer-events: none;
  animation: motion-delta-up 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.score-number-motion.score-motion-negative::after {
  animation-name: motion-delta-down;
}
.score-number-motion.score-motion-undo::after {
  animation-name: motion-delta-neutral;
}
.score-surface-motion {
  position: relative;
  animation: motion-surface 1.85s ease-out both;
}
.recipient-card .score-number-motion,
.recipient-preview .score-number-motion {
  position: static;
}
.recipient-card .score-number-motion::after,
.recipient-preview .score-number-motion::after {
  top: 9px;
  right: 9px;
}
.recipient-preview.score-surface-motion .direction-mark {
  opacity: 0;
}
#host-receipt,
.receipt-placeholder {
  min-height: 108px;
}
.receipt-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 15px;
  border: 1px dashed #d9dfe2;
  border-radius: 8px;
  background: #fafbfc;
  color: #77818d;
  font-size: 12px;
  line-height: 1.5;
}
.motion-receipt {
  box-sizing: border-box;
  background: #fff;
  color: #343c4b;
  border: 1px solid var(--motion-line);
  border-radius: 11px;
  font-family: var(--font, "Inter", sans-serif);
  animation: motion-receipt-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.motion-receipt--host {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 108px;
  padding: 12px;
  background: var(--motion-wash);
}
.motion-portrait {
  position: relative;
  width: 110px;
  height: 138px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.motion-portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.motion-receipt--host .motion-portrait {
  width: 50px;
  height: 82px;
}
.motion-avatar {
  display: block;
  width: 94px;
  height: 126px;
  object-fit: contain;
  flex-shrink: 0;
}
.motion-receipt--host .motion-avatar {
  width: 40px;
  height: 75px;
}
.motion-status {
  display: block;
  color: var(--motion-color);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 650;
}
.motion-receipt-copy {
  min-width: 0;
}
.motion-name {
  display: block;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.motion-receipt--host .motion-name {
  margin: 3px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.motion-delta {
  display: block;
  color: var(--motion-color);
  font: 780 58px/1.2 var(--heading, "Red Hat Display", sans-serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  animation: motion-amount-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.score-motion-negative .motion-delta {
  animation-name: motion-amount-down;
}
.score-motion-undo .motion-delta {
  animation: motion-amount-neutral 0.24s ease-out both;
}
.motion-receipt--host .motion-delta {
  font-size: 30px;
}
.motion-inline-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.motion-total {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #6e7885;
}
.motion-total strong {
  color: #343c4b;
  font-size: 25px;
}
.motion-total-before {
  color: #78828d;
}
.motion-total-unit {
  font-size: 12px;
  font-weight: 450;
}
.motion-receipt--host .motion-total {
  gap: 6px;
  font-size: 13px;
}
.motion-receipt--host .motion-total strong {
  font-size: 15px;
}
.motion-receipt--host .motion-total-unit {
  font-size: 10px;
}
.motion-inline-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #75808a;
  font-size: 10px;
  line-height: 1.3;
}
.motion-undo {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 3px 7px;
  background: #fff9;
  color: var(--motion-color);
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}
.motion-undo:hover {
  background: #fff;
}
.motion-undo:focus-visible,
.motion-dismiss:focus-visible {
  outline: 2px solid var(--motion-color);
  outline-offset: 3px;
}
.motion-receipt--floating {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 95;
  width: 355px;
  max-width: calc(100vw - 32px);
  padding: 20px 24px 22px;
  overflow: hidden;
  box-shadow: 0 12px 48px #27374626;
  border-top: 3px solid var(--motion-color);
}
.motion-receipt-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.motion-dismiss {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 50%;
  color: #77818d;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.motion-dismiss:hover {
  background: #f3f5f6;
}
.motion-receipt-body {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 13px 0 15px;
}
.motion-rank {
  display: block;
  margin-top: 3px;
  color: #667581;
  font-size: 12px;
  line-height: 1.4;
}
.motion-receipt--floating > .motion-total {
  justify-content: center;
  gap: 13px;
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--motion-wash);
}
.motion-reason {
  margin: 11px 0 0;
  color: #687480;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.motion-group-note {
  margin: 5px 0 0;
  color: #838c95;
  font-size: 10px;
  line-height: 1.5;
}
.motion-accents {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.motion-accents i {
  position: absolute;
  top: 52%;
  left: 20%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--motion-color);
  opacity: 0;
  animation: motion-accent 1.1s 0.15s ease-out both;
}
.motion-accents i:nth-child(2) {
  left: 78%;
  top: 40%;
  animation-delay: 0.25s;
}
.motion-accents i:nth-child(3) {
  left: 53%;
  top: 24%;
  animation-delay: 0.32s;
  border-radius: 50%;
}
.motion-accents i:nth-child(4) {
  left: 86%;
  top: 65%;
  animation-delay: 0.4s;
  border-radius: 50%;
}
.motion-receipt--presentation {
  width: 460px;
  right: 36px;
  bottom: 36px;
  padding: 25px 30px 28px;
}
.motion-receipt--presentation .motion-avatar {
  width: 125px;
  height: 170px;
}
.motion-receipt--presentation .motion-portrait {
  width: 148px;
  height: 180px;
}
.motion-receipt--presentation .motion-name {
  font-size: 25px;
}
.motion-receipt--presentation .motion-delta {
  font-size: 76px;
}
.motion-receipt--presentation .motion-status {
  font-size: 13px;
}
.motion-receipt--presentation .motion-rank {
  font-size: 14px;
}
.motion-receipt--presentation .motion-total {
  font-size: 26px;
}
.motion-receipt--presentation .motion-total strong {
  font-size: 32px;
}
.motion-receipt--presentation .motion-reason {
  font-size: 14px;
}
.motion-receipt--leaving {
  animation: motion-receipt-exit 0.2s ease-in both;
}
@keyframes motion-receipt-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes motion-receipt-exit {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes motion-amount-up {
  0% {
    opacity: 0;
    transform: translateY(9px) scale(0.97);
  }
  65% {
    opacity: 1;
    transform: translateY(0) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes motion-amount-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes motion-amount-neutral {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@keyframes motion-surface {
  0%,
  65% {
    box-shadow:
      inset 0 0 0 1px var(--motion-line),
      0 0 0 3px var(--motion-wash);
  }
  100% {
    box-shadow:
      inset 0 0 0 1px transparent,
      0 0 0 3px transparent;
  }
}
@keyframes motion-delta-up {
  0% {
    opacity: 0;
    transform: translateY(9px);
  }
  25%,
  65% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes motion-delta-down {
  0% {
    opacity: 0;
    transform: translateY(-9px);
  }
  25%,
  65% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0;
    transform: translateY(3px);
  }
}
@keyframes motion-delta-neutral {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  75% {
    opacity: 1;
  }
}
@keyframes motion-accent {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(0);
  }
  25% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) rotate(45deg);
  }
}
@media (max-width: 640px) {
  .motion-receipt--floating,
  .motion-receipt--presentation {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-width: none;
    padding: 14px 18px;
  }
  .motion-receipt-body {
    gap: 16px;
    margin: 5px 0 8px;
  }
  .motion-receipt--floating .motion-avatar {
    width: 63px;
    height: 87px;
  }
  .motion-receipt--floating .motion-portrait {
    width: 72px;
    height: 94px;
  }
  .motion-receipt--floating .motion-name {
    font-size: 17px;
  }
  .motion-receipt--floating .motion-delta {
    font-size: 40px;
  }
  .motion-receipt--floating .motion-status {
    font-size: 10px;
  }
  .motion-receipt--floating .motion-rank {
    font-size: 11px;
  }
  .motion-receipt--floating > .motion-total {
    padding: 6px 12px;
    font-size: 16px;
  }
  .motion-receipt--floating .motion-total strong {
    font-size: 20px;
  }
  .motion-receipt--floating .motion-reason {
    margin-top: 7px;
    font-size: 11px;
  }
  .motion-receipt--floating .motion-group-note {
    margin-top: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-receipt,
  .motion-delta,
  .score-surface-motion,
  .score-number-motion::after {
    animation: none !important;
  }
  .score-surface-motion {
    box-shadow: inset 0 0 0 1px var(--motion-line);
  }
  .score-number-motion::after {
    opacity: 1;
    transform: none;
  }
  .motion-accents {
    display: none;
  }
}
