/* Clearance Desk — state-driven next-step coach */

#deskCoachDock {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8500;
  width: min(20.5rem, calc(100vw - 1.5rem));
  border-radius: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 0.9rem 1rem 0.85rem;
}

#deskCoachDock.is-visible {
  display: block;
}

#deskCoachDock.is-urgent {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 16px 40px rgba(180, 83, 9, 0.18);
}

.desk-coach-dock__eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6366f1;
}

#deskCoachDock.is-urgent .desk-coach-dock__eyebrow {
  color: #d97706;
}

.desk-coach-dock__progress {
  margin: 0.15rem 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
}

.desk-coach-dock__title {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.desk-coach-dock__body {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #475569;
}

.desk-coach-dock__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.desk-coach-dock__btn {
  border-radius: 0.5rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
}

.desk-coach-dock__btn--primary {
  background: #4f46e5;
  color: #fff;
}

.desk-coach-dock__btn--primary:hover {
  background: #4338ca;
}

.desk-coach-dock__link {
  background: none;
  border: none;
  padding: 0.25rem 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.desk-coach-dock__link:hover {
  color: #334155;
}

.desk-coach-highlight {
  position: relative;
  z-index: 8400 !important;
  outline: 3px solid #6366f1;
  outline-offset: 3px;
  border-radius: 0.5rem;
  animation: desk-coach-pulse 1.6s ease-in-out infinite;
}

.desk-coach-highlight.is-urgent {
  outline-color: #d97706;
}

@keyframes desk-coach-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
}

#deskCoachChip {
  display: none;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.28rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

#deskCoachChip.is-visible {
  display: inline-flex;
}

#deskCoachChip.is-off {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

@media (max-width: 720px) {
  #deskCoachDock {
    right: 0.5rem;
    left: 0.5rem;
    bottom: 0.5rem;
    width: auto;
  }
}
