.money-pitbull {
  --mp-blue: #58a6ff;
  --mp-green: #3fb950;
  --mp-gold: #d29922;
  --mp-bg: rgba(9, 13, 19, 0.94);
  --mp-panel: rgba(16, 23, 33, 0.97);
  --mp-right: clamp(14px, 1.4vw, 24px);
  --mp-bottom: clamp(118px, 10vh, 160px);
  --mp-size: 118px;
  position: fixed;
  right: var(--mp-right);
  bottom: var(--mp-bottom);
  z-index: 2147483647;
  display: grid;
  justify-items: end;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 24px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #dbe8ff;
  pointer-events: none;
  box-sizing: border-box;
  isolation: isolate;
  transform: translateZ(0);
}

body > #money-pitbull-root.money-pitbull {
  position: fixed !important;
  left: auto !important;
  top: auto !important;
  right: var(--mp-right) !important;
  bottom: var(--mp-bottom) !important;
  z-index: 2147483647 !important;
  display: grid !important;
  width: max-content !important;
  max-width: calc(100vw - 24px) !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body > #money-pitbull-desktop-root.money-pitbull {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  background: transparent !important;
}

.money-pitbull *,
.money-pitbull *::before,
.money-pitbull *::after {
  box-sizing: border-box;
}

.money-pitbull-page,
.money-pitbull-page body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: visible;
  background: transparent !important;
}

.money-pitbull[hidden] {
  display: none;
}

.money-pitbull--desktop {
  inset: 0;
  width: 100vw;
  height: 100vh;
  place-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  overflow: visible;
}

.money-pitbull--desktop .money-pitbull__pet {
  width: min(220px, calc(100vw - 18px), calc(100vh - 18px));
  height: min(220px, calc(100vw - 18px), calc(100vh - 18px));
  cursor: grab;
}

.money-pitbull--desktop .money-pitbull__pet:active {
  cursor: grabbing;
}

.auth-page .money-pitbull:not(.money-pitbull--desktop) {
  right: auto;
  left: clamp(22px, 4vw, 48px);
  bottom: clamp(24px, 5vh, 54px);
}

.money-pitbull__pet,
.money-pitbull__panel,
.money-pitbull__settings input,
.money-pitbull__actions button,
.money-pitbull__panel-head button {
  pointer-events: auto;
}

.money-pitbull__pet {
  position: relative;
  width: var(--mp-size);
  height: var(--mp-size);
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.44));
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.money-pitbull__sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  image-rendering: auto;
  animation: none;
  transform: translate3d(0, 0, 0);
}

.money-pitbull__pet::before,
.money-pitbull__pet::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.money-pitbull__badge {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f85149;
  color: #fff;
  border: 2px solid #080d13;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
}

.money-pitbull__panel {
  width: min(360px, calc(100vw - var(--mp-right) - 24px));
  max-height: min(520px, calc(100vh - var(--mp-bottom) - 24px));
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  background: var(--mp-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.54);
  display: none;
}

.money-pitbull__desktop-tools {
  display: none;
}

.money-pitbull--desktop.money-pitbull--speaking .money-pitbull__panel,
.money-pitbull--desktop.money-pitbull--alert .money-pitbull__panel,
.money-pitbull--desktop.money-pitbull--warning .money-pitbull__panel {
  display: block;
}

