.xc-ap {
  position: fixed;
  inset: 0;
  z-index: 99980;
  pointer-events: none;
}
.xc-ap[hidden] { display: none !important; }
.xc-ap-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8, 6, 3, 0.28) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.xc-ap.is-on .xc-ap-veil { opacity: 1; }
.xc-ap.is-confirm .xc-ap-veil { opacity: 0.55; }

.xc-ap-ring {
  position: absolute;
  border: 2px solid rgba(242, 227, 173, 0.95);
  border-radius: 12px;
  box-shadow: 0 0 0 6px rgba(242, 227, 173, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.92);
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, height 0.35s ease, opacity 0.2s ease, transform 0.2s ease;
}
.xc-ap-ring.is-on {
  opacity: 1;
  transform: scale(1);
  animation: xc-ap-pulse 1.2s ease-out infinite;
}
@keyframes xc-ap-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(242, 227, 173, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 12px rgba(242, 227, 173, 0.08), 0 10px 28px rgba(0, 0, 0, 0.28); }
}

.xc-ap-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  will-change: transform;
  z-index: 2;
}
.xc-ap-cursor svg { display: block; }

.xc-ap-tip,
.xc-ap-card {
  position: absolute;
  pointer-events: auto;
  z-index: 3;
}
.xc-ap-tip {
  max-width: 260px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1a140c;
  color: #f2e3ad;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid rgba(242, 227, 173, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.xc-ap-card {
  width: min(320px, calc(100vw - 32px));
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #16110b;
  color: #f6edd4;
  border: 1px solid rgba(242, 227, 173, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.xc-ap-card-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c9b88f;
  margin-bottom: 4px;
}
.xc-ap-card-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}
.xc-ap-card-desc {
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(246, 237, 212, 0.72);
}
.xc-ap-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.xc-ap-card-actions button {
  appearance: none;
  border: 1px solid rgba(242, 227, 173, 0.28);
  background: transparent;
  color: #f2e3ad;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.xc-ap-card-actions button.primary {
  background: #f2e3ad;
  color: #1a140c;
  border-color: #f2e3ad;
  font-weight: 650;
}

.xc-ap-clicked {
  outline: 2px solid rgba(242, 227, 173, 0.8) !important;
  outline-offset: 2px;
}

.agent-approval-kiki-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #c9b88f;
  margin-bottom: 2px;
}
.agent-approval-kiki p {
  margin: 6px 0 10px;
  font-size: 12px;
  color: rgba(246, 237, 212, 0.75);
}
