@font-face {
  font-family: "AlibabaSans";
  src: url("/static/fonts/AlibabaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AlibabaSans_Regular";
  src: url("/static/fonts/AlibabaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AlibabaSans_Medium";
  src: url("/static/fonts/AlibabaSans-Regular.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#safepallView.active {
  height: calc(100vh - 104px);
  min-height: 0;
  overflow: hidden;
}

.safepall-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(420px, 1fr);
  gap: 8px;
}

.safepall-input-panel,
.safepall-preview-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.safepall-input-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.safepall-panel-head,
.safepall-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.safepall-title,
.safepall-preview-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.safepall-field {
  display: grid;
  gap: 6px;
}

.safepall-field textarea {
  width: 100%;
  min-height: 122px;
  resize: vertical;
  padding: 10px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: 12px/1.45 Consolas, monospace;
  overflow-wrap: anywhere;
}

.safepall-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.safepall-status {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid #222;
  border-radius: 6px;
  background: #070707;
  color: #aaa;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.safepall-status.error {
  border-color: rgba(239, 68, 68, .45);
  color: #ff9b9b;
}

.safepall-copy-html {
  width: 100%;
}

.safepall-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.safepall-preview-head {
  padding: 12px;
  border-bottom: 1px solid #1d1d1d;
}

.safepall-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.safepall-icon-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.safepall-icon-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.safepall-stage {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #0b0b0d;
}

.safepall-placeholder {
  align-self: center;
  display: grid;
  place-items: center;
  min-height: 260px;
  width: min(420px, 100%);
  border: 1px dashed #333;
  border-radius: 8px;
  color: #8f8f8f;
  font: 11px/1 AlibabaSans, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.safepall-stage .safepall-shot {
  width: 378px;
  max-width: 100%;
  position: relative !important;
  inset: auto !important;
  z-index: auto;
  pointer-events: auto;
  color: rgba(0, 0, 0, .88);
}

.safepall-stage .safepall-shot .ant-drawer-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: auto !important;
  transition: all .3s;
}

.safepall-stage .safepall-shot .ant-drawer-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 100%;
  background: #000000;
  color: #f3f5f8;
  font: 14px/1.5715 AlibabaSans_Regular, AlibabaSans, Arial, Helvetica, sans-serif;
  overflow: auto;
  pointer-events: auto;
}

.safepall-stage .safepall-shot .ant-drawer-header {
  display: flex;
  flex: 0;
  align-items: center;
  padding: 16px 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: #000;
  border: none;
}

.safepall-stage .safepall-shot .ant-drawer-header-title {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.safepall-stage .safepall-shot .ant-drawer-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  margin-inline-end: 8px;
  padding: 4px;
  color: #fff;
  background-color: #2c2d30;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  cursor: default;
}

.safepall-stage .safepall-shot .ant-drawer-title {
  flex: 1;
  margin: 0;
  color: #f3f5f8;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.safepall-stage .safepall-shot .ant-drawer-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: auto;
  overflow-wrap: break-word;
  scrollbar-width: none;
}

.safepall-stage .safepall-shot .ant-drawer-body::-webkit-scrollbar {
  display: none !important;
}

.sfpContentBox,
.detailDrawerContent {
  min-width: 0;
}

.safepall-stage .sfpContent {
  height: 100%;
  min-width: 0;
  padding: 16px 16px 8px;
}

.safepall-stage .sfpContent > .sfpContentBox {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.safepall-stage .flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.safepall-stage .flex-align-items-center {
  display: flex;
  align-items: center;
}

.safepall-stage .flex-space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.safepall-stage .text-center {
  text-align: center;
}

.safepall-stage .h3 {
  min-height: 20px;
  font-size: 20px;
  margin: 8px 0;
  font-weight: 500;
}

.safepall-stage .bold {
  font-family: AlibabaSans_Medium, AlibabaSans_Regular, AlibabaSans, sans-serif;
  font-weight: 700;
}

.safepall-stage .signTitleBox {
  position: relative;
  color: #f3f5f8;
}

.safepall-stage .svgIcon {
  display: inline-block;
  box-sizing: content-box !important;
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
  fill: currentColor !important;
}

.safepall-stage .Bg3 {
  background: #2c2d30;
  color: #ffffff;
}

.safepall-stage .p5 {
  padding: 5px;
}

.safepall-stage .circle {
  border-radius: 50%;
}

.safepall-stage .mr8 {
  margin-right: 8px;
}

.safepall-stage .ml8 {
  margin-left: 8px;
}

.safepall-stage .mt5 {
  margin-top: 5px;
}

.safepall-stage .mt8 {
  margin-top: 8px;
}

.safepall-stage .bg,
.safepall-stage .bgContent2 {
  background: #1c1d1f;
  border-radius: 8px;
  color: #fff;
}

.safepall-stage .bgContent2 {
  padding: 0 16px !important;
  border-radius: 8px;
}
.safepall-stage .small {
  min-height: 64px;
}

.safepall-stage .sfpItemBox {
  padding: 12px 0;
  margin-bottom: 8px;
}

.safepall-stage .bgContent2 .sfpItemBox {
  margin-bottom: 0 !important;
}

.safepall-stage .Border + .Border {
  border-top-color: #252a34;
}

.safepall-stage .left,
.safepall-stage .right,
.safepall-stage .leftBoxMain {
  min-width: 0;
}

.safepall-stage .leftIcon {
  display: flex;
  flex: 0 0 auto;
}

.safepall-stage .leftTop,
.safepall-stage .rightTop {
  color: #fff;
}

.safepall-stage .sfpItemBox.bg {
  padding: 12px;
  border: 1px solid transparent;
  border-color: transparent !important;
  border-radius: 8px;
}

.safepall-stage .sfpItemBox.bg.small {
  padding: 6px 12px;
}

.safepall-stage .rightTop {
  text-align: right;
  word-break: break-word;
}

.safepall-stage .f16 {
  font-size: 16px;
}

.safepall-stage .f14 {
  font-size: 14px;
}

.safepall-stage .FontColor2,
.safepall-stage .text2 {
  color: #cac9d8;
}

.safepall-stage .success {
  color: #79efbd;
}

.safepall-stage .failed {
  color: #e5484d;
}

.safepall-stage .capitalize {
  text-transform: capitalize;
}

.safepall-stage .cur {
  cursor: default;
}

.safepall-stage .sfpCopyBox {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #f0f3f7;
  white-space: nowrap;
}

.safepall-stage .SvgPrimary {
  color: #6a66ff !important;
  fill: #6a66ff !important;
}

.safepall-stage .svgCheck {
  width: 14px;
  height: 14px;
  margin-left: 5px;
  color: #6a66ff !important;
  fill: #6a66ff !important;
}

.safepall-stage .tokenImageBox {
  position: relative;
  display: inline-flex;
  width: auto;
  height: auto;
  top: 1px;
}

.safepall-stage .ant-image {
  display: inline-block;
}

.safepall-stage .ant-image-img {
  object-fit: cover;
  vertical-align: text-bottom;
}

.safepall-stage .chainIconUrl {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 15px;
  height: 15px;
  border: 2px solid #1a1d24;
  border-radius: 50%;
  background: #1a1d24;
}

.safepall-stage a {
  color: #2f72ff;
  text-decoration: none;
}

.safepall-icon-round {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-right: 12px;
  border-radius: 50%;
  background: #2c2d30;
  color: #ffffff;
  line-height: 1;
}

.safepall-icon-round .svgIcon {
  display: block;
  width: 14px !important;
  height: 14px !important;
  margin: 0;
  vertical-align: 0;
}

.safepall-close-icon {
  width: 1em;
  height: 1em;
  color: #fff;
  fill: currentColor;
}

.safepall-close-icon path {
  fill: currentColor;
}

@media (max-width: 900px) {
  #safepallView.active {
    height: calc(100vh - 104px);
    overflow: auto;
  }

  .safepall-page {
    min-height: 100%;
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .safepall-input-panel,
  .safepall-preview-panel {
    min-height: 280px;
  }

  .safepall-stage {
    padding: 10px;
    justify-content: flex-start;
  }
}

.safepall-stage :where(.css-kbg4zp).ant-drawer {
  box-sizing: border-box;
  color: #f3f5f8;
  font-family: AlibabaSans_Regular, AlibabaSans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  line-height: 1.5715;
}

.safepall-stage :where(.css-kbg4zp).ant-drawer::before,
.safepall-stage :where(.css-kbg4zp).ant-drawer::after {
  box-sizing: border-box;
}

.safepall-stage :where(.css-kbg4zp).ant-drawer *,
.safepall-stage :where(.css-kbg4zp).ant-drawer *::before,
.safepall-stage :where(.css-kbg4zp).ant-drawer *::after {
  box-sizing: border-box;
}

.safepall-stage :where(.css-kbg4zp).ant-image {
  position: relative;
  display: inline-block;
}

.safepall-stage :where(.css-kbg4zp).ant-image .ant-image-img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.safepall-stage :where(.css-kbg4zp).anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.safepall-stage :where(.css-kbg4zp).anticon > * {
  line-height: 1;
}

.safepall-stage :where(.css-kbg4zp).anticon svg {
  display: inline-block;
}

.safepall-stage :where(.css-kbg4zp).anticon::before {
  display: none;
}
