.ss-help-tour-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.ss-help-tour-root.is-active { opacity: 1; }

.ss-help-shade {
  position: fixed;
  background: rgba(6, 8, 18, .66);
  pointer-events: none;
  transition: all .28s ease;
}

.ss-help-focus-ring {
  position: fixed;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(62,28,210,.65), 0 18px 55px rgba(0,0,0,.30);
  pointer-events: none;
  transition: all .28s ease;
}

.ss-help-card {
  position: fixed;
  width: min(390px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 24px));
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #173E76;
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 22px 70px rgba(0,0,0,.30);
  pointer-events: auto;
  text-align: right;
  line-height: 1.85;
}

.ss-help-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ss-help-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  margin-bottom: 7px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-weight: 500;
}

.ss-help-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
}

.ss-help-text {
  margin-top: 10px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.ss-help-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.ss-help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.ss-help-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ss-help-progress {
  margin-left: 3px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  white-space: nowrap;
}

.ss-help-card button {
  font-family: inherit;
}

.ss-help-skip,
.ss-help-prev,
.ss-help-next {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.ss-help-skip,
.ss-help-prev {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.ss-help-next {
  border: 1px solid #fff;
  background: #fff;
  color: #173E76;
}

.ss-help-prev:disabled {
  opacity: .35;
  cursor: default;
}

@media (max-width: 767px) {
  .ss-help-focus-ring { border-radius: 13px; }
  .ss-help-card {
    padding: 15px;
    border-radius: 16px;
    max-height: min(360px, calc(100vh - 24px));
  }
  .ss-help-title { font-size: 17px; }
  .ss-help-text { font-size: 13px; line-height: 1.8; }
  .ss-help-footer {
    align-items: flex-end;
    gap: 8px;
  }
  .ss-help-nav { gap: 5px; }
  .ss-help-skip,
  .ss-help-prev,
  .ss-help-next { padding: 7px 9px; font-size: 11px; }
}

/* Lightweight gesture illustrations: inline markup + CSS only. */
.ss-help-gesture {
  margin-top: 12px;
}
.ss-help-gesture[hidden] { display: none !important; }

.ss-gesture-stage {
  position: relative;
  height: 86px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.ss-gesture-label {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.ss-gesture-direction,
.ss-wheel-arrows,
.ss-pivot-arrow {
  position: absolute;
  color: rgba(255,255,255,.88);
  font-size: 28px;
  line-height: 1;
}

.ss-mouse {
  position: absolute;
  width: 39px;
  height: 58px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 19px 19px 17px 17px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.ss-mouse::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.28);
}

.ss-mouse-left,
.ss-mouse-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 21px;
  background: rgba(255,255,255,.08);
}
.ss-mouse-left { left: 0; border-radius: 17px 0 0 0; }
.ss-mouse-right { right: 0; border-radius: 0 17px 0 0; }

.ss-mouse-wheel {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 11px;
  margin-left: -2.5px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
}

.ss-gesture-rotate-desktop .ss-mouse {
  left: calc(50% - 20px);
  top: 9px;
  animation: ssMouseDrag 1.65s ease-in-out infinite;
}
.ss-gesture-rotate-desktop .ss-mouse-left {
  animation: ssClickPulse 1.65s ease-in-out infinite;
}
.ss-gesture-rotate-desktop .ss-gesture-direction {
  left: calc(50% + 39px);
  top: 22px;
}

.ss-gesture-zoom-desktop .ss-mouse {
  left: calc(50% - 20px);
  top: 9px;
}
.ss-gesture-zoom-desktop .ss-mouse-wheel {
  animation: ssWheelMove 1.25s ease-in-out infinite;
}
.ss-gesture-zoom-desktop .ss-wheel-arrows {
  left: calc(50% + 39px);
  top: 22px;
  animation: ssSoftPulse 1.25s ease-in-out infinite;
}

.ss-gesture-pivot-desktop .ss-ctrl-key {
  position: absolute;
  left: calc(50% - 86px);
  top: 21px;
  min-width: 47px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.38);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: 700 12px/1.2 system-ui, sans-serif;
  text-align: center;
  animation: ssKeyPress 1.55s ease-in-out infinite;
}
.ss-gesture-pivot-desktop .ss-plus {
  position: absolute;
  left: calc(50% - 24px);
  top: 25px;
  color: rgba(255,255,255,.70);
  font-size: 21px;
}
.ss-gesture-pivot-desktop .ss-mouse {
  left: calc(50% + 9px);
  top: 9px;
  animation: ssPivotMouseDrag 1.55s ease-in-out infinite;
}
.ss-gesture-pivot-desktop .ss-mouse-left {
  animation: ssClickPulse 1.55s ease-in-out infinite;
}
.ss-gesture-pivot-desktop .ss-pivot-move {
  position: absolute;
  left: calc(50% + 66px);
  top: 22px;
  color: rgba(255,255,255,.88);
  font-size: 26px;
  line-height: 1;
  animation: ssSoftPulse 1.55s ease-in-out infinite;
}


.ss-finger {
  position: absolute;
  width: 20px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 12px 12px 9px 9px;
  background: rgba(255,255,255,.12);
  transform-origin: 50% 100%;
}
.ss-finger i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
}

.ss-gesture-rotate-mobile .ss-finger-one {
  left: calc(50% - 10px);
  top: 10px;
  animation: ssFingerDrag 1.6s ease-in-out infinite;
}
.ss-gesture-rotate-mobile .ss-gesture-direction {
  left: calc(50% + 33px);
  top: 18px;
}

.ss-gesture-zoom-mobile .ss-finger-a,
.ss-gesture-zoom-mobile .ss-finger-b {
  top: 9px;
}
.ss-gesture-zoom-mobile .ss-finger-a {
  left: calc(50% - 30px);
  animation: ssFingerZoomA 1.45s ease-in-out infinite;
}
.ss-gesture-zoom-mobile .ss-finger-b {
  left: calc(50% + 10px);
  animation: ssFingerZoomB 1.45s ease-in-out infinite;
}
.ss-zoom-guide {
  position: absolute;
  left: 50%;
  top: 27px;
  width: 48px;
  height: 1px;
  margin-left: -24px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
}

.ss-gesture-pivot-mobile .ss-finger-a,
.ss-gesture-pivot-mobile .ss-finger-b {
  top: 9px;
  animation: ssTwoFingerPan 1.55s ease-in-out infinite;
}
.ss-gesture-pivot-mobile .ss-finger-a { left: calc(50% - 32px); }
.ss-gesture-pivot-mobile .ss-finger-b { left: calc(50% + 6px); animation-delay: .04s; }
.ss-gesture-pivot-mobile .ss-pivot-arrow {
  left: calc(50% + 48px);
  top: 18px;
  animation: ssArrowNudge 1.55s ease-in-out infinite;
}

@keyframes ssMouseDrag {
  0%, 100% { transform: translateX(-24px); }
  50% { transform: translateX(24px); }
}
@keyframes ssClickPulse {
  0%, 100% { background: rgba(255,255,255,.10); }
  15%, 70% { background: rgba(255,255,255,.88); }
}
@keyframes ssWheelMove {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}
@keyframes ssSoftPulse {
  0%, 100% { opacity: .35; transform: scale(.94); }
  50% { opacity: .9; transform: scale(1.06); }
}
@keyframes ssKeyPress {
  0%, 100% { transform: translateY(0); border-bottom-width: 3px; }
  35%, 70% { transform: translateY(2px); border-bottom-width: 1px; }
}
@keyframes ssPivotMouseDrag {
  0%, 100% { transform: translateX(-12px); }
  50% { transform: translateX(12px); }
}
@keyframes ssFingerDrag {
  0%, 100% { transform: translateX(-25px) rotate(-5deg); }
  50% { transform: translateX(25px) rotate(5deg); }
}
@keyframes ssFingerZoomA {
  0%, 100% { transform: translateX(10px) rotate(-5deg); }
  50% { transform: translateX(-13px) rotate(-9deg); }
}
@keyframes ssFingerZoomB {
  0%, 100% { transform: translateX(-10px) rotate(5deg); }
  50% { transform: translateX(13px) rotate(9deg); }
}
@keyframes ssTwoFingerPan {
  0%, 100% { transform: translateX(-18px); }
  50% { transform: translateX(22px); }
}
@keyframes ssArrowNudge {
  0%, 100% { opacity: .35; transform: translateX(-5px); }
  50% { opacity: .9; transform: translateX(6px); }
}

@media (max-width: 767px) {
  .ss-help-gesture { margin-top: 9px; }
  .ss-gesture-stage { height: 72px; border-radius: 12px; }
  .ss-gesture-label { right: 9px; bottom: 6px; font-size: 9px; }
  .ss-finger { width: 17px; height: 32px; }
  .ss-gesture-rotate-mobile .ss-finger-one,
  .ss-gesture-zoom-mobile .ss-finger-a,
  .ss-gesture-zoom-mobile .ss-finger-b,
  .ss-gesture-pivot-mobile .ss-finger-a,
  .ss-gesture-pivot-mobile .ss-finger-b { top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-help-tour-root *,
  .ss-help-tour-root *::before,
  .ss-help-tour-root *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