.money-pitbull--desktop .money-pitbull__desktop-tools {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.money-pitbull--embedded .money-pitbull__desktop-tools {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 140ms ease, transform 140ms ease;
}

.money-pitbull--embedded:hover .money-pitbull__desktop-tools,
.money-pitbull--embedded:focus-within .money-pitbull__desktop-tools {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.money-pitbull--desktop .money-pitbull__tool {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(88, 166, 255, 0.76);
  background: rgba(12, 18, 28, 0.84);
  color: #f0f6fc;
  font-size: 14px;
  font-weight: 950;
  line-height: 26px;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.money-pitbull--embedded .money-pitbull__tool {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(88, 166, 255, 0.78);
  background: rgba(12, 18, 28, 0.9);
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 950;
  line-height: 24px;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.money-pitbull--desktop .money-pitbull__tool--close {
  right: 12px;
  top: 8px;
  border-color: rgba(248, 81, 73, 0.82);
  color: #ff9a93;
}

.money-pitbull--embedded .money-pitbull__tool--close {
  right: -6px;
  top: -8px;
  border-color: rgba(248, 81, 73, 0.82);
  color: #ff9a93;
}

.money-pitbull--desktop .money-pitbull__tool--ask {
  right: 44px;
  top: 56px;
  border-color: rgba(163, 113, 247, 0.82);
  color: #c9a9ff;
  font-size: 22px;
}

.money-pitbull--embedded .money-pitbull__tool--ask {
  right: calc(var(--mp-size) * 0.36);
  top: calc(var(--mp-size) * 0.34);
  border-color: rgba(163, 113, 247, 0.82);
  color: #c9a9ff;
  font-size: 19px;
}

.money-pitbull--desktop .money-pitbull__tool--chat {
  right: 8px;
  top: 60px;
  font-size: 14px;
}

.money-pitbull--embedded .money-pitbull__tool--chat {
  right: -9px;
  top: calc(var(--mp-size) * 0.34);
}

.money-pitbull--desktop .money-pitbull__tool--settings {
  left: 12px;
  bottom: 12px;
  border-color: rgba(139, 148, 158, 0.72);
  color: #dbe8ff;
  font-size: 14px;
}

.money-pitbull--embedded .money-pitbull__tool--settings {
  left: -8px;
  bottom: 1px;
  border-color: rgba(139, 148, 158, 0.72);
}

.money-pitbull--desktop .money-pitbull__tool--news {
  left: 50px;
  bottom: 12px;
  border-color: rgba(139, 148, 158, 0.72);
  font-size: 14px;
}

.money-pitbull--embedded .money-pitbull__tool--news {
  left: calc(var(--mp-size) * 0.34);
  bottom: -5px;
  border-color: rgba(139, 148, 158, 0.72);
}

.money-pitbull--desktop .money-pitbull__tool--open {
  right: 12px;
  bottom: 12px;
  font-size: 15px;
}

.money-pitbull--embedded .money-pitbull__tool--open {
  right: -8px;
  bottom: 1px;
}

.money-pitbull--desktop .money-pitbull__panel {
  display: none !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.money-pitbull--desktop.money-pitbull--speaking .money-pitbull__panel,
.money-pitbull--desktop.money-pitbull--alert .money-pitbull__panel,
.money-pitbull--desktop.money-pitbull--warning .money-pitbull__panel,
.money-pitbull--desktop.money-pitbull--open .money-pitbull__panel {
  display: none !important;
}

.money-pitbull__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(139, 148, 158, 0.18);
  color: #9ecbff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.money-pitbull__panel-head button,
.money-pitbull__actions button {
  border-radius: 6px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  background: rgba(88, 166, 255, 0.12);
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 7px 9px;
  cursor: pointer;
}

.money-pitbull__panel-body {
  padding: 12px;
}

.money-pitbull--desktop .money-pitbull__panel-body {
  display: none;
}

.money-pitbull__panel-body h3 {
  margin: 0 0 6px;
  color: #f0f6fc;
  font-size: 15px;
  line-height: 1.25;
}

.money-pitbull__panel-body p {
  margin: 0;
  color: #a9b8cc;
  font-size: 12px;
  line-height: 1.45;
}

.money-pitbull__why {
  margin-top: 8px !important;
  color: #8b949e !important;
  font-size: 11px !important;
}

.money-pitbull__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.money-pitbull__ask {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 148, 158, 0.14);
}

.money-pitbull--desktop .money-pitbull__ask,
.money-pitbull--desktop .money-pitbull__quick-prompts,
.money-pitbull--desktop .money-pitbull__positions,
.money-pitbull--desktop .money-pitbull__signedout {
  display: none;
}

.money-pitbull__ask label {
  display: block;
  margin-bottom: 6px;
  color: #9ecbff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.money-pitbull__ask-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.money-pitbull__ask-row input {
  min-width: 0;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(88, 166, 255, 0.24);
  background: rgba(4, 8, 13, 0.78);
  color: #f0f6fc;
  padding: 0 9px;
  font-size: 12px;
  outline: none;
}

.money-pitbull__ask-row input:focus {
  border-color: rgba(88, 166, 255, 0.64);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.16);
}

.money-pitbull__ask-row button,
.money-pitbull__quick-prompts button {
  border-radius: 6px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  background: rgba(88, 166, 255, 0.12);
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
}

.money-pitbull__quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.money-pitbull__quick-prompts button {
  min-height: 28px;
}

.money-pitbull__signedout {
  margin-top: 10px !important;
  color: #8b949e !important;
}

.money-pitbull__positions {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(88, 166, 255, 0.18);
  background: rgba(4, 8, 13, 0.42);
}

.money-pitbull__positions p {
  margin: 6px 0 0;
}

.money-pitbull__positions-title,
.money-pitbull__positions-head {
  color: #9ecbff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.money-pitbull__positions-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.money-pitbull__pos-table {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.money-pitbull__pos-row {
  display: grid;
  grid-template-columns: minmax(48px, .7fr) minmax(58px, 1fr) minmax(76px, auto);
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #dbe8ff;
}

.money-pitbull__pos-row span:first-child {
  color: #f0f6fc;
  font-weight: 850;
}

.money-pitbull__pos-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.money-pitbull__pnl-positive {
  color: #56d364 !important;
}

.money-pitbull__pnl-negative {
  color: #ff7b72 !important;
}

.money-pitbull__settings {
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(139, 148, 158, 0.14);
  color: #8b949e;
  font-size: 11px;
}

.money-pitbull--desktop .money-pitbull__settings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(7, 12, 18, 0.82);
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-top: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 0 0 7px 7px;
  pointer-events: auto;
}

.money-pitbull--alert .money-pitbull__pet,
.money-pitbull--warning .money-pitbull__pet {
  filter: drop-shadow(0 0 20px rgba(248, 81, 73, 0.32)) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.44));
}

