.dgt-layer {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

.dgt-shade {
  position: fixed;
  background: rgba(33, 23, 40, 0.58);
  pointer-events: auto;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.dgt-spotlight {
  position: fixed;
  border: 3px solid #52d6c7;
  border-radius: 8px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 7px rgba(82, 214, 199, 0.34),
    0 12px 36px rgba(26, 18, 34, 0.22);
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.dgt-spotlight::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(250, 185, 45, 0.8);
  border-radius: inherit;
  animation: dgt-guide-pulse 1.8s ease-in-out infinite;
}

.dgt-target-proxy {
  position: fixed;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.dgt-target-proxy:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.dgt-card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  padding: 16px;
  color: #2d1b33;
  background: rgba(255, 253, 250, 0.98);
  border: 1px solid rgba(65, 43, 74, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(38, 24, 47, 0.26);
  pointer-events: auto;
  transition: left 180ms ease, top 180ms ease, opacity 140ms ease, transform 180ms ease;
}

.dgt-card[data-side='left'] { transform-origin: right center; }
.dgt-card[data-side='right'] { transform-origin: left center; }
.dgt-card[data-side='top'] { transform-origin: center bottom; }
.dgt-card[data-side='bottom'] { transform-origin: center top; }

.dgt-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dgt-mascot {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(43, 31, 52, 0.16));
}

.dgt-card-meta {
  min-width: 0;
  flex: 1;
}

.dgt-eyebrow {
  display: block;
  color: #6d5a76;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dgt-progress-track {
  display: grid;
  grid-template-columns: repeat(var(--dgt-total, 1), minmax(10px, 1fr));
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}

.dgt-progress-track span {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: #e8e0eb;
}

.dgt-progress-track span.complete {
  background: #47bfb2;
}

.dgt-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  color: #5f4d68;
  background: #f0eaf2;
  font: 900 20px/1 'Nunito', sans-serif;
  cursor: pointer;
}

.dgt-close:hover,
.dgt-close:focus-visible {
  color: #2d1b33;
  background: #e4d9e8;
  outline: none;
}

.dgt-title {
  margin: 14px 0 0;
  color: #2d1b33;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.dgt-copy {
  margin: 8px 0 0;
  color: #66576d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0;
}

.dgt-action-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 8px 10px;
  color: #176a63;
  background: #e8f9f6;
  border-left: 3px solid #47bfb2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.dgt-action-note[hidden] {
  display: none;
}

.dgt-action-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #f5ad25;
  box-shadow: 0 0 0 3px rgba(245, 173, 37, 0.18);
}

.dgt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.dgt-step-count {
  margin-right: auto;
  color: #887890;
  font-size: 11px;
  font-weight: 900;
}

.dgt-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font: 900 12px/1 'Nunito', sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.dgt-button-secondary {
  color: #66576d;
  background: transparent;
  border: 1px solid rgba(79, 57, 88, 0.2);
}

.dgt-button-primary {
  color: #ffffff;
  background: #6942c8;
  border: 1px solid #6942c8;
  box-shadow: 0 5px 12px rgba(105, 66, 200, 0.22);
}

.dgt-button:hover,
.dgt-button:focus-visible {
  filter: brightness(0.96);
  outline: 3px solid rgba(82, 214, 199, 0.38);
  outline-offset: 2px;
}

@keyframes dgt-guide-pulse {
  0%, 100% { opacity: 0.42; transform: scale(0.99); }
  50% { opacity: 0.95; transform: scale(1.015); }
}

@media (max-width: 560px) {
  .dgt-card {
    padding: 14px;
  }

  .dgt-title {
    font-size: 18px;
  }

  .dgt-copy {
    font-size: 13px;
  }

  .dgt-button {
    min-height: 34px;
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dgt-shade,
  .dgt-spotlight,
  .dgt-card {
    transition: none;
  }

  .dgt-spotlight::after {
    animation: none;
  }
}
