/* The guided tour (core/guide.js; the EUDR platform's GuidedTour): the screen
   dims except one control, a bubble says what to do. The layer lets clicks
   through only where the control is (the shades and, on a "next" step, the
   ring stop the rest). Above the sheets and dialogs. */
.ct-guide { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
[data-guide] { scroll-margin-top: 72px; }
.ct-guide__shade { position: fixed; background: rgba(5, 31, 32, 0.62); pointer-events: auto; }
.ct-guide__ring {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 7px rgba(2, 239, 240, 0.35);
  pointer-events: none;
  transition: top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease;
}
.ct-guide__ring--blocking { pointer-events: auto; }
.ct-guide__bubble {
  position: fixed;
  width: 340px;
  max-width: calc(100vw - 24px);
  padding: 16px 18px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(5, 31, 32, 0.32);
  pointer-events: auto;
  animation: ct-guide-in 0.18s ease;
}
.ct-guide__bubble[hidden] { display: none; }
.ct-guide__progress { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 6px; }
.ct-guide__text { margin: 0 0 14px; font-size: 0.94rem; line-height: 1.5; }
.ct-guide__hint { margin: -8px 0 14px; font-size: 0.84rem; font-weight: 600; color: var(--accent); }
.ct-guide__hint[hidden] { display: none; }
.ct-guide__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-guide__skip {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--text-secondary); font-size: 0.84rem; text-decoration: underline;
}
.ct-guide__steps { display: flex; gap: 8px; margin-inline-start: auto; }
.ct-guide__steps [hidden] { display: none; }
body.dark-mode .ct-guide__bubble { background: var(--surface); color: var(--text); border: 1px solid rgba(2, 239, 240, 0.18); }
@media (max-width: 600px) {
  .ct-guide__bubble { padding: 14px 16px 12px; }
  .ct-guide__text { font-size: 1rem; }
  .ct-guide__actions button { min-height: 44px; }
}
@keyframes ct-guide-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-guide__bubble { animation: none; } .ct-guide__ring { transition: none; } }

/* The portal header's "Run the guide again" (the supplier's request page). */
.ct-portal-guide-btn {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--storm-lift-3);
  background: var(--chrome-bg-2);
  color: var(--header-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  margin-inline-end: 8px;
}
.ct-portal-guide-btn:hover { filter: brightness(1.15); }
.ct-portal-guide-btn[hidden] { display: none; }
@media (max-width: 600px) { .ct-portal-guide-btn { padding: 7px 9px; font-size: 0.8rem; } }
