.qqbot-invite-dialog::part(panel) {
  width: 640px;
  max-width: 90vw;
}

.qqbot-invite-container {
  padding: 12px 16px;
}

.qqbot-invite-header h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 750;
  color: rgb(var(--mdui-color-on-surface));
}

.bot-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  justify-content: space-between;
}

.bot-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(var(--mdui-color-on-surface-variant));
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s ease;
}

.bot-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--mdui-color-surface-container-high), 0.8);
  color: rgb(var(--mdui-color-on-surface-variant));
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bot-step.active {
  color: rgb(var(--mdui-color-primary));
  font-weight: 750;
}

.bot-step.active .bot-step-number,
.bot-step.done .bot-step-number {
  color: rgb(var(--mdui-color-on-primary));
  background: rgb(var(--mdui-color-primary));
}

.bot-step-line {
  flex: 1;
  height: 1px;
  background: rgb(var(--mdui-color-outline-variant));
}

.bot-panel-container {
  position: relative;
  overflow: hidden;
}

.bot-setup-panel {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.bot-qr-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.bot-qr-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border: 1px solid rgb(var(--mdui-color-outline-variant));
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}

.bot-qr-placeholder {
  width: 150px;
  height: 150px;
  border: 1px dashed rgb(var(--mdui-color-outline));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--mdui-color-on-surface-variant));
  font-size: 14px;
}

.bot-permission-guide {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.bot-permission-image {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border: 1px solid rgb(var(--mdui-color-outline-variant));
  border-radius: 12px;
}

.link-name {
  font-size: 16px;
  font-weight: 750;
  color: rgb(var(--mdui-color-on-surface));
  line-height: 1.4;
}

.link-meta {
  font-size: 14px;
  color: rgb(var(--mdui-color-on-surface-variant));
}

.bot-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Animations */
.bot-panel-enter-active,
.bot-panel-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bot-panel-enter-from {
  opacity: 0;
  transform: translateX(20px);
}

.bot-panel-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}

.bot-panel-back-enter-active,
.bot-panel-back-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bot-panel-back-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}

.bot-panel-back-leave-to {
  opacity: 0;
  transform: translateX(20px);
}
