.jin-trade-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  grid-template-areas:
    "content button"
    "steps steps";
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  min-height: 150px;
  padding: 16px 18px;
  border: 1px solid #d8d1fb;
  border-radius: 8px;
  background: #fff;
  color: #171b2d;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.07);
}

.jin-trade-guide__content {
  grid-area: content;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.jin-trade-guide__title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.jin-trade-guide__summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.jin-trade-guide__steps {
  grid-area: steps;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
}

.jin-trade-guide__step {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.jin-trade-guide__arrow {
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  color: #7867dd;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.jin-trade-guide__step b {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #efeafd;
  color: #5b45e6;
  font-size: 11px;
  font-weight: 900;
}

.jin-trade-guide__button,
.jin-trade-guide-dialog__confirm {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #5b45e6;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.jin-trade-guide__button {
  grid-area: button;
}

.jin-trade-guide__button:hover,
.jin-trade-guide-dialog__confirm:hover {
  background: #4936ca;
}

.jin-trade-guide__button:focus-visible,
.jin-trade-guide-dialog__close:focus-visible,
.jin-trade-guide-dialog__confirm:focus-visible {
  outline: 3px solid rgba(91, 69, 230, 0.24);
  outline-offset: 2px;
}

.jin-trade-guide-dialog {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.52);
}

.jin-trade-guide-dialog__panel {
  width: min(100%, 480px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #d8d1fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.jin-trade-guide-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e8e4f8;
}

.jin-trade-guide-dialog__header h2 {
  margin: 0;
  color: #171b2d;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.jin-trade-guide-dialog__close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd7f6;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.jin-trade-guide-dialog__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 20px;
  list-style: none;
}

.jin-trade-guide-dialog__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #ece9f7;
}

.jin-trade-guide-dialog__list li:last-child {
  border-bottom: 0;
}

.jin-trade-guide-dialog__list li > b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #171b2d;
  color: #fff;
  font-size: 13px;
}

.jin-trade-guide-dialog__list li > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.jin-trade-guide-dialog__list strong {
  color: #171b2d;
  font-size: 14px;
  line-height: 1.35;
}

.jin-trade-guide-dialog__list li span span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.jin-trade-guide-dialog__confirm {
  display: block;
  width: calc(100% - 40px);
  margin: 4px 20px 20px;
}

@media (max-width: 640px) {
  .jin-trade-guide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "steps"
      "button";
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .jin-trade-guide__title {
    font-size: 16px;
  }

  .jin-trade-guide__button {
    width: 100%;
  }

  .jin-trade-guide__steps {
    flex-direction: column;
    align-items: stretch;
  }

  .jin-trade-guide__step {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 3px 0;
    font-size: 12px;
  }

  .jin-trade-guide__arrow {
    width: 20px;
    height: 12px;
    flex: 0 0 12px;
    transform: rotate(90deg);
  }

  .jin-trade-guide-dialog__header {
    padding: 16px;
  }

  .jin-trade-guide-dialog__list {
    padding: 4px 16px;
  }

  .jin-trade-guide-dialog__confirm {
    width: calc(100% - 32px);
    margin: 4px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jin-trade-guide__button,
  .jin-trade-guide-dialog__confirm {
    transition: none;
  }
}
.jin-shortcut-symbol.jin-shortcut-symbol--image {
  overflow: hidden;
  border: 1px solid #d8d1fb;
  background: #fff;
}

.jin-shortcut-symbol--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .jin-trade-guide {
    width: 500px;
    max-width: 100%;
    flex: 0 1 500px;
  }
}