:root {
  --mtk-tour-green: #047857;
  --mtk-tour-green-dark: #065f46;
  --mtk-tour-ink: #10251f;
}

.mtk-tour,
.mtk-tour * { box-sizing: border-box; }

.mtk-tour {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mtk-tour-shade {
  position: fixed;
  background: rgba(4, 22, 17, 0.68);
  backdrop-filter: blur(1px);
}

.mtk-tour-focus {
  position: fixed;
  border: 2px solid #34d399;
  border-radius: 13px;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.24), 0 14px 38px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
}

.mtk-tour-card {
  position: fixed;
  width: min(380px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(4, 120, 87, 0.14);
  border-radius: 18px;
  color: var(--mtk-tour-ink);
  background: #ffffff;
  box-shadow: 0 24px 70px -24px rgba(4, 46, 34, 0.58);
  outline: none;
}

.mtk-tour-progress {
  margin-bottom: 9px;
  color: var(--mtk-tour-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mtk-tour-card h2 {
  margin: 0;
  color: var(--mtk-tour-ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mtk-tour-card p {
  margin: 10px 0 20px;
  color: #52635e;
  font-size: 14px;
  line-height: 1.55;
}

.mtk-tour-actions { display: flex; align-items: center; gap: 8px; }
.mtk-tour-spacer { flex: 1; }

.mtk-tour-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.mtk-tour-skip,
.mtk-tour-back { color: #66756f; background: transparent; }
.mtk-tour-skip:hover,
.mtk-tour-back:hover { background: #f0f6f3; }
.mtk-tour-back:disabled { opacity: 0.35; cursor: default; background: transparent; }

.mtk-tour-next {
  color: #ffffff;
  background: linear-gradient(180deg, var(--mtk-tour-green) 0%, var(--mtk-tour-green-dark) 100%);
  box-shadow: 0 8px 18px -10px rgba(4, 120, 87, 0.85);
}

.mtk-tour-actions button:focus-visible,
.mtk-tour-replay:focus-visible { outline: 3px solid rgba(52, 211, 153, 0.46); outline-offset: 2px; }

.mtk-tour-replay {
  position: fixed;
  z-index: 124;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.mtk-tour-replay:hover { background: rgba(4, 120, 87, 0.09); }

.mtk-tour-replay-collapsed {
  justify-content: center;
  gap: 0;
  padding-inline: 7px;
}

.mtk-tour-replay-collapsed .mtk-tour-replay-label { display: none; }

.mtk-tour-replay-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--mtk-tour-green);
  font-size: 13px;
  font-weight: 750;
}

.dark .mtk-tour-card {
  border-color: rgba(110, 231, 183, 0.12);
  color: #f4f7f6;
  background: #13211c;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.82);
}

.dark .mtk-tour-card h2 { color: #f4f7f6; }
.dark .mtk-tour-card p { color: #a8b8b2; }
.dark .mtk-tour-skip,
.dark .mtk-tour-back { color: #a8b8b2; }
.dark .mtk-tour-skip:hover,
.dark .mtk-tour-back:hover { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 640px) {
  .mtk-tour-card {
    left: 12px !important;
    top: auto !important;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 19px;
  }

  .mtk-tour-card p { margin-bottom: 16px; }
  .mtk-tour-actions { gap: 4px; }
  .mtk-tour-actions button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mtk-tour-focus { transition: none; }
}
