.external-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: auto;
}
.external-dialog::backdrop {
  background: var(--overlay);
}
.external-dialog[open] {
  animation: dialog-in 180ms ease-out;
}
.external-dialog__content {
  padding: 32px 24px;
  position: relative;
}
.external-dialog__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--surface-soft);
}
.external-dialog .eyebrow {
  padding-right: 32px;
}
.external-dialog__visual {
  height: 56px;
  width: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}
.external-dialog__visual svg {
  height: 25px;
  width: 25px;
}
.external-dialog h2 {
  font-size: 25px;
  line-height: 1.5;
  margin-top: 20px;
}
.external-dialog__content > p:not(.eyebrow):not(.copy-feedback) {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.9;
  margin-top: 12px;
}
.external-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.external-steps > div {
  flex: 1;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px 8px;
  align-items: center;
}
.external-steps b {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  width: 20px;
  height: 20px;
}
.external-steps span {
  font-size: 12px;
}
.external-steps small {
  grid-column: 2;
  font-size: 9px;
  color: var(--ink-muted);
}
.external-steps > svg {
  width: 16px;
  height: 16px;
}
.external-dialog__label {
  font-size: 10px;
  color: var(--ink-secondary);
  display: block;
  margin-bottom: 8px;
}
.external-dialog__url {
  resize: none;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-height: 64px;
}
.external-dialog #copy-link {
  justify-content: center;
  margin-top: 16px;
}
.copy-feedback {
  font-size: 11px;
  color: var(--notice);
  margin-top: 8px;
  min-height: 0;
}
.copy-feedback:empty {
  display: none;
}
.external-dialog__context {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px !important;
}
.external-dialog #manual-copied {
  margin-top: 12px;
  justify-content: center;
  font-size: 12px;
}
.wechat-guide {
  margin-top: 24px;
  margin-bottom: 24px;
}
.wechat-guide__phone {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}
.wechat-guide__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.wechat-guide__bar b {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 20px;
  line-height: 1.2;
}
.wechat-guide__menu {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  font-size: 12px;
  background: var(--surface);
  margin-top: 12px;
  border-radius: 8px;
}
.wechat-guide__menu svg {
  width: 20px;
  height: 20px;
}
.wechat-guide > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-top: 12px;
}
.wechat-menu-hint {
  z-index: 100;
  position: fixed;
  top: 16px;
  right: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  pointer-events: none;
}
.wechat-menu-hint svg {
  width: 30px;
  height: 30px;
}
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12px;
  border-radius: 8px;
  max-width: calc(100% - 40px);
  text-align: center;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 640px) {
  .external-dialog__content {
    padding: 40px;
  }
  .toast {
    bottom: 32px;
  }
}
