html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--common-v2-page-bg, #ffffff);
}

body,
button {
  font-family: "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.common-v2-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 36vh auto 1fr;
  background: var(--common-v2-page-bg, #ffffff);
}

.common-v2-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.common-v2-icon {
  display: block;
  width: 60px;
  height: 60px;
  user-select: none;
  pointer-events: none;
}

.common-v2-text {
  width: min(550px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.common-v2-title {
  width: 100%;
  margin: 0;
  color: var(--common-v2-title-color, #000000);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
  word-break: break-word;
}

.common-v2-link-row {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.common-v2-link {
  color: var(--common-v2-link-blue, #0065fd);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  word-break: break-word;
}

.risk-3 .common-v2-link,
.risk-5 .common-v2-link,
.risk-9 .common-v2-link {
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-5 .common-v2-link,
.risk-7 .common-v2-link {
  color: var(--common-v2-link-orange, #f89100);
}

.risk-9 .common-v2-link {
  color: var(--common-v2-link-red, #ff362b);
  white-space: nowrap;
}

.common-v2-copy {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.common-v2-copy-icon {
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
  user-select: none;
}

[data-common-v2-theme="dark"] .common-v2-copy-icon {
  filter: invert(1);
}

.common-v2-copy::after {
  content: attr(data-copy-tip);
  position: absolute;
  bottom: 24px;
  left: 50%;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--common-v2-tooltip-bg, rgba(0, 0, 0, 0.78));
  color: var(--common-v2-tooltip-color, #ffffff);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.common-v2-copy.is-copy-tip-visible::after {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.common-v2-description {
  width: 100%;
  margin: 0;
  color: var(--common-v2-description-color, rgba(0, 0, 0, 0.6));
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  word-break: break-word;
}

.common-v2-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.common-v2-button {
  min-width: 64px;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--common-v2-button-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  background: var(--common-v2-button-bg, rgba(0, 0, 0, 0.04));
  color: var(--common-v2-button-color, #000000);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

.common-v2-button-primary {
  background: #0066ff;
  color: #ffffff;
  border-color: transparent;
}

.common-v2-button-primary.is-appealed {
  background: rgba(0, 102, 255, 0.5);
}

.common-v2-button:disabled {
  cursor: default;
}

.common-v2-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--common-v2-tooltip-bg, rgba(0, 0, 0, 0.78));
  color: var(--common-v2-tooltip-color, #ffffff);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.common-v2-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -4px);
}

@media (max-width: 600px) {
  .common-v2-page {
    display: block;
    box-sizing: border-box;
    padding-top: 22vh;
  }

  .common-v2-content {
    width: 288px;
    max-width: calc(100vw - 64px);
    margin: 0 auto;
    gap: 0;
  }

  .common-v2-text {
    width: 100%;
    margin-top: 32px;
    gap: 12px;
  }

  .common-v2-title {
    width: 240px;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.4;
  }

  .common-v2-link {
    font-size: 14px;
  }

  .common-v2-description {
    font-size: 14px;
    line-height: 1.4;
  }

  .common-v2-button-group {
    width: 170px;
    margin-top: 48px;
    flex-direction: column;
    gap: 12px;
  }

  .common-v2-button {
    width: 170px;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
  }
}
