.token-trades {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 1rem;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}
.token-trades h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.token-trades h2 {
  font-size: 1.3rem;
  font-weight: 650;
  margin: 1.2rem 0;
}
.token-trades h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0.25rem 0 0.8rem;
}
.token-trades p {
  margin: 0.6rem 0;
  line-height: 1.6;
}
.token-trades a {
  color: #a5b4fc;
  text-decoration: underline;
}
.token-trades button {
  border: 1px solid #ffffff40;
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  min-height: 44px;
  background: #333c67;
  color: #fff;
  cursor: pointer;
  font: inherit;
  margin: 0.4rem 0.5rem 0.4rem 0;
}
.token-trades button:hover {
  background: #424f83;
}
.token-trades button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.token-trades input,
.token-trades select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0.5rem 0;
  padding: 0.65rem;
  border: 1px solid #ffffff40;
  border-radius: 0.45rem;
  background: #111827;
  color: #fff;
  font: inherit;
}
.token-trades label {
  display: block;
  font-size: 0.92rem;
}
.token-trades [data-error] {
  color: #fca5a5;
}
.token-trades [data-status] {
  color: #c7d2fe;
}
.token-trades .trade-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.token-trades .trade-note {
  font-size: 0.9rem;
  opacity: 0.75;
}
.token-trades .trade-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.token-trades form,
.token-trades [data-details] {
  border: 1px solid #ffffff25;
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 1.5rem 0;
  background: #ffffff04;
}
.token-trades .trade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}
.token-trades .trade-card,
.token-trades .trade-review {
  border: 1px solid #ffffff25;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.75rem 0;
  background: #ffffff05;
}
.token-trades .trade-long {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.token-trades [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .token-trades {
    padding: 0.6rem;
    margin: 1rem auto;
  }
  .token-trades .trade-fields {
    grid-template-columns: 1fr;
  }
  .token-trades button {
    width: 100%;
    margin: 0.35rem 0;
  }
  .token-trades .trade-heading {
    align-items: stretch;
  }
  .token-trades .trade-heading > div {
    width: 100%;
  }
}