.money-pitbull--pnl-positive .money-pitbull__pet::before {
  content: "$  $  $";
  left: 8px;
  top: -26px;
  width: 106px;
  height: 94px;
  color: #56d364;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 16px;
  text-shadow: 0 10px 0 rgba(86, 211, 100, .72), 38px 24px 0 rgba(86, 211, 100, .62), -20px 38px 0 rgba(86, 211, 100, .45);
  animation: money-pitbull-dollar-rain 1.08s linear infinite;
  opacity: .92;
}

.money-pitbull--pnl-positive .money-pitbull__pet::after {
  content: "$";
  left: 47px;
  top: 60px;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(86, 211, 100, .78);
  background: rgba(26, 127, 55, .88);
  color: #dfffea;
  font-size: 13px;
  font-weight: 950;
  line-height: 17px;
  text-align: center;
  transform-origin: center;
  animation: money-pitbull-munch 0.52s ease-in-out infinite;
  opacity: .96;
}

.money-pitbull--pnl-negative .money-pitbull__pet::before {
  left: 64px;
  top: 66px;
  width: 44px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 210, 84, 0), rgba(244, 210, 84, .92), rgba(244, 210, 84, .1));
  transform: rotate(21deg);
  transform-origin: left center;
  animation: money-pitbull-loss-stream .7s ease-in-out infinite;
  opacity: .9;
}

.money-pitbull--pnl-negative .money-pitbull__pet::after {
  content: "$";
  left: 86px;
  top: 83px;
  width: 32px;
  height: 19px;
  border-radius: 4px;
  border: 1px solid rgba(210, 153, 34, .72);
  background: rgba(63, 47, 9, .9);
  color: #f2cc60;
  font-size: 13px;
  font-weight: 950;
  line-height: 18px;
  text-align: center;
  transform: rotate(-11deg);
  animation: money-pitbull-loss-money .9s ease-in-out infinite;
  opacity: .95;
}

.money-pitbull--watching .money-pitbull__sprite,
.money-pitbull--thinking .money-pitbull__sprite {
  animation-name: money-pitbull-watch;
}

.money-pitbull--speaking .money-pitbull__sprite,
.money-pitbull--happy .money-pitbull__sprite {
  animation-name: money-pitbull-speak;
  animation-duration: .72s;
}

.money-pitbull--alert .money-pitbull__sprite,
.money-pitbull--warning .money-pitbull__sprite {
  animation-name: money-pitbull-alert;
  animation-duration: .6s;
}

.money-pitbull--offline .money-pitbull__sprite,
.money-pitbull--signed-out .money-pitbull__sprite {
  animation-name: money-pitbull-offline;
  animation-duration: 1.4s;
  filter: grayscale(.45) brightness(.8);
}

.money-pitbull--do-not-disturb .money-pitbull__sprite,
.money-pitbull--sleeping .money-pitbull__sprite {
  animation-duration: 2s;
  filter: saturate(.8) brightness(.72);
}

@media (max-width: 720px) {
  .money-pitbull:not(.money-pitbull--desktop) {
    --mp-right: 10px;
    --mp-bottom: 132px;
    --mp-size: 92px;
  }

  .money-pitbull__panel {
    max-height: min(460px, calc(100vh - 160px));
  }

  .auth-page .money-pitbull:not(.money-pitbull--desktop) {
    left: auto;
    right: 10px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
}

@keyframes money-pitbull-idle {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes money-pitbull-watch {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes money-pitbull-speak {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes money-pitbull-alert {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes money-pitbull-offline {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes money-pitbull-dollar-rain {
  from { transform: translateY(-14px); }
  to { transform: translateY(20px); }
}

@keyframes money-pitbull-munch {
  0%, 100% { transform: translate(0, 0) rotate(-5deg) scale(1); }
  50% { transform: translate(-3px, -2px) rotate(6deg) scale(.82); }
}

@keyframes money-pitbull-loss-stream {
  0%, 100% { transform: rotate(18deg) scaleX(.68); opacity: .65; }
  50% { transform: rotate(22deg) scaleX(1); opacity: .95; }
}

@keyframes money-pitbull-loss-money {
  0%, 100% { transform: rotate(-11deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(2px); }
}
