.xw-demo-panel {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 1px dashed rgba(107, 93, 84, 0.28);
  background: rgba(255, 255, 255, 0.65);
}

.xw-demo-panel__label {
  margin: 0 0 0.5rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a827b;
}

.xw-demo-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.xw-demo-panel__row + .xw-demo-panel__row {
  margin-top: 0.45rem;
}

.xw-demo-panel__tag {
  width: 2.2rem;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: #8a827b;
}

.xw-demo-chip {
  border: 1px solid #e8e4df;
  background: #f5f3f0;
  color: #605e5b;
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xw-demo-chip.is-active {
  background: #6b5d54;
  border-color: #6b5d54;
  color: #fff;
}

#xw-dispatch-card[data-dispatch-state="idle"] {
  background: #faf9f8;
}

#xw-dispatch-card[data-dispatch-state="idle"] #xw-dispatch-icon {
  background: #f0eeeb;
  border-color: rgba(209, 196, 189, 0.45);
  color: #8a827b;
}

#xw-dispatch-card[data-dispatch-state="idle"] #xw-dispatch-sub {
  color: #8a827b;
}

/* 派遣确认 · 参考 Buddy 派出弹窗 */
.xw-dispatch-confirm {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: rgba(28, 28, 30, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.xw-dispatch-confirm.is-open {
  opacity: 1;
  pointer-events: auto;
}

.xw-dispatch-confirm__panel {
  position: relative;
  width: min(100%, 340px);
  padding: 2.15rem 1.35rem 1.35rem;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.25s ease;
}

.xw-dispatch-confirm.is-open .xw-dispatch-confirm__panel {
  transform: translateY(0) scale(1);
}

.xw-dispatch-confirm__mascot {
  position: absolute;
  top: -1.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4.5rem;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.xw-dispatch-confirm__mascot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.xw-dispatch-confirm__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #1b1c1a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.xw-dispatch-confirm__title {
  margin: 0.35rem 1.75rem 1rem;
  padding-top: 0.15rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: #1b1c1a;
}

.xw-dispatch-confirm__visual {
  position: relative;
  margin: 0 0 0.85rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #1b1c1a;
  aspect-ratio: 16 / 10;
}

.xw-dispatch-confirm__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xw-dispatch-confirm__tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(89, 72, 58, 0.72);
  backdrop-filter: blur(4px);
}

.xw-dispatch-confirm__dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.xw-dispatch-confirm__dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.xw-dispatch-confirm__dot.is-active {
  width: 0.55rem;
  background: #fff;
}

.xw-dispatch-confirm__nav {
  display: none;
}

.xw-dispatch-confirm__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  text-align: center;
  color: #605e5b;
}

.xw-dispatch-confirm__submit {
  width: 100%;
  height: 3rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #1b1c1a;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.xw-dispatch-confirm__submit:active {
  transform: scale(0.98);
}